|
Berkeley DB Java Edition version 1.5.1 |
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use DatabaseException | |
com.sleepycat.bind.serial | Bindings that use Java serialization. |
com.sleepycat.bind.tuple | Bindings that use sequences of primitive fields, or tuples. |
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.util | Supporting utilities. |
Uses of DatabaseException in com.sleepycat.bind.serial |
Methods in com.sleepycat.bind.serial that throw DatabaseException | |
boolean |
TupleSerialKeyCreator.createSecondaryKey(SecondaryDatabase db,
DatabaseEntry primaryKeyEntry,
DatabaseEntry dataEntry,
DatabaseEntry indexKeyEntry)
|
boolean |
TupleSerialKeyCreator.nullifyForeignKey(SecondaryDatabase db,
DatabaseEntry dataEntry)
|
void |
StoredClassCatalog.close()
|
byte[] |
StoredClassCatalog.getClassID(String className)
|
ObjectStreamClass |
StoredClassCatalog.getClassFormat(String className)
|
ObjectStreamClass |
StoredClassCatalog.getClassFormat(byte[] classID)
|
boolean |
SerialSerialKeyCreator.createSecondaryKey(SecondaryDatabase db,
DatabaseEntry primaryKeyEntry,
DatabaseEntry dataEntry,
DatabaseEntry indexKeyEntry)
|
boolean |
SerialSerialKeyCreator.nullifyForeignKey(SecondaryDatabase db,
DatabaseEntry dataEntry)
|
void |
ClassCatalog.close()
Close a catalog database and release any cached resources. |
byte[] |
ClassCatalog.getClassID(String className)
Return the class ID for the current version of the given class name. |
ObjectStreamClass |
ClassCatalog.getClassFormat(String className)
Return the ObjectStreamClass for the given class name. |
ObjectStreamClass |
ClassCatalog.getClassFormat(byte[] classID)
Return the ObjectStreamClass for the given class ID. |
Constructors in com.sleepycat.bind.serial that throw DatabaseException | |
StoredClassCatalog(Database database)
Creates a catalog based on a given database. |
Uses of DatabaseException in com.sleepycat.bind.tuple |
Methods in com.sleepycat.bind.tuple that throw DatabaseException | |
boolean |
TupleTupleKeyCreator.createSecondaryKey(SecondaryDatabase db,
DatabaseEntry primaryKeyEntry,
DatabaseEntry dataEntry,
DatabaseEntry indexKeyEntry)
|
boolean |
TupleTupleKeyCreator.nullifyForeignKey(SecondaryDatabase db,
DatabaseEntry dataEntry)
|
Uses of DatabaseException in com.sleepycat.collections |
Methods in com.sleepycat.collections that throw DatabaseException | |
void |
TransactionRunner.run(TransactionWorker worker)
Calls the TransactionWorker.doWork() method and, for transactional
environments, begins and ends a transaction. |
void |
PrimaryKeyAssigner.assignKey(DatabaseEntry keyData)
Assigns a new primary key value into the given data buffer. |
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 DatabaseException in com.sleepycat.je |
Subclasses of DatabaseException in com.sleepycat.je | |
class |
DatabaseNotFoundException
Thrown when an operation requires a database and that database does not exist. |
class |
DeadlockException
Thrown when a transaction is selected to resolve a deadlock. |
class |
LockNotGrantedException
Thrown when a lock is not granted for a transaction configured for no-wait (non-blocking) operation. |
class |
RunRecoveryException
Thrown when the database environment needs to be recovered. |
Methods in com.sleepycat.je that throw DatabaseException | |
void |
Transaction.abort()
Cause an abnormal termination of the transaction. |
void |
Transaction.commit()
End the transaction, synchronously committing if the database environment is configured for synchronous commit. |
void |
Transaction.commitSync()
End the transaction, committing synchronously. |
void |
Transaction.commitNoSync()
End the transaction, not committing synchronously. |
void |
Transaction.setTxnTimeout(long timeOut)
Configure the timeout value for the transaction. |
void |
Transaction.setLockTimeout(long timeOut)
Configure the lock request timeout value for the transaction. |
boolean |
SecondaryKeyCreator.createSecondaryKey(SecondaryDatabase secondary,
DatabaseEntry key,
DatabaseEntry data,
DatabaseEntry result)
Creates a secondary key entry, given a primary key and data entry. |
void |
SecondaryDatabase.close()
Closes a secondary database and disassociates it from its primary database. |
Database |
SecondaryDatabase.getPrimaryDatabase()
Returns the primary database associated with this secondary database. |
SecondaryConfig |
SecondaryDatabase.getSecondaryConfig()
Returns a copy of the secondary configuration of this database. |
SecondaryCursor |
SecondaryDatabase.openSecondaryCursor(Transaction txn,
CursorConfig cursorConfig)
Obtain a cursor on a database, returning a SecondaryCursor . |
OperationStatus |
SecondaryDatabase.delete(Transaction txn,
DatabaseEntry key)
Deletes the key/data pair from the associated primary database and all secondary indices. |
OperationStatus |
SecondaryDatabase.get(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Retrieves the key/data pair with the given key. |
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 data,
LockMode lockMode)
This operation is not allowed with this method signature. |
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.put(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
This operation is not allowed on a secondary database. |
OperationStatus |
SecondaryDatabase.putNoOverwrite(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
This operation is not allowed on a secondary database. |
OperationStatus |
SecondaryDatabase.putNoDupData(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
This operation is not allowed on a secondary database. |
JoinCursor |
SecondaryDatabase.join(Cursor[] cursors,
JoinConfig config)
This operation is not allowed on a secondary database. |
int |
SecondaryDatabase.truncate(Transaction txn,
boolean countRecords)
This operation is not allowed on a secondary database. |
Cursor |
SecondaryCursor.dup(boolean samePosition)
Returns a new SecondaryCursor for the same transaction as
the original cursor. |
SecondaryCursor |
SecondaryCursor.dupSecondary(boolean samePosition)
Returns a new copy of the cursor as a SecondaryCursor . |
OperationStatus |
SecondaryCursor.delete()
Delete the key/data pair to which the cursor refers from the primary database and all secondary indices. |
OperationStatus |
SecondaryCursor.put(DatabaseEntry key,
DatabaseEntry data)
This operation is not allowed on a secondary database. |
OperationStatus |
SecondaryCursor.putNoOverwrite(DatabaseEntry key,
DatabaseEntry data)
This operation is not allowed on a secondary database. |
OperationStatus |
SecondaryCursor.putNoDupData(DatabaseEntry key,
DatabaseEntry data)
This operation is not allowed on a secondary database. |
OperationStatus |
SecondaryCursor.putCurrent(DatabaseEntry data)
This operation is not allowed on a secondary database. |
OperationStatus |
SecondaryCursor.getCurrent(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Returns the key/data pair to which the cursor refers. |
OperationStatus |
SecondaryCursor.getCurrent(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Returns the key/data pair to which the cursor refers. |
OperationStatus |
SecondaryCursor.getFirst(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the first key/data pair of the database, and returns that pair. |
OperationStatus |
SecondaryCursor.getFirst(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the first key/data pair of the database, and returns that pair. |
OperationStatus |
SecondaryCursor.getLast(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the last key/data pair of the database, and returns that pair. |
OperationStatus |
SecondaryCursor.getLast(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the last key/data pair of the database, and returns that pair. |
OperationStatus |
SecondaryCursor.getNext(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the next key/data pair and returns that pair. |
OperationStatus |
SecondaryCursor.getNext(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the next key/data pair and returns that pair. |
OperationStatus |
SecondaryCursor.getNextDup(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
If the next key/data pair of the database is a duplicate data record for the current key/data pair, moves the cursor to the next key/data pair of the database and returns that pair. |
OperationStatus |
SecondaryCursor.getNextDup(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
If the next key/data pair of the database is a duplicate data record for the current key/data pair, moves the cursor to the next key/data pair of the database and returns that pair. |
OperationStatus |
SecondaryCursor.getNextNoDup(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the next non-duplicate key/data pair and returns that pair. |
OperationStatus |
SecondaryCursor.getNextNoDup(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the next non-duplicate key/data pair and returns that pair. |
OperationStatus |
SecondaryCursor.getPrev(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the previous key/data pair and returns that pair. |
OperationStatus |
SecondaryCursor.getPrev(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the previous key/data pair and returns that pair. |
OperationStatus |
SecondaryCursor.getPrevDup(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
If the previous key/data pair of the database is a duplicate data record for the current key/data pair, moves the cursor to the previous key/data pair of the database and returns that pair. |
OperationStatus |
SecondaryCursor.getPrevDup(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
If the previous key/data pair of the database is a duplicate data record for the current key/data pair, moves the cursor to the previous key/data pair of the database and returns that pair. |
OperationStatus |
SecondaryCursor.getPrevNoDup(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the previous non-duplicate key/data pair and returns that pair. |
OperationStatus |
SecondaryCursor.getPrevNoDup(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the previous non-duplicate key/data pair and returns that pair. |
OperationStatus |
SecondaryCursor.getSearchKey(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the given key of the database, and returns the datum associated with the given key. |
OperationStatus |
SecondaryCursor.getSearchKey(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the given key of the database, and returns the datum associated with the given key. |
OperationStatus |
SecondaryCursor.getSearchKeyRange(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the closest matching key of the database, and returns the datum associated with the matching key. |
OperationStatus |
SecondaryCursor.getSearchKeyRange(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the closest matching key of the database, and returns the datum associated with the matching key. |
OperationStatus |
SecondaryCursor.getSearchBoth(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
This operation is not allowed with this method signature. |
OperationStatus |
SecondaryCursor.getSearchBoth(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the specified secondary and primary key, that is, both the primary and secondary key items must match. |
OperationStatus |
SecondaryCursor.getSearchBothRange(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
This operation is not allowed with this method signature. |
OperationStatus |
SecondaryCursor.getSearchBothRange(DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the specified secondary key and closest matching primary key of the database. |
void |
JoinCursor.close()
Closes the cursors that have been opened by this join cursor. |
OperationStatus |
JoinCursor.getNext(DatabaseEntry key,
LockMode lockMode)
Returns the next primary key resulting from the join operation. |
OperationStatus |
JoinCursor.getNext(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Returns the next primary key and data resulting from the join operation. |
boolean |
ForeignKeyNullifier.nullifyForeignKey(SecondaryDatabase secondary,
DatabaseEntry data)
Sets the foreign key reference to null in the datum of the primary database. |
void |
Environment.close()
The Environment.close method closes the Berkeley DB environment. |
Database |
Environment.openDatabase(Transaction txn,
String databaseName,
DatabaseConfig dbConfig)
Open, and optionally create, a Database . |
SecondaryDatabase |
Environment.openSecondaryDatabase(Transaction txn,
String databaseName,
Database primaryDatabase,
SecondaryConfig secConfig)
Open and optionally create a SecondaryDatabase . |
void |
Environment.removeDatabase(Transaction txn,
String databaseName)
Remove a database. |
void |
Environment.renameDatabase(Transaction txn,
String databaseName,
String newName)
Rename a database. |
File |
Environment.getHome()
Return the database environment's home directory. |
Transaction |
Environment.beginTransaction(Transaction parent,
TransactionConfig txnConfig)
Create a new transaction in the database environment. |
void |
Environment.checkpoint(CheckpointConfig checkpointConfig)
Synchronously checkpoint the database environment. |
void |
Environment.sync()
Synchronously flush database environment databases to stable storage. |
int |
Environment.cleanLog()
Synchronously invoke database environment log cleaning. |
void |
Environment.evictMemory()
Synchronously invoke the mechanism for keeping memory usage within the cache size boundaries. |
void |
Environment.compress()
Synchronously invoke the compressor mechanism which compacts in memory data structures after delete operations. |
EnvironmentConfig |
Environment.getConfig()
Return this object's configuration. |
void |
Environment.setMutableConfig(EnvironmentMutableConfig envMutableConfig)
Set database environment attributes. |
EnvironmentMutableConfig |
Environment.getMutableConfig()
Return database environment attributes. |
EnvironmentStats |
Environment.getStats(StatsConfig statsConfig)
Return general database environment statistics. |
LockStats |
Environment.getLockStats(StatsConfig statsConfig)
Return database environment locking statistics. |
TransactionStats |
Environment.getTransactionStats(StatsConfig statsConfig)
Return database environment transactional statistics. |
List |
Environment.getDatabaseNames()
Return a List of database names for the database environment. |
boolean |
Environment.verify(VerifyConfig verifyConfig,
PrintStream out)
Verify that the database environment is consistent and correct. |
void |
Database.close()
Flush any cached database information to disk and discard the database handle. |
Cursor |
Database.openCursor(Transaction txn,
CursorConfig cursorConfig)
Return a cursor into the database. |
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 key/data pairs into the database. |
OperationStatus |
Database.putNoOverwrite(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
Store key/data pairs into the database. |
OperationStatus |
Database.putNoDupData(Transaction txn,
DatabaseEntry key,
DatabaseEntry data)
Store key/data pairs into the database. |
JoinCursor |
Database.join(Cursor[] cursors,
JoinConfig config)
Creates a specialized join cursor for use in performing equality or natural joins on secondary indices. |
int |
Database.truncate(Transaction txn,
boolean returnCount)
Empty the database, discarding all records it contains. |
DatabaseStats |
Database.getStats(StatsConfig statsConfig)
Return database statistics. |
void |
Database.preload(long maxBytes)
Preload the cache. |
boolean |
Database.verify(VerifyConfig config,
PrintStream out)
Verify the integrity of the database. |
String |
Database.getDatabaseName()
Return the database name. |
DatabaseConfig |
Database.getConfig()
Return this object's configuration. |
Environment |
Database.getEnvironment()
Return the Environment object used to create this Database. |
List |
Database.getSecondaryDatabases()
Returns a list of all SecondaryDatabase objects associated
with this primary database. |
void |
Cursor.close()
Discard the cursor. |
int |
Cursor.count()
Return a count of the number of data items for the key to which the cursor refers. |
Cursor |
Cursor.dup(boolean samePosition)
Return a new cursor for the same transaction as the original cursor. |
OperationStatus |
Cursor.delete()
Delete the key/data pair to which the cursor refers. |
OperationStatus |
Cursor.put(DatabaseEntry key,
DatabaseEntry data)
Store a key/data pair into the database. |
OperationStatus |
Cursor.putNoOverwrite(DatabaseEntry key,
DatabaseEntry data)
Store a key/data pair into the database. |
OperationStatus |
Cursor.putNoDupData(DatabaseEntry key,
DatabaseEntry data)
Store a key/data pair into the database. |
OperationStatus |
Cursor.putCurrent(DatabaseEntry data)
Store a key/data pair into the database. |
OperationStatus |
Cursor.getCurrent(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Returns the key/data pair to which the cursor refers. |
OperationStatus |
Cursor.getFirst(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the first key/data pair of the database, and returns that pair. |
OperationStatus |
Cursor.getLast(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the last key/data pair of the database, and returns that pair. |
OperationStatus |
Cursor.getNext(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the next key/data pair and returns that pair. |
OperationStatus |
Cursor.getNextDup(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
If the next key/data pair of the database is a duplicate data record for the current key/data pair, moves the cursor to the next key/data pair of the database and returns that pair. |
OperationStatus |
Cursor.getNextNoDup(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the next non-duplicate key/data pair and returns that pair. |
OperationStatus |
Cursor.getPrev(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the previous key/data pair and returns that pair. |
OperationStatus |
Cursor.getPrevDup(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
If the previous key/data pair of the database is a duplicate data record for the current key/data pair, moves the cursor to the previous key/data pair of the database and returns that pair. |
OperationStatus |
Cursor.getPrevNoDup(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the previous non-duplicate key/data pair and returns that pair. |
OperationStatus |
Cursor.getSearchKey(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the given key of the database, and returns the datum associated with the given key. |
OperationStatus |
Cursor.getSearchKeyRange(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the closest matching key of the database, and returns the datum associated with the matching key. |
OperationStatus |
Cursor.getSearchBoth(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the specified key/data pair, that is, both the key and data items must match. |
OperationStatus |
Cursor.getSearchBothRange(DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode)
Moves the cursor to the specified key and closest matching data item of the database. |
Constructors in com.sleepycat.je that throw DatabaseException | |
Environment(File envHome,
EnvironmentConfig envConfig)
Create a database environment handle. |
Uses of DatabaseException in com.sleepycat.je.util |
Methods in com.sleepycat.je.util that throw DatabaseException | |
static void |
DbVerify.main(String[] argv)
The main used by the DbVerify utility. |
boolean |
DbVerify.verify(PrintStream out)
Verify a database and write errors found to a stream. |
static void |
DbLoad.main(String[] argv)
The main used by the DbLoad utility. |
boolean |
DbLoad.load()
|
static void |
DbDump.main(String[] argv)
The main used by the DbDump utility. |
void |
DbDump.dump()
Perform the dump. |
|
Berkeley DB Java Edition version 1.5.1 |
||||||||||
PREV NEXT | FRAMES NO FRAMES |