Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.javatools.db
Class AbstractChildDBObject

java.lang.Object
  extended by oracle.javatools.db.AbstractDBObject
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject
AbstractDBObject.ChildSupport
 
Field Summary
 
Fields inherited from interface oracle.javatools.db.DBObject
COMMENT
 
Constructor Summary
protected AbstractChildDBObject()
           
protected AbstractChildDBObject(java.lang.String name)
           
protected AbstractChildDBObject(java.lang.String name, DBObject parent)
           
 
Method Summary
protected  void copyToImpl(AbstractChildDBObject copy, DBObject copyParent, IDPolicy idPolicy)
           
<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.
 DBObject getParent()
          Returns the parent of this object, if one exists.
 void setParent(DBObject parent)
          Sets the parent of this object.
 
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
 
Methods inherited from interface oracle.javatools.util.DynamicPropertySet
getProperties, getProperty, getProperty, setProperties, setProperty
 

Constructor Detail

AbstractChildDBObject

protected AbstractChildDBObject()

AbstractChildDBObject

protected AbstractChildDBObject(java.lang.String name)

AbstractChildDBObject

protected AbstractChildDBObject(java.lang.String name,
                                DBObject parent)
Method Detail

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)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.