public class MsSqlDialect extends GeneratorDialect
NOW| Constructor and Description |
|---|
MsSqlDialect() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addQuotedCharacter(StringBuilder result,
char c)
Adds a quoted character to the result string buffer.
|
String |
buildCurrentSequenceValue(String sequence,
int incrementSize,
boolean firstCall)
Builds the SQL expression that is used for referencing the current value of the given sequence.
|
String |
buildNextSequenceValue(String sequence,
int incrementSize)
Builds the SQL expression resp. statement that is used for creating the next value of the given sequence.
|
protected String |
convertTemporalValue(Date value)
Builds the SQL expression for a date / time / timestamp.
|
String |
convertTemporalValue(Date value,
javax.persistence.TemporalType type)
Converts a date to an appropriate SQL expression.
|
String |
createBlobExpression(byte[] blob)
Converts the given byte array to an SQL expression for the current database.
|
String |
getConcatOperator()
The operator used to concat two Strings.
|
boolean |
isEmulatingSequences()
Indicates that tables are used in place of sequences, if
GenerationType.SEQUENCE is defined for a
GeneratedValue. |
boolean |
isSettingIdentityAllowed()
Indicates if this dialect supports writing absolute values to an
GenerationType.IDENTITY column. |
adjustNextIdentityValue, adjustNextSequenceValue, convertBooleanValue, convertNumberValue, convertToDatabaseDate, createAddDateExpression, createHexBlobExpression, getAutoGenerationType, getEmptyValuesExpression, getLetter, getOptionalTable, isEmptyStringEqualToNull, isFastInTransaction, isIdentitySupported, isNextSequenceValueInInsertSupported, isSelectFromSameTableInInsertSupported, isSequenceInWhereSupported, isSequenceSupported, quoteString, truncateTableprotected void addQuotedCharacter(StringBuilder result, char c)
GeneratorDialectaddQuotedCharacter in class GeneratorDialectresult - the current result bufferc - the character to quotepublic String buildCurrentSequenceValue(String sequence, int incrementSize, boolean firstCall)
GeneratorDialectbuildCurrentSequenceValue in class GeneratorDialectsequence - the fully qualified name of the sequenceincrementSize - the expected incrementSize, as given in the schema - used by some dialects to ensure that exactly that
inrement is usedfirstCall - indicates that the sequence was not updated before in this session - we may need to use a different
approach to get the current valuepublic String buildNextSequenceValue(String sequence, int incrementSize)
GeneratorDialectGeneratorDialect.isNextSequenceValueInInsertSupported() this will return an expression or a statement.buildNextSequenceValue in class GeneratorDialectsequence - the fully qualified name of the sequenceincrementSize - the expected incrementSize, as given in the schema - used by some dialects to ensure that exactly that
inrement is usedprotected String convertTemporalValue(Date value)
GeneratorDialectconvertTemporalValue in class GeneratorDialectvalue - the date, already converted to one from javax.sql.*public String convertTemporalValue(Date value, javax.persistence.TemporalType type)
GeneratorDialectconvertTemporalValue in class GeneratorDialectvalue - the timestamp valuetype - the typepublic String createBlobExpression(byte[] blob)
GeneratorDialectcreateBlobExpression in class GeneratorDialectblob - the bytes to convertpublic String getConcatOperator()
GeneratorDialectgetConcatOperator in class GeneratorDialectnull
if this dialect does not have such an operatorpublic boolean isEmulatingSequences()
GeneratorDialectGenerationType.SEQUENCE is defined for a
GeneratedValue.isEmulatingSequences in class GeneratorDialecttrue if sequences are emulated with tables, false if sequences are supportedpublic boolean isSettingIdentityAllowed()
GeneratorDialectGenerationType.IDENTITY column.isSettingIdentityAllowed in class GeneratorDialecttrue if we can write fix values for identity columnsCopyright © 2022 fastnate.org. All rights reserved.