Package org.javalite.activejdbc.dialects
Class MSSQLDialect
java.lang.Object
org.javalite.activejdbc.dialects.DefaultDialect
org.javalite.activejdbc.dialects.MSSQLDialect
- All Implemented Interfaces:
Serializable
,Dialect
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.javalite.activejdbc.dialects.DefaultDialect
GROUP_BY_PATTERN, ORDER_BY_PATTERN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendDate(StringBuilder query, Date value)
protected void
appendTime(StringBuilder query, Time value)
protected void
appendTimestamp(StringBuilder query, Timestamp value)
formSelect(String tableName, String[] columns, String subQuery, List<String> orderBys, long limit, long offset)
Generates adds limit, offset and order bys to a sub-queryoverrideDriverTypeConversion(MetaModel mm, String attributeName, Object value)
TDS converts a number of important data types to String.Methods inherited from class org.javalite.activejdbc.dialects.DefaultDialect
appendEmptyRow, appendOrderBy, appendQuestions, appendSelect, appendSubQuery, appendValue, deleteManyToManyAssociation, insert, insertManyToManyAssociation, insertParametrized, replace, selectCount, selectCount, selectExists, selectManyToManyAssociation, selectStar, selectStar, selectStarParametrized, toArray, update
-
Field Details
-
selectPattern
-
-
Constructor Details
-
MSSQLDialect
public MSSQLDialect()
-
-
Method Details
-
formSelect
public 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- Specified by:
formSelect
in interfaceDialect
- Overrides:
formSelect
in classDefaultDialect
- Parameters:
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
-- Returns:
- query with
-
overrideDriverTypeConversion
TDS converts a number of important data types to String. This isn't what we want, nor helpful. Here, we change them back.- Specified by:
overrideDriverTypeConversion
in interfaceDialect
- Overrides:
overrideDriverTypeConversion
in classDefaultDialect
-
appendDate
- Overrides:
appendDate
in classDefaultDialect
-
appendTime
- Overrides:
appendTime
in classDefaultDialect
-
appendTimestamp
- Overrides:
appendTimestamp
in classDefaultDialect
-