|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface to be implemented by table indices.
An implementation of DatabaseTable returns objects of this type when requests are made to open an index on a specific column. It is possible for table classes to also implement DatabaseIndex and return "this" when asked for a specific index. ModSQL will never use more than one index for a specific table at one time, nor will it access the table through both an index and the table simultaneously.
DatabaseTable| Method Summary | |
boolean |
findNext(Object data)
Finds the next row that has the specified data in the indexed column. |
long |
getDistinctCount()
Returns the number of distinct values stored in the indexed column in the underlying table. |
long |
getNullCount()
Returns the number of null values stored in the indexed column in the underlying table. |
| Methods inherited from interface ModSQL.DatabaseTableBase |
afterLast, beforeFirst, close, commitUpdates, deleteRow, getObject, getRowCount, getRowId, isAfterLast, isBeforeFirst, next, updateObject |
| Method Detail |
public long getDistinctCount()
throws DatabaseException
DatabaseException - if a database-access error occurs
public long getNullCount()
throws DatabaseException
DatabaseException - if a database-access error occurs
public boolean findNext(Object data)
throws DatabaseException
data - desired dataDatabaseException - if a database-access error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||