|
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.AbstractChildDBObject oracle.javatools.db.datatypes.DataTypeUsage
public abstract class DataTypeUsage
To "use" a DataType is to refere to it by ID and store values for any attributes that DataType may have (e.g. precision, scale, size). All attribute values are stored in a map against that attribute's name. The ID of the DataType being used is also stored.
A DataTypeUsage can be "validated" by its corresponding DataType.
This replaces the deprecated way of storing scale and precision on a Column which was not flexible enough to support all datatype attributes.
To get a String representation of the usage and attributes use the
DataType.getDDL(oracle.javatools.db.datatypes.DataTypeUsage)
method.
Code examples for using DataTypeUsages are available in the datatypes
datatypes
package summary
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport |
Field Summary | |
---|---|
static java.lang.String |
TYPE
|
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Constructor Summary | |
---|---|
protected |
DataTypeUsage()
|
protected |
DataTypeUsage(DataType dt)
|
Method Summary | |
---|---|
protected void |
copyToImpl(DataTypeUsage target,
DBObject copyParent,
IDPolicy idPolicy)
|
void |
deleteAttributeValue(java.lang.String name)
Deletes entry named name. |
protected boolean |
equalsImpl(DataTypeUsage target)
|
java.lang.Object |
getAttributeValue(java.lang.String name)
Gets the value of the given named attribute. |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributeValues()
Returns the keys/values of all attributes in this usage. |
DBObjectID |
getDataTypeID()
Gets the id of the DataType being used. |
protected void |
getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
Used by the final getReferenceID() implementation. |
java.lang.String |
getType()
Returns the type of this object. |
boolean |
hasAttributeValue(java.lang.String name)
Returns true if there is an entry for the given attribute name. |
void |
putAttributeValue(java.lang.String name,
java.lang.Object value)
Adds {attribute_name, attribute_value} to self or replaces value where an entry for name already exists. |
boolean |
replaceReferenceIDs(java.util.Map<DBObjectID,DBObjectID> idMap)
Override in subclasses to replace reference IDs as appropriate. |
void |
setAttributeValues(java.util.Map<java.lang.String,java.lang.Object> attributeValues)
Sets the keys/values of all attributes in this usage. |
void |
setDataTypeID(DBObjectID id)
Sets the id of the DataType being used. |
Methods inherited from class oracle.javatools.db.AbstractChildDBObject |
---|
copyToImpl, findParent, getParent, setParent |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, copyToImpl, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, setID, setName, setProperties, setProperty, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, 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, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, getProperty, setProperties, setProperty |
Field Detail |
---|
public static final java.lang.String TYPE
Constructor Detail |
---|
protected DataTypeUsage()
protected DataTypeUsage(DataType dt)
Method Detail |
---|
public java.lang.String getType()
DBObject
public boolean replaceReferenceIDs(java.util.Map<DBObjectID,DBObjectID> idMap)
AbstractDBObject
replaceReferenceIDs
in interface DBObject
replaceReferenceIDs
in class AbstractDBObject
idMap
- key = old DBObjectID, value = new DBObjectID
protected void getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
AbstractDBObject
getReferenceIDsImpl
in class AbstractDBObject
refs
- the collection of ids this object referencesprotected boolean equalsImpl(DataTypeUsage target)
protected void copyToImpl(DataTypeUsage target, DBObject copyParent, IDPolicy idPolicy)
public final void setDataTypeID(DBObjectID id)
public final DBObjectID getDataTypeID()
public final void setAttributeValues(java.util.Map<java.lang.String,java.lang.Object> attributeValues)
attributeValues
- (attribute_name, attribute_value) map of usage valuespublic final java.util.Map<java.lang.String,java.lang.Object> getAttributeValues()
public final java.lang.Object getAttributeValue(java.lang.String name)
name
-
public final void putAttributeValue(java.lang.String name, java.lang.Object value)
name
- value
- public final void deleteAttributeValue(java.lang.String name)
name
- public final boolean hasAttributeValue(java.lang.String name)
name
-
|
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 |