@Service(value="transactionService") public class TransactionServiceImpl extends Object implements TransactionService
SERVICE_NAME| Constructor and Description |
|---|
TransactionServiceImpl(List<javax.persistence.EntityManager> entityManagers) |
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
<T,E extends RuntimeException> |
invokeAfterCompletion(Invoker<T,E> invoker) |
<T,E extends Throwable> |
invokeInNewRollbackOnlyTx(Invoker<T,E> invoker) |
<T,E extends Throwable> |
invokeInNewROTx(Invoker<T,E> invoker) |
<T,E extends Throwable> |
invokeInNewTx(Invoker<T,E> invoker) |
<T,E extends Throwable> |
invokeInTx(Invoker<T,E> invoker) |
<T,E extends Throwable> |
invokeNoTx(Invoker<T,E> invoker) |
boolean |
isActive() |
boolean |
isRollbackOnly() |
void |
setRollbackOnly() |
<T> T |
woAutoFlush(Invoker<T,RuntimeException> invoker) |
public TransactionServiceImpl(List<javax.persistence.EntityManager> entityManagers)
@Transactional(propagation=REQUIRED) public <T,E extends Throwable> T invokeInTx(Invoker<T,E> invoker) throws E extends Throwable
invokeInTx in interface TransactionServiceE extends Throwable@Transactional(propagation=REQUIRES_NEW) public <T,E extends Throwable> T invokeInNewTx(Invoker<T,E> invoker) throws E extends Throwable
invokeInNewTx in interface TransactionServiceE extends Throwable@Transactional(propagation=NOT_SUPPORTED) public <T,E extends Throwable> T invokeNoTx(Invoker<T,E> invoker) throws E extends Throwable
invokeNoTx in interface TransactionServiceE extends Throwable@Transactional(propagation=REQUIRES_NEW) public <T,E extends Throwable> T invokeInNewRollbackOnlyTx(Invoker<T,E> invoker) throws E extends Throwable
invokeInNewRollbackOnlyTx in interface TransactionServiceE extends Throwable@Transactional(propagation=REQUIRES_NEW,
readOnly=true)
public <T,E extends Throwable> T invokeInNewROTx(Invoker<T,E> invoker)
throws E extends Throwable
invokeInNewROTx in interface TransactionServiceE extends Throwablepublic boolean isRollbackOnly()
isRollbackOnly in interface TransactionServicepublic void setRollbackOnly()
setRollbackOnly in interface TransactionServicepublic boolean isActive()
isActive in interface TransactionServicepublic <T,E extends RuntimeException> void invokeAfterCompletion(Invoker<T,E> invoker) throws E extends RuntimeException
invokeAfterCompletion in interface TransactionServiceE extends RuntimeException@Transactional public <T> T woAutoFlush(Invoker<T,RuntimeException> invoker)
woAutoFlush in interface TransactionServicepublic void flush()
flush in interface TransactionServiceCopyright © 2018–2021 Tesler. All rights reserved.