Klasse PlatformHsqldbImpl
java.lang.Object
org.apache.torque.templates.platform.PlatformDefaultImpl
org.apache.torque.templates.platform.PlatformHsqldbImpl
- Alle implementierten Schnittstellen:
Platform
HSQLDB (formerly known as Hypersonic) Platform implementation.
- Version:
- $Id: PlatformHsqldbImpl.java 1917240 2024-04-21 13:22:54Z tv $
- Autor:
- Martin Poeschl
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanReturns whether the "not null part" of the definition of a column should be generated before the "autoincrement part" in a "create table" statement.protected booleanReturns whether backslashes must be escaped in string literals.getDateString(Date date) Formats the given date as date string which is parseable by the database.getTimeString(Date date) Formats the given date as time string which is parseable by the database.booleanReturns if the RDBMS-specific SQL type has a scale attribute.booleanCaveat, read HSQLDB e.g.booleanReturns whether the database has schema support where a schema is not tied to a user (oracle) or database (mysql), but can be created separately.Von Klasse geerbte Methoden org.apache.torque.templates.platform.PlatformDefaultImpl
formatDateTimeString, getNullString, getSizeSuffix, getSqlTypeForSchemaType, getTimestampString, hasUniqueConstraintSize, quoteAndEscape, setSchemaTypeToSqlTypeMapping
-
Konstruktordetails
-
PlatformHsqldbImpl
public PlatformHsqldbImpl()Default constructor.
-
-
Methodendetails
-
getAutoIncrement
- Angegeben von:
getAutoIncrementin SchnittstellePlatform- Setzt außer Kraft:
getAutoIncrementin KlassePlatformDefaultImpl- Gibt zurück:
- The RDBMS-specific SQL fragment for autoincrement.
- Siehe auch:
-
createNotNullBeforeAutoincrement
public 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.- Angegeben von:
createNotNullBeforeAutoincrementin SchnittstellePlatform- Setzt außer Kraft:
createNotNullBeforeAutoincrementin KlassePlatformDefaultImpl- Gibt zurück:
- false.
- Siehe auch:
-
escapeBackslashes
protected boolean escapeBackslashes()Beschreibung aus Klasse kopiert:PlatformDefaultImplReturns whether backslashes must be escaped in string literals.- Setzt außer Kraft:
escapeBackslashesin KlassePlatformDefaultImpl- Gibt zurück:
- true if backslashes bust be escaped, false otherwise.
-
getDateString
Formats the given date as date string which is parseable by the database.- Angegeben von:
getDateStringin SchnittstellePlatform- Setzt außer Kraft:
getDateStringin KlassePlatformDefaultImpl- Parameter:
date- the date to format.- Gibt zurück:
- the date string, inclusive string escaping.
-
getTimeString
Formats the given date as time string which is parseable by the database.- Angegeben von:
getTimeStringin SchnittstellePlatform- Setzt außer Kraft:
getTimeStringin KlassePlatformDefaultImpl- Parameter:
date- the date to format.- Gibt zurück:
- the time string, inclusive string escaping.
-
usesStandaloneSchema
public 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.- Angegeben von:
usesStandaloneSchemain SchnittstellePlatform- Setzt außer Kraft:
usesStandaloneSchemain KlassePlatformDefaultImpl- Gibt zurück:
- this implementation returns true.
-
hasSize
Caveat, read HSQLDB e.g. Do not use BINARY(L) unless you are storing keys such as UUID. This type pads short binary strings with zero bytes. BINARY without the length L means a single byte.- Angegeben von:
hasSizein SchnittstellePlatform- Setzt außer Kraft:
hasSizein KlassePlatformDefaultImpl- Parameter:
sqlType- the SQL type- Gibt zurück:
- true if the type has a size attribute
- Siehe auch:
-
hasScale
Beschreibung aus Schnittstelle kopiert:PlatformReturns if the RDBMS-specific SQL type has a scale attribute.- Angegeben von:
hasScalein SchnittstellePlatform- Setzt außer Kraft:
hasScalein KlassePlatformDefaultImpl- Parameter:
sqlType- the SQL type- Gibt zurück:
- true if the type has a scale attribute
- Siehe auch:
-