|
DbTxn
|
|
import com.sleepycat.db.*;
public class DbTxn extends Object { ... }
Description
The DbTxn object is the handle for a transaction. Methods off
the DbTxn handle are used to configure, abort and commit the
transaction. DbTxn handles are provided to Db methods
in order to transactionally protect those database operations.
DbTxn handles are not free-threaded; transactions handles may
be used by multiple threads, but only serially, that is, the application
must serialize access to the DbTxn handle. Once the
DbTxn.abort or DbTxn.commit methods are called, the handle may
not be accessed again, regardless of the method's return. In addition,
parent transactions may not issue any Berkeley DB operations while they have
active child transactions (child transactions that have not yet been
committed or aborted) except for DbEnv.txn_begin, DbTxn.abort
and DbTxn.commit.
Class
DbEnv, DbTxn
See Also
Transaction Subsystem and Related Methods
Copyright Sleepycat Software
|