Klasse PlatformOracleImpl
java.lang.Object
org.apache.torque.templates.platform.PlatformDefaultImpl
org.apache.torque.templates.platform.PlatformOracleImpl
- Alle implementierten Schnittstellen:
Platform
Oracle Platform implementation.
- Version:
- $Id: PlatformOracleImpl.java 1917240 2024-04-21 13:22:54Z tv $
- Autor:
- Martin Poeschl
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected boolean
Returns whether backslashes must be escaped in string literals.getDateString
(Date date) Formats the given date as date string which is parseable by the database.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.getTimestampString
(Date date) Formats the given date as timestamp string which is parseable by the database.getTimeString
(Date date) Formats the given date as time string which is parseable by the database.boolean
Returns if the RDBMS-specific SQL type has a scale attribute.boolean
Returns if the RDBMS-specific SQL type has a size attribute.Von Klasse geerbte Methoden org.apache.torque.templates.platform.PlatformDefaultImpl
createNotNullBeforeAutoincrement, formatDateTimeString, getNullString, getSqlTypeForSchemaType, hasUniqueConstraintSize, quoteAndEscape, setSchemaTypeToSqlTypeMapping, usesStandaloneSchema
-
Konstruktordetails
-
PlatformOracleImpl
public PlatformOracleImpl()Default constructor.
-
-
Methodendetails
-
getAutoIncrement
- Angegeben von:
getAutoIncrement
in SchnittstellePlatform
- Setzt außer Kraft:
getAutoIncrement
in KlassePlatformDefaultImpl
- 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 KlassePlatformDefaultImpl
- Gibt zurück:
- true if backslashes bust be escaped, false otherwise.
-
getSizeSuffix
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 SchnittstellePlatform
- Setzt außer Kraft:
getSizeSuffix
in KlassePlatformDefaultImpl
- 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
Formats the given date as date string which is parseable by the database.- Angegeben von:
getDateString
in SchnittstellePlatform
- Setzt außer Kraft:
getDateString
in 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:
getTimeString
in SchnittstellePlatform
- Setzt außer Kraft:
getTimeString
in KlassePlatformDefaultImpl
- Parameter:
date
- the date to format.- Gibt zurück:
- the time string, inclusive string escaping.
-
getTimestampString
Formats the given date as timestamp string which is parseable by the database.- Angegeben von:
getTimestampString
in SchnittstellePlatform
- Setzt außer Kraft:
getTimestampString
in KlassePlatformDefaultImpl
- Parameter:
date
- the date to format.- Gibt zurück:
- the timestamp string, inclusive string escaping.
-
hasSize
Beschreibung aus Schnittstelle kopiert:Platform
Returns if the RDBMS-specific SQL type has a size attribute.- Angegeben von:
hasSize
in SchnittstellePlatform
- Setzt außer Kraft:
hasSize
in KlassePlatformDefaultImpl
- Parameter:
sqlType
- the SQL type- Gibt zurück:
- true if the type has a size attribute
- Siehe auch:
-
hasScale
Beschreibung aus Schnittstelle kopiert:Platform
Returns if the RDBMS-specific SQL type has a scale attribute.- Angegeben von:
hasScale
in SchnittstellePlatform
- Setzt außer Kraft:
hasScale
in KlassePlatformDefaultImpl
- Parameter:
sqlType
- the SQL type- Gibt zurück:
- true if the type has a scale attribute
- Siehe auch:
-