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
-
begin()
- begins a new transaction
-
commit()
- commits the currently active transaction
-
getLevel()
- returns the current transaction level
-
isActive()
- determines whether a transaction is currently active.
-
rollback()
- rollsback the current transaction
commit
public void commit() throws UniTransactionException
- commits the currently active transaction
- Throws: UniTransactionException
- is thrown if an error occurs
- 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
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
rollback
public void rollback() throws UniTransactionException
- rollsback the current transaction
- Throws: UniTransactionException
- is thrown if an error occurs
- See Also:
- commit
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