public class SQLServerDialect extends DefaultDialect
| Constructor and Description |
|---|
SQLServerDialect() |
| Modifier and Type | Method and Description |
|---|---|
List<Column> |
fetchColumns(Select select) |
String |
getColumnTypeSQL(Column column) |
String |
getConcatFunctionSQL(Column[] columns) |
String |
getCountQuerySQL(Select select) |
String |
getDateParameterSQL(Date param) |
String |
getDatePartFunctionSQL(String part,
Column column) |
String |
getOffsetLimitSQL(Select select) |
String |
getSelectStatement(Select select) |
String |
getSQL(Select select)
Since SQL Server 2012 pagination queries are resolved as follows:
1. offset <= 0 limit > 0
SELECT TOP limit * FROM "EXPENSE_REPORTS"
2. offset > 0 limit > 0
SELECT * FROM "EXPENSE_REPORTS" ORDER BY DEPARTMENT OFFSET offset ROWS FETCH NEXT limit ROWS ONLY
This second case requires a mandatory order by clause.
|
_getLogicalExprConditionSQL, allowAliasInStatements, areEquals, convertToDate, convertToDouble, convertToString, getAliasForColumnSQL, getAliasForStatementSQL, getAliasStatement, getAndExprConditionSQL, getBetweenConditionSQL, getColumnCastSQL, getColumnFunctionSQL, getColumnNameQuotedSQL, getColumnNameSQL, getColumnSQL, getConcatFunctionSQL, getConditionSQL, getCoreConditionSQL, getDeleteStatement, getDynamicDateColumnSQL, getExcludedColumns, getFixedDateColumnSQL, getFromSQL, getFromStatement, getFunctionColumnSQL, getGreaterOrEqualsConditionSQL, getGreaterThanConditionSQL, getGroupBySQL, getGroupByStatement, getInConditionSQL, getInsertStatement, getIsEqualsToConditionSQL, getIsNullConditionSQL, getLikeToConditionSQL, getLogicalConditionSQL, getLowerFunctionSQL, getLowerOrEqualsConditionSQL, getLowerThanConditionSQL, getNotEqualsToConditionSQL, getNotExprConditionSQL, getNotInConditionSQL, getNotNullConditionSQL, getNumberParameterSQL, getOrderBySQL, getOrderByStatement, getOrExprConditionSQL, getParameterSQL, getSchemaNameSQL, getSelectSQL, getSimpleColumnSQL, getSortColumnSQL, getSortOrderSQL, getSQL, getSQL, getSQL, getStringParameterSQL, getTableNameSQL, getTableSQL, getWhereSQL, getWhereSQL, getWhereStatement, getWhereStatement, invokeMethod, toCharpublic String getColumnTypeSQL(Column column)
getColumnTypeSQL in interface DialectgetColumnTypeSQL in class DefaultDialectpublic String getConcatFunctionSQL(Column[] columns)
getConcatFunctionSQL in interface DialectgetConcatFunctionSQL in class DefaultDialectpublic String getDatePartFunctionSQL(String part, Column column)
getDatePartFunctionSQL in interface DialectgetDatePartFunctionSQL in class DefaultDialectpublic String getDateParameterSQL(Date param)
getDateParameterSQL in interface DialectgetDateParameterSQL in class DefaultDialectpublic String getCountQuerySQL(Select select)
getCountQuerySQL in interface DialectgetCountQuerySQL in class DefaultDialectpublic String getSQL(Select select)
SELECT TOP limit * FROM "EXPENSE_REPORTS"
SELECT * FROM "EXPENSE_REPORTS" ORDER BY DEPARTMENT OFFSET offset ROWS FETCH NEXT limit ROWS ONLY
This second case requires a mandatory order by clause.
getSQL in interface DialectgetSQL in class DefaultDialectpublic String getSelectStatement(Select select)
getSelectStatement in interface DialectgetSelectStatement in class DefaultDialectpublic String getOffsetLimitSQL(Select select)
getOffsetLimitSQL in interface DialectgetOffsetLimitSQL in class DefaultDialectCopyright © 2017–2021 JBoss by Red Hat. All rights reserved.