|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
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(AbstractDBObject target, DBObject copyParent, IDPolicy idPolicy) Implementation method for making a copy of this object. |
void |
deleteAttributeValue(java.lang.String name) Deletes entry named name. |
protected boolean |
equalsImpl(AbstractDBObject target) Equals implementation for testing equality with another AbstractDBObject. |
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. |
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. |
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 dataTypeID) Sets the id of the DataType being used. |
Methods inherited from class oracle.javatools.db.AbstractChildDBObject |
---|
findParent, getParent, getProperty, setParent, setProperty |
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, 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
Constructor Detail |
---|
protected DataTypeUsage()
protected DataTypeUsage(DataType dt)
Method Detail |
---|
public java.lang.String getType()
DBObject
protected boolean equalsImpl(AbstractDBObject target)
AbstractDBObject
equalsImpl
in class AbstractDBObject
protected void copyToImpl(AbstractDBObject target, DBObject copyParent, IDPolicy idPolicy)
AbstractDBObject
copyToImpl
in class AbstractChildDBObject
target
- 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.public final void setDataTypeID(DBObjectID dataTypeID)
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.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |