public class MSSQLDialect extends DefaultDialect
Modifier and Type | Field and Description |
---|---|
protected Pattern |
selectPattern |
GROUP_BY_PATTERN, ORDER_BY_PATTERN
Constructor and Description |
---|
MSSQLDialect() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendDate(StringBuilder query,
Date value) |
protected void |
appendTime(StringBuilder query,
Time value) |
protected void |
appendTimestamp(StringBuilder query,
Timestamp value) |
String |
formSelect(String tableName,
String[] columns,
String subQuery,
List<String> orderBys,
long limit,
long offset)
Generates adds limit, offset and order bys to a sub-query
|
Object |
overrideDriverTypeConversion(MetaModel mm,
String attributeName,
Object value)
TDS converts a number of important data types to String.
|
appendEmptyRow, appendOrderBy, appendQuestions, appendSelect, appendSubQuery, appendValue, deleteManyToManyAssociation, insert, insertManyToManyAssociation, insertParametrized, replace, selectCount, selectCount, selectExists, selectManyToManyAssociation, selectStar, selectStar, selectStarParametrized, update
protected final Pattern selectPattern
public String formSelect(String tableName, String[] columns, String subQuery, List<String> orderBys, long limit, long offset)
formSelect
in interface Dialect
formSelect
in class DefaultDialect
tableName
- name of table. If table name is null, then the subQuery parameter is considered to be a full query, and all that needs to be done is to
add limit, offset and order byssubQuery
- sub-query or a full querycolumns
- - not implemented in this dialogorderBys
- limit
- offset
- public Object overrideDriverTypeConversion(MetaModel mm, String attributeName, Object value)
overrideDriverTypeConversion
in interface Dialect
overrideDriverTypeConversion
in class DefaultDialect
protected void appendDate(StringBuilder query, Date value)
appendDate
in class DefaultDialect
protected void appendTime(StringBuilder query, Time value)
appendTime
in class DefaultDialect
protected void appendTimestamp(StringBuilder query, Timestamp value)
appendTimestamp
in class DefaultDialect
Copyright © 2020 JavaLite. All rights reserved.