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, rewriteQuerybeforeRewrite, escapeQuotes, isAggregateFunctionSupported, isPrimaryKeySupported, isScalarFunctionSupported, needsQuoting, rewriteFilterItemWithOperandLiteral, rewriteTimestampgetColumnType, getDataContext, getResultSetValue, isSupportedVersion, isTransactional, rewriteColumnTypeInternal, rewriteFromClause, rewriteFromItem, rewriteFromItem, rewriteGroupByClause, rewriteGroupByItem, rewriteHavingClause, rewriteOrderByClause, rewriteOrderByItem, rewriteSelectItem, rewriteWhereClause, setStatementParameter, toTime, toTimestamppublic static final int FIRST_FETCH_SUPPORTING_VERSION
public SQLServerQueryRewriter(JdbcDataContext dataContext)
public boolean isMaxRowsSupported()
IQueryRewriterisMaxRowsSupported in interface IQueryRewriterisMaxRowsSupported in class OffsetFetchQueryRewriterpublic boolean isSchemaIncludedInColumnPaths()
isSchemaIncludedInColumnPaths in class AbstractQueryRewriterprotected String rewriteSelectClause(Query query, SelectClause selectClause)
rewriteSelectClause in class AbstractQueryRewriterpublic 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 String rewriteFilterItem(FilterItem item)
rewriteFilterItem in interface IQueryRewriterrewriteFilterItem in class DefaultQueryRewriterCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.