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 |
---|---|
javax.persistence.EntityManager |
acquireEntityManager() |
javax.persistence.EntityManager |
acquireEntityManagerWithActiveTransaction() |
void |
closePersistenceUnit() |
void |
openPersistenceUnit() |
void |
releaseEntityManagerWithRollback(javax.persistence.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 javax.persistence.EntityManager acquireEntityManager()
public javax.persistence.EntityManager acquireEntityManagerWithActiveTransaction()
public void releaseEntityManagerWithRollback(javax.persistence.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 © 2014 Nuxeo SA. All rights reserved.