public class SQLServerQueryRewriter extends OffsetFetchQueryRewriter
Modifier and Type | Field and Description |
---|---|
static int |
FIRST_FETCH_SUPPORTING_VERSION |
Constructor and Description |
---|
SQLServerQueryRewriter(JdbcDataContext dataContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
isMaxRowsSupported()
Gets whether this query rewriter is able to write the "Max rows" query
property to the query string.
|
boolean |
isSchemaIncludedInColumnPaths()
SQL server 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) |
protected String |
rewriteSelectClause(Query query,
SelectClause selectClause) |
isFirstRowSupported, rewriteQuery
beforeRewrite, escapeQuotes, isAggregateFunctionSupported, isScalarFunctionSupported, needsQuoting, rewriteFilterItemWithOperandLiteral, rewriteTimestamp
getColumnType, getDataContext, getResultSetValue, isSupportedVersion, isTransactional, rewriteColumnTypeInternal, rewriteFromClause, rewriteFromItem, rewriteFromItem, rewriteGroupByClause, rewriteGroupByItem, rewriteHavingClause, rewriteOrderByClause, rewriteOrderByItem, rewriteSelectItem, rewriteWhereClause, setStatementParameter, toTime, toTimestamp
public static final int FIRST_FETCH_SUPPORTING_VERSION
public SQLServerQueryRewriter(JdbcDataContext dataContext)
public boolean isMaxRowsSupported()
IQueryRewriter
isMaxRowsSupported
in interface IQueryRewriter
isMaxRowsSupported
in class OffsetFetchQueryRewriter
public boolean isSchemaIncludedInColumnPaths()
isSchemaIncludedInColumnPaths
in class AbstractQueryRewriter
protected String rewriteSelectClause(Query query, SelectClause selectClause)
rewriteSelectClause
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.