public class PlatformMysqlImpl extends PlatformDefaultImpl
Constructor and Description |
---|
PlatformMysqlImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
escapeBackslashes()
Returns whether backslashes must be escaped in string literals.
|
String |
getAutoIncrement() |
String |
getDateString(Date date)
Formats the given date as date string which is parseable by the database.
|
String |
getTimestampString(Date date)
Formats the given date as timestamp string which is parseable
by the database.
|
boolean |
hasScale(String sqlType)
precison in time formats is more like a scale, which is the number of digits to the right of the decimal point in a number.
|
boolean |
hasSize(String sqlType)
Returns if the RDBMS-specific SQL type has a size attribute.
|
boolean |
hasUniqueConstraintSize()
Returns whether the database has schema support unique constraint
for columns with size
|
createNotNullBeforeAutoincrement, formatDateTimeString, getNullString, getSizeSuffix, getSqlTypeForSchemaType, getTimeString, quoteAndEscape, setSchemaTypeToSqlTypeMapping, usesStandaloneSchema
public String getAutoIncrement()
getAutoIncrement
in interface Platform
getAutoIncrement
in class PlatformDefaultImpl
Platform.getAutoIncrement()
public boolean hasSize(String sqlType)
Platform
hasSize
in interface Platform
hasSize
in class PlatformDefaultImpl
sqlType
- the SQL typePlatform.hasSize(String)
public boolean hasScale(String sqlType)
hasScale
in interface Platform
hasScale
in class PlatformDefaultImpl
sqlType
- the SQL typePlatform.hasScale(String)
protected boolean escapeBackslashes()
PlatformDefaultImpl
escapeBackslashes
in class PlatformDefaultImpl
public String getDateString(Date date)
getDateString
in interface Platform
getDateString
in class PlatformDefaultImpl
date
- the date to format.public String getTimestampString(Date date)
getTimestampString
in interface Platform
getTimestampString
in class PlatformDefaultImpl
date
- the date to format.public boolean hasUniqueConstraintSize()
hasUniqueConstraintSize
in interface Platform
hasUniqueConstraintSize
in class PlatformDefaultImpl
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.