Cumulus4j API
(1.1.0)

org.cumulus4j.store.datastoreversion
Class AbstractDatastoreVersionCommand

java.lang.Object
  extended by org.cumulus4j.store.datastoreversion.AbstractDatastoreVersionCommand
All Implemented Interfaces:
DatastoreVersionCommand
Direct Known Subclasses:
IntroduceKeyStoreRefID, MigrateToSequence2, MinimumCumulus4jVersion, RecreateIndex

public abstract class AbstractDatastoreVersionCommand
extends Object
implements DatastoreVersionCommand


Constructor Summary
AbstractDatastoreVersionCommand()
           
 
Method Summary
 String getCommandID()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cumulus4j.store.datastoreversion.DatastoreVersionCommand
apply, getCommandVersion
 

Constructor Detail

AbstractDatastoreVersionCommand

public AbstractDatastoreVersionCommand()
Method Detail

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 keyStoreRefIDs. 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.

Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.