public class Column extends AbstractChildBuildableObject
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | AUTO_GENERATED_SEQUENCEDeprecated.  | 
| static java.lang.String | AUTO_GENERATED_SEQUENCE_TRIGGERDeprecated.  | 
| static java.lang.String | TYPE | 
| Constructor and Description | 
|---|
| Column()Constructs a new Column. | 
| Column(java.lang.String name)Constructs a new Column with the specified name. | 
| Column(java.lang.String name,
      DataTypeUsage usage)Constructs a new Column with the specified name and datatype. | 
| Modifier and Type | Method and Description | 
|---|---|
| DataTypeUsage | getDataTypeUsage()Gets the usage object for the datatype information for this column. | 
| java.lang.Object | getDefault()Retrieves the default value for the Column. | 
| IdentityColumnProperties | getIdentityProperties()Gets the IdentityColumnProperties object that controls the auto generation of values for this column. | 
| java.lang.Long | getPrecision()Deprecated. 
 - use getDataTypeUsage() and then get the appropriate attribute
 from the DataTypeUsage. e.g. dataTypeUsage.getAttributeValue( DataTypeAttribute.DATATYPE_PRECISION) | 
| Relation | getRelation()Gets the  Relationthat owns this Column. | 
| java.lang.Long | getScale()Deprecated. 
 - use getDataTypeUsage() and then get the appropriate attribute
 from the DataTypeUsage. e.g. dataTypeUsage.getAttributeValue( DataTypeAttribute.DATATYPE_SCALE) | 
| java.lang.String | getType()Returns the type of this object. | 
| SQLFragment | getVirtualExpression()Retrieves the Virtual Expression for the Column. | 
| java.lang.String | getVirtualExpressionSource()Retrieves the Virtual Expression source for the Column. | 
| boolean | isNotNull()Whether the Column is restricted to non-null values. | 
| void | setDataTypeUsage(DataTypeUsage dataTypeUsage)Sets the usage object for the datatype information for this column. | 
| void | setDefault(java.lang.Object defaultValue)Sets the default value for the Column. | 
| void | setIdentityProperties(IdentityColumnProperties props)Sets the IdentityColumnProperties object that controls the auto generation of values for this column. | 
| void | setNotNull(boolean notNull)Sets whether the Column is restricted to non-null values. | 
| void | setPrecision(java.lang.Long precision)Deprecated. 
 - use getDataTypeUsage() and then set the appropriate attribute
 from the DataTypeUsage. e.g. dataTypeUsage.setAttributeValue( DataTypeAttribute.DATATYPE_PRECISION) | 
| void | setRelation(Relation relation)Sets the  Relationthat owns this Column. | 
| void | setScale(java.lang.Long scale)Deprecated. 
 - use getDataTypeUsage() and then set the appropriate attribute
 from the DataTypeUsage. e.g. dataTypeUsage.setAttributeValue( DataTypeAttribute.DATATYPE_SCALE) | 
| void | setVirtualExpression(SQLFragment expression)Sets the Virtual Expression for the Column. | 
| void | setVirtualExpressionSource(java.lang.String expression)Sets the Virtual Expression source for the Column. | 
setParentcheckInit, checkInit, copyToImpl, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization, processPropertyChange, setIDaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setName, setProperties, setProperty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetParentaddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName, setProperties, setPropertypublic static final java.lang.String TYPE
@Deprecated public static final java.lang.String AUTO_GENERATED_SEQUENCE
@Deprecated public static final java.lang.String AUTO_GENERATED_SEQUENCE_TRIGGER
public Column()
public Column(java.lang.String name)
name - a string containing the column namepublic Column(java.lang.String name,
              DataTypeUsage usage)
name - a string containing the column nameusage - the column's datatype informationpublic void setDefault(java.lang.Object defaultValue)
defaultValue - an object representing the default value for the
        Column. null means the column has no default. To
        specify that the Column should default to NULL, use the
        String value "NULL".public java.lang.Object getDefault()
null
         if no default is specifiedpublic void setVirtualExpression(SQLFragment expression)
expression - a SQLFragment representation of the "virtual
 expression source" property of this Column.setVirtualExpressionSource(String)public SQLFragment getVirtualExpression()
null
         if the column is not a virtual column.public void setVirtualExpressionSource(java.lang.String expression)
expression - a SQLFragment representing the Virtual Expression for the
        Column. null means the column is not virtual.public java.lang.String getVirtualExpressionSource()
null
         if the column is not a virtual column.public boolean isNotNull()
public void setNotNull(boolean notNull)
notNull - boolean value indicating whether null values are
        disallowedpublic void setDataTypeUsage(DataTypeUsage dataTypeUsage)
public DataTypeUsage getDataTypeUsage()
public void setIdentityProperties(IdentityColumnProperties props)
public IdentityColumnProperties getIdentityProperties()
public java.lang.String getType()
DBObjectpublic Relation getRelation()
Relation that owns this Column.public void setRelation(Relation relation)
Relation that owns this Column.relation - the Relation that owns this column.@Deprecated public java.lang.Long getPrecision()
@Deprecated public void setPrecision(java.lang.Long precision)
@Deprecated public java.lang.Long getScale()
@Deprecated public void setScale(java.lang.Long scale)