|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.db.AbstractDBObject
oracle.javatools.db.datatypes.DataTypeSynonym
public class DataTypeSynonym
DataType implementation that delegates all calls to an underlying DataType
that it is a "synonym" for. The name is the only difference between a
DataTypeSynonym and its underlying DataType.
A DataType could be a synonym for another DataType without being an instance
of this class. This class is used for the subset of synonyms where the
behaviour of both types is identical.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
|---|
AbstractDBObject.ChildSupport |
| Field Summary |
|---|
| Fields inherited from interface oracle.javatools.db.datatypes.DataType |
|---|
PCTROWTYPE, PCTTYPE, REF, TYPE |
| Fields inherited from interface oracle.javatools.db.DBObject |
|---|
COMMENT |
| Constructor Summary | |
|---|---|
DataTypeSynonym()
|
|
| Method Summary | |
|---|---|
protected void |
copyToImpl(AbstractDBObject other,
DBObject copyParent,
IDPolicy idPolicy)
Implementation method for making a copy of this object. |
DataTypeUsage |
createDefaultUsage()
Returns an DataTypeUsage object for this type. |
DataTypeUsage |
createUsage(java.util.Map 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. |
protected boolean |
equalsImpl(AbstractDBObject other)
Equals implementation for testing equality with another AbstractDBObject. |
DataType |
getBaseType()
|
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. |
DBObject |
getParent()
Returns the parent of this object, if one exists. |
java.lang.String |
getType()
Returns the type of this object. |
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. |
| Methods inherited from class oracle.javatools.db.AbstractDBObject |
|---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getProperties, getProperty, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, setProperty, 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, getProperty, setProperties, setProperty |
| Constructor Detail |
|---|
public DataTypeSynonym()
| Method Detail |
|---|
public DataType getBaseType()
public DataTypeAttribute[] getDataTypeAttributes()
DataType
getDataTypeAttributes in interface DataTypepublic boolean hasDataTypeAttribute(java.lang.String name)
DataType
hasDataTypeAttribute in interface DataTypepublic DataTypeAttribute getDataTypeAttribute(java.lang.String name)
DataType
getDataTypeAttribute in interface DataTypepublic java.lang.String getDDL(DataTypeUsage dataTypeUsage)
DataType
getDDL in interface DataTypepublic DataTypeUsage createDefaultUsage()
DataType
createDefaultUsage in interface DataTypepublic DataTypeUsage createUsage(java.util.Map attributes)
DataType
createUsage in interface DataType
public void validateUsage(DataTypeUsage dataTypeUsage,
DBObject dbObject)
throws DataTypeValidationException
DataType
validateUsage in interface DataTypedataTypeUsage - : the usage to be validateddbObject - : the context of the data type usage
DataTypeValidationException
public void validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
throws DefaultValueValidationException
DataType
validateDefaultValue in interface DataTypedefaultValue - : the default valuedataTypeUsage - : the usage to be validateddbObject - : the context of the data type usage
DefaultValueValidationException
protected void copyToImpl(AbstractDBObject other,
DBObject copyParent,
IDPolicy idPolicy)
AbstractDBObject
copyToImpl in class AbstractDBObjectother - the copy being created of this objectcopyParent - if this object is being copied underneath a parent, this
parameter is the copy of the parent of this object, which will therefore
need to be the parent of the copy of this object.idPolicy - the policy for copying the object's ID.protected boolean equalsImpl(AbstractDBObject other)
AbstractDBObject
equalsImpl in class AbstractDBObjectpublic java.lang.String getType()
DBObject
getType in interface DBObjectpublic DBObject getParent()
DBObject
getParent in interface DBObjectpublic boolean matches(java.lang.String usageString)
DataTypetrue if the usageString is valid syntax for the DataType,
false otherwise.
Should be overridden by sub-classes to do the validation.
matches in interface DataTypepublic DataTypeUsage createUsage(java.lang.String usageString)
DataTypeDataType.matches(java.lang.String).
Should be overridden by sub-classes to return an object of the sub-class type.
createUsage in interface DataType
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||