public class PersistenceProvider extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PersistenceProvider.RunCallback<T> |
static interface |
PersistenceProvider.RunVoid |
Constructor and Description |
---|
PersistenceProvider(EntityManagerFactoryProvider emfProvider) |
Modifier and Type | Method and Description |
---|---|
EntityManager |
acquireEntityManager() |
EntityManager |
acquireEntityManagerWithActiveTransaction() |
void |
closePersistenceUnit() |
void |
openPersistenceUnit() |
void |
releaseEntityManagerWithRollback(EntityManager em) |
<T> T |
run(Boolean needActiveSession,
PersistenceProvider.RunCallback<T> callback) |
void |
run(Boolean needActiveSession,
PersistenceProvider.RunVoid callback) |
public PersistenceProvider(EntityManagerFactoryProvider emfProvider)
public void openPersistenceUnit()
public void closePersistenceUnit()
public EntityManager acquireEntityManager()
public EntityManager acquireEntityManagerWithActiveTransaction()
public void releaseEntityManagerWithRollback(EntityManager em)
public <T> T run(Boolean needActiveSession, PersistenceProvider.RunCallback<T> callback) throws ClientException
ClientException
public void run(Boolean needActiveSession, PersistenceProvider.RunVoid callback) throws ClientException
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.