Cumulus4j API
(1.1.0)

org.cumulus4j.store.datastoreversion
Class DatastoreVersionManager

java.lang.Object
  extended by org.cumulus4j.store.datastoreversion.DatastoreVersionManager

public class DatastoreVersionManager
extends Object

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Field Summary
static int MANAGER_VERSION
           
 
Constructor Summary
DatastoreVersionManager(Cumulus4jStoreManager storeManager)
           
 
Method Summary
protected  void apply(CryptoContext cryptoContext, int keyStoreRefID)
           
 void applyOnce(CryptoContext cryptoContext)
           
protected  void applyOneCommand(CryptoContext cryptoContext, int keyStoreRefID, PersistenceManager pm, DatastoreVersionDAO datastoreVersionDAO, Map<String,DatastoreVersion> datastoreVersionID2DatastoreVersionMap, DatastoreVersionCommand datastoreVersionCommand)
           
protected  Map<String,DatastoreVersion> check(CryptoContext cryptoContext, int keyStoreRefID, PersistenceManager pm, DatastoreVersionDAO datastoreVersionDAO, List<DatastoreVersionCommand> datastoreVersionCommands)
           
protected  List<DatastoreVersionCommand> createDatastoreVersionCommands()
           
protected  DatastoreVersion detachDatastoreVersion(PersistenceManager pm, DatastoreVersion attached)
           
protected  Map<String,DatastoreVersion> detachDatastoreVersionID2DatastoreVersionMap(CryptoContext cryptoContext, PersistenceManager pm, Map<String,DatastoreVersion> datastoreVersionID2DatastoreVersionMap)
           
protected  boolean isDatastoreVersionCommandEnabled(CryptoContext cryptoContext, DatastoreVersionCommand datastoreVersionCommand)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MANAGER_VERSION

public static final int MANAGER_VERSION
See Also:
Constant Field Values
Constructor Detail

DatastoreVersionManager

public DatastoreVersionManager(Cumulus4jStoreManager storeManager)
Method Detail

applyOnce

public void applyOnce(CryptoContext cryptoContext)

apply

protected void apply(CryptoContext cryptoContext,
                     int keyStoreRefID)

isDatastoreVersionCommandEnabled

protected boolean isDatastoreVersionCommandEnabled(CryptoContext cryptoContext,
                                                   DatastoreVersionCommand datastoreVersionCommand)

createDatastoreVersionCommands

protected List<DatastoreVersionCommand> createDatastoreVersionCommands()

check

protected Map<String,DatastoreVersion> check(CryptoContext cryptoContext,
                                             int keyStoreRefID,
                                             PersistenceManager pm,
                                             DatastoreVersionDAO datastoreVersionDAO,
                                             List<DatastoreVersionCommand> datastoreVersionCommands)

applyOneCommand

protected void applyOneCommand(CryptoContext cryptoContext,
                               int keyStoreRefID,
                               PersistenceManager pm,
                               DatastoreVersionDAO datastoreVersionDAO,
                               Map<String,DatastoreVersion> datastoreVersionID2DatastoreVersionMap,
                               DatastoreVersionCommand datastoreVersionCommand)
                        throws Exception
Throws:
Exception

detachDatastoreVersion

protected DatastoreVersion detachDatastoreVersion(PersistenceManager pm,
                                                  DatastoreVersion attached)

detachDatastoreVersionID2DatastoreVersionMap

protected Map<String,DatastoreVersion> detachDatastoreVersionID2DatastoreVersionMap(CryptoContext cryptoContext,
                                                                                    PersistenceManager pm,
                                                                                    Map<String,DatastoreVersion> datastoreVersionID2DatastoreVersionMap)

Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.