| java.lang.Object org.lateralnz.simpletrans.SimpleTransaction
SimpleTransaction | public class SimpleTransaction implements Transaction(Code) | | a 'simple' transaction storing a map of named 'transaction-aware' connections. This class
partially implements a javax.transaction.Transaction, but adds proprietary (to this package)
methods for adding TransConnection objects.
Note also that this isn't a true implementation of a transaction (by any stretch of
the imagination). If two connections have been enlisted from different databases
and a commit succeeds on one, then fails on the other, your data will (obviously) end up
in an inconsistent state.
See Also: org.lateralnz.panther.trans.TransConnection author: J R Briggs |
SimpleTransaction | public SimpleTransaction()(Code) | | create a new transaction and make it active
|
commit | public void commit()(Code) | | commit a transaction, and close any connections that have been flagged for
closing
|
delistResource | public boolean delistResource(XAResource xAResource, int param)(Code) | | |
getStatus | public int getStatus()(Code) | | get the status of this transaction
|
registerSynchronization | public void registerSynchronization(Synchronization synchronization)(Code) | | not supported
|
rollback | public void rollback()(Code) | | rollback the connections in this transaction
|
setRollbackOnly | public void setRollbackOnly()(Code) | | flag that a rollback is required
|
|
|