public class HsqldbQueryRewriter extends DefaultQueryRewriter
| Constructor and Description |
|---|
HsqldbQueryRewriter(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.
|
boolean |
needsQuoting(String alias,
String identifierQuoteString)
HSQL converts all non-escaped characters to uppercases, this is prevented by always escaping
|
String |
rewriteColumnType(ColumnType columnType,
Integer columnSize)
Rewrites the name of a column type, as it is written in CREATE TABLE
statements.
|
String |
rewriteFilterItem(FilterItem item) |
protected String |
rewriteSelectClause(Query query,
SelectClause selectClause) |
beforeRewrite, escapeQuotes, isAggregateFunctionSupported, isPrimaryKeySupported, isScalarFunctionSupported, rewriteFilterItemWithOperandLiteral, rewriteTimestampgetColumnType, getDataContext, getResultSetValue, isSchemaIncludedInColumnPaths, isSupportedVersion, isTransactional, rewriteColumnTypeInternal, rewriteFromClause, rewriteFromItem, rewriteFromItem, rewriteGroupByClause, rewriteGroupByItem, rewriteHavingClause, rewriteOrderByClause, rewriteOrderByItem, rewriteQuery, rewriteSelectItem, rewriteWhereClause, setStatementParameter, toTime, toTimestamppublic HsqldbQueryRewriter(JdbcDataContext dataContext)
public String rewriteColumnType(ColumnType columnType, Integer columnSize)
IQueryRewriterrewriteColumnType in interface IQueryRewriterrewriteColumnType in class DefaultQueryRewritercolumnType - the (non-null) ColumnType to rewritecolumnSize - the (possibly null) column size that may or may not have been
specifiedpublic 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 boolean isMaxRowsSupported()
IQueryRewriterisMaxRowsSupported in interface IQueryRewriterisMaxRowsSupported in class DefaultQueryRewriterprotected String rewriteSelectClause(Query query, SelectClause selectClause)
rewriteSelectClause in class AbstractQueryRewriterpublic String rewriteFilterItem(FilterItem item)
rewriteFilterItem in interface IQueryRewriterrewriteFilterItem in class DefaultQueryRewriterpublic boolean needsQuoting(String alias, String identifierQuoteString)
needsQuoting in class DefaultQueryRewriterCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.