public class AvlMasterTable<E> extends AvlTable<Long,E> implements MasterTable<E>
DBF, SEQPROP_KEY| Constructor and Description |
|---|
AvlMasterTable(String name,
Comparator<Long> keyComparator,
Comparator<E> valComparator,
boolean dupsEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(Long id)
Deletes a entry from this MasterTable at an index specified by id.
|
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 |
setProperty(String property,
String value)
Sets a persistant property associated with this MasterTable.
|
close, count, count, cursor, cursor, get, getKeyComparator, getName, getValueComparator, greaterThanCount, has, has, hasGreaterOrEqual, hasGreaterOrEqual, hasLessOrEqual, hasLessOrEqual, isCountExact, isDupsEnabled, lessThanCount, put, remove, remove, valueCursorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, putclose, count, count, cursor, cursor, getKeyComparator, getName, getValueComparator, greaterThanCount, has, has, hasGreaterOrEqual, hasGreaterOrEqual, hasLessOrEqual, hasLessOrEqual, isCountExact, isDupsEnabled, lessThanCount, remove, remove, valueCursorpublic AvlMasterTable(String name, Comparator<Long> keyComparator, Comparator<E> valComparator, boolean dupsEnabled)
public void delete(Long id) throws Exception
MasterTabledelete in interface MasterTable<E>id - unique identifier of the entry to deleteException - if there is a write error on the underlying Dbpublic Long getCurrentId() throws Exception
MasterTablegetCurrentId in interface MasterTable<E>Exception - if the admin table storing sequences cannot be readpublic Long getNextId() throws Exception
MasterTablegetNextId in interface MasterTable<E>Exception - on failure to update the id sequencepublic String getProperty(String property) throws Exception
MasterTablegetProperty in interface MasterTable<E>property - the key of the property to get the value ofException - on failure to read the propertypublic void setProperty(String property, String value) throws Exception
MasterTablesetProperty in interface MasterTable<E>property - the key of the property to set the value ofvalue - the value of the propertyException - on failure to write the propertyCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.