Berkeley DB Java Edition
version 5.0.34

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.je.jca.ra Support for the Java Connector Architecture, which provides a standard for connecting the J2EE platform to legacy enterprise information systems (EIS), such as ERP systems, database systems, and legacy applications not written in Java. 
com.sleepycat.persist The Direct Persistence Layer (DPL) adds a persistent object model to the Berkeley DB transactional engine. 
 

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)
          Creates a new transaction in the database environment.
 Transaction Environment.getThreadTransaction()
          Returns the transaction associated with this thread if implied transactions are being used.
 

Methods in com.sleepycat.je with parameters of type Transaction
 Transaction Environment.beginTransaction(Transaction parent, TransactionConfig txnConfig)
          Creates 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)
          Removes 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)
           
 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)
          Returns 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.
 SecondaryCursor SecondaryDatabase.openCursor(Transaction txn, CursorConfig cursorConfig)
          Obtain a cursor on a database, returning a SecondaryCursor.
 Cursor Database.openCursor(Transaction txn, CursorConfig cursorConfig)
          Returns a cursor into the database.
 Database Environment.openDatabase(Transaction txn, String databaseName, DatabaseConfig dbConfig)
          Opens, and optionally creates, a Database.
 SecondaryCursor SecondaryDatabase.openSecondaryCursor(Transaction txn, CursorConfig cursorConfig)
          Deprecated. As of JE 4.0.13, replaced by SecondaryDatabase.openCursor(com.sleepycat.je.Transaction, com.sleepycat.je.CursorConfig).

 SecondaryDatabase Environment.openSecondaryDatabase(Transaction txn, String databaseName, Database primaryDatabase, SecondaryConfig dbConfig)
          Opens and optionally creates a SecondaryDatabase.
 Sequence Database.openSequence(Transaction txn, DatabaseEntry key, SequenceConfig config)
          Opens 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)
          Stores 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)
          Stores 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)
          Stores the key/data pair into the database if the key does not already appear in the database.
 void Environment.removeDatabase(Transaction txn, String databaseName)
          Removes a database from the environment, discarding all records in the database and removing the database name itself.
 void Database.removeSequence(Transaction txn, DatabaseEntry key)
          Removes the sequence from the database.
 void Environment.renameDatabase(Transaction txn, String databaseName, String newName)
          Renames a database, without removing the records it contains.
 void Environment.setThreadTransaction(Transaction txn)
          Sets the transaction associated with this thread if implied transactions are being used.
 long Environment.truncateDatabase(Transaction txn, String databaseName, boolean returnCount)
          Empties the database, discarding all the records it contains, without removing the database name.
 

Uses of Transaction in com.sleepycat.je.jca.ra
 

Methods in com.sleepycat.je.jca.ra that return Transaction
 Transaction JEConnection.getTransaction()
           
 

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.
 


Berkeley DB Java Edition
version 5.0.34

Copyright (c) 2004-2011 Oracle. All rights reserved.