| |
|
| java.lang.Object org.netbeans.modules.jdbcwizard.builder.dbmodel.impl.DBColumnImpl
DBColumnImpl | public class DBColumnImpl implements DBColumn,Cloneable,Comparable(Code) | | Interface describing column metadata for JDBC data sources providing information in a database or
database-like format.
|
Constructor Summary | |
public | DBColumnImpl(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isNullable) | public | DBColumnImpl(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isPrimaryKey, boolean isForeignKey, boolean isIndexed, boolean isNullable) | public | DBColumnImpl() Creates a new instance of DBColumnImpl, cloning the contents of the given DBColumn
implementation instance. |
NOT_ASSIGNED | final public static int NOT_ASSIGNED(Code) | | Constant for this jdbc type not being assigned.
|
UNKNOWN_TYPE | final public static String UNKNOWN_TYPE(Code) | | String constant for unknown SQL type
|
cardinalPosition | protected int cardinalPosition(Code) | | |
chooseSelected | protected boolean chooseSelected(Code) | | |
editable | protected boolean editable(Code) | | editable
|
fkFlag | protected boolean fkFlag(Code) | | whether this column is part of a foreign key
|
indexed | protected boolean indexed(Code) | | whether this column is indexed
|
insertEditable | protected boolean insertEditable(Code) | | insert editable
|
insertSelected | protected boolean insertSelected(Code) | | selected
|
jdbcType | protected int jdbcType(Code) | | JDBC SQL type, as enumerated in java.sql.Types
|
nullable | protected boolean nullable(Code) | | whether this column can accept null as a valid value
|
pkFlag | protected boolean pkFlag(Code) | | whether this column is part of a primary key
|
pollSelected | protected boolean pollSelected(Code) | | |
precision | protected int precision(Code) | | column precision (for numeric types) / width (for char types)
|
scale | protected int scale(Code) | | column scale (meaningful only for numeric types)
|
updateSelected | protected boolean updateSelected(Code) | | |
DBColumnImpl | public DBColumnImpl(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isNullable)(Code) | | Parameters: colName - Parameters: sqlJdbcType - Parameters: colScale - Parameters: colPrecision - Parameters: isNullable - |
DBColumnImpl | public DBColumnImpl(String colName, int sqlJdbcType, int colScale, int colPrecision, boolean isPrimaryKey, boolean isForeignKey, boolean isIndexed, boolean isNullable)(Code) | | Parameters: colName - Parameters: sqlJdbcType - Parameters: colScale - Parameters: colPrecision - Parameters: isPrimaryKey - Parameters: isForeignKey - Parameters: isIndexed - Parameters: isNullable - |
DBColumnImpl | public DBColumnImpl()(Code) | | Creates a new instance of DBColumnImpl, cloning the contents of the given DBColumn
implementation instance.
Parameters: src - DBColumn instance to be cloned |
clone | public Object clone()(Code) | | Clone a deep copy of DBColumn.
a copy of DBColumn. |
compareTo | public int compareTo(Object refObj)(Code) | | 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 name is thesame. 1 if the column name is greater than obj to be compared. |
equals | public boolean equals(Object refObj)(Code) | | Overrides default implementation to return value based on memberwise comparison.
Parameters: refObj - Object against which we compare this instance true if refObj is functionally identical to this instance; false otherwise |
getDefaultValue | public String getDefaultValue()(Code) | | Gets the default value
defaultValue |
getJavaName | public String getJavaName()(Code) | | Gets Java name for this table.
normalized Java name for this table |
getJavaType | public String getJavaType()(Code) | | Gets Java type for this table.
normalized Java type for this table |
getJdbcType | public int getJdbcType()(Code) | | See Also: com.stc.model.database.DBColumn.getJdbcType |
getJdbcTypeString | public String getJdbcTypeString()(Code) | | See Also: com.stc.model.database.DBColumn.getJdbcTypeString |
getName | public String getName()(Code) | | See Also: com.stc.model.database.DBColumn.getName |
getOrdinalPosition | public int getOrdinalPosition()(Code) | | Gets the Ordinal Position
Parameters: cardinalPosition - to be used |
getParent | public DBTable getParent()(Code) | | See Also: com.stc.model.database.DBColumn.getParent |
getPrecision | public int getPrecision()(Code) | | See Also: com.stc.model.database.DBColumn.getPrecision |
getScale | public int getScale()(Code) | | See Also: com.stc.model.database.DBColumn.getScale |
hashCode | public int hashCode()(Code) | | Returns the hashCode for this object.
the hashCode of this object. |
isChooseSelected | public boolean isChooseSelected()(Code) | | Gets the status of selection of the column
seleted |
isEditable | public boolean isEditable()(Code) | | Gets the status of editing
editable |
isForeignKey | public boolean isForeignKey()(Code) | | See Also: com.stc.model.database.DBColumn.isForeignKey |
isIndexed | public boolean isIndexed()(Code) | | See Also: com.stc.model.database.DBColumn.isIndexed |
isInsertEditable | public boolean isInsertEditable()(Code) | | Gets the status of Insert editing
InsertEditable |
isInsertSelected | public boolean isInsertSelected()(Code) | | Gets the status of selection of the column
seleted |
isNullable | public boolean isNullable()(Code) | | See Also: com.stc.model.database.DBColumn.isNullable |
isPollSelected | public boolean isPollSelected()(Code) | | Gets the status of selection of the column
seleted |
isPrimaryKey | public boolean isPrimaryKey()(Code) | | See Also: com.stc.model.database.DBColumn.isPrimaryKey |
isSelected | public boolean isSelected()(Code) | | |
isUpdateSelected | public boolean isUpdateSelected()(Code) | | Gets the status of selection of the column
seleted |
setChooseSelected | public void setChooseSelected(boolean cselect)(Code) | | Sets status of selection of the column table
Parameters: the - selection status is set from now on to that of cselect |
setDefaultValue | public void setDefaultValue(String defValue)(Code) | | sets the default value
Parameters: defaultValue - to be set |
setEditable | public void setEditable(boolean cedit)(Code) | | Sets status of editing the column table
Parameters: the - editing status is from now that of cedit |
setForeignKey | public void setForeignKey(boolean newFlag)(Code) | | |
setIndexed | public void setIndexed(boolean newFlag)(Code) | | |
setInsertEditable | public void setInsertEditable(boolean cedit)(Code) | | Sets status of editing the column table at Insert tab
Parameters: the - editing status is from now that of cedit |
setInsertSelected | public void setInsertSelected(boolean cselect)(Code) | | Sets status of selection of the column table
Parameters: the - selection status is set from now on to that of cselect |
setJavaName | public void setJavaName(String newName)(Code) | | Sets Java name for this table.
Parameters: newName - new normalized Java name for this table, or null if original name is to beused. |
setJavaType | public void setJavaType(String newType)(Code) | | Sets Java type for this table.
Parameters: newType - new normalized Java name for this table |
setJdbcType | public void setJdbcType(int newType)(Code) | | |
setNullable | public void setNullable(boolean newFlag)(Code) | | |
setOrdinalPosition | public void setOrdinalPosition(int cardinalPos)(Code) | | Gets the Ordinal Position
Parameters: cardinalPosition - to be used |
setPollSelected | public void setPollSelected(boolean cselect)(Code) | | Sets status of selection of the column table
Parameters: the - selection status is set from now on to that of cselect |
setPrecision | public void setPrecision(int newPrec)(Code) | | Indicates whether this DBColumn is referenced by the given DBColumn in a FK -> PK
relationship.
Parameters: column - potential FK reference to be checked true if column is referenced as a PK by the given column, false otherwise |
setPrimaryKey | public void setPrimaryKey(boolean newFlag)(Code) | | |
setScale | public void setScale(int newScale)(Code) | | |
setSelected | public void setSelected(boolean cselect)(Code) | | |
setSqlType | public void setSqlType(String sqlType)(Code) | | Parameters: sqlType - |
setUpdateSelected | public void setUpdateSelected(boolean cselect)(Code) | | Sets status of selection of the column table
Parameters: the - selection status is set from now on to that of cselect |
|
|
|