|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hdpagination.dataaccess.support.QueryBuilder
public abstract class QueryBuilder
Abstract base class for JdbcQueryCallbackWrapper, HBNQueryCallbackWrapper and
JPAQueryCallbackWrapper to facilitate the generation of query.
| Field Summary | |
|---|---|
protected boolean |
asending
|
protected java.lang.String |
countStatement
|
protected java.lang.String |
orderBy
|
protected java.lang.String |
selectFrom
|
| Constructor Summary | |
|---|---|
QueryBuilder(java.lang.String selectFrom)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getCountRecordsQueryStatement()
Query statement to count total records. |
QueryOrder |
getQueryOrder()
Order information used by query statement |
void |
setCountRecordsQueryStatement(java.lang.String countStmt)
Query statement to count total records. |
void |
setQueryOrder(QueryOrder order)
This method should never be called. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String selectFrom
protected java.lang.String countStatement
protected java.lang.String orderBy
protected boolean asending
| Constructor Detail |
|---|
public QueryBuilder(java.lang.String selectFrom)
selectFrom - SELECT ... FROM .." statement| Method Detail |
|---|
public 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).
public void setCountRecordsQueryStatement(java.lang.String countStmt)
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).
countStmt - public QueryOrder getQueryOrder()
public void setQueryOrder(QueryOrder order)
order -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||