public interface SqlFromToPlugin extends Modifiers
SqlFeature. These pattern have to be combined with the original SQL
query, the limit and the offset in the next way:
select| Modifier and Type | Interface and Description |
|---|---|
static class |
SqlFromToPlugin.LimitType
The characteristic of FROM and TO restrictions used in
SqlQuery.list(SqlRuntimeContext). |
MODIFIER_ANY, MODIFIER_ANYSET, MODIFIER_CALL, MODIFIER_DISCRIMINATOR, MODIFIER_EMPTY, MODIFIER_GTYPE, MODIFIER_ID, MODIFIER_IDENTITY_GENERATOR, MODIFIER_IDENTITY_SELECT, MODIFIER_NOTEMPTY, MODIFIER_NOTNULL, MODIFIER_NULL, MODIFIER_SEQUENCE, MODIFIER_TYPE| Modifier and Type | Method and Description |
|---|---|
SqlFromToPlugin.LimitType |
limitQuery(SqlRuntimeContext runtimeCtx,
String queryString,
StringBuilder queryResult,
Integer firstResult,
Integer maxResults,
boolean ordered)
Used to construct the FROM-TO SQL.
|
SqlFromToPlugin.LimitType limitQuery(SqlRuntimeContext runtimeCtx, String queryString, StringBuilder queryResult, Integer firstResult, Integer maxResults, boolean ordered)
runtimeCtx - the public runtime contextqueryString - the original ANSI SQLqueryResult - the final ANSI SQL reflected FROM and TO restrictionsfirstResult - The first SQL execution output row to be returned in the case we need to skip some rows in the result
set. The primary usage is to support the pagination.maxResults - The max number of SQL execution output rows, which can be returned in the result list. The primary
usage is to support the pagination.ordered - the SQL output is sortedSqlQuery.list(SqlRuntimeContext)Copyright © 2017. All rights reserved.