public class JdbmMasterTable extends JdbmTable<String,org.apache.directory.api.ldap.model.entry.Entry> implements MasterTable
Modifier and Type | Field and Description |
---|---|
protected JdbmTable<String,String> |
adminTbl |
allowsDuplicates, commitNumber, count, keyComparator, name, schemaManager, valueComparator
DBF, SEQPROP_KEY
Modifier | Constructor and Description |
---|---|
|
JdbmMasterTable(jdbm.RecordManager recMan,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates the master table using JDBM B+Trees for the backing store.
|
protected |
JdbmMasterTable(jdbm.RecordManager recMan,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
String dbName,
jdbm.helper.Serializer serializer) |
Modifier and Type | Method and Description |
---|---|
String |
getNextId(org.apache.directory.api.ldap.model.entry.Entry entry)
Get's the next value from this SequenceBDb.
|
void |
resetCounter() |
close, count, cursor, cursor, get, getKeySerializer, getMarshaller, getValueSerializer, greaterThanCount, has, has, hasGreaterOrEqual, hasGreaterOrEqual, hasLessOrEqual, hasLessOrEqual, isDupsEnabled, lessThanCount, put, remove, remove, sync, valueCursor
count, getKeyComparator, getName, getValueComparator, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, count, count, cursor, cursor, get, getKeyComparator, getName, getValueComparator, greaterThanCount, has, has, hasGreaterOrEqual, hasGreaterOrEqual, hasLessOrEqual, hasLessOrEqual, isDupsEnabled, lessThanCount, put, remove, remove, valueCursor
public JdbmMasterTable(jdbm.RecordManager recMan, org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager) throws Exception
recMan
- the JDBM record managerschemaManager
- the schema managerException
- if there is an error opening the Db file.public String getNextId(org.apache.directory.api.ldap.model.entry.Entry entry) throws Exception
getNextId
in interface MasterTable
entry
- the entry in case the id is derived from the entry.Exception
- if the admin table storing sequences cannot be
read and written to.Copyright © 2016. All rights reserved.