public class SQLiteDialect extends Object implements SQLDialect
SQLDialect
.SQLDialect.LimitHandler
Constructor and Description |
---|
SQLiteDialect() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteStatementAliasSupported()
Get whether alias is supported in the DELETE clause.
|
boolean |
generatedKeyAlwaysReturned()
Retrieves whether a generated key will always be returned if the column name(s) or index(es) specified for the
auto generated key column(s) are valid and the statement succeeds.
|
Optional<SQLDialect.LimitHandler> |
getLimitHandler()
Get the
SQLDialect.LimitHandler |
void |
init(SQLDialectContext context)
Dialect initialization hook at parent datastore initialization.
|
Optional<SQLFunction> |
resolveFunction(com.holonplatform.core.query.QueryFunction<?,?> function)
Resolve given
function into a dialect-specific SQLFunction . |
boolean |
supportGetGeneratedKeyByName()
Retrieves whether auto-generated keys can be retrieved by name after a statement has been executed.
|
boolean |
supportsBinaryStreamParameter()
Get whether binary stream type parameters are supported.
|
boolean |
supportsGetGeneratedKeys()
Retrieves whether auto-generated keys can be retrieved after a statement has been executed.
|
boolean |
supportsLikeEscapeClause()
Retrieves whether this database supports specifying a
LIKE escape clause. |
boolean |
updateStatementAliasSupported()
Get whether alias is supported in the UPDATE clause.
|
boolean |
useOuterInJoins()
Get whether to use the
OUTER keyword in join serialization. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
db2, deleteStatementTargetRequired, derby, detect, getColumnName, getJavaType, getLockClause, getLockHint, getSqlType, getTableName, h2, HANA, hsqldb, informix, mariaDB, mySQL, oracle, postgreSQL, sqlite, sqlServer, supportsSqlType, translateException, updateStatementFromSupported, updateStatementSetAliasSupported
public void init(SQLDialectContext context) throws SQLException
SQLDialect
init
in interface SQLDialect
context
- Dialect contextSQLException
- An error occurred during dialect initializationpublic Optional<SQLFunction> resolveFunction(com.holonplatform.core.query.QueryFunction<?,?> function)
SQLDialect
function
into a dialect-specific SQLFunction
.resolveFunction
in interface SQLDialect
function
- The function to resolve (not null)public boolean updateStatementAliasSupported()
SQLDialect
updateStatementAliasSupported
in interface SQLDialect
true
if alias is supported in the UPDATE clausepublic boolean supportsBinaryStreamParameter()
SQLDialect
supportsBinaryStreamParameter
in interface SQLDialect
true
if binary stream type parameters are supportedpublic boolean supportsLikeEscapeClause()
SQLDialect
LIKE
escape clause.supportsLikeEscapeClause
in interface SQLDialect
true
if so; false
otherwisepublic boolean supportsGetGeneratedKeys()
SQLDialect
supportsGetGeneratedKeys
in interface SQLDialect
true
if auto-generated keys can be retrieved after a statement has executed;
false
otherwisepublic boolean generatedKeyAlwaysReturned()
SQLDialect
generatedKeyAlwaysReturned
in interface SQLDialect
true
if so; false
otherwisepublic boolean useOuterInJoins()
SQLDialect
OUTER
keyword in join serialization.useOuterInJoins
in interface SQLDialect
true
to use the OUTER
keyword in join serializationpublic boolean deleteStatementAliasSupported()
SQLDialect
deleteStatementAliasSupported
in interface SQLDialect
true
if alias is supported in the DELETE clausepublic boolean supportGetGeneratedKeyByName()
SQLDialect
supportGetGeneratedKeyByName
in interface SQLDialect
true
if auto-generated keys can be retrieved by name after a statement has executedpublic Optional<SQLDialect.LimitHandler> getLimitHandler()
SQLDialect
SQLDialect.LimitHandler
getLimitHandler
in interface SQLDialect
Copyright © 2019 The Holon Platform. All rights reserved.