asjava.uniobjects
Class UniTransaction

java.lang.Object
  extended byasjava.uniobjects.UniBase
      extended byasjava.uniobjects.UniTransaction

public class UniTransaction
extends UniBase

UniTransaction is used to control the transaction settings It gives the developer the ability to provide transactional behavior for their applications.

Since:
UNIOBJECTS 1.0
Version:
Version 1.0
Author:
David T. Meeks

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

commit

public void commit()
            throws UniTransactionException
commits the currently active transaction

Throws:
UniTransactionException - is thrown if an error occurs
Since:
UNIOBJECTS 1.0
See Also:
begin(), rollback()

getLevel

public int getLevel()
             throws UniTransactionException
returns the current transaction level

Returns:
integer representing the current transaction level
Throws:
UniTransactionException - is thrown if an error occurs
Since:
UNIOBJECTS 1.0

isActive

public boolean isActive()
                 throws UniTransactionException
determines whether a transaction is currently active. A true return value will indicate that a transaction is active.

Returns:
boolean denoting whether the transaction is active.
Throws:
UniTransactionException - is thrown if an error occurs
Since:
UNIOBJECTS 1.0

rollback

public void rollback()
              throws UniTransactionException
rollsback the current transaction

Throws:
UniTransactionException - is thrown if an error occurs
Since:
UNIOBJECTS 1.0
See Also:
commit()

begin

public void begin()
           throws UniTransactionException
begins a new transaction

Throws:
UniTransactionException - is thrown if an error occurs
Since:
UNIOBJECTS 1.0
See Also:
commit(), rollback()