Package org.apache.webbeans.spi
Interface TransactionService
-
public interface TransactionServiceTransaction related service.- Version:
- $Rev$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransactiongetTransaction()Get the transaction context of the calling threadTransactionManagergetTransactionManager()GetTransactionManagerinstance from container.UserTransactiongetUserTransaction()Gets user transaction instance.voidregisterTransactionSynchronization(javax.enterprise.event.TransactionPhase phase, javax.enterprise.inject.spi.ObserverMethod<? super Object> observer, Object event)Register transaction synch.
-
-
-
Method Detail
-
getTransactionManager
TransactionManager getTransactionManager()
GetTransactionManagerinstance from container.- Returns:
- the TransactionManager or
nullif none is registered.
-
getTransaction
Transaction getTransaction()
Get the transaction context of the calling thread- Returns:
- the Transaction or
nullif no TransactionManager is used.
-
getUserTransaction
UserTransaction getUserTransaction()
Gets user transaction instance.- Returns:
- user transaction object
-
registerTransactionSynchronization
void registerTransactionSynchronization(javax.enterprise.event.TransactionPhase phase, javax.enterprise.inject.spi.ObserverMethod<? super Object> observer, Object event) throws ExceptionRegister transaction synch.- Parameters:
phase- transaction phaseobserver- observerevent- event- Throws:
Exception
-
-