|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable<java.lang.Long,E>
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmMasterTable<E>
public class JdbmMasterTable<E>
The master table used to store the Attributes of entries.
Field Summary | |
---|---|
protected JdbmTable<java.lang.String,java.lang.String> |
adminTbl
|
Fields inherited from interface org.apache.directory.server.xdbm.MasterTable |
---|
DBF, SEQPROP_KEY |
Constructor Summary | |
---|---|
|
JdbmMasterTable(RecordManager recMan,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Creates the master table using JDBM B+Trees for the backing store. |
protected |
JdbmMasterTable(RecordManager recMan,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager,
java.lang.String dbName,
Serializer serializer)
|
Method Summary | |
---|---|
void |
delete(java.lang.Long id)
Deletes a ServerEntry from the master table at an index specified by id. |
E |
get(java.lang.Long id)
Gets the ServerEntry from this MasterTable. |
java.lang.Long |
getCurrentId()
Gets the value of the id sequence from this MasterTable's sequence without affecting the value. |
java.lang.Long |
getNextId()
Get's the next value from this SequenceBDb. |
java.lang.String |
getProperty(java.lang.String property)
Gets a persistent property stored in the admin table of this MasterTable. |
void |
put(java.lang.Long id,
E entry)
Puts the ServerEntry into this master table at an index specified by id. |
void |
setProperty(java.lang.String property,
java.lang.String value)
Sets a persistent property stored in the admin table of this MasterTable. |
Methods inherited from class org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable |
---|
close, count, count, cursor, cursor, getKeyComparator, getKeySerializer, getMarshaller, getName, getValueComparator, getValueSerializer, greaterThanCount, has, has, hasGreaterOrEqual, hasGreaterOrEqual, hasLessOrEqual, hasLessOrEqual, isCountExact, isDupsEnabled, lessThanCount, remove, remove, sync, valueCursor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.directory.server.xdbm.Table |
---|
close, count, count, cursor, cursor, getKeyComparator, getName, getValueComparator, greaterThanCount, has, has, hasGreaterOrEqual, hasGreaterOrEqual, hasLessOrEqual, hasLessOrEqual, isCountExact, isDupsEnabled, lessThanCount, remove, remove, valueCursor |
Field Detail |
---|
protected final JdbmTable<java.lang.String,java.lang.String> adminTbl
Constructor Detail |
---|
public JdbmMasterTable(RecordManager recMan, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) throws java.lang.Exception
recMan
- the JDBM record managerschemaManager
- the schema mamanger
java.lang.Exception
- if there is an error opening the Db file.protected JdbmMasterTable(RecordManager recMan, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager, java.lang.String dbName, Serializer serializer) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public E get(java.lang.Long id) throws java.lang.Exception
get
in interface MasterTable<E>
get
in interface Table<java.lang.Long,E>
get
in class JdbmTable<java.lang.Long,E>
id
- the Long id of the entry to retrieve.
java.lang.Exception
- if there is a read error on the underlying Db.public void put(java.lang.Long id, E entry) throws java.lang.Exception
put
in interface MasterTable<E>
put
in interface Table<java.lang.Long,E>
put
in class JdbmTable<java.lang.Long,E>
entry
- the ServerEntry w/ operational attributesid
- the Long id of the entry to put
java.lang.Exception
- if there is a write error on the underlying Db.Table.put(java.lang.Object,
java.lang.Object)
public void delete(java.lang.Long id) throws java.lang.Exception
delete
in interface MasterTable<E>
id
- the Long id of the entry to delete
java.lang.Exception
- if there is a write error on the underlying Dbpublic java.lang.Long getCurrentId() throws java.lang.Exception
MasterTable
getCurrentId
in interface MasterTable<E>
java.lang.Exception
- if the admin table storing sequences cannot be readpublic java.lang.Long getNextId() throws java.lang.Exception
getNextId
in interface MasterTable<E>
java.lang.Exception
- if the admin table storing sequences cannot be
read and written to.public java.lang.String getProperty(java.lang.String property) throws java.lang.Exception
getProperty
in interface MasterTable<E>
property
- the key of the property to get the value of
java.lang.Exception
- when the underlying admin table cannot be readpublic void setProperty(java.lang.String property, java.lang.String value) throws java.lang.Exception
setProperty
in interface MasterTable<E>
property
- the key of the property to set the value ofvalue
- the value of the property
java.lang.Exception
- when the underlying admin table cannot be writen
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |