|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.runtime.persistence.objectstore.algorithm.PersistAlgorithmAbstract
public abstract class PersistAlgorithmAbstract
| Constructor Summary | |
|---|---|
PersistAlgorithmAbstract()
|
|
| Method Summary | |
|---|---|
protected boolean |
alreadyPersistedOrNotPersistable(NakedObject adapter)
If has a ResolveState that is already persisted or has a
specification that indicates instances of its
type should not be persisted. |
protected boolean |
alreadyPersistedOrNotPersistableOrServiceOrStandalone(NakedObject adapter)
Whether the persist algorithm should skip over this object. |
protected void |
assertObjectNotPersistentAndPersistable(NakedObject object)
As per alreadyPersistedOrNotPersistable(NakedObject), ensures object can be
persisted else throws NotPersistableException. |
void |
init()
|
void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.runtime.persistence.objectstore.algorithm.PersistAlgorithm |
|---|
makePersistent, name |
| Constructor Detail |
|---|
public PersistAlgorithmAbstract()
| Method Detail |
|---|
public void init()
public void shutdown()
protected boolean alreadyPersistedOrNotPersistableOrServiceOrStandalone(NakedObject adapter)
There are various reasons why an object should not be persisted:
specification indicates instances of its
type should not be persisted.
standalone
service.
Implementation note: the only reason that this method has not been combined with
the weaker check in alreadyPersistedOrNotPersistable(NakedObject) is because of
existing code that throws an exception if the latter is not fulfilled.
REVIEW: should try to combine and remove the other method.
protected boolean alreadyPersistedOrNotPersistable(NakedObject adapter)
ResolveState that is already persisted or has a
specification that indicates instances of its
type should not be persisted.
alreadyPersistedOrNotPersistableOrServiceOrStandalone(NakedObject)protected void assertObjectNotPersistentAndPersistable(NakedObject object)
alreadyPersistedOrNotPersistable(NakedObject), ensures object can be
persisted else throws NotPersistableException.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||