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 booleanReturns 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.booleanReturns if the RDBMS-specific SQL type has a scale attribute.booleanReturns 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:
getAutoIncrementin SchnittstellePlatform- Setzt außer Kraft:
getAutoIncrementin KlassePlatformDefaultImpl- Gibt zurück:
- The RDBMS-specific SQL fragment for autoincrement.
- Siehe auch:
-
escapeBackslashes
protected boolean escapeBackslashes()Beschreibung aus Klasse kopiert:PlatformDefaultImplReturns whether backslashes must be escaped in string literals.- Setzt außer Kraft:
escapeBackslashesin 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:
getSizeSuffixin SchnittstellePlatform- Setzt außer Kraft:
getSizeSuffixin 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:
getDateStringin SchnittstellePlatform- Setzt außer Kraft:
getDateStringin 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:
getTimeStringin SchnittstellePlatform- Setzt außer Kraft:
getTimeStringin 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:
getTimestampStringin SchnittstellePlatform- Setzt außer Kraft:
getTimestampStringin KlassePlatformDefaultImpl- Parameter:
date- the date to format.- Gibt zurück:
- the timestamp string, inclusive string escaping.
-
hasSize
Beschreibung aus Schnittstelle kopiert:PlatformReturns if the RDBMS-specific SQL type has a size attribute.- Angegeben von:
hasSizein SchnittstellePlatform- Setzt außer Kraft:
hasSizein KlassePlatformDefaultImpl- Parameter:
sqlType- the SQL type- Gibt zurück:
- true if the type has a size attribute
- Siehe auch:
-
hasScale
Beschreibung aus Schnittstelle kopiert:PlatformReturns if the RDBMS-specific SQL type has a scale attribute.- Angegeben von:
hasScalein SchnittstellePlatform- Setzt außer Kraft:
hasScalein KlassePlatformDefaultImpl- Parameter:
sqlType- the SQL type- Gibt zurück:
- true if the type has a scale attribute
- Siehe auch:
-