Cumulus4j API
(1.2.0)

org.cumulus4j.store.datastoreversion.command
Class IntroduceKeyStoreRefID

java.lang.Object
  extended by org.cumulus4j.store.datastoreversion.AbstractDatastoreVersionCommand
      extended by org.cumulus4j.store.datastoreversion.command.IntroduceKeyStoreRefID
All Implemented Interfaces:
DatastoreVersionCommand

public class IntroduceKeyStoreRefID
extends AbstractDatastoreVersionCommand


Constructor Summary
IntroduceKeyStoreRefID()
           
 
Method Summary
 void apply(CommandApplyParam commandApplyParam)
          Perform the upgrade or do whatever this command has to do.
protected  void applyToData(CommandApplyParam commandApplyParam, PersistenceManager pm)
           
protected  void applyToIndex(CommandApplyParam commandApplyParam, PersistenceManager pm)
           
protected
<T> Collection<T>
getAll(PersistenceManager pm, Class<T> entityClass)
           
 int getCommandVersion()
          Get the version of this command.
protected  Set<Class<? extends IndexEntry>> getIndexEntryClasses()
           
 
Methods inherited from class org.cumulus4j.store.datastoreversion.AbstractDatastoreVersionCommand
getCommandID, isFinal, isKeyStoreDependent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntroduceKeyStoreRefID

public IntroduceKeyStoreRefID()
Method Detail

getCommandVersion

public int getCommandVersion()
Description copied from interface: DatastoreVersionCommand
Get the version of this command.

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!!!

Returns:
the version of this command.

apply

public void apply(CommandApplyParam commandApplyParam)
Description copied from interface: DatastoreVersionCommand
Perform the upgrade or do whatever this command has to do.

Parameters:
commandApplyParam - various arguments bundled for better compatibility with future extensions. Never null.

applyToData

protected void applyToData(CommandApplyParam commandApplyParam,
                           PersistenceManager pm)

applyToIndex

protected void applyToIndex(CommandApplyParam commandApplyParam,
                            PersistenceManager pm)

getAll

protected <T> Collection<T> getAll(PersistenceManager pm,
                                   Class<T> entityClass)

getIndexEntryClasses

protected Set<Class<? extends IndexEntry>> getIndexEntryClasses()

Cumulus4j API
(1.2.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.