|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ICloneObjectExtensionStatefulObject
A special version of the IStatefulObject interface which needs to be implemented by
all ICloneObjectExtension objects which require persistence.
If you need to persist extension objects which contain lists of arbitrary length or complex content, please refer
to the ICloneObjectExtensionMultiStatefulObject API.
There are a number of important differences between the normal IStatefulObject handling
for ICloneObjects & co and the handling for ICloneObjectExtensions.
IStatefulObject.getPersistenceObjectIdentifier() must be "parent_uuid".IStatefulObject.getState()
must correspond to the parent UUID as set via ICloneObjectExtension.setParentUuid(String).ICloneObjectExtensionStatefulObject object per ICloneObject, the
parent UUID is thus a unique identifier for any extension instance of a given type.ICloneObjectExtension is limited to exactly one, pre-specified ICloneObject type.
The PERSISTENCE_CLASS_IDENTIFIER of that type needs to be returned by
getPersistenceParentClassIdentifier() method.IClone objects.
ICloneObjectExtensionMultiStatefulObject,
IStatefulObject,
ICloneObjectExtension| Field Summary | |
|---|---|
static java.lang.String |
PERSISTENCE_OBJECT_IDENTIFIER
|
| Method Summary | |
|---|---|
java.lang.String |
getPersistenceParentClassIdentifier()
Each ICloneObjectExtensionStatefulObject implementation has to be linked to one specific
ICloneObject type. |
boolean |
isDirty()
Checks whether this ICloneObjectExtensionStatefulObject instance was modified in a way
which affected the persistent part of its data. |
void |
setDirty(boolean dirty)
Called by the IStoreProvider (with value false) after this extension was successfully persisted. |
| Methods inherited from interface org.electrocodeogram.cpc.core.api.data.special.IStatefulObject |
|---|
getPersistenceClassIdentifier, getPersistenceObjectIdentifier, getState, getStateTypes, setState |
| Methods inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneObjectExtension |
|---|
clone, getExtensionInterfaceClass, isPartial, setParentUuid, toString |
| Methods inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneDataElement |
|---|
isSealed, seal |
| Field Detail |
|---|
static final java.lang.String PERSISTENCE_OBJECT_IDENTIFIER
IStatefulObject.getPersistenceClassIdentifier(),
Constant Field Values| Method Detail |
|---|
java.lang.String getPersistenceParentClassIdentifier()
ICloneObjectExtensionStatefulObject implementation has to be linked to one specific
ICloneObject type.
IClone.PERSISTENCE_CLASS_IDENTIFIER.
IStatefulObject.getPersistenceClassIdentifier() of the parent entity type, never null.boolean isDirty()
ICloneObjectExtensionStatefulObject instance was modified in a way
which affected the persistent part of its data.
IStatefulObject.getState() return value.
For ICloneObjectExtensionMultiStatefulObject implementations, true should also be returned
if a modification might have changed the return value of
ICloneObjectExtensionMultiStatefulObject.getMultiState().
void setDirty(boolean dirty)
IStoreProvider (with value false) after this extension was successfully persisted.
IMPORTANT: this method may only be called internally or by the IStoreProvider.
dirty - true if this entry is out of sync and needs to be persisted, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||