public class JpaTransactionExecutor extends AbstractTransactionExecutor
TransactionExecutor
interface using
the JPA
(Java Persistence API).Modifier and Type | Class and Description |
---|---|
private class |
JpaTransactionExecutor.JpaTransactionAdapter
This is the implementation of the
TransactionAdapter interface using
JPA. |
AbstractTransactionExecutor.AbstractTransactionAdapter<TRANSACTION>
Modifier and Type | Field and Description |
---|---|
private javax.persistence.EntityManager |
entityManager |
CDI_NAME
Constructor and Description |
---|
JpaTransactionExecutor()
The constructor.
|
JpaTransactionExecutor(javax.persistence.EntityManager entityManager)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected JpaTransactionExecutor.JpaTransactionAdapter |
openTransactionAdapter(TransactionSettings settings)
This method opens a new
TransactionAdapter . |
void |
setEntityManager(javax.persistence.EntityManager entityManager)
This method sets the
EntityManager . |
createTransactionContext, doInitialize, doInTransaction, doInTransaction, doInTransaction, doInTransaction, getDefaultSettings, setDefaultSettings
addListener, fireEvent, fireEvent, handleListenerError, removeListener
createLogger, getLogger
doInitialized, getInitializationState, initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, removeListener
private javax.persistence.EntityManager entityManager
setEntityManager(EntityManager)
public JpaTransactionExecutor()
public JpaTransactionExecutor(javax.persistence.EntityManager entityManager)
entityManager
- is the EntityManager
to set
.public void setEntityManager(javax.persistence.EntityManager entityManager)
EntityManager
. It will be called automatically for dependency-injection.entityManager
- is the EntityManager
to set.protected JpaTransactionExecutor.JpaTransactionAdapter openTransactionAdapter(TransactionSettings settings)
TransactionAdapter
.openTransactionAdapter
in class AbstractTransactionExecutor
settings
- are the according TransactionSettings
.TransactionAdapter
.Copyright © 2001–2016 mmm-Team. All rights reserved.