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

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

Packages that use Transaction
com.sleepycat.collections | Data access based on the standard Java collections API.
com.sleepycat.db | Berkeley DB Java API [reference guide] [Java programming notes].

Uses of Transaction in com.sleepycat.collections

Methods in com.sleepycat.collections that return Transaction
`Transaction` | `CurrentTransaction.getTransaction()` Returns the transaction associated with the current thread for this environment, or null if no transaction is active.
`Transaction` | `CurrentTransaction.beginTransaction(TransactionConfig config)` Begins a new transaction for this environment and associates it with the current thread.
`Transaction` | `CurrentTransaction.commitTransaction()` Commits the transaction that is active for the current thread for this environment and makes the parent transaction (if any) the current transaction.
`Transaction` | `CurrentTransaction.abortTransaction()` 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 Transaction in com.sleepycat.db

Methods in com.sleepycat.db that return Transaction
`Transaction` | `PreparedTransaction.getTransaction()` Return the transaction handle for the transaction.
`Transaction` | `Environment.beginTransaction(Transaction parent, TransactionConfig txnConfig)` Create a new transaction in the database environment.

Methods in com.sleepycat.db with parameters of type Transaction
`long` | `Sequence.get(Transaction txn, int delta)` Return the next available element in the sequence and changes the sequence value by `delta`.
`OperationStatus` | `SecondaryDatabase.get(Transaction txn, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the given key.
`OperationStatus` | `SecondaryDatabase.getSearchBoth(Transaction txn, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the specified secondary and primary key, that is, both the primary and secondary key items must match.
`SecondaryCursor` | `SecondaryDatabase.openSecondaryCursor(Transaction txn, CursorConfig cursorConfig)` Obtain a cursor on a database, returning a `SecondaryCursor`.
`OperationStatus` | `SecondaryDatabase.getSearchRecordNumber(Transaction txn, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair associated with the specific numbered record of the database.
`Transaction` | `Environment.beginTransaction(Transaction parent, TransactionConfig txnConfig)` Create a new transaction in the database environment.
`Database` | `Environment.openDatabase(Transaction txn, String fileName, String databaseName, DatabaseConfig config)` Open a database.
`SecondaryDatabase` | `Environment.openSecondaryDatabase(Transaction txn, String fileName, String databaseName, Database primaryDatabase, SecondaryConfig config)` Open a database.
`void` | `Environment.removeDatabase(Transaction txn, String fileName, String databaseName)` Remove a database.
`void` | `Environment.renameDatabase(Transaction txn, String fileName, String oldDatabaseName, String newDatabaseName)` Rename a database.
`void` | `Environment.logPrint(Transaction txn, String message)` Append an informational message to the Berkeley DB database environment log files.
`OperationStatus` | `Database.delete(Transaction txn, DatabaseEntry key)` Remove key/data pairs from the database.
`OperationStatus` | `Database.get(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the given key.
`OperationStatus` | `Database.getSearchBoth(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the given key and data value, that is, both the key and data items must match.
`OperationStatus` | `Database.put(Transaction txn, DatabaseEntry key, DatabaseEntry data)` Store the key/data pair into the database.
`OperationStatus` | `Database.append(Transaction txn, DatabaseEntry key, DatabaseEntry data)` Append the key/data pair to the end of the database.
`OperationStatus` | `Database.putNoOverwrite(Transaction txn, DatabaseEntry key, DatabaseEntry data)` Store the key/data pair into the database if the key does not already appear in the database.
`OperationStatus` | `Database.putNoDupData(Transaction txn, DatabaseEntry key, DatabaseEntry data)` Store the key/data pair into the database if it does not already appear in the database.
`CompactStats` | `Database.compact(Transaction txn, DatabaseEntry start, DatabaseEntry stop, DatabaseEntry end, CompactConfig config)` Compact a Btree or Recno database or returns unused Btree, Hash or Recno database pages to the underlying filesystem.
`Cursor` | `Database.openCursor(Transaction txn, CursorConfig cursorConfig)` Return a cursor into the database.
`Sequence` | `Database.openSequence(Transaction txn, DatabaseEntry key, SequenceConfig sequenceConfig)` Open a sequence in the database.
`void` | `Database.removeSequence(Transaction txn, DatabaseEntry key, SequenceConfig sequenceConfig)` Remove the sequence from the database.
`DatabaseStats` | `Database.getStats(Transaction txn, StatsConfig statsConfig)` Return database statistics.
`int` | `Database.truncate(Transaction txn, boolean returnCount)` Empty the database, discarding all records it contains.
`OperationStatus` | `Database.consume(Transaction txn, DatabaseEntry key, DatabaseEntry data, boolean wait)` Return the record number and data from the available record closest to the head of the queue, and delete the record.
`KeyRange` | `Database.getKeyRange(Transaction txn, DatabaseEntry key)` Return an estimate of the proportion of keys in the database less than, equal to, and greater than the specified key.
`OperationStatus` | `Database.getSearchRecordNumber(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair associated with the specific numbered record of the database.

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

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