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, updateprotected final Pattern selectPattern
public String formSelect(String tableName, String[] columns, String subQuery, List<String> orderBys, long limit, long offset)
formSelect in interface DialectformSelect in class DefaultDialecttableName - 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 DialectoverrideDriverTypeConversion in class DefaultDialectprotected void appendDate(StringBuilder query, Date value)
appendDate in class DefaultDialectprotected void appendTime(StringBuilder query, Time value)
appendTime in class DefaultDialectprotected void appendTimestamp(StringBuilder query, Timestamp value)
appendTimestamp in class DefaultDialectCopyright © 2022 JavaLite. All rights reserved.