|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface QueryCallback
An interface defining the type of callback object which is generated by custom action class based on the received request parameters and passed to query engine class to execute query.
Different types of persistency technologies have their QueryCallback sub interfaces, such as:
JPAQueryCallback for JPA;HBN2QueryCallback for Hibernate2;HBN3QueryCallback for Hibernate3;JdbcQueryCallback for JDBC;
It's important to choose the correct QueryCallback type to return in your custom action class
and the type should match with the injected QueryTemplate
| Method Summary | |
|---|---|
java.lang.String |
getCountRecordsQueryStatement()
Query statement to count total records. |
QueryOrder |
getQueryOrder()
Order information used by query statement |
java.lang.String |
getQueryStatement()
Query statement(e.g. |
void |
setQueryOrder(QueryOrder order)
Set order information used by query statement |
| Method Detail |
|---|
java.lang.String getQueryStatement()
java.lang.String getCountRecordsQueryStatement()
QueryTemplate will do some auto translation to generate the "count query statement"
based on "queryStatement" property and related persistence technology or database provides (e.g.
the way of translation is different between Hibernate and JDBC, Oracle and DB2).
QueryOrder getQueryOrder()
void setQueryOrder(QueryOrder order)
order -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||