public class H2Dialect extends KiWiDialect
VERSION
Constructor and Description |
---|
H2Dialect() |
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, isCursorSupported
public H2Dialect() throws DriverNotFoundException
DriverNotFoundException
public String getDriverClass()
getDriverClass
in class KiWiDialect
public boolean isBatchSupported()
KiWiDialect
isBatchSupported
in class KiWiDialect
public String getRegexp(String text, String pattern, String flags)
KiWiDialect
getRegexp
in class KiWiDialect
public boolean isRegexpSupported(String flags)
isRegexpSupported
in class KiWiDialect
flags
- public String getILike(String text, String pattern)
KiWiDialect
getILike
in class KiWiDialect
public String getGroupConcat(String value, String separator, boolean distinct)
getGroupConcat
in class KiWiDialect
value
- separator
- public String getDateTimeTZ(String alias)
getDateTimeTZ
in class KiWiDialect
alias
- public String getValidationQuery()
getValidationQuery
in class KiWiDialect
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.