public class SQLServerQueryRewriter extends DefaultQueryRewriter
logger| 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) |
beforeRewrite, escapeQuotes, isAggregateFunctionSupported, isFirstRowSupported, isScalarFunctionSupported, rewriteFilterItemWithOperandLiteral, rewriteTimestampgetColumnType, getDataContext, isTransactional, rewriteColumnTypeInternal, rewriteFromClause, rewriteFromItem, rewriteFromItem, rewriteGroupByClause, rewriteGroupByItem, rewriteHavingClause, rewriteOrderByClause, rewriteOrderByItem, rewriteQuery, rewriteSelectItem, rewriteWhereClausepublic SQLServerQueryRewriter(JdbcDataContext dataContext)
public boolean isMaxRowsSupported()
IQueryRewriterisMaxRowsSupported in interface IQueryRewriterisMaxRowsSupported in class DefaultQueryRewriterpublic 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–2016 The Apache Software Foundation. All rights reserved.