|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStoreCloneObject
Extension interface for ICloneObject
which contains additional internal
methods for use only by an IStoreProvider
.
All ICloneObject
implementations have to implement this interface.
Rationale:
These methods should not be accessed by other plugins besides theIStoreProvider
. They are therefore "hidden" by this extra interface. The fact that anICloneObject
object will need to be cast to this interface before any of the methods can be accessed is meant to work as a deterrent for accidental access to these methods.
TheICloneObjectExtension
mechanism is not used by most CPC plugins for performance reasons.
IStoreProvider
,
ICloneObject
Field Summary |
---|
Fields inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneObject |
---|
PERSISTENCE_OBJECT_IDENTIFIER |
Method Summary | |
---|---|
java.util.List<ICloneObjectExtension> |
getDeletedExtensions()
Retrieves a list of deleted ICloneObjectExtension s for this clone object. |
boolean |
isDirty()
Whether this clone was modified and will need to be written to persistent storage. |
boolean |
isPersisted()
Whether this clone was already stored in persistent storage at some point. |
void |
purgeDeletedExtensions()
Purges all currently deleted extensions from the ICloneObject . |
void |
setDirty(boolean dirty)
Sets this clone objects dirty flag. |
void |
setPersisted(boolean persisted)
Sets this clone objects persisted flag. |
Methods inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneObject |
---|
addExtension, clone, equals, equalsAll, getExtension, getExtensions, getUuid, hasExtensions, hashCode, isMarked, removeExtension, removeExtension, setMarked, toString |
Methods inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneDataElement |
---|
isSealed, seal |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Methods inherited from interface org.electrocodeogram.cpc.core.api.data.special.IStatefulObject |
---|
getPersistenceClassIdentifier, getPersistenceObjectIdentifier, getState, getStateTypes, setState |
Method Detail |
---|
boolean isDirty()
void setDirty(boolean dirty)
isDirty()
boolean isPersisted()
void setPersisted(boolean persisted)
isPersisted()
java.util.List<ICloneObjectExtension> getDeletedExtensions()
ICloneObjectExtension
s for this clone object.
purgeDeletedExtensions()
,
ICloneObject.removeExtension(Class)
,
ICloneObject.removeExtension(ICloneObjectExtension)
void purgeDeletedExtensions()
ICloneObject
.
getDeletedExtensions()
will be an empty list.
A store provider will typically call this method each time an ICloneObject
was persisted
successfully (and there is thus no need to retain any information about deleted extensions any longer).
getDeletedExtensions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |