|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xenonsoft.bridgetown.aop.transaction.support.AbstractTransactionServiceManager
com.xenonsoft.bridgetown.aop.transaction.lumberjacque.LumberJacqueTransactionManager
LumberJacque is "Straw-Man" transaction manager, it is really an emulation of an real implementation of a J2EE / EJB 2.0 propogation transaction monitor. If you are looking for JTA support then look elsewhere, because you will not find XAResource helpful, OMG, X/Open compliant distributed transaction manager here in within LumberJacque.
| Nested Class Summary |
| Nested classes inherited from class com.xenonsoft.bridgetown.aop.transaction.support.AbstractTransactionServiceManager |
AbstractTransactionServiceManager.ConfigStackThreadLocal, AbstractTransactionServiceManager.TxStackThreadLocal |
| Field Summary |
| Fields inherited from class com.xenonsoft.bridgetown.aop.transaction.support.AbstractTransactionServiceManager |
configStackList, participantListeners, txStackList |
| Constructor Summary | |
LumberJacqueTransactionManager()
|
|
| Method Summary | |
protected void |
commitRollbackTx(TransactionObject tx,
boolean commit)
A refactored method for this implementation that attempts to commit or rollback the supplied transaction object. |
protected void |
executeCommitOrRollback(boolean commit,
boolean debuggable,
java.lang.String identifier,
ITransactionConfig config,
TransactionObject tx)
A refactored method to commit or rollback the transaction object. |
protected TransactionObject |
executeCreate(ITransactionSession session,
ITransactionConfig config,
boolean debuggable,
java.lang.String identifier)
A refactored method to create a transaction context object. |
protected void |
executeResume(boolean debuggable,
java.lang.String identifier,
ITransactionConfig config,
TransactionObject tx)
A refactored method to resume a transaction object Subclasser cannot override this method to perform additional steps. |
protected void |
executeSuspend(ITransactionConfig config,
boolean debuggable,
java.lang.String identifier,
TransactionObject tx)
A refactored method to suspend an existing transaction context object. |
protected void |
forceRollbackTx(TransactionObject tx)
A refactored method for this TM implementation that forces rollback of the transaction object. |
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. |
java.lang.String |
toString()
Returns a human readable string. |
| Methods inherited from class com.xenonsoft.bridgetown.aop.transaction.support.AbstractTransactionServiceManager |
addParticipiant, begin, commit, fireAfterBegin, fireBeforeCommit, fireBeforeRollback, getThreadName, getTransaction, removeParticipiant, resume, rollback, suspend, unallocate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LumberJacqueTransactionManager()
| Method Detail |
public java.lang.String toString()
Object.toString()
protected TransactionObject executeCreate(ITransactionSession session,
ITransactionConfig config,
boolean debuggable,
java.lang.String identifier)
throws TransactionException
executeCreate in class AbstractTransactionServiceManagersession - the transaction session factoryconfig - the transaction configurationdebuggable - if the logging debuggable flag is setidentifier - the transaction service identifier for logging
TransactionException - if there is a transaction operation failure
protected void executeSuspend(ITransactionConfig config,
boolean debuggable,
java.lang.String identifier,
TransactionObject tx)
throws TransactionException
executeSuspend in class AbstractTransactionServiceManagerconfig - the transaction configurationdebuggable - if the logging debuggable flag is setidentifier - the transaction service identifier for loggingtx - the transaction object that represents a transaction
context to suspend
TransactionException - if there is a transaction operation failure
protected void executeCommitOrRollback(boolean commit,
boolean debuggable,
java.lang.String identifier,
ITransactionConfig config,
TransactionObject tx)
throws TransactionException
executeCommitOrRollback in class AbstractTransactionServiceManagercommit - if true then attempt to commit transaction otherwise rollbackdebuggable - the debuggable flag if this method writes to loggeridentifier - the transaction service manager identifierconfig - the transaction configurationtx - the transaction context
TransactionException - if there is a transaction operation failure
protected void executeResume(boolean debuggable,
java.lang.String identifier,
ITransactionConfig config,
TransactionObject tx)
throws TransactionException
executeResume in class AbstractTransactionServiceManagerdebuggable - the debuggable flag if this method writes to loggeridentifier - the transaction service manager identifierconfig - the transaction configurationtx - the transaction context
TransactionException - if there is a transaction operation failure
protected void commitRollbackTx(TransactionObject tx,
boolean commit)
throws TransactionException
commitRollbackTx in class AbstractTransactionServiceManagertx - the transaction objectcommit - if true then attempt to commit transaction otherwise rollback
TransactionException - if there is a transaction operation failure
protected void forceRollbackTx(TransactionObject tx)
throws TransactionException
forceRollbackTx in class AbstractTransactionServiceManagertx - the transaction object
TransactionException - if there is a transaction operation failurepublic boolean isActive()
The transaction is not active if it is one of the following states:
isActive in interface ITransactionServiceManagerisActive in class AbstractTransactionServiceManagerTransactionStateEnum
public boolean isTransactionNew(ITransactionContext txRef)
throws TransactionException,
java.lang.IllegalArgumentException
isTransactionNew in interface ITransactionServiceManagerisTransactionNew in class AbstractTransactionServiceManagertxRef - 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.ITransactionServiceManager.isTransactionNew(com.xenonsoft.bridgetown.aop.transaction.ITransactionContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||