public interface DataType extends DBObject
This replaces the deprecated oracle.javatools.db.DataType.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PCTROWTYPE
Deprecated.
|
static java.lang.String |
PCTTYPE
Deprecated.
|
static java.lang.String |
REF
Deprecated.
|
static java.lang.String |
TYPE |
Modifier and Type | Method and Description |
---|---|
DataTypeUsage |
createDefaultUsage()
Returns an DataTypeUsage object for this type.
|
DataTypeUsage |
createUsage(java.util.Map<java.lang.String,java.lang.Object> attributes)
Returns an DataTypeUsage object for this type, populated with attributes.
|
DataTypeUsage |
createUsage(java.lang.String usageString)
Returns an DataTypeUsage object for this type, populated with attributes based on the usageString.
|
DataTypeAttribute |
getDataTypeAttribute(java.lang.String name)
Returns the DataTypeAttribute with the given name, if this DataType has such an attribute.
|
DataTypeAttribute[] |
getDataTypeAttributes()
Returns the DataTypeAttributes for this DataType.
|
java.lang.String |
getDDL(DataTypeUsage dataTypeUsage)
Generates the DDL for this type.
|
boolean |
hasDataTypeAttribute(java.lang.String name)
Returns true if this DataTYpe has the given attribute name.
|
boolean |
matches(java.lang.String usageString)
Returns
true if the usageString is valid syntax for the DataType, false otherwise. |
void |
validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates defaultValue for dataTypeUsage against self's definition.
|
void |
validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject)
Validates dataTypeUsage against self's definition.
|
addObjectListener, copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperties, getReferenceIDs, getType, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName
getProperty, getProperty, setProperties, setProperty
static final java.lang.String TYPE
@Deprecated static final java.lang.String PCTTYPE
@Deprecated static final java.lang.String PCTROWTYPE
@Deprecated static final java.lang.String REF
DataTypeAttribute[] getDataTypeAttributes()
boolean hasDataTypeAttribute(java.lang.String name)
name
-DataTypeAttribute getDataTypeAttribute(java.lang.String name)
name
-java.lang.String getDDL(DataTypeUsage dataTypeUsage)
dataType
-DataTypeUsage createDefaultUsage()
DataTypeUsage createUsage(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes
-boolean matches(java.lang.String usageString)
true
if the usageString is valid syntax for the DataType, false
otherwise. Should be overridden by sub-classes to do the validation.usageString
-DataTypeUsage createUsage(java.lang.String usageString)
matches(java.lang.String)
. Should be overridden by sub-classes to return an object of the sub-class type.attributes
-void validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject) throws DataTypeValidationException
dataTypeUsage
- : the usage to be validateddbObject
- : the context of the data type usageDataTypeValidationException
void validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject) throws DefaultValueValidationException
dataTypeUsage
- : the usage to be validateddefaultValue
- : the default valuedbObject
- : the context of the data type usageDefaultValueValidationException