org.cumulus4j.store.model
Class Sequence2DAO
java.lang.Object
  
org.cumulus4j.store.model.AbstractDAO
      
org.cumulus4j.store.model.Sequence2DAO
public class Sequence2DAO
- extends AbstractDAO
 
 
| Fields inherited from class org.cumulus4j.store.model.AbstractDAO | 
pm | 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
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().
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. 
 
 
Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.