|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectasjava.uniobjects.UniBase
asjava.uniobjects.UniTransaction
UniTransaction
is used to control the transaction settings
It gives the developer the ability to provide transactional behavior for
their applications.
Field Summary |
---|
Fields inherited from class asjava.uniobjects.UniBase |
---|
inPacket, outPacket, uniConnection, uniEncryptionType, uniParentSession, uniStatus |
Method Summary | |
---|---|
void |
begin()
begins a new transaction |
void |
commit()
commits the currently active transaction |
int |
getLevel()
returns the current transaction level |
boolean |
isActive()
determines whether a transaction is currently active. |
void |
rollback()
rollsback the current transaction |
Methods inherited from class asjava.uniobjects.UniBase |
---|
getEncryptionType, isCommandActive, setEncryptionType, status |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void commit() throws UniTransactionException
UniTransactionException
- is thrown if an error occursbegin()
,
rollback()
public int getLevel() throws UniTransactionException
UniTransactionException
- is thrown if an error occurspublic boolean isActive() throws UniTransactionException
true
return value will indicate that a transaction is active.
UniTransactionException
- is thrown if an error occurspublic void rollback() throws UniTransactionException
UniTransactionException
- is thrown if an error occurscommit()
public void begin() throws UniTransactionException
UniTransactionException
- is thrown if an error occurscommit()
,
rollback()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |