Top Description Fields Constructors Methods
org.hibernate.dialect

public Class SQLServer2008Dialect

extends SQLServer2005Dialect
Class Inheritance
Known Direct Subclasses
org.hibernate.dialect.SQLServer2012Dialect
Imports
java.sql.Types, org.hibernate.NullPrecedence, org.hibernate.dialect.function.NoArgSQLFunction, org.hibernate.type.StandardBasicTypes

A dialect for Microsoft SQL Server 2008 with JDBC Driver 3.0 and above
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private static final int

Constructor Summary

AccessConstructor and Description
public
SQLServer2008Dialect()

Constructs a SQLServer2008Dialect

Method Summary

Modifier and TypeMethod and Description
public String
renderOrderByElement(String
The SQL order expression. In case of @OrderBy annotation user receives property placeholder (e.g. attribute name enclosed in '{' and '}' signs).
expression
,
String
Collation string in format collate IDENTIFIER, or null if expression has not been explicitly specified.
collation
,
String
Order direction. Possible values: asc, desc, or null if expression has not been explicitly specified.
order
,
NullPrecedence
Nulls precedence. Default value: NullPrecedence#NONE.
nulls
)

Overrides org.hibernate.dialect.Dialect.renderOrderByElement.

Renders an ordering fragment
public boolean
supportsValuesList()

Overrides org.hibernate.dialect.Dialect.supportsValuesList.

Does this dialect/database support VALUES list (e.g. VALUES (1), (2), (3) )
Inherited from org.hibernate.dialect.SQLServer2005Dialect:
appendLockHintbuildSQLExceptionConversionDelegategetDefaultLimitHandlersupportsNonQueryWithCTEsupportsNoWaitsupportsSkipLocked

Field Detail

NVARCHAR_MAX_LENGTHback to summary
private static final int NVARCHAR_MAX_LENGTH

Constructor Detail

SQLServer2008Dialectback to summary
public SQLServer2008Dialect()

Constructs a SQLServer2008Dialect

Method Detail

renderOrderByElementback to summary
public String renderOrderByElement(String expression, String collation, String order, NullPrecedence nulls)

Overrides org.hibernate.dialect.Dialect.renderOrderByElement.

Doc from org.hibernate.dialect.Dialect.renderOrderByElement.

Renders an ordering fragment

Parameters
expression:String

The SQL order expression. In case of @OrderBy annotation user receives property placeholder (e.g. attribute name enclosed in '{' and '}' signs).

collation:String

Collation string in format collate IDENTIFIER, or null if expression has not been explicitly specified.

order:String

Order direction. Possible values: asc, desc, or null if expression has not been explicitly specified.

nulls:NullPrecedence

Nulls precedence. Default value: NullPrecedence#NONE.

Returns:String

Renders single element of ORDER BY clause.

Annotations
@Override
supportsValuesListback to summary
public boolean supportsValuesList()

Overrides org.hibernate.dialect.Dialect.supportsValuesList.

Doc from org.hibernate.dialect.Dialect.supportsValuesList.

Does this dialect/database support VALUES list (e.g. VALUES (1), (2), (3) )

Returns:boolean

true if VALUES list are supported

Annotations
@Override