public class Mssql2008Dialect extends StandardDialect
| Modifier and Type | Class and Description |
|---|---|
static class |
Mssql2008Dialect.Mssql2008CriteriaBuilder |
static class |
Mssql2008Dialect.Mssql2008ExpressionFunctions |
static class |
Mssql2008Dialect.Mssql2008JdbcMappingVisitor |
static class |
Mssql2008Dialect.Mssql2008ScriptBlockContext |
static class |
Mssql2008Dialect.Mssql2008SqlLogFormattingVisitor |
StandardDialect.StandardCriteriaBuilder, StandardDialect.StandardExpressionFunctions, StandardDialect.StandardJdbcMappingVisitor, StandardDialect.StandardScriptBlockContext, StandardDialect.StandardSqlLogFormattingVisitor| Modifier and Type | Field and Description |
|---|---|
protected static char |
CLOSE_QUOTE
the quotation mark of the end
|
protected static char |
OPEN_QUOTE
the quotation mark of the start
|
protected static int |
UNIQUE_CONSTRAINT_VIOLATION_ERROR_CODE
the error code that represents unique violation
|
expressionFunctions, jdbcMappingVisitor, sqlLogFormattingVisitor, UNIQUE_CONSTRAINT_VIOLATION_STATE_CODES| Constructor and Description |
|---|
Mssql2008Dialect() |
Mssql2008Dialect(ExpressionFunctions expressionFunctions) |
Mssql2008Dialect(JdbcMappingVisitor jdbcMappingVisitor) |
Mssql2008Dialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor) |
Mssql2008Dialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor,
ExpressionFunctions expressionFunctions) |
Mssql2008Dialect(SqlLogFormattingVisitor sqlLogFormattingVisitor) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
applyQuote(java.lang.String name)
Enclose the name with quotation marks.
|
ScriptBlockContext |
createScriptBlockContext()
Creates the context object to process an SQL block in a script.
|
CriteriaBuilder |
getCriteriaBuilder() |
java.lang.String |
getName()
The dialect name.
|
java.lang.String |
getScriptBlockDelimiter()
Return the delimiter that is used as the end of an SQL block in a script.
|
boolean |
isUniqueConstraintViolated(java.sql.SQLException sqlException)
Whether the
sqlException represents an unique violation. |
boolean |
supportsAliasInDeleteClause()
Whether this object supports alias reference in DELETE clause as follows:
|
boolean |
supportsAliasInUpdateClause()
Whether this object supports alias reference in UPDATE clause as follows:
|
boolean |
supportsAutoGeneratedKeys()
Whether this object supports
Statement.getGeneratedKeys(). |
boolean |
supportsIdentity()
Whether this object supports the IDENTITY column.
|
boolean |
supportsSelectForUpdate(SelectForUpdateType type,
boolean withTargets)
Whether this object supports pessimistic locking.
|
protected SqlNode |
toForUpdateSqlNode(SqlNode sqlNode,
SelectForUpdateType forUpdateType,
int waitSeconds,
java.lang.String... aliases) |
protected SqlNode |
toPagingSqlNode(SqlNode sqlNode,
long offset,
long limit) |
getAutoGeneratedKeysType, getCauseSQLException, getErrorCode, getExpressionFunctions, getIdentityReservationSql, getIdentitySelectSql, getJdbcMappingVisitor, getResultSetType, getRootCause, getSequenceNextValSql, getSqlLogFormattingVisitor, getSQLState, getUpsertAssembler, includesIdentityColumn, removeQuote, supportsBatchUpdateResults, supportsIdentityReservation, supportsResultSetReturningAsOutParameter, supportsSequence, toCountCalculatingSqlNode, toCountGettingSqlNode, transformSelectSqlNode, transformSelectSqlNodeForGettingCountclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsBatchExecutionReturningGeneratedValues, supportsModOperatorprotected static final int UNIQUE_CONSTRAINT_VIOLATION_ERROR_CODE
protected static final char OPEN_QUOTE
protected static final char CLOSE_QUOTE
public Mssql2008Dialect()
public Mssql2008Dialect(JdbcMappingVisitor jdbcMappingVisitor)
public Mssql2008Dialect(SqlLogFormattingVisitor sqlLogFormattingVisitor)
public Mssql2008Dialect(ExpressionFunctions expressionFunctions)
public Mssql2008Dialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor)
public Mssql2008Dialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor, ExpressionFunctions expressionFunctions)
public java.lang.String getName()
DialectgetName in interface DialectgetName in class StandardDialectprotected SqlNode toForUpdateSqlNode(SqlNode sqlNode, SelectForUpdateType forUpdateType, int waitSeconds, java.lang.String... aliases)
toForUpdateSqlNode in class StandardDialectprotected SqlNode toPagingSqlNode(SqlNode sqlNode, long offset, long limit)
toPagingSqlNode in class StandardDialectpublic boolean isUniqueConstraintViolated(java.sql.SQLException sqlException)
DialectsqlException represents an unique violation.isUniqueConstraintViolated in interface DialectisUniqueConstraintViolated in class StandardDialectsqlException - the SQL exceptiontrue, if the sqlException represents an unique violationpublic boolean supportsIdentity()
DialectsupportsIdentity in interface DialectsupportsIdentity in class StandardDialecttrue, if this object supports itpublic boolean supportsSelectForUpdate(SelectForUpdateType type, boolean withTargets)
DialectsupportsSelectForUpdate in interface DialectsupportsSelectForUpdate in class StandardDialecttype - a kind of pessimistic lockingwithTargets - true if a lock target is specifiedtrue, if this object supports itpublic boolean supportsAutoGeneratedKeys()
DialectStatement.getGeneratedKeys().supportsAutoGeneratedKeys in interface DialectsupportsAutoGeneratedKeys in class StandardDialecttrue, if this object supports itpublic boolean supportsAliasInDeleteClause()
DialectDELETE t FROM employee t
true, if this object supports itpublic boolean supportsAliasInUpdateClause()
DialectUPDATE t SET t.age = 30 FROM employee t
true, if this object supports itpublic java.lang.String getScriptBlockDelimiter()
DialectgetScriptBlockDelimiter in interface DialectgetScriptBlockDelimiter in class StandardDialectpublic java.lang.String applyQuote(java.lang.String name)
DialectapplyQuote in interface DialectapplyQuote in class StandardDialectname - the name of a database object such as a table, a column, and so onpublic ScriptBlockContext createScriptBlockContext()
DialectcreateScriptBlockContext in interface DialectcreateScriptBlockContext in class StandardDialectpublic CriteriaBuilder getCriteriaBuilder()
getCriteriaBuilder in interface DialectgetCriteriaBuilder in class StandardDialect