Uses of Class com.sleepycat.db.DbTxn (Sleepycat Software, Inc. - Berkeley DB Java API)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB version 4.2.52
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
com.sleepycat.db.DbTxn

Packages that use DbTxn
com.sleepycat.bdb | Core database classes for defining an environment, creating data stores, and running transactions [reference guide]
com.sleepycat.db | Java API programming notes [reference guide]

Uses of DbTxn in com.sleepycat.bdb

Methods in com.sleepycat.bdb that return DbTxn
`DbTxn` | `CurrentTransaction.getTxn()` Returns the transaction associated with the current thread for this environment, or null if no transaction is active.
`DbTxn` | `CurrentTransaction.beginTxn()` Begins a new transaction for this environment and associates it with the current thread.
`DbTxn` | `CurrentTransaction.beginTxn(boolean dirtyRead, boolean noWait)` Begins a new transaction for this environment and associates it with the current thread.
`DbTxn` | `CurrentTransaction.commitTxn()` Commits the transaction that is active for the current thread for this environment and makes the parent transaction (if any) the current transaction.
`DbTxn` | `CurrentTransaction.abortTxn()` Aborts the transaction that is active for the current thread for this environment and makes the parent transaction (if any) the current transaction.

Uses of DbTxn in com.sleepycat.db

Fields in com.sleepycat.db declared as DbTxn
`DbTxn` | `DbPreplist.txn` The transaction handle for the transaction.

Methods in com.sleepycat.db that return DbTxn
`DbTxn` | `DbEnv.txn_begin(DbTxn parent, int flags)` Deprecated. As of Berkeley DB 4.2, replaced by `DbEnv.txnBegin(DbTxn,int)`
`DbTxn` | `DbEnv.txnBegin(DbTxn parent, int flags)` The DbEnv.txnBegin method creates a new transaction in the environment and returns a `DbTxn` that uniquely identifies it.

Methods in com.sleepycat.db with parameters of type DbTxn
`void` | `DbEnv.dbremove(DbTxn txnid, String file, String database, int flags)` Deprecated. As of Berkeley DB 4.2, replaced by `DbEnv.dbRemove(DbTxn,String,String,int)`
`void` | `DbEnv.dbRemove(DbTxn txnid, String file, String database, int flags)` The DbEnv.dbRemove method removes the database specified by the file and database parameters.
`void` | `DbEnv.dbrename(DbTxn txnid, String file, String database, String newname, int flags)` Deprecated. As of Berkeley DB 4.2, replaced by `DbEnv.dbRename(DbTxn,String,String,String,int)`
`void` | `DbEnv.dbRename(DbTxn txnid, String file, String database, String newname, int flags)` The DbEnv.dbRename method renames the database specified by the file and database parameters to newname.
`DbTxn` | `DbEnv.txn_begin(DbTxn parent, int flags)` Deprecated. As of Berkeley DB 4.2, replaced by `DbEnv.txnBegin(DbTxn,int)`
`DbTxn` | `DbEnv.txnBegin(DbTxn parent, int flags)` The DbEnv.txnBegin method creates a new transaction in the environment and returns a `DbTxn` that uniquely identifies it.
`void` | `Db.open(DbTxn txnid, String file, String database, int type, int flags, int mode)` The Db.open method opens the database represented by the file and database parameters for both reading and writing.
`int` | `Db.pget(DbTxn txnid, Dbt key, Dbt pkey, Dbt data, int flags)` Deprecated. Replaced in Berkeley DB 4.2 by `Db.get(DbTxn,Dbt,Dbt,Dbt,int)`
`void` | `Db.associate(DbTxn txnid, Db secondary, DbSecondaryKeyCreate callback, int flags)`
`Dbc` | `Db.cursor(DbTxn txnid, int flags)` The Db.cursor method returns a created database cursor.
`int` | `Db.del(DbTxn txnid, Dbt key, int flags)` Deprecated. As of Berkeley DB 4.2, replaced by `Db.delete(DbTxn,Dbt,int)`
`int` | `Db.delete(DbTxn txnid, Dbt key, int flags)` The Db.delete method removes key/data pairs from the database.
`int` | `Db.get(DbTxn txnid, Dbt key, Dbt data, int flags)` The Db.get method retrieves key/data pairs from the database.
`void` | `Db.key_range(DbTxn txnid, Dbt key, DbKeyRange key_range, int flags)` Deprecated. As of Berkeley DB 4.2, replaced by `Db.keyRange(DbTxn,Dbt,DbKeyRange,int)`
`void` | `Db.keyRange(DbTxn txnid, Dbt key, DbKeyRange key_range, int flags)` The Db.keyRange method returns an estimate of the proportion of keys that are less than, equal to, and greater than the specified key.
`int` | `Db.get(DbTxn txnid, Dbt key, Dbt pkey, Dbt data, int flags)` The Db.get method retrieves key/data pairs from the database.
`int` | `Db.put(DbTxn txnid, Dbt key, Dbt data, int flags)` The Db.put method stores key/data pairs in the database.
`int` | `Db.truncate(DbTxn txnid, int flags)` The Db.truncate method empties the database, discarding all records it contains.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Berkeley DB version 4.2.52
PREV NEXT | FRAMES NO FRAMES

Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.