|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.DatabaseContainer
org.opends.server.backends.jeb.DN2ID
public class DN2ID
This class represents the DN database, or dn2id, which has one record for each entry. The key is the normalized entry DN and the value is the entry ID.
Field Summary |
---|
Fields inherited from class org.opends.server.backends.jeb.DatabaseContainer |
---|
dbConfig, entryContainer, name |
Method Summary | |
---|---|
EntryID |
get(com.sleepycat.je.Transaction txn,
DN dn,
com.sleepycat.je.LockMode lockMode)
Fetch the entry ID for a given DN. |
java.util.Comparator<byte[]> |
getComparator()
Gets the comparator for records stored in this database. |
boolean |
insert(com.sleepycat.je.Transaction txn,
DN dn,
EntryID id)
Insert a new record into the DN database. |
boolean |
put(com.sleepycat.je.Transaction txn,
DN dn,
EntryID id)
Write a record to the DN database. |
boolean |
putRaw(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. |
boolean |
remove(com.sleepycat.je.Transaction txn,
DN dn)
Remove a record from the DN database. |
Methods inherited from class org.opends.server.backends.jeb.DatabaseContainer |
---|
delete, getName, getRecordCount, insert, open, openCursor, preload, put, read, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean insert(com.sleepycat.je.Transaction txn, DN dn, EntryID id) throws com.sleepycat.je.DatabaseException
txn
- A JE database transaction to be used for the database operation,
or null if none.dn
- The entry DN, which is the key to the record.id
- The entry ID, which is the value of the record.
com.sleepycat.je.DatabaseException
- If an error occurred while attempting to insert
the new record.public boolean put(com.sleepycat.je.Transaction txn, DN dn, EntryID id) throws com.sleepycat.je.DatabaseException
txn
- A JE database transaction to be used for the database operation,
or null if none.dn
- The entry DN, which is the key to the record.id
- The entry ID, which is the value of the record.
com.sleepycat.je.DatabaseException
- If an error occurred while attempting to write
the record.public boolean putRaw(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 boolean remove(com.sleepycat.je.Transaction txn, DN dn) throws com.sleepycat.je.DatabaseException
txn
- A JE database transaction to be used for the database operation,
or null if none.dn
- The entry DN, which is the key to the record.
com.sleepycat.je.DatabaseException
- If an error occurred while attempting to remove
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 java.util.Comparator<byte[]> getComparator()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |