Klasse PlatformMysqlImpl
java.lang.Object
org.apache.torque.templates.platform.PlatformDefaultImpl
org.apache.torque.templates.platform.PlatformMysqlImpl
- Alle implementierten Schnittstellen:
Platform
MySql Platform implementation.
- Version:
- $Id: PlatformMysqlImpl.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.getTimestampString
(Date date) Formats the given date as timestamp string which is parseable by the database.boolean
precison in time formats is more like a scale, which is the number of digits to the right of the decimal point in a number.boolean
Returns if the RDBMS-specific SQL type has a size attribute.boolean
Returns whether the database has schema support unique constraint for columns with sizeVon Klasse geerbte Methoden org.apache.torque.templates.platform.PlatformDefaultImpl
createNotNullBeforeAutoincrement, formatDateTimeString, getNullString, getSizeSuffix, getSqlTypeForSchemaType, getTimeString, quoteAndEscape, setSchemaTypeToSqlTypeMapping, usesStandaloneSchema
-
Konstruktordetails
-
PlatformMysqlImpl
public PlatformMysqlImpl()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:
-
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
precison in time formats is more like a scale, which is the number of digits to the right of the decimal point in a number.- 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:
-
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.
-
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.
-
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.
-
hasUniqueConstraintSize
public boolean hasUniqueConstraintSize()Returns whether the database has schema support unique constraint for columns with size- Angegeben von:
hasUniqueConstraintSize
in SchnittstellePlatform
- Setzt außer Kraft:
hasUniqueConstraintSize
in KlassePlatformDefaultImpl
- Gibt zurück:
- true if unique column constraint has size
-