org.cumulus4j.store.datastoreversion
Class AbstractDatastoreVersionCommand
java.lang.Object
org.cumulus4j.store.datastoreversion.AbstractDatastoreVersionCommand
- All Implemented Interfaces:
- DatastoreVersionCommand
- Direct Known Subclasses:
- IntroduceKeyStoreRefID, MigrateToSequence2, MinimumCumulus4jVersion, RecreateIndex
public abstract class AbstractDatastoreVersionCommand
- extends Object
- implements DatastoreVersionCommand
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDatastoreVersionCommand
public AbstractDatastoreVersionCommand()
getCommandID
public String getCommandID()
- Specified by:
getCommandID
in interface DatastoreVersionCommand
isFinal
public boolean isFinal()
- Description copied from interface:
DatastoreVersionCommand
- Is this command final, i.e. applied only once, or should this command be applied again, when the commandVersion
was incremented?
- Specified by:
isFinal
in interface DatastoreVersionCommand
- Returns:
true
, if this command is final; false
otherwise.
isKeyStoreDependent
public boolean isKeyStoreDependent()
- Description copied from interface:
DatastoreVersionCommand
- Is this command dependent on the key-store? If yes, it is applied separately for every key-store, i.e. with different
keyStoreRefID
s. If no, it is applied only once
globally
.
- Specified by:
isKeyStoreDependent
in interface DatastoreVersionCommand
- Returns:
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.
Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.