|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A contract for a transaction management service that is associated with a lightweight container.
| Method Summary | |
void |
addParticipiant(ITransactionParticipant participant)
Registers a transaction participant for notification of transaction management events. |
void |
begin(ITransactionSession session,
ITransactionConfig config)
Causes the transaction manager to allocate a transaction object from a transaction session using the configuration attributes supplied. |
void |
commit()
This method causes the transaction manager to commit the current transaction object. |
ITransactionContext |
getTransaction()
Retrieves the current transaction exception, if it exists within the transaction manager |
boolean |
isActive()
Returns a boolean value if the current global transaction currently active. |
boolean |
isTransactionNew(ITransactionContext txRef)
Gets the boolean flag if the supplied transaction associated with this manager and with the current thread is a brand new creation or not. |
void |
removeParticipiant(ITransactionParticipant participant)
Unregisters a transaction participant from notification of transaction management events. |
void |
resume(ITransactionContext txRef)
Resumes the transaction context |
void |
rollback()
This method causes the transaction manager to rollback the current transaction object. |
ITransactionContext |
suspend()
Suspends the current transaction context |
| Method Detail |
public void begin(ITransactionSession session,
ITransactionConfig config)
throws TransactionException
session - the transaction sessionconfig - the transaction configuration
TransactionException - if there is a transaction operation failure
java.lang.IllegalArgumentException - Unknown transaction demarcation enumerationcommit(),
rollback()
public ITransactionContext getTransaction()
throws TransactionException
TransactionException - if there is a transaction operation failureisActive()
public ITransactionContext suspend()
throws TransactionException
TransactionException - if there is a transaction operation failure
public void resume(ITransactionContext txRef)
throws TransactionException
txRef - the transaction context as a reference
TransactionException - if there is a transaction operation failure
java.lang.IllegalArgumentException - if the transaction object does not belong to this transaction manager
java.lang.IllegalStateException - if the transaction object was never suspended in the first place
public void commit()
throws TransactionException
TransactionException - if there is a transaction operation failure
public void rollback()
throws TransactionException
TransactionException - if there is a transaction operation failurepublic void addParticipiant(ITransactionParticipant participant)
participant - the transaction participantpublic void removeParticipiant(ITransactionParticipant participant)
participant - the transaction participantpublic boolean isActive()
The transaction is not active if it is one of the following states:
TransactionStateEnum
public boolean isTransactionNew(ITransactionContext txRef)
throws TransactionException,
java.lang.IllegalArgumentException
txRef - the reference transaction context
true if the current transaction is new.
TransactionException - thrown if there is a transaction operation failure
java.lang.IllegalArgumentException - thrown if the transaction is not associated with this service manager.ITransactionContext.isTransactionNew()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||