public class MySqlDialect extends GeneratorDialect
NOW| Constructor and Description |
|---|
MySqlDialect() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createAddDateExpression(String referenceDate,
long value,
String unit)
Creates an SQL expression to add a value to a date.
|
String |
createBlobExpression(byte[] blob)
Create MySQL specific binary expression.
|
String |
createSql(EntityStatement stmt)
Replace any subselect in an insert statement, if the same table is selected.
|
String |
getOptionalTable()
Returns the string to use when no table is required, e.g. for "SELECT 1, 2 FROM DUAL" this would return "FROM
DUAL".
|
protected boolean |
isEmulatingSequences()
Indicates that tables are used in place of sequences, if
GenerationType.SEQUENCE is defined for a
GeneratedValue. |
String |
quoteString(String value)
Create MySQL specific quoting of the string.
|
addQuotedCharacter, adjustNextIdentityValue, adjustNextSequenceValue, buildCurrentSequenceValue, buildNextSequenceValue, convertBooleanValue, convertTemporalValue, convertTemporalValue, createHexBlobExpression, getAutoGenerationType, getConcatOperator, getLetter, isEmptyStringEqualToNull, isIdentitySupported, isNextSequenceValueInInsertSupported, isSequenceInWhereSupported, isSequenceSupported, isSettingIdentityAllowedprotected String createAddDateExpression(String referenceDate, long value, String unit)
GeneratorDialectcreateAddDateExpression in class GeneratorDialectreferenceDate - the expression for the reference datevalue - the value to add to the dateunit - the unit of the valuepublic String createBlobExpression(byte[] blob)
createBlobExpression in class GeneratorDialectblob - the bytes to convertpublic String createSql(EntityStatement stmt)
createSql in class GeneratorDialectstmt - contains the table and all column valuespublic String getOptionalTable()
GeneratorDialectgetOptionalTable in class GeneratorDialectprotected boolean isEmulatingSequences()
GeneratorDialectGenerationType.SEQUENCE is defined for a
GeneratedValue.isEmulatingSequences in class GeneratorDialecttrue if sequences are emulated with tables, false if sequences are supportedpublic String quoteString(String value)
quoteString in class GeneratorDialectvalue - the value to quoteCopyright © 2017 fastnate.org. All rights reserved.