public class DataTypeUsage extends AbstractChildDBObject
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
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE |
Constructor and Description |
---|
DataTypeUsage() |
DataTypeUsage(DataType dt) |
Modifier and Type | Method and Description |
---|---|
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 attribute value for the given name 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 a Map of 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 a named attribute value to this usage, replacing any existing
value if one exists
|
boolean |
replaceReferenceIDs(java.util.Map<? extends DBObjectID,? extends 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 using the data in
the given map.
|
void |
setDataTypeID(DBObjectID dataTypeID)
Sets the id of the DataType being used.
|
setParent
addObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getParent, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, setID, setName, setProperties, setProperty, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getParent
addObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, setID, setName, setProperties, setProperty
public static final java.lang.String TYPE
public DataTypeUsage()
public DataTypeUsage(DataType dt)
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 AbstractDBObject
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
- map of attribute names to 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
- the attribute namevalue
- the attribute value - if null the attribute name will be
removed from this usage.public final void deleteAttributeValue(java.lang.String name)
name
- the attribute to deletepublic final boolean hasAttributeValue(java.lang.String name)
name
- the attribute to testprotected void getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
AbstractDBObject
getReferenceIDsImpl
in class AbstractDBObject
refs
- the collection of ids this object referencespublic boolean replaceReferenceIDs(java.util.Map<? extends DBObjectID,? extends DBObjectID> idMap)
AbstractDBObject
replaceReferenceIDs
in interface DBObject
replaceReferenceIDs
in class AbstractDBObject
idMap
- key = old DBObjectID, value = new DBObjectID