|
Extension SDK 10.1.2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectoracle.jdeveloper.cm.ds.db.AbstractDBObject
Provides an abstract implementation of the DBObject
interface.
| Field Summary |
| Fields inherited from interface oracle.jdeveloper.cm.ds.db.DBObject |
COMMENT |
| Fields inherited from interface oracle.ide.addin.Subject |
OBJECT_MODIFIED |
| Constructor Summary | |
protected |
AbstractDBObject()
Constructs a new instance. |
protected |
AbstractDBObject(java.lang.String name)
Constructs a new instance with the specified name. |
protected |
AbstractDBObject(java.lang.String name,
DBObjectID id)
|
| Method Summary | |
void |
attach(Observer observer)
Registers an observer interested in being notified when the internal state of the class implementing the Subject interface
changes. |
protected int |
compareToImpl(AbstractDBObject target)
|
protected void |
copyToImpl(AbstractDBObject copy)
|
void |
detach(Observer observer)
Unregisters an observer that is not interested anymore in being notified when the internal state of the class implementing the Subject
interface changes. |
boolean |
equals(java.lang.Object obj)
|
protected boolean |
equalsImpl(AbstractDBObject other)
|
DBObjectID |
getID()
Retrieves the object ID associated with this object. |
java.lang.String |
getName()
Retrieves the name of this object. |
java.util.Map |
getProperties()
Retrieves the properties set on this object. |
java.lang.Object |
getProperty(java.lang.String name)
Retrieves the value of a property set on this object. |
int |
hashCode()
|
void |
notifyObservers(java.lang.Object subject,
UpdateMessage change)
Notifies all observers that the state of the subject has changed. |
void |
setID(DBObjectID id)
Sets the object ID associated with this object. |
void |
setName(java.lang.String name)
Sets the name of this object. |
void |
setProperties(java.util.Map props)
Sets the properties on this object. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a value for a specific property. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface oracle.jdeveloper.cm.ds.db.DBObject |
copyTo, getType |
| Constructor Detail |
protected AbstractDBObject()
protected AbstractDBObject(java.lang.String name)
name - a string representing the name of this object.
protected AbstractDBObject(java.lang.String name,
DBObjectID id)
| Method Detail |
protected void copyToImpl(AbstractDBObject copy)
public boolean equals(java.lang.Object obj)
protected boolean equalsImpl(AbstractDBObject other)
protected int compareToImpl(AbstractDBObject target)
public java.lang.String toString()
public int hashCode()
public void setName(java.lang.String name)
DBObject
setName in interface DBObjectname - a string containing the new name for this object.public java.lang.String getName()
DBObject
getName in interface DBObjectpublic void setID(DBObjectID id)
DBObject
setID in interface DBObjectid - the DBObjectID to be associated with this objectpublic DBObjectID getID()
DBObject
getID in interface DBObjectpublic java.lang.Object getProperty(java.lang.String name)
DBObjectNote:The properties set on an object are guaranteed to exist during the lifetime of the object; however, the persistence of the properties within the object is determined by the persistence implementation for the object and is not guaranteed.
getProperty in interface DBObjectname - a string containing the name of the property
null if a property of the specified name has not
been set
public void setProperty(java.lang.String name,
java.lang.Object value)
DBObjectNote:The properties set on an object are guaranteed to exist during the lifetime of the object; however, the persistence of the properties within the object is determined by the persistence implementation for the object and is not guaranteed.
setProperty in interface DBObjectname - a string containing the name of the propertyvalue - the value of the property store with this object.
null will clear the property.public java.util.Map getProperties()
DBObjectNote:The properties set on an object are guaranteed to exist during the lifetime of the object; however, the persistence of the properties within the object is determined by the persistence implementation for the object and is not guaranteed.
getProperties in interface DBObjectpublic void setProperties(java.util.Map props)
DBObjectNote:The properties set on an object are guaranteed to exist during the lifetime of the object; however, the persistence of the properties within the object is determined by the persistence implementation for the object and is not guaranteed.
setProperties in interface DBObjectprops - a map of all the properties and their valuespublic void attach(Observer observer)
SubjectSubject interface
changes.
Implementors should do nothing when the same observer is added more
than once.
attach in interface Subjectobserver - the Observer interested in change notification
messages.public void detach(Observer observer)
SubjectSubject
interface changes.
Implementors should do nothing when the same observer is removed more
than once.
detach in interface Subjectobserver - the Observer disinterested in change
notification messages.
public void notifyObservers(java.lang.Object subject,
UpdateMessage change)
Subject
notifyObservers in interface Subjectsubject - the subject whose state has changed.change - what changed.
|
Extension SDK | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2004, Oracle. All rights reserved.