public abstract class Store extends Object
Constructor and Description |
---|
Store()
create a fresh transaction
|
Store(Store store)
Use an existing transaction for cross store operations
|
Modifier and Type | Method and Description |
---|---|
void |
beginTrx()
Invoke transaction on the EntityManager
|
void |
closeTrx()
Close current transaction
|
void |
commitTrx()
Commit current transaction
|
boolean |
contains(Object entity) |
String |
getConnection() |
javax.persistence.EntityManager |
getEntityManager()
Return EntityManager
|
String |
getFlushMode() |
boolean |
isActive()
Check if transaction is active
|
boolean |
isClosed() |
boolean |
isDetached(Object o) |
void |
rollbackTrx()
Rollback transaction
|
public Store()
public javax.persistence.EntityManager getEntityManager()
public void beginTrx()
public void commitTrx()
public void closeTrx()
Before close transaction, it needs to be committed.
public void rollbackTrx()
public boolean isActive()
public String getConnection()
public boolean isDetached(Object o)
public boolean isClosed()
public String getFlushMode()
Copyright © 2016 Apache Software Foundation. All rights reserved.