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 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.getTimestampString(Date date) Formats the given date as timestamp string which is parseable by the database.booleanprecison in time formats is more like a scale, which is the number of digits to the right of the decimal point in a number.booleanReturns if the RDBMS-specific SQL type has a size attribute.booleanReturns 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:
getAutoIncrementin SchnittstellePlatform- Setzt außer Kraft:
getAutoIncrementin KlassePlatformDefaultImpl- Gibt zurück:
- The RDBMS-specific SQL fragment for autoincrement.
- Siehe auch:
-
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
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:
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:
-
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.
-
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.
-
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.
-
hasUniqueConstraintSize
public boolean hasUniqueConstraintSize()Returns whether the database has schema support unique constraint for columns with size- Angegeben von:
hasUniqueConstraintSizein SchnittstellePlatform- Setzt außer Kraft:
hasUniqueConstraintSizein KlassePlatformDefaultImpl- Gibt zurück:
- true if unique column constraint has size
-