Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.torque.templates.platform
Class PlatformHsqldbImpl

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

All Implemented Interfaces:
  Platform

    public class PlatformHsqldbImpl

extends PlatformDefaultImpl

HSQLDB (formerly known as Hypersonic) Platform implementation.

Version:
  $Id: PlatformHsqldbImpl.java 1405649 2012-11-04 22:07:22Z tfischer $
Author:
  Martin Poeschl

Constructor Summary
`PlatformHsqldbImpl()` Default constructor.

Method Summary
`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` | `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.

Methods inherited from class org.apache.torque.templates.platform.PlatformDefaultImpl
`getNullString, getSizeSuffix, getSqlTypeForSchemaType, getTimestampString, hasScale, hasSize, quoteAndEscape, setSchemaTypeToSqlTypeMapping`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PlatformHsqldbImpl

    public PlatformHsqldbImpl()

  Default constructor.

Method Detail

### getAutoIncrement

    public String getAutoIncrement()

  Specified by:
    `getAutoIncrement` in interface `Platform`
  Overrides:
    `getAutoIncrement` in class `PlatformDefaultImpl`
  Returns:
    The RDBMS-specific SQL fragment for autoincrement.
  See Also:
    `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.

  Specified by:
    `createNotNullBeforeAutoincrement` in interface `Platform`
  Overrides:
    `createNotNullBeforeAutoincrement` in class `PlatformDefaultImpl`
  Returns:
    false.
  See Also:
    `Platform.createNotNullBeforeAutoincrement()`

### escapeBackslashes

    protected boolean escapeBackslashes()

  Description copied from class: `PlatformDefaultImpl`
  Returns whether backslashes must be escaped in string literals.

  Overrides:
    `escapeBackslashes` in class `PlatformDefaultImpl`
  Returns:
    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.

  Specified by:
    `getDateString` in interface `Platform`
  Overrides:
    `getDateString` in class `PlatformDefaultImpl`
  Parameters:
    `date` - the date to format.
  Returns:
    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.

  Specified by:
    `getTimeString` in interface `Platform`
  Overrides:
    `getTimeString` in class `PlatformDefaultImpl`
  Parameters:
    `date` - the date to format.
  Returns:
    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.

  Specified by:
    `usesStandaloneSchema` in interface `Platform`
  Overrides:
    `usesStandaloneSchema` in class `PlatformDefaultImpl`
  Returns:
    this implementation returns true.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2013 The Apache Software Foundation. All Rights Reserved.