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

E13403-05

oracle.javatools.db
Class AbstractSchemaObject

java.lang.Object
  extended by oracle.javatools.db.AbstractDBObject
      extended by oracle.javatools.db.AbstractBuildableObject
          extended by oracle.javatools.db.AbstractSystemObject
              extended by oracle.javatools.db.AbstractSchemaObject
All Implemented Interfaces:
DBObject, SchemaObject, SystemObject, Copyable, DynamicPropertySet
Direct Known Subclasses:
DatabaseLink, Directory, Index, Indextype, Java, MaterializedViewLog, PlSql, RecycledObject, Relation, Sequence, Synonym, XMLSchema

public abstract class AbstractSchemaObject
extends AbstractSystemObject
implements SchemaObject

Provides a base implementation of the SchemaObject interface.

Since:
9.0.5

Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject
AbstractDBObject.ChildSupport
 
Field Summary
 
Fields inherited from class oracle.javatools.db.AbstractSystemObject
m_listeners
 
Fields inherited from interface oracle.javatools.db.DBObject
COMMENT
 
Constructor Summary
protected AbstractSchemaObject()
           
protected AbstractSchemaObject(java.lang.String name, Schema schema)
          Constructs a new instance with the specified name and schema.
protected AbstractSchemaObject(java.lang.String name, Schema schema, DBObjectID id)
          Constructs a new instance with the specified name and schema.
 
Method Summary
 void addObjectListener(SchemaObjectListener list)
          Deprecated. 
protected  void copyToImpl(AbstractDBObject copy, DBObject copyParent, IDPolicy idPolicy)
          Implementation method for making a copy of this object.
protected  boolean equalsImpl(AbstractDBObject target)
          Equals implementation for testing equality with another AbstractDBObject.
 java.lang.Object getProperty(java.lang.String key)
          Retrieves the value associated with a property.
 Schema getSchema()
          Gets the Schema of this object.
 void removeObjectListener(SchemaObjectListener list)
          Deprecated. 
 void setProperty(java.lang.String key, java.lang.Object value)
          Sets the value for a property.
 void setSchema(Schema schema)
          Sets the Schema of this object.
 
Methods inherited from class oracle.javatools.db.AbstractSystemObject
addObjectListener, fireObjectUpdated, getParent, removeObjectListener
 
Methods inherited from class oracle.javatools.db.AbstractBuildableObject
checkInit, checkInit, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization
 
Methods inherited from class oracle.javatools.db.AbstractDBObject
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getProperty, getReferenceIDs, 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.SystemObject
addObjectListener, fireObjectUpdated, removeObjectListener
 
Methods inherited from interface oracle.javatools.db.DBObject
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getReferenceIDs, getType, replaceReferenceIDs, setID, setName
 
Methods inherited from interface oracle.javatools.util.DynamicPropertySet
getProperties, getProperty, setProperties
 

Constructor Detail

AbstractSchemaObject

protected AbstractSchemaObject()

AbstractSchemaObject

protected AbstractSchemaObject(java.lang.String name,
                               Schema schema,
                               DBObjectID id)
Constructs a new instance with the specified name and schema.

Parameters:
name - a string representing the name of the object
schema - a string representing the schema containing the object
id - the ID for this object

AbstractSchemaObject

protected AbstractSchemaObject(java.lang.String name,
                               Schema schema)
Constructs a new instance with the specified name and schema.

Parameters:
name - a string representing the name of the object
schema - a string representing the schema containing the object
Method Detail

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 AbstractBuildableObject
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.

equalsImpl

protected boolean equalsImpl(AbstractDBObject target)
Description copied from class: AbstractDBObject
Equals implementation for testing equality with another AbstractDBObject. Override this method (with exact signature) to customise the equality comparison.

Overrides:
equalsImpl in class AbstractBuildableObject

setSchema

public void setSchema(Schema schema)
Description copied from interface: SchemaObject
Sets the Schema of this object.

Specified by:
setSchema in interface SchemaObject
Parameters:
schema - the Schema containing this object

getSchema

public Schema getSchema()
Description copied from interface: SchemaObject
Gets the Schema of this object.

Specified by:
getSchema in interface SchemaObject
Returns:
schema the Schema containing this object

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 AbstractBuildableObject
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 AbstractBuildableObject
Parameters:
key - the property key to set
value - the value to set

removeObjectListener

@Deprecated
public final void removeObjectListener(SchemaObjectListener list)
Deprecated. 

Description copied from interface: SchemaObject
Removes the given listener from the list of registered listeners for this class.

Specified by:
removeObjectListener in interface SchemaObject

addObjectListener

@Deprecated
public final void addObjectListener(SchemaObjectListener list)
Deprecated. 

Description copied from interface: SchemaObject
Attaches a listener to this object to listen for change events.

Specified by:
addObjectListener in interface SchemaObject

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

E13403-05

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