|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.javatools.db.AbstractDBObject
oracle.javatools.db.AbstractSchemaObject
public abstract class AbstractSchemaObject
Provides a base implementation of the SchemaObject
interface.
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 |
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()
Checks that the whole object is initialized (built). |
protected void |
checkInit(java.lang.String key)
Checking initialisation with no key, is the came as initializing the whole object, and is what checkInit() does. |
protected void |
checkInitEx(java.lang.String key)
|
protected void |
copyToImpl(AbstractSchemaObject copy,
DBObject copyParent,
IDPolicy idPolicy)
|
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<DBObject> c,
java.lang.String... types)
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. |
java.util.Map |
getProperties()
Returns null if no properties are set. |
java.lang.Object |
getProperty(java.lang.String key)
Retrieves the value associated with a property. |
java.lang.Object |
getProperty(java.lang.String key,
java.lang.Object defaultValue)
Retrieves the value associated with a property. |
protected void |
getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
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 |
setProperties(java.util.Map properties)
Sets the properties of this object to be those in the given Map. |
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.AbstractDBObject |
---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, copyToImpl, equalsImpl, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, 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 |
Constructor Detail |
---|
protected AbstractSchemaObject()
protected AbstractSchemaObject(java.lang.String name, Schema schema, DBObjectID id)
name
- a string representing the name of the objectschema
- a string representing the schema containing the objectid
- the ID for this objectprotected AbstractSchemaObject(java.lang.String name, Schema schema)
name
- a string representing the name of the objectschema
- a string representing the schema containing the objectMethod Detail |
---|
protected void copyToImpl(AbstractSchemaObject copy, DBObject copyParent, IDPolicy idPolicy)
protected boolean equalsImpl(AbstractSchemaObject target)
public void setSchema(Schema schema)
SchemaObject
setSchema
in interface SchemaObject
schema
- the Schema containing this objectpublic Schema getSchema()
SchemaObject
getSchema
in interface SchemaObject
protected boolean needsInitialization()
protected void checkInit(java.lang.String key)
protected void checkInitEx(java.lang.String key) throws DBException
DBException
protected void checkInit()
public DBObject getParent()
DBObject
getParent
in interface DBObject
protected void getOwnedObjectsImpl(java.util.Collection<DBObject> c, java.lang.String... types)
getOwnedObjectsImpl
in class AbstractDBObject
c
- a Collection of the apppropriate children.types
- a vararg of the type(s) to search forAbstractDBObject.includesType(java.lang.String, java.lang.String...)
protected void getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
getReferenceIDsImpl
in class AbstractDBObject
refs
- the collection of ids this object referencespublic final void removeObjectListener(SchemaObjectListener list)
SchemaObject
removeObjectListener
in interface SchemaObject
SchemaObjectListener
public final void addObjectListener(SchemaObjectListener list)
SchemaObject
addObjectListener
in interface SchemaObject
SchemaObjectListener
public final void fireObjectUpdated(DBObjectChange change)
SchemaObject
fireObjectUpdated
in interface SchemaObject
public java.util.Map getProperties()
AbstractDBObject
getProperties
in interface DynamicPropertySet
getProperties
in class AbstractDBObject
public java.lang.Object getProperty(java.lang.String key)
DynamicPropertySet
getProperty
in interface DynamicPropertySet
getProperty
in class AbstractDBObject
key
- the property key for which a value is desired.
exists.
null
value
if the property does not exist or is not set.public java.lang.Object getProperty(java.lang.String key, java.lang.Object defaultValue)
DynamicPropertySet
getProperty
in interface DynamicPropertySet
getProperty
in class AbstractDBObject
key
- the property key for which a value is desired.defaultValue
- the value to return if no value currently
exists.
public void setProperty(java.lang.String key, java.lang.Object value)
DynamicPropertySet
null
removes that property.
setProperty
in interface DynamicPropertySet
setProperty
in class AbstractDBObject
key
- the property key to setvalue
- the value to setpublic void setProperties(java.util.Map properties)
AbstractDBObject
setProperties
in interface DynamicPropertySet
setProperties
in class AbstractDBObject
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |