public abstract class LimitOffsetQueryRewriter extends DefaultQueryRewriter
logger
Constructor and Description |
---|
LimitOffsetQueryRewriter(JdbcDataContext dataContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
isFirstRowSupported()
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, rewriteFilterItem
getColumnType, getDataContext, isSchemaIncludedInColumnPaths, rewriteColumnType, rewriteFromClause, rewriteFromItem, rewriteFromItem, rewriteGroupByClause, rewriteGroupByItem, rewriteHavingClause, rewriteOrderByClause, rewriteOrderByItem, rewriteSelectClause, rewriteSelectItem, rewriteWhereClause
public LimitOffsetQueryRewriter(JdbcDataContext dataContext)
public final boolean isFirstRowSupported()
IQueryRewriter
isFirstRowSupported
in interface IQueryRewriter
isFirstRowSupported
in class DefaultQueryRewriter
public final boolean isMaxRowsSupported()
IQueryRewriter
isMaxRowsSupported
in interface IQueryRewriter
isMaxRowsSupported
in class DefaultQueryRewriter
public String rewriteQuery(Query query)
rewriteQuery
in interface IQueryRewriter
rewriteQuery
in class AbstractQueryRewriter
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.