|
|||||||||||
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
org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmMasterTable
The master table used to store the Attributes of entries.
Field Summary |
Fields inherited from interface org.apache.directory.server.core.partition.impl.btree.MasterTable |
DBF, SEQPROP_KEY |
Constructor Summary | |
JdbmMasterTable(RecordManager recMan)
Creates the master entry table using a Berkeley Db for the backing store. |
Method Summary | |
javax.naming.directory.Attributes |
delete(java.math.BigInteger id)
Deletes a entry from the master table at an index specified by id. |
javax.naming.directory.Attributes |
get(java.math.BigInteger id)
Gets the Attributes of an entry from this MasterTable. |
java.math.BigInteger |
getCurrentId()
Get's the current id value from this master database's sequence without affecting the seq. |
java.math.BigInteger |
getNextId()
Get's the next value from this SequenceBDb. |
java.lang.String |
getProperty(java.lang.String property)
Gets a persistant property stored in the admin table of this MasterTable. |
javax.naming.directory.Attributes |
put(javax.naming.directory.Attributes entry,
java.math.BigInteger id)
Puts the Attributes of an entry into this master table at an index specified by id. |
void |
setProperty(java.lang.String property,
java.lang.String value)
Sets a persistant 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, count, get, getComparator, getName, getRenderer, has, has, has, has, isDupsEnabled, isSortedDupsEnabled, listTuples, listTuples, listTuples, listTuples, listValues, put, put, remove, remove, remove, setRenderer, sync |
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.core.partition.impl.btree.Table |
close, count, count, count, get, getComparator, getName, getRenderer, has, has, has, has, isDupsEnabled, isSortedDupsEnabled, listTuples, listTuples, listTuples, listTuples, listValues, put, put, remove, remove, remove, setRenderer |
Constructor Detail |
public JdbmMasterTable(RecordManager recMan) throws javax.naming.NamingException
recMan
- the jdbm record manager
javax.naming.NamingException
- if there is an error opening the Db file.Method Detail |
public javax.naming.directory.Attributes get(java.math.BigInteger id) throws javax.naming.NamingException
get
in interface MasterTable
id
- the BigInteger id of the entry to retrieve.
javax.naming.NamingException
- if there is a read error on the underlying Db.public javax.naming.directory.Attributes put(javax.naming.directory.Attributes entry, java.math.BigInteger id) throws javax.naming.NamingException
put
in interface MasterTable
entry
- the Attributes of entry w/ operational attributesid
- the BigInteger id of the entry to put
javax.naming.NamingException
- if there is a write error on the underlying Db.public javax.naming.directory.Attributes delete(java.math.BigInteger id) throws javax.naming.NamingException
delete
in interface MasterTable
id
- the BigInteger id of the entry to delete
javax.naming.NamingException
- if there is a write error on the underlying Dbpublic java.math.BigInteger getCurrentId() throws javax.naming.NamingException
getCurrentId
in interface MasterTable
javax.naming.NamingException
- if the admin table storing sequences cannot be
read.public java.math.BigInteger getNextId() throws javax.naming.NamingException
getNextId
in interface MasterTable
javax.naming.NamingException
- if the admin table storing sequences cannot be
read and writen to.public java.lang.String getProperty(java.lang.String property) throws javax.naming.NamingException
getProperty
in interface MasterTable
property
- the key of the property to get the value of
javax.naming.NamingException
- when the underlying admin table cannot be readpublic void setProperty(java.lang.String property, java.lang.String value) throws javax.naming.NamingException
setProperty
in interface MasterTable
property
- the key of the property to set the value ofvalue
- the value of the property
javax.naming.NamingException
- when the underlying admin table cannot be writen
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |