public class DB2QueryRewriter extends DefaultQueryRewriter
Constructor and Description |
---|
DB2QueryRewriter(JdbcDataContext dataContext) |
Modifier and Type | Method and Description |
---|---|
String |
escapeQuotes(String filterItemOperand)
Escapes the quotes within a String literal of a query item.
|
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.
|
boolean |
isSchemaIncludedInColumnPaths()
DB2 expects the fully qualified column name, including schema, in select
items.
|
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) |
String |
rewriteQuery(Query query) |
beforeRewrite, isAggregateFunctionSupported, isScalarFunctionSupported, rewriteFilterItemWithOperandLiteral, rewriteTimestamp
getColumnType, getDataContext, getResultSetValue, isSupportedVersion, isTransactional, rewriteColumnTypeInternal, rewriteFromClause, rewriteFromItem, rewriteFromItem, rewriteGroupByClause, rewriteGroupByItem, rewriteHavingClause, rewriteOrderByClause, rewriteOrderByItem, rewriteSelectClause, rewriteSelectItem, rewriteWhereClause, setStatementParameter, toTime, toTimestamp
public DB2QueryRewriter(JdbcDataContext dataContext)
public String escapeQuotes(String filterItemOperand)
IQueryRewriter
escapeQuotes
in interface IQueryRewriter
escapeQuotes
in class DefaultQueryRewriter
public boolean isSchemaIncludedInColumnPaths()
isSchemaIncludedInColumnPaths
in class AbstractQueryRewriter
public boolean isMaxRowsSupported()
IQueryRewriter
isMaxRowsSupported
in interface IQueryRewriter
isMaxRowsSupported
in class DefaultQueryRewriter
public boolean isFirstRowSupported()
IQueryRewriter
isFirstRowSupported
in interface IQueryRewriter
isFirstRowSupported
in class DefaultQueryRewriter
public String rewriteQuery(Query query)
rewriteQuery
in interface IQueryRewriter
rewriteQuery
in class AbstractQueryRewriter
public String rewriteColumnType(ColumnType columnType, Integer columnSize)
IQueryRewriter
rewriteColumnType
in interface IQueryRewriter
rewriteColumnType
in class DefaultQueryRewriter
columnType
- the (non-null) ColumnType
to rewritecolumnSize
- the (possibly null) column size that may or may not have been
specifiedpublic String rewriteFilterItem(FilterItem item)
rewriteFilterItem
in interface IQueryRewriter
rewriteFilterItem
in class DefaultQueryRewriter
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.