| | |
| | | */ |
| | | package org.opends.server.backends.jeb; |
| | | |
| | | import org.opends.server.protocols.asn1.ASN1OctetString; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.Modification; |
| | | |
| | |
| | | * @throws DatabaseException If an error occurs in the JE database. |
| | | */ |
| | | public void indexEntry(Transaction txn, Entry entry, |
| | | Set<ASN1OctetString> addKeys) |
| | | Set<byte[]> addKeys) |
| | | throws DatabaseException |
| | | { |
| | | // The superior entry IDs are in the entry attachment. |
| | |
| | | while (iter.hasNext()) |
| | | { |
| | | DatabaseEntry nodeIDData = ((EntryID)iter.next()).getDatabaseEntry(); |
| | | addKeys.add(new ASN1OctetString(nodeIDData.getData())); |
| | | addKeys.add(nodeIDData.getData()); |
| | | } |
| | | } |
| | | |
| | |
| | | */ |
| | | public void replaceEntry(Transaction txn, |
| | | Entry oldEntry, Entry newEntry, |
| | | Set<ASN1OctetString> addKeys, |
| | | Set<ASN1OctetString> delKeys) |
| | | Set<byte[]> addKeys, |
| | | Set<byte[]> delKeys) |
| | | throws DatabaseException |
| | | { |
| | | // Nothing to do. |
| | |
| | | */ |
| | | public void modifyEntry(Transaction txn, Entry oldEntry, Entry newEntry, |
| | | List<Modification> mods, |
| | | Set<ASN1OctetString> addKeys, |
| | | Set<ASN1OctetString> delKeys) |
| | | Set<byte[]> addKeys, |
| | | Set<byte[]> delKeys) |
| | | throws DatabaseException |
| | | { |
| | | // Nothing to do. |