oracle.javatools.db
Class AbstractChildDBObject
java.lang.Object
oracle.javatools.db.AbstractDBObject
oracle.javatools.db.AbstractChildDBObject
- All Implemented Interfaces:
- ChildDBObject, DBObject, Copyable, DynamicPropertySet
- Direct Known Subclasses:
- AbstractSQLFragment, AutoExtendProperties, Column, Constraint, DataTypeAttribute, DataTypeUsage, FileSpecification, IndexPartition, LOBDescriptor, OracleColumnProperties, OracleExternalTableProperties, OracleExternalTableProperties.LocationSpecifier, OracleIndexOrganizedTableProperties, OracleIndexPartitions, OracleStorageProperties, OracleTablePartitions, OracleTablespaceProperties, PlSqlAttribute, PlSqlMethod, PlSqlParameter, TablePartition, XMLSchemaElement, XMLTypeColumnProperties
public abstract class AbstractChildDBObject
- extends AbstractDBObject
- implements ChildDBObject
Extension of DBObject used by child object in the API.
- Since:
- 11
- For internal use only. Application developers should not use this
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, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, 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, getType, replaceReferenceIDs, setID, setName |
AbstractChildDBObject
protected AbstractChildDBObject()
AbstractChildDBObject
protected AbstractChildDBObject(java.lang.String name)
AbstractChildDBObject
protected AbstractChildDBObject(java.lang.String name,
DBObject parent)
setParent
public void setParent(DBObject parent)
- Description copied from interface:
ChildDBObject
- Sets the parent of this object.
- Specified by:
setParent
in interface ChildDBObject
getParent
public final DBObject getParent()
- Description copied from interface:
ChildDBObject
- Returns the parent of this object, if one exists. This does not return
the Schema for a SchemaObject. Schema's are not considered part of the
ownership parent tree.
- Specified by:
getParent
in interface ChildDBObject
- Specified by:
getParent
in interface DBObject
findParent
public final <T extends DBObject> T findParent(java.lang.Class<T> parentClass)
- Looks in the parent heirachy of this object for an object of the given
class. For example
frag.findParent( SQLQuery.class )
on a
valid SQLFragment instance will return the SQLQuery in its heirachy (if
one exists).
- Parameters:
parentClass
- the type of parent object to look for
- Returns:
- a parent object of the given type
copyToImpl
protected void copyToImpl(AbstractChildDBObject copy,
DBObject copyParent,
IDPolicy idPolicy)
Copyright © 1997, 2009, Oracle. All rights reserved.