public class DN2ID extends DatabaseContainer
dbConfig, entryContainer, name| Modifier and Type | Method and Description |
|---|---|
EntryID |
get(com.sleepycat.je.Transaction txn,
DN dn,
com.sleepycat.je.LockMode lockMode)
Fetch the entry ID for a given DN.
|
Comparator<byte[]> |
getComparator()
Gets the comparator for records stored in this database.
|
com.sleepycat.je.OperationStatus |
put(com.sleepycat.je.Transaction txn,
com.sleepycat.je.DatabaseEntry key,
com.sleepycat.je.DatabaseEntry data)
Write a record to the DN database, where the key and value are already
formatted.
|
com.sleepycat.je.OperationStatus |
read(com.sleepycat.je.Transaction txn,
com.sleepycat.je.DatabaseEntry key,
com.sleepycat.je.DatabaseEntry data,
com.sleepycat.je.LockMode lockMode)
Read a record from a JE database, with optional debug logging.
|
close, getName, getRecordCount, open, openCursor, openCursor, preload, toStringpublic com.sleepycat.je.OperationStatus put(com.sleepycat.je.Transaction txn, com.sleepycat.je.DatabaseEntry key, com.sleepycat.je.DatabaseEntry data) throws com.sleepycat.je.DatabaseException
txn - A JE database transaction to be used for the database operation,
or null if none.key - A DatabaseEntry containing the record key.data - A DatabaseEntry containing the record value.com.sleepycat.je.DatabaseException - If an error occurred while attempting to write
the record.public EntryID get(com.sleepycat.je.Transaction txn, DN dn, com.sleepycat.je.LockMode lockMode) throws com.sleepycat.je.DatabaseException
txn - A JE database transaction to be used for the database read, or
null if none is required.dn - The DN for which the entry ID is desired.lockMode - The JE locking mode to be used for the read.com.sleepycat.je.DatabaseException - If an error occurs in the JE database.public com.sleepycat.je.OperationStatus read(com.sleepycat.je.Transaction txn, com.sleepycat.je.DatabaseEntry key, com.sleepycat.je.DatabaseEntry data, com.sleepycat.je.LockMode lockMode)
txn - The JE transaction handle, or null if none.key - The key of the record to be read.data - The record value returned as output. Its byte array does not
need to be initialized by the caller.lockMode - The JE locking mode to be used for the read.public Comparator<byte[]> getComparator()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.