|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.otm.core.Transaction
Transaction delivers the core function of OTMKit - to manage objects within the context of a transaction.
Constructor Summary | |
Transaction()
|
Method Summary | |
void |
begin()
|
void |
checkpoint()
Checkpoint this transaction. |
void |
commit()
Commit this transaction. |
OTMKit |
getKit()
|
boolean |
isInProgress()
|
void |
registerConnection(OTMConnection connection)
Associate a connection to this transaction. |
void |
registerListener(TransactionListener listener)
Adds a listener to this transaction. |
void |
rollback()
Rollback this transaction. |
void |
setKit(OTMKit kit)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Transaction()
Method Detail |
public OTMKit getKit()
public void setKit(OTMKit kit)
public void begin() throws TransactionException
TransactionException
public void commit() throws TransactionException
TransactionException
public void checkpoint() throws TransactionException
TransactionException
public void rollback() throws TransactionException
TransactionException
public boolean isInProgress()
public void registerConnection(OTMConnection connection)
connection
- the connection to registerpublic void registerListener(TransactionListener listener)
listener
- the listener of this transaction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |