| | |
| | | * |
| | | * @param treeName The name of the DN database. |
| | | * @param entryContainer The entryContainer of the DN database. |
| | | * @throws StorageRuntimeException If an error occurs in the JE database. |
| | | * @throws StorageRuntimeException If an error occurs in the database. |
| | | */ |
| | | DN2ID(TreeName treeName, EntryContainer entryContainer) throws StorageRuntimeException |
| | | { |
| | |
| | | |
| | | /** |
| | | * Adds a new record into the DN database replacing any existing record having the same DN. |
| | | * @param txn A JE database transaction to be used for the database operation, |
| | | * or null if none. |
| | | * @param txn a non null database transaction |
| | | * @param dn The entry DN, which is the key to the record. |
| | | * @param id The entry ID, which is the value of the record. |
| | | * @throws StorageRuntimeException If an error occurred while attempting to insert |
| | |
| | | |
| | | /** |
| | | * Remove a record from the DN database. |
| | | * @param txn A JE database transaction to be used for the database operation, |
| | | * or null if none. |
| | | * @param txn a non null database transaction |
| | | * @param dn The entry DN, which is the key to the record. |
| | | * @return true if the record was removed, false if it was not removed. |
| | | * @throws StorageRuntimeException If an error occurred while attempting to remove |
| | |
| | | |
| | | /** |
| | | * Fetch the entry ID for a given DN. |
| | | * @param txn A JE database transaction to be used for the database read, or |
| | | * null if none is required. |
| | | * @param txn a non null database transaction |
| | | * @param dn The DN for which the entry ID is desired. |
| | | * @return The entry ID, or null if the given DN is not in the DN database. |
| | | * @throws StorageRuntimeException If an error occurs in the JE database. |
| | | * @throws StorageRuntimeException If an error occurs in the database. |
| | | */ |
| | | EntryID get(ReadableTransaction txn, DN dn) throws StorageRuntimeException |
| | | { |