June 2001
Intermediate to advanced
688 pages
19h 18m
English
import com.sleepycat.db.*; public DbTxn txn_begin(DbTxn parent, int flags) throws DbException;
The DbEnv.txn_begin method creates a new transaction in the environment and returns a DbTxn that uniquely identifies it.
If the parent argument is non-null, the new transaction will be a nested transaction, with the transaction indicated by parent as its parent. Transactions may be nested to any level.
The flags parameter must be set to 0 or one of the following values:
Db.DB_TXN_NOSYNC Do not synchronously flush the log when this transaction commits or prepares. This means the transaction will exhibit the ACI (atomicity, consistency, and isolation) properties, but not D (durability); that is, database integrity will ...