|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hdpagination.dataaccess.orm.jpa.AbstractJPAQueryCallback
org.hdpagination.dataaccess.orm.jpa.NoParamBindJPAQueryCallback
org.hdpagination.dataaccess.orm.jpa.DefaultJPAQueryCallback
public class DefaultJPAQueryCallback
A subclass of AbstractJPAQueryCallback providing default implementation:
javax.persistence.Query.list() method
| Constructor Summary | |
|---|---|
DefaultJPAQueryCallback(java.lang.String queryStmt,
java.lang.String countArgument)
Please note, since version 1.3.2, this construct adds another argument countArgument to fix a design defect not complying with the JPA specification. |
|
DefaultJPAQueryCallback(java.lang.String queryStmt,
java.lang.String countArgument,
java.lang.String orderBy)
Please note, since version 1.3.2, this construct adds another argument countArgument to fix a design defect not complying with the JPA specification. |
|
DefaultJPAQueryCallback(java.lang.String queryStmt,
java.lang.String countArgument,
java.lang.String orderBy,
boolean ascending)
Please note, since version 1.3.2, this construct adds another argument countArgument to fix a design defect not complying with the JPA specification. |
|
| Method Summary | |
|---|---|
java.util.List |
processQueriedResult(java.util.List queriedResult)
Do nothing, just return the same as input |
| Methods inherited from class org.hdpagination.dataaccess.orm.jpa.NoParamBindJPAQueryCallback |
|---|
setValues |
| Methods inherited from class org.hdpagination.dataaccess.orm.jpa.AbstractJPAQueryCallback |
|---|
getCountRecordsQueryStatement, getQueryOrder, getQueryStatement, setCountRecordsQueryStatement, setQueryOrder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJPAQueryCallback(java.lang.String queryStmt,
java.lang.String countArgument)
Please note, since version 1.3.2, this construct adds another argument countArgument to fix a design defect not complying with the JPA specification.
So if you upgrade from previous versions, you may find a compilation error.
queryStmt - JP QL (Java Persistence Query Language) query statementcountArgument - to query the total number of records, the "SELECT COUNT([countArgument]) FROM ..."
statement (generated based on the query statement) needs to be executed. As specified by JPA Specification, the COUNT function takes either an
identification variable or a path expression as its argument. This argument will be used as the COUNT function's argument.
This argument can not be null or empty, unless the property countRecordsQueryStatement is set explicitly by calling the method
DefaultJPAQueryCallback.setCountRecordsQueryStatement(java.lang.String)
(in this case, it will be ignored).
public DefaultJPAQueryCallback(java.lang.String queryStmt,
java.lang.String countArgument,
java.lang.String orderBy)
Please note, since version 1.3.2, this construct adds another argument countArgument to fix a design defect not complying with the JPA specification.
So if you upgrade from previous versions, you may find a compilation error.
queryStmt - JP QL (Java Persistence Query Language) query statementcountArgument - to query the total number of records, the "SELECT COUNT([countArgument]) FROM ..."
statement (generated based on the query statement) needs to be executed. As specified by JPA Specification, the COUNT function takes either an
identification variable or a path expression as its argument. This argument will be used as the COUNT function's argument.
This argument can not be null or empty, unless the property countRecordsQueryStatement is set explicitly by calling the method
DefaultJPAQueryCallback.setCountRecordsQueryStatement(java.lang.String)
(in this case, it will be ignored).orderBy - column that will be added to the 'ORDER BY' clause of JP QL query statement
public DefaultJPAQueryCallback(java.lang.String queryStmt,
java.lang.String countArgument,
java.lang.String orderBy,
boolean ascending)
Please note, since version 1.3.2, this construct adds another argument countArgument to fix a design defect not complying with the JPA specification.
So if you upgrade from previous versions, you may find a compilation error.
queryStmt - JP QL (Java Persistence Query Language) query statementcountArgument - to query the total number of records, the "SELECT COUNT([countArgument]) FROM ..."
statement (generated based on the query statement) needs to be executed. As specified by JPA Specification, the COUNT function takes either an
identification variable or a path expression as its argument. This argument will be used as the COUNT function's argument.
This argument can not be null or empty, unless the property countRecordsQueryStatement is set explicitly by calling the method
DefaultJPAQueryCallback.setCountRecordsQueryStatement(java.lang.String)
(in this case, it will be ignored).orderBy - column that will be added to the 'ORDER BY' clause of JP QL query statementascending - if sorted by ascending order| Method Detail |
|---|
public java.util.List processQueriedResult(java.util.List queriedResult)
processQueriedResult in interface JPAQueryCallbackprocessQueriedResult in class NoParamBindJPAQueryCallback
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||