|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fuberlin.wiwiss.d2rq.sql.vendor.SQL92
de.fuberlin.wiwiss.d2rq.sql.vendor.MySQL
public class MySQL
This syntax class implements MySQL-compatible SQL syntax.
Nested Class Summary | |
---|---|
static class |
MySQL.MySQLCompatibilityBitDataType
|
static class |
MySQL.MySQLCompatibilityDateDataType
|
static class |
MySQL.MySQLCompatibilityTimeDataType
|
static class |
MySQL.MySQLCompatibilityTimestampDataType
|
Field Summary |
---|
Fields inherited from interface de.fuberlin.wiwiss.d2rq.sql.vendor.Vendor |
---|
HSQLDB, InterbaseOrFirebird, MSAccess, MySQL, Oracle, PostgreSQL, SQL92, SQLServer |
Constructor Summary | |
---|---|
MySQL()
|
Method Summary | |
---|---|
String |
getConcatenationExpression(String[] sqlFragments)
Concatenation of a and b is
"a || b " in standard SQL, but CONCAT(a, b)
in MySQL. |
DataType |
getDataType(int jdbcType,
String name,
int size)
Returns a DataType corresponding to a JDBC type. |
Properties |
getDefaultConnectionProperties()
Returns a set of default connection properties to be used when connecting to this database engine type |
String |
quoteIdentifier(String identifier)
Handles special characters in identifiers. |
String |
quoteStringLiteral(String s)
Handles special characters in strings. |
Methods inherited from class de.fuberlin.wiwiss.d2rq.sql.vendor.SQL92 |
---|
booleanExpressionToSimpleExpression, getRelationNameAliasExpression, getRowNumLimitAsExpression, getRowNumLimitAsQueryAppendage, getRowNumLimitAsSelectModifier, initializeConnection, isIgnoredTable, quoteAttribute, quoteBinaryLiteral, quoteDateLiteral, quoteRelationName, quoteTimeLiteral, quoteTimestampLiteral |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MySQL()
Method Detail |
---|
public String getConcatenationExpression(String[] sqlFragments)
Vendor
a
and b
is
"a || b
" in standard SQL, but CONCAT(a, b)
in MySQL.
getConcatenationExpression
in interface Vendor
getConcatenationExpression
in class SQL92
sqlFragments
- An array of SQL expressions to be concatenated
public String quoteIdentifier(String identifier)
Vendor
quoteIdentifier
in interface Vendor
quoteIdentifier
in class SQL92
identifier
- An identifier, such as a table or column name
public String quoteStringLiteral(String s)
Vendor
quoteStringLiteral
in interface Vendor
quoteStringLiteral
in class SQL92
s
- An arbitrary character string
public Properties getDefaultConnectionProperties()
Vendor
getDefaultConnectionProperties
in interface Vendor
getDefaultConnectionProperties
in class SQL92
public DataType getDataType(int jdbcType, String name, int size)
Vendor
DataType
corresponding to a JDBC type. This may be
an unsupported datatype; in this case, its DataType.isUnsupported()
method will return true. null
will be returned if the vendor
code doesn't handle this datatype at all; that should generally be
considered a bug.
getDataType
in interface Vendor
getDataType
in class SQL92
jdbcType
- A java.sql.Types
constantname
- The type name, as reported by java.sql
metadata methods, normalized to uppercasesize
- Character size of the type, or 0 if not applicable
null
if the vendor code is broken
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |