public class JpaTransactionAdapter extends Object implements Transactional
Constructor and Description |
---|
JpaTransactionAdapter(javax.persistence.EntityTransaction tx)
Create transaction adapter for JPA Entity Transaction
|
Modifier and Type | Method and Description |
---|---|
void |
begin()
The TransactionManager.begin method starts a global transaction and associates
the transaction context with the calling thread.
|
void |
commit()
The TransactionManager.commit method completes the transaction currently associated
with the calling thread.
|
TransactionType |
geTransactionType()
Type of transactions supported by the repository
|
TransactionStatus |
getStatus() |
void |
rollback()
The TransactionManager.rollback method rolls back the transaction associated with the current thread.
|
String |
toString() |
public JpaTransactionAdapter(javax.persistence.EntityTransaction tx)
tx
- control transactions on resource-local entity managerspublic TransactionType geTransactionType()
Transactional
geTransactionType
in interface Transactional
public TransactionStatus getStatus()
getStatus
in interface Transactional
public void begin()
Transactional
begin
in interface Transactional
public void commit()
Transactional
commit
in interface Transactional
public void rollback()
Transactional
rollback
in interface Transactional
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.