Klasse PlatformOracleImpl

java.lang.Object
org.apache.torque.templates.platform.PlatformDefaultImpl
org.apache.torque.templates.platform.PlatformOracleImpl
Alle implementierten Schnittstellen:
Platform

public class PlatformOracleImpl extends PlatformDefaultImpl
Oracle Platform implementation.
Version:
$Id: PlatformOracleImpl.java 1917240 2024-04-21 13:22:54Z tv $
Autor:
Martin Poeschl
  • Konstruktordetails

    • PlatformOracleImpl

      public PlatformOracleImpl()
      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:
    • 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.
    • getSizeSuffix

      public String getSizeSuffix(String sqlType)
      Returns a possible SQL suffix for column definitions of certain SQL Types, e.g. for Oracle VARCHAR2 columns, it typically makes sense to use 'x CHAR' instead of 'x' as size.
      Angegeben von:
      getSizeSuffix in Schnittstelle Platform
      Setzt außer Kraft:
      getSizeSuffix in Klasse PlatformDefaultImpl
      Parameter:
      sqlType - the SQL type to determine the suffix for.
      Gibt zurück:
      The size suffix, not null. This implementation always returns the empty string.
    • 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.
    • getTimestampString

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

      public boolean hasSize(String sqlType)
      Beschreibung aus Schnittstelle kopiert: Platform
      Returns if the RDBMS-specific SQL type has a size attribute.
      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:
    • 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: