All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----ibs.ebf.db.EbfTransaction
EbfTransaction provides transaction management for
database connections. Every database activity must be performed using
transaction management provided by EbfTransaction object.
EbfTransaction obtains database connections from the database pool performs commit or rollback when requested and redeposits connections back to the connection pool.
Note: Transaction begins with 'beginTransaction' and ends with
either 'roolback' or 'commit' method call. Methods must be called in
following sequence.
--(1) Create an EbfTransaction object
--(2) call 'beginTransaction( connection_id )' method
--(4) call 'rollback()' or 'commit()' method.
--(5) Nullify the EbfTransaction object.
-- Note: Connections are redeposited back to the connection pool
whenever you call 'commit()' or 'rollback()'.
EbfTransaction(boolean)
beginTransaction(String)
commit()
finalize()
getConnectionId()
isActive()
rollback()
EbfTransaction
public EbfTransaction(boolean read_only_transaction)
beginTransaction
public IConnection beginTransaction(String connection_id) throws OutOfResourcesException, SQLException
getConnectionId
public String getConnectionId()
isActive
public boolean isActive()
commit
public void commit() throws SQLException
rollback
public void rollback() throws SQLException
finalize
protected void finalize()
All Packages Class Hierarchy This Package Previous Next Index