public class MySQLDialect extends KiWiDialect
jdbc:mysql://localhost:3306/kiwitest?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
Author: Sebastian SchaffertVERSION| Constructor and Description |
|---|
MySQLDialect() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDateTimeTZ(String alias)
Return the SQL timezone value for a KiWiDateLiteral, corrected by the timezone offset.
|
String |
getDriverClass()
Return the name of the driver class (used for properly initialising JDBC connections)
|
String |
getGroupConcat(String value,
String separator,
boolean distinct)
Return the name of the aggregate function for group concatenation (string_agg in postgres, GROUP_CONCAT in MySQL)
|
String |
getILike(String text,
String pattern)
Return the database specific case insensitive like comparison, e.g.
|
String |
getRegexp(String text,
String pattern,
String flags)
Return the database specific operator for matching a text against a regular expression.
|
String |
getValidationQuery()
Get the query string that can be used for validating that a JDBC connection to this database is still valid.
|
boolean |
isBatchSupported()
Return true if batched commits are supported by this dialect.
|
boolean |
isRegexpSupported(String flags)
Return true in case the SPARQL RE flags contained in the given string are supported.
|
getCreateScript, getDropScript, getMigrationScript, getScript, getStatement, getStatementIdentifiers, getVersion, hasStatement, isArraySupported, isCursorSupportedpublic MySQLDialect()
throws DriverNotFoundException
DriverNotFoundExceptionpublic String getDriverClass()
getDriverClass in class KiWiDialectpublic boolean isBatchSupported()
KiWiDialectisBatchSupported in class KiWiDialectpublic String getRegexp(String text, String pattern, String flags)
KiWiDialectgetRegexp in class KiWiDialectpublic boolean isRegexpSupported(String flags)
isRegexpSupported in class KiWiDialectflags - public String getILike(String text, String pattern)
KiWiDialectgetILike in class KiWiDialectpublic String getGroupConcat(String value, String separator, boolean distinct)
getGroupConcat in class KiWiDialectvalue - separator - public String getDateTimeTZ(String alias)
getDateTimeTZ in class KiWiDialectalias - public String getValidationQuery()
getValidationQuery in class KiWiDialectCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.