|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.applib.AbstractContainedObject
org.nakedobjects.applib.AbstractDomainObject
public abstract class AbstractDomainObject
Convenience super class for all domain objects that wish to interact with the container.
Subclassing is NOT mandatory; the methods in this superclass can be pushed down into domain objects and another superclass used if required.
DomainObjectContainer| Constructor Summary | |
|---|---|
AbstractDomainObject()
|
|
| Method Summary | |
|---|---|
protected void |
disposeInstance()
Deprecated. - instead use AbstractContainedObject.remove(Object). |
protected boolean |
isPersistent()
Deprecated. - instead use AbstractContainedObject.isPersistent(Object). |
protected void |
makePersistent()
Deprecated. - instead use AbstractContainedObject.persist(Object). |
protected void |
makePersistentIfNotAlready()
Deprecated. - instead use AbstractContainedObject.persistIfNotAlready(Object). |
protected void |
objectChanged()
Notifies the container that this object has changed, so that it can be persisted. |
protected void |
resolve()
Resolve this object, populating references to other objects. |
protected void |
resolve(Object referencedObject)
Resolve this object if the referenced object is still unknown. |
| Methods inherited from class org.nakedobjects.applib.AbstractContainedObject |
|---|
allInstances, allMatches, allMatches, allMatches, allMatches, firstMatch, firstMatch, firstMatch, firstMatch, getContainer, getUser, informUser, isPersistent, isValid, newTransientInstance, persist, persistIfNotAlready, raiseError, remove, setContainer, uniqueMatch, uniqueMatch, uniqueMatch, uniqueMatch, validate, warnUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDomainObject()
| Method Detail |
|---|
protected void resolve()
protected void resolve(Object referencedObject)
protected void objectChanged()
@Deprecated protected boolean isPersistent()
AbstractContainedObject.isPersistent(Object).
@Deprecated protected void makePersistent()
AbstractContainedObject.persist(Object).
If the object is persistent already, then
will throw an exception.
AbstractContainedObject.persistIfNotAlready(Object)@Deprecated protected void makePersistentIfNotAlready()
AbstractContainedObject.persistIfNotAlready(Object).
persistent.
AbstractContainedObject.isPersistent(Object),
AbstractContainedObject.persist(Object)@Deprecated protected void disposeInstance()
AbstractContainedObject.remove(Object).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||