public class SybaseASEDialect extends DefaultDialect
| Constructor and Description |
|---|
SybaseASEDialect() |
| Modifier and Type | Method and Description |
|---|---|
Date |
convertToDate(Object value) |
String |
getColumnCastSQL(Column column) |
String |
getColumnTypeSQL(Column column) |
String |
getConcatFunctionSQL(Column[] columns,
String begin,
String end,
String separator) |
String |
getDateParameterSQL(Date param) |
String |
getDatePartFunctionSQL(String part,
Column column) |
String |
getOffsetLimitSQL(Select select) |
String |
getSelectStatement(Select select)
Sybase ASE pagination queries are resolved as follows:
1. offset <= 0 limit > 0
SELECT TOP limit * FROM "EXPENSE_REPORTS" ORDER BY DEPARTMENT ASC
2. offset > 0 limit > 0
SELECT TOP limit+offset * FROM "EXPENSE_REPORTS" ORDER BY DEPARTMENT ASC
3. offset > 0 limit <= 0
SELECT * FROM "EXPENSE_REPORTS" ORDER BY DEPARTMENT ASC
Case #2 and #3 requires a further post-prorcessing of the query results in order to apply offset.
|
_getLogicalExprConditionSQL, allowAliasInStatements, areEquals, convertToDouble, convertToString, getAliasForColumnSQL, getAliasForStatementSQL, getAliasStatement, getAndExprConditionSQL, getBetweenConditionSQL, getColumnFunctionSQL, getColumnNameQuotedSQL, getColumnNameSQL, getColumnSQL, getConcatFunctionSQL, getConditionSQL, getCoreConditionSQL, getCountQuerySQL, 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, getSQL, getStringParameterSQL, getTableNameSQL, getTableSQL, getWhereSQL, getWhereSQL, getWhereStatement, getWhereStatement, invokeMethod, toCharpublic String getColumnTypeSQL(Column column)
getColumnTypeSQL in interface DialectgetColumnTypeSQL in class DefaultDialectpublic Date convertToDate(Object value)
convertToDate in interface DialectconvertToDate in class DefaultDialectpublic String getDateParameterSQL(Date param)
getDateParameterSQL in interface DialectgetDateParameterSQL in class DefaultDialectpublic String getColumnCastSQL(Column column)
getColumnCastSQL in class DefaultDialectpublic String getDatePartFunctionSQL(String part, Column column)
getDatePartFunctionSQL in interface DialectgetDatePartFunctionSQL in class DefaultDialectpublic String getConcatFunctionSQL(Column[] columns, String begin, String end, String separator)
getConcatFunctionSQL in class DefaultDialectpublic String getSelectStatement(Select select)
SELECT TOP limit * FROM "EXPENSE_REPORTS" ORDER BY DEPARTMENT ASC
SELECT TOP limit+offset * FROM "EXPENSE_REPORTS" ORDER BY DEPARTMENT ASC
SELECT * FROM "EXPENSE_REPORTS" ORDER BY DEPARTMENT ASC
getSelectStatement in interface DialectgetSelectStatement in class DefaultDialectpublic String getOffsetLimitSQL(Select select)
getOffsetLimitSQL in interface DialectgetOffsetLimitSQL in class DefaultDialectCopyright © 2017–2019 JBoss by Red Hat. All rights reserved.