public interface Dialect
| Modifier and Type | Method and Description |
|---|---|
void |
comment(StringBuilder buf,
String s)
Appends a single-line comment to a string builder.
|
String |
getDoubleTypeString()
Returns the SQL type string for integer values.
|
String |
getIntegerTypeString()
Returns the SQL type string for integer values.
|
int |
getMaximumColumnNameLength()
Returns the maximum length of a column name.
|
int |
getMaximumTableNameLength()
Returns the maximum length of a table name.
|
void |
quoteIdentifier(StringBuilder buf,
String... names)
Appends to a buffer one or more identifiers, quoted appropriately for
this Dialect.
|
String |
removeInvalidIdentifierCharacters(String str) |
boolean |
supportsPrecision(DatabaseMetaData meta,
String type)
Returns true if database column ddl supports precision , ie INT(10) vs.
|
void |
terminateCommand(StringBuilder buf)
Terminates a SQL command.
|
static final String NL
void quoteIdentifier(StringBuilder buf, String... names)
For example, in the SQL Server dialect,
quoteIdentifier(buf, "foo", "bar baz") generates
"[foo].[bar baz]".
buf - Buffernames - One of more identifersString getIntegerTypeString()
This value is assumed to the be type returned by the COUNT()
aggregate function.
Typically "INTEGER".
String getDoubleTypeString()
This value is assumed to the be type returned by the SUM()
and AVG() aggregate functions.
Typically "DOUBLE".
int getMaximumTableNameLength()
int getMaximumColumnNameLength()
void comment(StringBuilder buf, String s)
s - Stringbuf - String buildervoid terminateCommand(StringBuilder buf)
For most dialects, this appends ";{newline}" to buf.
buf - String builderboolean supportsPrecision(DatabaseMetaData meta, String type) throws SQLException
meta - database metadata objecttype - the type of the columnSQLExceptionCopyright © 2006–2016 Julian Hyde. All rights reserved.