Skip navigation links 
 
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
 
 
 
  
 
 
  
 
  
 
| Method Summary | 
protected  void | 
copyToImpl(AbstractDBObject copy, DBObject copyParent, IDPolicy idPolicy) 
          Implementation method for making a copy of this object. | 
| 
 | 
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. | 
 java.lang.Object | 
getProperty(java.lang.String key) 
          Retrieves the value associated with a property. | 
 void | 
setParent(DBObject parent) 
          Sets the parent of this object. | 
 void | 
setProperty(java.lang.String key, java.lang.Object value) 
          Sets the value for a property. | 
 
| Methods inherited from class oracle.javatools.db.AbstractDBObject | 
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, 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, 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(AbstractDBObject copy,
                          DBObject copyParent,
                          IDPolicy idPolicy)
- Description copied from class: 
AbstractDBObject 
- Implementation method for making a copy of this object. To add custom copyTo logic, a subclass must override this method (exactly), and must call back to the super implementation.
 
- 
- Overrides:
 
copyToImpl in class AbstractDBObject 
 
- 
- Parameters:
 
copy - the copy being created of this object 
copyParent - 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. 
 
getProperty
public java.lang.Object getProperty(java.lang.String key)
- Description copied from interface: 
DynamicPropertySet 
- Retrieves the value associated with a property.
 
- 
- Specified by:
 
getProperty in interface DynamicPropertySet 
- Overrides:
 
getProperty in class AbstractDBObject 
 
- 
- Parameters:
 
key - the property key for which a value is desired. exists. 
- Returns:
 
- the value of the requested property, or a 
null value if the property does not exist or is not set. 
 
setProperty
public void setProperty(java.lang.String key,
                        java.lang.Object value)
- Description copied from interface: 
DynamicPropertySet 
- Sets the value for a property. Setting a value to 
null removes that property. 
- 
- Specified by:
 
setProperty in interface DynamicPropertySet 
- Overrides:
 
setProperty in class AbstractDBObject 
 
- 
- Parameters:
 
key - the property key to set 
value - the value to set 
 
Skip navigation links 
 
Copyright © 1997, 2014, Oracle. All rights reserved.