|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
ObservableDomainObject extends DomainObject with an observer pattern on all modification methods, allowing objects to register to receive a callback on those operations.
Field Summary | |
static String |
versionId
|
Constructor Summary | |
protected |
ObservableDomainObject(DataObject dobj)
|
|
ObservableDomainObject(ObjectType type)
Constructor. |
|
ObservableDomainObject(OID oid)
Constructor. |
|
ObservableDomainObject(String typeName)
Constructor. |
Method Summary | |
void |
addObserver(DomainObjectObserver doo)
Adds a new observer. |
Iterator |
getObservers()
Return an iterator of all the current observers for this Domain Object |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, beforeSave, clear, delete, disconnect, equals, get, getBaseDataObjectType, getObjectType, getOID, getSession, hashCode, initialize, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
protected ObservableDomainObject(DataObject dobj)
public ObservableDomainObject(String typeName)
DataObject
is
initialized with a new DataObject
with an
ObjectType
specified by the string
typeName.
typeName
- The name of the ObjectType
of the
contained DataObject
.DomainObject.DomainObject(String)
,
DataObject
,
ObjectType
public ObservableDomainObject(ObjectType type)
DataObject
is
initialized with a new DataObject
with an
ObjectType
specified by type.
type
- The ObjectType
of the contained
DataObject
.DomainObject.DomainObject(ObjectType)
,
DataObject
,
ObjectType
public ObservableDomainObject(OID oid) throws DataObjectNotFoundException
DataObject
is retrieved
from the persistent storage mechanism with an OID
specified by oid.
oid
- The OID
for the retrieved
DataObject
.DomainObject.DomainObject(OID)
,
DataObject
,
OID
Method Detail |
public void addObserver(DomainObjectObserver doo)
doo
- the new observerpublic Iterator getObservers()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |