public interface MasterTable<E> extends Table<Long,E>
Modifier and Type | Field and Description |
---|---|
static String |
DBF
the base name for the db file for this table
|
static String |
SEQPROP_KEY
the sequence key - stores last sequence value in the admin table
|
Modifier and Type | Method and Description |
---|---|
void |
delete(Long id)
Deletes a entry from this MasterTable at an index specified by id.
|
E |
get(Long id)
Gets an entry from this MasterTable.
|
Long |
getCurrentId()
Gets the value of the id sequence from this MasterTable's sequence
without affecting the value.
|
Long |
getNextId()
Gets the next value from the sequence of this MasterTable.
|
String |
getProperty(String property)
Gets a persistant property associated with this MasterTable.
|
void |
put(Long id,
E entry)
Puts an entry into this MasterTable with a specified unique id.
|
void |
setProperty(String property,
String value)
Sets a persistant property associated with this MasterTable.
|
close, count, count, cursor, cursor, getKeyComparator, getName, getValueComparator, greaterThanCount, has, has, hasGreaterOrEqual, hasGreaterOrEqual, hasLessOrEqual, hasLessOrEqual, isCountExact, isDupsEnabled, lessThanCount, remove, remove, valueCursor
static final String DBF
static final String SEQPROP_KEY
void put(Long id, E entry) throws Exception
void delete(Long id) throws Exception
id
- unique identifier of the entry to deleteException
- if there is a write error on the underlying DbLong getCurrentId() throws Exception
Exception
- if the admin table storing sequences cannot be readLong getNextId() throws Exception
Exception
- on failure to update the id sequenceString getProperty(String property) throws Exception
property
- the key of the property to get the value ofException
- on failure to read the propertyCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.