All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class asjava.uniobjects.UniTransaction

java.lang.Object
   |
   +----asjava.uniobjects.UniBase
           |
           +----asjava.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.

Version:
Version 1.0
Author:
David T. Meeks

Method Index

 o begin()
begins a new transaction
 o commit()
commits the currently active transaction
 o getLevel()
returns the current transaction level
 o isActive()
determines whether a transaction is currently active.
 o rollback()
rollsback the current transaction

Methods

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

Throws: UniTransactionException
is thrown if an error occurs
See Also:
begin, rollback
 o 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
 o 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
 o rollback
 public void rollback() throws UniTransactionException
rollsback the current transaction

Throws: UniTransactionException
is thrown if an error occurs
See Also:
commit
 o begin
 public void begin() throws UniTransactionException
begins a new transaction

Throws: UniTransactionException
is thrown if an error occurs
See Also:
commit, rollback

All Packages  Class Hierarchy  This Package  Previous  Next  Index