public interface Platform
| Modifier and Type | Method and Description | 
|---|---|
| boolean | createNotNullBeforeAutoincrement()Returns whether the "not null part" of the definition of a column
 should be generated before the "autoincrement part" in a "create table"
 statement. | 
| String | getAutoIncrement() | 
| String | getDateString(Date date)Formats the given date as date string which is parseable by the database. | 
| String | getNullString(boolean notNull) | 
| String | getSizeSuffix(String sqlType)Returns a possible SQL suffix for column definitions of certain
  SQL Types, e.g. | 
| SqlType | getSqlTypeForSchemaType(SchemaType schemaType)Returns the db specific SQL type for a Torque type. | 
| String | getTimestampString(Date date)Formats the given date as timestamp string which is parseable
 by the database. | 
| String | getTimeString(Date date)Formats the given date as time string which is parseable by the database. | 
| boolean | hasScale(String sqlType)Returns if the RDBMS-specific SQL type has a scale attribute. | 
| boolean | hasSize(String sqlType)Returns if the RDBMS-specific SQL type has a size attribute. | 
| boolean | hasUniqueConstraintSize()Returns whether the database has schema support unique constraint
 for columns with size | 
| String | quoteAndEscape(String value)Quotes and escapes a string such that it can be used
 as literal String value in SQL. | 
| boolean | usesStandaloneSchema()Returns whether the database has schema support where a schema
 is not tied to a user (oracle) or database (mysql), but can be created
 separately. | 
SqlType getSqlTypeForSchemaType(SchemaType schemaType)
schemaType - the Torque type, not null.String getNullString(boolean notNull)
notNull - flag for not nullNULL
 or NOT NULL.String getAutoIncrement()
boolean hasSize(String sqlType)
sqlType - the SQL typeboolean hasScale(String sqlType)
sqlType - the SQL typeString getSizeSuffix(String sqlType)
sqlType - the SQL type to determine the suffix for.boolean createNotNullBeforeAutoincrement()
String quoteAndEscape(String value)
value - The string to escape, or null.String getDateString(Date date)
date - the date to format.String getTimeString(Date date)
date - the date to format.String getTimestampString(Date date)
date - the date to format.boolean usesStandaloneSchema()
boolean hasUniqueConstraintSize()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.