|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DBQuery
An interface to classes representing a database query.
| Method Summary | |
|---|---|
Object |
getAdaptee()
Gets the implementation specific query adaptee, if any. |
DBCriteria |
getCriteria()
Gets the criteria of the query, if any. |
int |
getLimit()
Gets the number of rows to query. |
int |
getOffset()
Gets the first row to query. |
DBQuery |
orderBy(String attribute,
boolean desc)
Orders the query. |
DBQuery |
setLimit(int count)
Sets the number of rows to query. |
DBQuery |
setOffset(int offset)
Sets the first row to query. |
| Method Detail |
|---|
Object getAdaptee()
int getOffset()
DBQuery setOffset(int offset)
offset - the row index.
int getLimit()
DBQuery setLimit(int count)
count - the row count (-1 = all).
DBQuery orderBy(String attribute,
boolean desc)
attribute - the sort attribute.desc - true for descending.
DBCriteria getCriteria()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||