public class PlatformHsqldbImpl extends PlatformDefaultImpl
Constructor and Description |
---|
PlatformHsqldbImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
createNotNullBeforeAutoincrement()
Returns whether the "not null part" of the definition of a column
should be generated before the "autoincrement part" in a "create table"
statement.
|
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 |
getTimeString(Date date)
Formats the given date as time string which is parseable by the database.
|
boolean |
hasScale(String sqlType)
Returns if the RDBMS-specific SQL type has a scale attribute.
|
boolean |
hasSize(String sqlType)
Caveat, read HSQLDB e.g.
|
boolean |
usesStandaloneSchema()
Returns whether the database has schema support where a schema
is not tied to a user (oracle) or database (mysql), but can be created
separately.
|
formatDateTimeString, getNullString, getSizeSuffix, getSqlTypeForSchemaType, getTimestampString, hasUniqueConstraintSize, quoteAndEscape, setSchemaTypeToSqlTypeMapping
public String getAutoIncrement()
getAutoIncrement
in interface Platform
getAutoIncrement
in class PlatformDefaultImpl
Platform.getAutoIncrement()
public boolean createNotNullBeforeAutoincrement()
createNotNullBeforeAutoincrement
in interface Platform
createNotNullBeforeAutoincrement
in class PlatformDefaultImpl
Platform.createNotNullBeforeAutoincrement()
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 getTimeString(Date date)
getTimeString
in interface Platform
getTimeString
in class PlatformDefaultImpl
date
- the date to format.public boolean usesStandaloneSchema()
usesStandaloneSchema
in interface Platform
usesStandaloneSchema
in class PlatformDefaultImpl
public boolean hasSize(String sqlType)
hasSize
in interface Platform
hasSize
in class PlatformDefaultImpl
sqlType
- the SQL typeTODO collect info for all platforms
public boolean hasScale(String sqlType)
Platform
hasScale
in interface Platform
hasScale
in class PlatformDefaultImpl
sqlType
- the SQL typeTODO collect info for all platforms
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.