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 PlatformDerbyImpl

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

All Implemented Interfaces:
  Platform

    public class PlatformDerbyImpl

extends PlatformDefaultImpl

Derby Platform implementation.

Version:
  $Id: PlatformDerbyImpl.java 1437738 2013-01-23 21:20:19Z tfischer $
Author:
  Johnny Macchione, Greg Monroe

Constructor Summary
`PlatformDerbyImpl()` Default constructor.

Method Summary
`protected boolean` | `escapeBackslashes()` Returns whether backslashes must be escaped in string literals.
`String` | `getAutoIncrement()`
`boolean` | `hasScale(String sqlType)` Returns if the RDBMS-specific SQL type has a scale attribute.
`boolean` | `hasSize(String sqlType)` Returns if the RDBMS-specific SQL type has a size attribute.

Methods inherited from class org.apache.torque.templates.platform.PlatformDefaultImpl
`createNotNullBeforeAutoincrement, getDateString, getNullString, getSizeSuffix, getSqlTypeForSchemaType, getTimestampString, getTimeString, quoteAndEscape, setSchemaTypeToSqlTypeMapping, usesStandaloneSchema`

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

Constructor Detail

### PlatformDerbyImpl

    public PlatformDerbyImpl()

  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(`

### hasScale

    public boolean hasScale(String sqlType)

  Description copied from interface: `Platform`
  Returns if the RDBMS-specific SQL type has a scale attribute.

  Specified by:
    `hasScale` in interface `Platform`
  Overrides:
    `hasScale` in class `PlatformDefaultImpl`
  Parameters:
    `sqlType` - the SQL type
  Returns:
    true if the type has a scale attribute
  See Also:
    `Platform.hasScale(String)`

### hasSize

    public boolean hasSize(String sqlType)

  Description copied from interface: `Platform`
  Returns if the RDBMS-specific SQL type has a size attribute.

  Specified by:
    `hasSize` in interface `Platform`
  Overrides:
    `hasSize` in class `PlatformDefaultImpl`
  Parameters:
    `sqlType` - the SQL type
  Returns:
    true if the type has a size attribute
  See Also:
    `Platform.hasSize(String)`

### 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.

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.