public abstract class LimitOffsetQueryRewriter extends DefaultQueryRewriter
| Constructor and Description |
|---|
LimitOffsetQueryRewriter(JdbcDataContext dataContext) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFirstRowSupported(Query query)
Gets whether this query rewriter is able to write the "First row" query
property to the query string.
|
boolean |
isMaxRowsSupported()
Gets whether this query rewriter is able to write the "Max rows" query
property to the query string.
|
String |
rewriteQuery(Query query)
If the Max rows and/or First row property of the query is set, then we
will use the database's LIMIT and OFFSET functions.
|
beforeRewrite, escapeQuotes, isAggregateFunctionSupported, isPrimaryKeySupported, isScalarFunctionSupported, needsQuoting, rewriteColumnType, rewriteFilterItem, rewriteFilterItemWithOperandLiteral, rewriteTimestampgetColumnType, getDataContext, getResultSetValue, isSchemaIncludedInColumnPaths, isSupportedVersion, isTransactional, rewriteColumnTypeInternal, rewriteFromClause, rewriteFromItem, rewriteFromItem, rewriteGroupByClause, rewriteGroupByItem, rewriteHavingClause, rewriteOrderByClause, rewriteOrderByItem, rewriteSelectClause, rewriteSelectItem, rewriteWhereClause, setStatementParameter, toTime, toTimestamppublic LimitOffsetQueryRewriter(JdbcDataContext dataContext)
public final boolean isFirstRowSupported(Query query)
IQueryRewriterisFirstRowSupported in interface IQueryRewriterisFirstRowSupported in class DefaultQueryRewriterquery - For some database engines, the content of the query decides
the ability to change first rowpublic final boolean isMaxRowsSupported()
IQueryRewriterisMaxRowsSupported in interface IQueryRewriterisMaxRowsSupported in class DefaultQueryRewriterpublic String rewriteQuery(Query query)
rewriteQuery in interface IQueryRewriterrewriteQuery in class AbstractQueryRewriterCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.