|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.AbstractDBObject oracle.javatools.db.AbstractChildDBObject oracle.javatools.db.Column
public class Column
Model of a database column.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport |
Field Summary | |
---|---|
static java.lang.String |
AUTO_GENERATED_SEQUENCE
|
static java.lang.String |
AUTO_GENERATED_SEQUENCE_TRIGGER
|
static java.lang.String |
TYPE
|
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
DataTypeUsage |
getDataTypeUsage()
Gets the usage object for the datatype information for this column. |
java.lang.Object |
getDefault()
Retrieves the default value for the 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 Relation that 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. |
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 |
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 Relation that 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) |
Methods inherited from class oracle.javatools.db.AbstractChildDBObject |
---|
copyToImpl, findParent, getParent, getProperty, setParent, setProperty |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getProperties, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.javatools.db.DBObject |
---|
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, setProperties |
Field Detail |
---|
public static final java.lang.String TYPE
public static final java.lang.String AUTO_GENERATED_SEQUENCE
public static final java.lang.String AUTO_GENERATED_SEQUENCE_TRIGGER
Constructor Detail |
---|
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 namedataType
- the datatype of the columnMethod Detail |
---|
public 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 boolean isNotNull()
public void setNotNull(boolean notNull)
notNull
- boolean value indicating whether null values are
disallowedpublic void setDataTypeUsage(DataTypeUsage dataTypeUsage)
public DataTypeUsage getDataTypeUsage()
public java.lang.String getType()
DBObject
public 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)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |