|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.root.db.query.DBQueryAdapter
org.norther.tammi.root.ojb.query.OJBQuery
public class OJBQuery
An OJB query adapter.
| Constructor Summary | |
|---|---|
OJBQuery(Query adapt)
Constructs a new query with an adaptee. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.norther.tammi.root.db.query.DBQueryAdapter |
|---|
getAdaptee, setAdaptee |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OJBQuery(Query adapt)
adapt - the query adaptee.| Method Detail |
|---|
public int getOffset()
DBQuery
getOffset in interface DBQuerypublic DBQuery setOffset(int offset)
DBQuery
setOffset in interface DBQueryoffset - the row index.
public int getLimit()
DBQuery
getLimit in interface DBQuerypublic DBQuery setLimit(int count)
DBQuery
setLimit in interface DBQuerycount - the row count (-1 = all).
public DBQuery orderBy(String attribute,
boolean desc)
DBQuery
orderBy in interface DBQueryattribute - the sort attribute.desc - true for descending.
public DBCriteria getCriteria()
DBQuery
getCriteria in interface DBQuery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||