public class DerbyDialect extends Object implements SQLDialect
SQLDialect.SQLDialect.LimitHandler| Constructor and Description |
|---|
DerbyDialect() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getColumnName(String columnName)
Get the actual column name for given column name (for example, applying case transformations)
|
Optional<SQLDialect.LimitHandler> |
getLimitHandler()
Get the
SQLDialect.LimitHandler |
Optional<String> |
getLockClause(com.holonplatform.core.query.lock.LockMode mode,
long timeout)
Get the SQL lock clause for given lock condition.
|
Optional<SQLType> |
getSqlType(Class<?> javaType)
Get the SQL type which corresponds to given Java type for this dialect.
|
String |
getTableName(String tableName)
Get the actual table name for given table name (for example, applying case transformations)
|
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 |
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 |
supportsSqlType(int sqlType)
Get whether given SQL type is supported by this dialect.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdb2, deleteStatementAliasSupported, deleteStatementTargetRequired, derby, detect, getJavaType, getLockHint, h2, HANA, hsqldb, informix, mariaDB, mySQL, oracle, postgreSQL, sqlite, sqlServer, supportsBinaryStreamParameter, translateException, updateStatementAliasSupported, updateStatementFromSupported, updateStatementSetAliasSupported, useOuterInJoinspublic void init(SQLDialectContext context) throws SQLException
SQLDialectinit in interface SQLDialectcontext - Dialect contextSQLException - An error occurred during dialect initializationpublic Optional<SQLFunction> resolveFunction(com.holonplatform.core.query.QueryFunction<?,?> function)
SQLDialectfunction into a dialect-specific SQLFunction.resolveFunction in interface SQLDialectfunction - The function to resolve (not null)public boolean supportsSqlType(int sqlType)
SQLDialectsupportsSqlType in interface SQLDialectsqlType - The SQL type idtrue if type is supported, false otherwiseTypespublic Optional<SQLType> getSqlType(Class<?> javaType)
SQLDialectgetSqlType in interface SQLDialectjavaType - The sql type (not null)public boolean supportsLikeEscapeClause()
SQLDialectLIKE escape clause.supportsLikeEscapeClause in interface SQLDialecttrue if so; false otherwisepublic boolean supportsGetGeneratedKeys()
SQLDialectsupportsGetGeneratedKeys in interface SQLDialecttrue if auto-generated keys can be retrieved after a statement has executed;
false otherwisepublic boolean generatedKeyAlwaysReturned()
SQLDialectgeneratedKeyAlwaysReturned in interface SQLDialecttrue if so; false otherwisepublic boolean supportGetGeneratedKeyByName()
SQLDialectsupportGetGeneratedKeyByName in interface SQLDialecttrue if auto-generated keys can be retrieved by name after a statement has executedpublic String getTableName(String tableName)
SQLDialectgetTableName in interface SQLDialecttableName - Table namepublic String getColumnName(String columnName)
SQLDialectgetColumnName in interface SQLDialectcolumnName - Column namepublic Optional<String> getLockClause(com.holonplatform.core.query.lock.LockMode mode, long timeout)
SQLDialectgetLockClause in interface SQLDialectmode - Lock modetimeout - Lock timeout in millisecondspublic Optional<SQLDialect.LimitHandler> getLimitHandler()
SQLDialectSQLDialect.LimitHandlergetLimitHandler in interface SQLDialectCopyright © 2019 The Holon Platform. All rights reserved.