public interface TransactionService
| Modifier and Type | Method and Description |
|---|---|
Transaction |
getTransaction()
Get the transaction context of the calling thread
|
TransactionManager |
getTransactionManager()
Get
TransactionManager instance from container. |
UserTransaction |
getUserTransaction()
Gets user transaction instance.
|
void |
registerTransactionSynchronization(javax.enterprise.event.TransactionPhase phase,
javax.enterprise.inject.spi.ObserverMethod<? super Object> observer,
Object event)
Register transaction synch.
|
TransactionManager getTransactionManager()
TransactionManager instance from container.null if none is registered.Transaction getTransaction()
null if no TransactionManager is used.UserTransaction getUserTransaction()
void registerTransactionSynchronization(javax.enterprise.event.TransactionPhase phase,
javax.enterprise.inject.spi.ObserverMethod<? super Object> observer,
Object event)
throws Exception
phase - transaction phaseobserver - observerevent - eventExceptionCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.