|
Cumulus4j API (1.2.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatastoreVersionCommand
Command for managing a datastore version (change).
A new instance of a class implementing this interface is created for each run of
DatastoreVersionManager.applyOnce(org.cumulus4j.store.crypto.CryptoContext)
. Therefore, implementations
do not need to be thread-safe and can share data in fields across implementation methods.
Implementations should subclass AbstractDatastoreVersionCommand
instead of directly implementing
this interface.
Implementations must be manually registered in DatastoreVersionManager
!
Method Summary | |
---|---|
void |
apply(CommandApplyParam commandApplyParam)
Perform the upgrade or do whatever this command has to do. |
String |
getCommandID()
|
int |
getCommandVersion()
Get the version of this command. |
boolean |
isFinal()
Is this command final, i.e. |
boolean |
isKeyStoreDependent()
Is this command dependent on the key-store? If yes, it is applied separately for every key-store, i.e. |
Method Detail |
---|
String getCommandID()
int getCommandVersion()
This version must be incremented, if this command is modified!
Note, that a final
command cannot be modified!!! You can only modify a final command
if this command was newly introduced in the current SNAPSHOT. Never modify a command after it
was released!!!
void apply(CommandApplyParam commandApplyParam)
commandApplyParam
- various arguments bundled for better compatibility with future extensions. Never null
.boolean isFinal()
true
, if this command is final; false
otherwise.boolean isKeyStoreDependent()
keyStoreRefID
s. If no, it is applied only once
globally
.
true
, if this command should be applied once per key-store (and per underlying PersistenceManager
[there might be two if data and index is stored separately]); false
otherwise.
|
Cumulus4j API (1.2.0) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |