|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MasterTable<E>
A master table used to store indexible entries.
Field Summary | |
---|---|
static java.lang.String |
DBF
the base name for the db file for this table |
static java.lang.String |
SEQPROP_KEY
the sequence key - stores last sequence value in the admin table |
Method Summary | |
---|---|
void |
delete(java.lang.Long id)
Deletes a entry from this MasterTable at an index specified by id. |
E |
get(java.lang.Long id)
Gets an entry 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()
Gets the next value from the sequence of this MasterTable. |
java.lang.String |
getProperty(java.lang.String property)
Gets a persistant property associated with this MasterTable. |
void |
put(java.lang.Long id,
E entry)
Puts an entry into this MasterTable with a specified unique id. |
void |
setProperty(java.lang.String property,
java.lang.String value)
Sets a persistant property associated with this MasterTable. |
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 |
---|
static final java.lang.String DBF
static final java.lang.String SEQPROP_KEY
Method Detail |
---|
E get(java.lang.Long id) throws java.lang.Exception
get
in interface Table<java.lang.Long,E>
id
- the BigInteger id of the entry to retrieve.
java.lang.Exception
- if there is a read error on the underlying Db.void put(java.lang.Long id, E entry) throws java.lang.Exception
put
in interface Table<java.lang.Long,E>
entry
- the entry to addid
- unique identifier of the entry to put
java.lang.Exception
- if there is a write error on the underlying Db.void delete(java.lang.Long id) throws java.lang.Exception
id
- unique identifier of the entry to delete
java.lang.Exception
- if there is a write error on the underlying Dbjava.lang.Long getCurrentId() throws java.lang.Exception
java.lang.Exception
- if the admin table storing sequences cannot be readjava.lang.Long getNextId() throws java.lang.Exception
java.lang.Exception
- on failure to update the id sequencejava.lang.String getProperty(java.lang.String property) throws java.lang.Exception
property
- the key of the property to get the value of
java.lang.Exception
- on failure to read the propertyvoid setProperty(java.lang.String property, java.lang.String value) throws java.lang.Exception
property
- the key of the property to set the value ofvalue
- the value of the property
java.lang.Exception
- on failure to write the property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |