|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.AbstractDBObject oracle.javatools.db.AbstractBuildableObject
public abstract class AbstractBuildableObject
Provides methods for lazy loading and building AbstractDBObjects. This has been abstracted from AbstractSchemaObject.
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 | |
---|---|
|
AbstractBuildableObject()
|
protected |
AbstractBuildableObject(java.lang.String name,
DBObjectID id)
Constructs a new instance with the specified name and id. |
Method Summary | |
---|---|
void |
addObjectListener(DBObjectListener 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(AbstractBuildableObject copy,
DBObject copyParent,
IDPolicy idPolicy)
|
protected boolean |
equalsImpl(AbstractBuildableObject 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(). |
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(). |
protected boolean |
needsInitialization()
|
void |
removeObjectListener(DBObjectListener 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. |
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, 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, getParent, getReferenceIDs, getType, replaceReferenceIDs, setID, setName |
Constructor Detail |
---|
public AbstractBuildableObject()
protected AbstractBuildableObject(java.lang.String name, DBObjectID id)
name
- a string representing the name of this object.id
- the id for this object.Method Detail |
---|
protected boolean needsInitialization()
protected void checkInit(java.lang.String key)
protected void checkInitEx(java.lang.String key) throws DBException
DBException
protected void checkInit()
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
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 referencesprotected void copyToImpl(AbstractBuildableObject copy, DBObject copyParent, IDPolicy idPolicy)
protected boolean equalsImpl(AbstractBuildableObject target)
public final void fireObjectUpdated(DBObjectChange change)
SystemObject
fireObjectUpdated
in interface SystemObject
public final void removeObjectListener(DBObjectListener list)
SystemObject
removeObjectListener
in interface SystemObject
DBObjectListener
public final void addObjectListener(DBObjectListener list)
SystemObject
addObjectListener
in interface SystemObject
DBObjectListener
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |