T - the generic typepublic interface DaoViewer<T>
| Modifier and Type | Method and Description |
|---|---|
int |
countItems()
Count items.
|
T |
getItemByKey(Integer id,
Class<T> t)
Gets the item by key.
|
List<T> |
getRows()
Gets the rows.
|
List<T> |
getRows(int startIndex,
int offset)
Gets the rows.
|
List<T> |
getRowsFiltered(Map<String,String> filterMap)
Gets the rows filtered.
|
List<T> |
getRowsOrdered(String orderByField,
AbstractPersistence.SQL_ORDER order)
Gets the rows ordered.
|
List<T> getRows() throws DatabaseServiceException
DatabaseServiceException - the database service exceptionList<T> getRows(int startIndex, int offset) throws DatabaseServiceException
startIndex - the start indexoffset - the offsetDatabaseServiceException - the database service exceptionint countItems()
throws DatabaseServiceException
DatabaseServiceException - the database service exceptionList<T> getRowsFiltered(Map<String,String> filterMap) throws DatabaseServiceException
filterMap - the filter mapDatabaseServiceException - the database service exceptionT getItemByKey(Integer id, Class<T> t) throws DatabaseServiceException
id - the idt - the tDatabaseServiceException - the database service exceptionList<T> getRowsOrdered(String orderByField, AbstractPersistence.SQL_ORDER order) throws DatabaseServiceException
orderByField - the order by fieldorder - the orderDatabaseServiceException - the database service exceptionCopyright © 2015. All Rights Reserved.