Package org.apache.torque.templates.platform

# Klasse PlatformHsqldbImpl

java.lang.Object
org.apache.torque.templates.platform.PlatformDefaultImpl
org.apache.torque.templates.platform.PlatformHsqldbImpl

Alle implementierten Schnittstellen:
  `Platform`

public class PlatformHsqldbImpl extends PlatformDefaultImpl
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
  Konstruktor
  Beschreibung
  `PlatformHsqldbImpl()`
  Default constructor.

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `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.

  ### Von Klasse geerbte Methoden org.apache.torque.templates.platform.PlatformDefaultImpl

  `formatDateTimeString, getNullString, getSizeSuffix, getSqlTypeForSchemaType, getTimestampString, hasUniqueConstraintSize, quoteAndEscape, setSchemaTypeToSqlTypeMapping`

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Konstruktordetails

  - ### PlatformHsqldbImpl

    public PlatformHsqldbImpl()
    Default constructor.

- ## Methodendetails

  - ### getAutoIncrement

    public String getAutoIncrement()
    Angegeben von:
      `getAutoIncrement` in Schnittstelle `Platform`
    Setzt außer Kraft:
      `getAutoIncrement` in Klasse `PlatformDefaultImpl`
    Gibt zurück:
      The RDBMS-specific SQL fragment for autoincrement.
    Siehe auch:
      - `Platform.getAutoIncrement()`

  - ### 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:
      `createNotNullBeforeAutoincrement` in Schnittstelle `Platform`
    Setzt außer Kraft:
      `createNotNullBeforeAutoincrement` in Klasse `PlatformDefaultImpl`
    Gibt zurück:
      false.
    Siehe auch:
      - `Platform.createNotNullBeforeAutoincrement()`

  - ### escapeBackslashes

    protected boolean escapeBackslashes()
    Beschreibung aus Klasse kopiert: `PlatformDefaultImpl`
    Returns whether backslashes must be escaped in string literals.
    Setzt außer Kraft:
      `escapeBackslashes` in Klasse `PlatformDefaultImpl`
    Gibt zurück:
      true if backslashes bust be escaped, false otherwise.

  - ### getDateString

    public String getDateString(Date date)
    Formats the given date as date string which is parseable by the database.
    Angegeben von:
      `getDateString` in Schnittstelle `Platform`
    Setzt außer Kraft:
      `getDateString` in Klasse `PlatformDefaultImpl`
    Parameter:
      `date` - the date to format.
    Gibt zurück:
      the date string, inclusive string escaping.

  - ### getTimeString

    public String getTimeString(Date date)
    Formats the given date as time string which is parseable by the database.
    Angegeben von:
      `getTimeString` in Schnittstelle `Platform`
    Setzt außer Kraft:
      `getTimeString` in Klasse `PlatformDefaultImpl`
    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:
      `usesStandaloneSchema` in Schnittstelle `Platform`
    Setzt außer Kraft:
      `usesStandaloneSchema` in Klasse `PlatformDefaultImpl`
    Gibt zurück:
      this implementation returns true.

  - ### hasSize

    public boolean hasSize(String sqlType)
    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:
      `hasSize` in Schnittstelle `Platform`
    Setzt außer Kraft:
      `hasSize` in Klasse `PlatformDefaultImpl`
    Parameter:
      `sqlType` - the SQL type
    Gibt zurück:
      true if the type has a size attribute
    Siehe auch:
      - `TODO collect info for all platforms`

  - ### hasScale

    public boolean hasScale(String sqlType)
    Beschreibung aus Schnittstelle kopiert: `Platform`
    Returns if the RDBMS-specific SQL type has a scale attribute.
    Angegeben von:
      `hasScale` in Schnittstelle `Platform`
    Setzt außer Kraft:
      `hasScale` in Klasse `PlatformDefaultImpl`
    Parameter:
      `sqlType` - the SQL type
    Gibt zurück:
      true if the type has a scale attribute
    Siehe auch:
      - `TODO collect info for all platforms`