|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
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.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 |
Method Summary | |
---|---|
DBObject |
copyTo(DBObject target,
DBObject copyParent,
IDPolicy idPolicy)
Internal copy method used by the API to perform copy operations. |
protected void |
copyToImpl(DataTypeSynonym target,
DBObject copyParent,
IDPolicy idPolicy)
|
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. |
boolean |
equals(java.lang.Object obj)
|
protected boolean |
equalsImpl(DataTypeSynonym other)
|
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, copyToImpl, equalsImpl, 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 |
Method Detail |
---|
public DataType getBaseType()
public DataTypeAttribute[] getDataTypeAttributes()
DataType
getDataTypeAttributes
in interface DataType
public boolean hasDataTypeAttribute(java.lang.String name)
DataType
hasDataTypeAttribute
in interface DataType
public DataTypeAttribute getDataTypeAttribute(java.lang.String name)
DataType
getDataTypeAttribute
in interface DataType
public java.lang.String getDDL(DataTypeUsage dataTypeUsage)
DataType
getDDL
in interface DataType
public DataTypeUsage createDefaultUsage()
DataType
createDefaultUsage
in interface DataType
public DataTypeUsage createUsage(java.util.Map attributes)
DataType
createUsage
in interface DataType
public void validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject) throws DataTypeValidationException
DataType
validateUsage
in interface DataType
dataTypeUsage
- : 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 DataType
defaultValue
- : the default valuedataTypeUsage
- : the usage to be validateddbObject
- : the context of the data type usage
DefaultValueValidationException
public DBObject copyTo(DBObject target, DBObject copyParent, IDPolicy idPolicy)
AbstractDBObject
This method does not fix internal reference ids on copy. That is done by
the calling DBObject.copyTo(DBObject, IDPolicy)
method.
copyTo
in class AbstractDBObject
DBObject.copyTo(java.lang.Object)
,
DBObject.copyTo(DBObject, boolean)
,
AbstractDBObject.copyToImpl(oracle.javatools.db.AbstractDBObject, oracle.javatools.db.DBObject, oracle.javatools.db.IDPolicy)
protected void copyToImpl(DataTypeSynonym target, DBObject copyParent, IDPolicy idPolicy)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected boolean equalsImpl(DataTypeSynonym other)
public java.lang.String getType()
DBObject
getType
in interface DBObject
public DBObject getParent()
DBObject
getParent
in interface DBObject
public boolean matches(java.lang.String usageString)
DataType
true
if the usageString is valid syntax for the DataType,
false
otherwise.
Should be overridden by sub-classes to do the validation.
matches
in interface DataType
public DataTypeUsage createUsage(java.lang.String usageString)
DataType
DataType.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) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |