Cumulus4j API
(1.1.1)

org.cumulus4j.store.model
Class Sequence2DAO

java.lang.Object
  extended by org.cumulus4j.store.model.AbstractDAO
      extended by org.cumulus4j.store.model.Sequence2DAO

public class Sequence2DAO
extends AbstractDAO


Field Summary
 
Fields inherited from class org.cumulus4j.store.model.AbstractDAO
pm
 
Constructor Summary
Sequence2DAO()
           
Sequence2DAO(PersistenceManager pmData, int keyStoreRefID)
           
 
Method Summary
 Sequence2 createSequence2(String sequenceName)
          Get the Sequence identified by the given sequenceName.
 Sequence2 getSequence2(String sequenceName)
          Get the Sequence identified by the given sequenceName.
 
Methods inherited from class org.cumulus4j.store.model.AbstractDAO
getPersistenceManager, setPersistenceManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sequence2DAO

public Sequence2DAO()

Sequence2DAO

public Sequence2DAO(PersistenceManager pmData,
                    int keyStoreRefID)
Parameters:
pmData - the backend-PersistenceManager used to access the underlying datastore; must not be null. If there are multiple datastores (data + index), then this is the one used for data.
keyStoreRefID - the key-store-reference-ID obtained usually from CryptoContext.getKeyStoreRefID().
Method Detail

getSequence2

public Sequence2 getSequence2(String sequenceName)
Get the Sequence identified by the given sequenceName. If no such Sequence exists, this method returns null.

Parameters:
sequenceName - the name of the sequence; must not be null.
Returns:
the Sequence identified by the given sequenceName or null, if no such Sequence exists.

createSequence2

public Sequence2 createSequence2(String sequenceName)
Get the Sequence identified by the given sequenceName. If no such Sequence exists, this method creates & persists one.

Parameters:
sequenceName - the name of the sequence; must not be null.
Returns:
the Sequence identified by the given sequenceName; never null.

Cumulus4j API
(1.1.1)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.