|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Platform
Interface for RDBMS platform specific behaviour.
Method Summary | |
---|---|
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. |
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. |
Method Detail |
---|
SqlType getSqlTypeForSchemaType(SchemaType schemaType)
schemaType
- the Torque type, not null.
String getNullString(boolean notNull)
NULL
or NOT NULL
.String getAutoIncrement()
boolean hasSize(String sqlType)
sqlType
- the SQL type
boolean hasScale(String sqlType)
sqlType
- the SQL type
String 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |