Abstract implementation for org.netbeans.modules.model.database.DBColumn and SQLObject interfaces.
author: Sudhendra Seshachala, Jonathan Giron version: $Revision$
AbstractDBColumn() Constructs default instance of AbstractDBColumn.
public
AbstractDBColumn(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isNullable) Constructs a new instance of AbstractDBColumn using the given parameters and
assuming that the column is not part of a foreign key or primary key, and that it
accepts null values.
public
AbstractDBColumn(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isPrimaryKey, boolean isForeignKey, boolean isIndexed, boolean isNullable) Constructs a new instance of AbstractDBColumn using the given parameters.
public AbstractDBColumn(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isNullable)(Code)
Constructs a new instance of AbstractDBColumn using the given parameters and
assuming that the column is not part of a foreign key or primary key, and that it
accepts null values.
Parameters: colName - name of this column Parameters: sqlJdbcType - JDBC type of this column Parameters: colScale - scale of this column Parameters: colPrecision - precision of this column Parameters: isNullable - true if nullable, false otherwise See Also:java.sql.Types
AbstractDBColumn
public AbstractDBColumn(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isPrimaryKey, boolean isForeignKey, boolean isIndexed, boolean isNullable)(Code)
Constructs a new instance of AbstractDBColumn using the given parameters.
Parameters: colName - name of this column Parameters: sqlJdbcType - JDBC type of this column Parameters: colScale - scale of this column Parameters: colPrecision - precision of this column Parameters: isPrimaryKey - true if part of a primary key, false otherwise Parameters: isForeignKey - true if part of a foreign key, false otherwise Parameters: isIndexed - true if indexed, false otherwise Parameters: isNullable - true if nullable, false otherwise See Also:java.sql.Types
Compares DBColumn with another object for lexicographical ordering. Null objects
and those DBColumns with null names are placed at the end of any ordered collection
using this method.
Parameters: refObj - Object to be compared. -1 if the column name is less than obj to be compared. 0 if the column nameis the same. 1 if the column name is greater than obj to be compared.
Sets the various member variables and collections using the given DBColumn instance
as a source object. Concrete implementations should override this method, call
super.copyFrom(DBColumn) to pick up member variables defined in this class and then
implement its own logic for copying member variables defined within itself.
Parameters: source - DBColumn from which to obtain values for member variables andcollections
Overrides default implementation to return value based on memberwise comparison.
Concrete implementations should override this method and combine the result of
super.equals(Object) [calling this method] with its own comparison of member
variables declared in its class as its own return value.
Parameters: refObj - Object against which we compare this instance true if refObj is functionally identical to this instance; false otherwise
Gets the hashCode for this object. Concrete implementations should override this
method and combine the result of super.hashCode() [this method] and its own
implementation of hashCode as its own return value.
the hashCode of this object.
public void parseXML(Element columnElement) throws BaseException(Code)
Parses the XML content, if any, represented by the given DOM element.
Parameters: columnElement - DOM element to be parsed for column content exception: BaseException - thrown while parsing XML, or if columnElement is null
setDefaultValue
public void setDefaultValue(String defaultVal)(Code)
Set default value
Parameters: defaultVal - - value