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

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

Packages that use Transaction
com.sleepycat.collections | Data access based on the standard Java collections API.
com.sleepycat.je | Foundation for creating environments, databases and transactions; provides cursor based data access.
com.sleepycat.persist | The Direct Persistence Layer (DPL) adds a persistent object model to the Berkeley DB transactional engine.
com.sleepycat.persist.evolve | Utilities for managing class evolution for persistent objects.

Uses of Transaction in com.sleepycat.collections

Methods in com.sleepycat.collections that return 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.
`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.getTransaction()` Returns the transaction associated with the current thread for this environment, or null if no transaction is active.

Uses of Transaction in com.sleepycat.je

Methods in com.sleepycat.je that return Transaction
`Transaction` | `Environment.beginTransaction(Transaction parent, TransactionConfig txnConfig)` Create a new transaction in the database environment.
`Transaction` | `Environment.getThreadTransaction()` Returns the transaction associated with this thread if implied transactions are being used.
`Transaction` | `XAEnvironment.getXATransaction(Xid xid)` This method can be used by the application to get the Transaction object given an XA Xid.

Methods in com.sleepycat.je with parameters of type Transaction
`Transaction` | `Environment.beginTransaction(Transaction parent, TransactionConfig txnConfig)` Create a new transaction in the database environment.
`OperationStatus` | `SecondaryDatabase.delete(Transaction txn, DatabaseEntry key)` Deletes the primary key/data pair associated with the specified secondary key.
`OperationStatus` | `Database.delete(Transaction txn, DatabaseEntry key)` Remove key/data pairs from the database.
`OperationStatus` | `SecondaryDatabase.get(Transaction txn, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the given key.
`OperationStatus` | `SecondaryDatabase.get(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the given key.
`OperationStatus` | `Database.get(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` Retrieves the key/data pair with the given key.
`long` | `Sequence.get(Transaction txn, int delta)` Return the next available element in the sequence and changes the sequence value by `delta`.
`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.
`OperationStatus` | `SecondaryDatabase.getSearchBoth(Transaction txn, DatabaseEntry key, DatabaseEntry data, LockMode lockMode)` This operation is not allowed with this method signature.
`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.
`Cursor` | `Database.openCursor(Transaction txn, CursorConfig cursorConfig)` Return a cursor into the database.
`Database` | `Environment.openDatabase(Transaction txn, String databaseName, DatabaseConfig dbConfig)` Open, and optionally create, a `Database`.
`SecondaryCursor` | `SecondaryDatabase.openSecondaryCursor(Transaction txn, CursorConfig cursorConfig)` Obtain a cursor on a database, returning a `SecondaryCursor`.
`SecondaryDatabase` | `Environment.openSecondaryDatabase(Transaction txn, String databaseName, Database primaryDatabase, SecondaryConfig secConfig)` Open and optionally create a `SecondaryDatabase`.
`Sequence` | `Database.openSequence(Transaction txn, DatabaseEntry key, SequenceConfig sequenceConfig)` Open a sequence in the database.
`OperationStatus` | `SecondaryDatabase.put(Transaction txn, DatabaseEntry key, DatabaseEntry data)` This operation is not allowed on a secondary database.
`OperationStatus` | `Database.put(Transaction txn, DatabaseEntry key, DatabaseEntry data)` Store the key/data pair into the database.
`OperationStatus` | `SecondaryDatabase.putNoDupData(Transaction txn, DatabaseEntry key, DatabaseEntry data)` This operation is not allowed on a secondary 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.
`OperationStatus` | `SecondaryDatabase.putNoOverwrite(Transaction txn, DatabaseEntry key, DatabaseEntry data)` This operation is not allowed on a secondary 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.
`void` | `Environment.removeDatabase(Transaction txn, String databaseName)` Remove a database.
`void` | `Database.removeSequence(Transaction txn, DatabaseEntry key)` Remove the sequence from the database.
`void` | `Environment.renameDatabase(Transaction txn, String databaseName, String newName)` Rename a database.
`void` | `Environment.setThreadTransaction(Transaction txn)` Sets the transaction associated with this thread if implied transactions are being used.
`void` | `XAEnvironment.setXATransaction(Xid xid, Transaction txn)` This method can be used by the application to set the Transaction object for an XA Xid.
`int` | `SecondaryDatabase.truncate(Transaction txn, boolean countRecords)` This operation is not allowed on a secondary database.
`int` | `Database.truncate(Transaction txn, boolean returnCount)` Deprecated. As of JE 1.7, replaced by `Environment.truncateDatabase(Transaction, String, boolean)`. The Database class is thread safe and may be used concurrently by multiple threads, using multiple transactions. It was not possible to supply correct transactional semantics for this method in all cases without imposing a performance penalty on all operations. Specifically, a truncate operation executed within one transaction can be incorrectly seen before commit by other transactions if those later transactions use the same Database handle. The replacement method, Environment.truncateDatabase(), avoids these issues because all Database handles must be closed before the truncateDatabase() method is called.
`long` | `Environment.truncateDatabase(Transaction txn, String databaseName, boolean returnCount)` Empty the database, discarding all records it contains.

Uses of Transaction in com.sleepycat.persist

Methods in com.sleepycat.persist with parameters of type Transaction
`boolean` | `EntityIndex.contains(Transaction txn, K key, LockMode lockMode)` Checks for existence of a key in this index.
`boolean` | `EntityIndex.delete(Transaction txn, K key)` Deletes all entities with a given index key.
`ForwardCursor<E>` | `EntityJoin.entities(Transaction txn, CursorConfig config)` Opens a cursor that returns the entities qualifying for the join.
`EntityCursor<V>` | `EntityIndex.entities(Transaction txn, CursorConfig config)` Opens a cursor for traversing all entities in this index.
`EntityCursor<V>` | `EntityIndex.entities(Transaction txn, K fromKey, boolean fromInclusive, K toKey, boolean toInclusive, CursorConfig config)` Opens a cursor for traversing entities in a key range.
`V` | `EntityIndex.get(Transaction txn, K key, LockMode lockMode)` Gets an entity via a key of this index.
`E` | `PrimaryIndex.get(Transaction txn, PK key, LockMode lockMode)`
`E` | `SecondaryIndex.get(Transaction txn, SK key, LockMode lockMode)`
`ForwardCursor<PK>` | `EntityJoin.keys(Transaction txn, CursorConfig config)` Opens a cursor that returns the primary keys of entities qualifying for the join.
`EntityCursor<K>` | `EntityIndex.keys(Transaction txn, CursorConfig config)` Opens a cursor for traversing all keys in this index.
`EntityCursor<K>` | `EntityIndex.keys(Transaction txn, K fromKey, boolean fromInclusive, K toKey, boolean toInclusive, CursorConfig config)` Opens a cursor for traversing keys in a key range.
`E` | `PrimaryIndex.put(Transaction txn, E entity)` Inserts an entity and returns null, or updates it if the primary key already exists and returns the existing entity.
`boolean` | `PrimaryIndex.putNoOverwrite(Transaction txn, E entity)` Inserts an entity and returns true, or returns false if the primary key already exists.
`void` | `PrimaryIndex.putNoReturn(Transaction txn, E entity)` Inserts an entity, or updates it if the primary key already exists (does not return the existing entity).
`void` | `EntityStore.truncateClass(Transaction txn, Class entityClass)` Deletes all instances of this entity class and its (non-entity) subclasses.

Uses of Transaction in com.sleepycat.persist.evolve

Methods in com.sleepycat.persist.evolve with parameters of type Transaction
`void` | `ConversionStore.deleteUnusedType(Transaction txn, String className, int classVersion)` Removes a type for which all instances have been converted.
`void` | `ConversionStore.installTempIndex(Transaction txn, PrimaryIndex<Object,RawObject> tempIndex)` Installs a temporary primary index as the current index.

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

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