Class SybaseASEDialect
- java.lang.Object
-
- org.dashbuilder.dataprovider.sql.dialect.DefaultDialect
-
- org.dashbuilder.dataprovider.sql.dialect.SybaseASEDialect
-
- All Implemented Interfaces:
Dialect
public class SybaseASEDialect extends DefaultDialect
-
-
Constructor Summary
Constructors Constructor Description SybaseASEDialect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateconvertToDate(Object value)StringgetColumnCastSQL(Column column)StringgetColumnTypeSQL(Column column)StringgetConcatFunctionSQL(Column[] columns, String begin, String end, String separator)StringgetDateParameterSQL(Date param)StringgetDatePartFunctionSQL(String part, Column column)StringgetOffsetLimitSQL(Select select)StringgetSelectStatement(Select select)Sybase ASE pagination queries are resolved as follows: 1. offset <= 0 limit >= 0-
Methods inherited from class org.dashbuilder.dataprovider.sql.dialect.DefaultDialect
_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, toChar
-
-
-
-
Method Detail
-
getColumnTypeSQL
public String getColumnTypeSQL(Column column)
- Specified by:
getColumnTypeSQLin interfaceDialect- Overrides:
getColumnTypeSQLin classDefaultDialect
-
convertToDate
public Date convertToDate(Object value)
- Specified by:
convertToDatein interfaceDialect- Overrides:
convertToDatein classDefaultDialect
-
getDateParameterSQL
public String getDateParameterSQL(Date param)
- Specified by:
getDateParameterSQLin interfaceDialect- Overrides:
getDateParameterSQLin classDefaultDialect
-
getColumnCastSQL
public String getColumnCastSQL(Column column)
- Overrides:
getColumnCastSQLin classDefaultDialect
-
getDatePartFunctionSQL
public String getDatePartFunctionSQL(String part, Column column)
- Specified by:
getDatePartFunctionSQLin interfaceDialect- Overrides:
getDatePartFunctionSQLin classDefaultDialect
-
getConcatFunctionSQL
public String getConcatFunctionSQL(Column[] columns, String begin, String end, String separator)
- Overrides:
getConcatFunctionSQLin classDefaultDialect
-
getSelectStatement
public String getSelectStatement(Select select)
Sybase ASE pagination queries are resolved as follows:- 1. offset <= 0 limit >= 0
- 2. offset > 0 limit >= 0
- 3. offset > 0 limit < 0
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
- Specified by:
getSelectStatementin interfaceDialect- Overrides:
getSelectStatementin classDefaultDialect
-
getOffsetLimitSQL
public String getOffsetLimitSQL(Select select)
- Specified by:
getOffsetLimitSQLin interfaceDialect- Overrides:
getOffsetLimitSQLin classDefaultDialect
-
-