Extension SDK 10.1.3.36.73

oracle.javatools.db
Class AbstractSchemaObject

java.lang.Object
  extended byoracle.javatools.db.AbstractDBObject
      extended byoracle.javatools.db.AbstractSchemaObject
All Implemented Interfaces:
Copyable, DBObject, DynamicPropertySet, SchemaObject
Direct Known Subclasses:
Java, MaterializedView, MaterializedViewLog, PlSql, Relation, Sequence, Synonym, Trigger

public abstract class AbstractSchemaObject
extends AbstractDBObject
implements SchemaObject

Provides a base implementation of the SchemaObject interface.

Since:
9.0.5

Field Summary
 
Fields inherited from interface oracle.javatools.db.DBObject
COMMENT
 
Constructor Summary
protected AbstractSchemaObject()
          Constructs a new instance.
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)
          Attaches a listener to this object to listen for change events.
protected  void checkInit()
           
protected  void copyToImpl(AbstractSchemaObject copy)
           
protected  boolean equalsImpl(AbstractSchemaObject target)
           
 void fireObjectUpdated(DBObjectChange change)
          Notifies any registered listeners of the change to this object.
protected  void getOwnedObjectsImpl(java.util.Collection c, java.lang.String type)
          Implementation first checks that the object has been built - then returns the collection from suprt.getOwnedObjectsImpl().
 DBObject getParent()
          Returns the parent of this object, if one exists.
protected  void getReferenceIDsImpl(java.util.Collection c)
          Implementation first checks that the object has been built - then returns the collection from suprt.getReferenceIDsImpl().
 Schema getSchema()
          Gets the Schema of this object.
protected  boolean needsInitialization()
           
 void removeObjectListener(SchemaObjectListener list)
          Removes the given listener from the list of registered listeners for this class.
 void setSchema(Schema schema)
          Sets the Schema of this object.
 
Methods inherited from class oracle.javatools.db.AbstractDBObject
compareToImpl, copyToImpl, equalsImpl, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, 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, 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

AbstractSchemaObject

protected AbstractSchemaObject()
Constructs a new instance.


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(AbstractSchemaObject copy)

equalsImpl

protected boolean equalsImpl(AbstractSchemaObject target)

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

needsInitialization

protected boolean needsInitialization()

checkInit

protected void checkInit()

getParent

public DBObject getParent()
Description copied from interface: DBObject
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 DBObject

getOwnedObjectsImpl

protected void getOwnedObjectsImpl(java.util.Collection c,
                                   java.lang.String type)
Implementation first checks that the object has been built - then returns the collection from suprt.getOwnedObjectsImpl(). All overrides must call this first to ensure the object has been built.

Overrides:
getOwnedObjectsImpl in class AbstractDBObject
Parameters:
type - the type to search for
Returns:
a Collection of the apppropriate children.

getReferenceIDsImpl

protected void getReferenceIDsImpl(java.util.Collection c)
Implementation first checks that the object has been built - then returns the collection from suprt.getReferenceIDsImpl(). All overrides must call this first to ensure the object has been built.

Overrides:
getReferenceIDsImpl in class AbstractDBObject

removeObjectListener

public final void removeObjectListener(SchemaObjectListener list)
Description copied from interface: SchemaObject
Removes the given listener from the list of registered listeners for this class.

Specified by:
removeObjectListener in interface SchemaObject
See Also:
SchemaObjectListener

addObjectListener

public final void addObjectListener(SchemaObjectListener list)
Description copied from interface: SchemaObject
Attaches a listener to this object to listen for change events.

Specified by:
addObjectListener in interface SchemaObject
See Also:
SchemaObjectListener

fireObjectUpdated

public final void fireObjectUpdated(DBObjectChange change)
Description copied from interface: SchemaObject
Notifies any registered listeners of the change to this object.

Specified by:
fireObjectUpdated in interface SchemaObject

Extension SDK 10.1.3.36.73

 

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