public class DataStoreContext extends Object
DataStoreContext
provides the context for a given query operation.
Each query needs to have an EntityManager
object and a lock manager
object to complete the operation.This class acts as a container for these objects and are used in the DAO methods.
Constructor and Description |
---|
DataStoreContext(EntityManager em)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
EntityManager |
getContext()
This method is used extensively in the DAO to retrieve the EntityManager
object for a given query.
|
com.hp.util.persistence.cassandra.lockmgr.impl.AbstractLockMgr |
getTransactionContext()
This method is used extensively in the DAO to retrieve the LockManager
object for a given query.
|
void |
setTransactionContext(com.hp.util.persistence.cassandra.lockmgr.impl.AbstractLockMgr lockMgr)
This method sets the Transaction context.
|
public DataStoreContext(EntityManager em)
em
- The EntityManager object instance.public EntityManager getContext()
public void setTransactionContext(com.hp.util.persistence.cassandra.lockmgr.impl.AbstractLockMgr lockMgr)
lockMgr
- The LockManager implementation for a given query.public com.hp.util.persistence.cassandra.lockmgr.impl.AbstractLockMgr getTransactionContext()
Copyright © 2015. All Rights Reserved.