public interface JdbcDialect extends Serializable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
JdbcDialect.DialectResolutionContext
Dialect resolution context.
|
static interface |
JdbcDialect.LimitHandler
Handler to apply limit/offset to SQL query.
|
static interface |
JdbcDialect.SQLFunction
SQL function representation.
|
static interface |
JdbcDialect.SQLParameterProcessor
Parameter processor for serialized parameters manipulation.
|
static interface |
JdbcDialect.SQLPathProcessor
Path processor for serialized path manipulation.
|
static interface |
JdbcDialect.SQLValueDeserializer
SQL query values deserializer
|
static class |
JdbcDialect.StatementConfigurationException
Exception related to JDBC statement configuration errors.
|
static interface |
JdbcDialect.StatementConfigurator
JDBC
PreparedStatement configurator. |
static interface |
JdbcDialect.StatementParameterHandler
Handler to manage statement parameters setting.
|
| Modifier and Type | Method and Description |
|---|---|
default boolean |
deleteStatementAliasSupported()
Get whether alias is supported in the DELETE clause.
|
default boolean |
deleteStatementTargetRequired()
Get whether the DELETE clause target must be specified.
|
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.
|
default String |
getColumnName(String columnName)
Get the actual column name for given column name (for example, applying case transformations)
|
default JdbcDialect.SQLFunction |
getFunction(String name)
Get the
JdbcDialect.SQLFunction bound to given symbolic name. |
default Optional<JdbcDialect.LimitHandler> |
getLimitHandler()
Get the
JdbcDialect.LimitHandler |
default Optional<JdbcDialect.SQLParameterProcessor> |
getParameterProcessor()
Get the dialect
JdbcDialect.SQLParameterProcessor. |
default Optional<JdbcDialect.SQLPathProcessor> |
getPathProcessor()
Get the dialect
JdbcDialect.SQLPathProcessor. |
default Optional<com.holonplatform.core.Path<?>[]> |
getPrimaryKey(String tableName,
Connection connection)
Get the primary key paths for given
tableName, if available. |
JdbcDialect.StatementConfigurator |
getStatementConfigurator()
Get the
JdbcDialect.StatementConfigurator to use to configure JDBC statements. |
default Optional<JdbcDialect.StatementParameterHandler> |
getStatementParameterHandler()
Get the dialect
JdbcDialect.StatementParameterHandler. |
default String |
getTableName(String tableName)
Get the actual table name for given table name (for example, applying case transformations)
|
default JdbcDialect.SQLValueDeserializer |
getValueDeserializer()
Get the
JdbcDialect.SQLValueDeserializer to use to deserialize SQL query results. |
void |
init(JdbcDatastore datastore)
Dialect initialization hook at parent datastore initialization.
|
default 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. |
default boolean |
useOuterInJoins()
Get whether to use the
OUTER keyword in join serialization. |
void init(JdbcDatastore datastore) throws SQLException
datastore - Parent datastoreSQLException - An error occurred during dialect initializationdefault JdbcDialect.SQLFunction getFunction(String name)
JdbcDialect.SQLFunction bound to given symbolic name.name - Function symbolic nameJdbcDialect.SQLFunction bound to given symbolic name. If null, a default function will be used, if
availabledefault boolean useOuterInJoins()
OUTER keyword in join serialization.true to use the OUTER keyword in join serializationdefault boolean deleteStatementAliasSupported()
true if alias is supported in the DELETE clausedefault boolean deleteStatementTargetRequired()
true if the DELETE clause target must be specifieddefault String getTableName(String tableName)
tableName - Table namedefault String getColumnName(String columnName)
columnName - Column namedefault JdbcDialect.SQLValueDeserializer getValueDeserializer()
JdbcDialect.SQLValueDeserializer to use to deserialize SQL query results.JdbcDialect.StatementConfigurator getStatementConfigurator()
JdbcDialect.StatementConfigurator to use to configure JDBC statements.default Optional<JdbcDialect.SQLPathProcessor> getPathProcessor()
JdbcDialect.SQLPathProcessor.default Optional<JdbcDialect.SQLParameterProcessor> getParameterProcessor()
JdbcDialect.SQLParameterProcessor.default Optional<JdbcDialect.StatementParameterHandler> getStatementParameterHandler()
JdbcDialect.StatementParameterHandler.boolean supportsLikeEscapeClause()
LIKE escape clause.true if so; false otherwiseboolean supportsGetGeneratedKeys()
true if auto-generated keys can be retrieved after a statement has executed;
false otherwiseboolean generatedKeyAlwaysReturned()
true if so; false otherwisedefault boolean supportGetGeneratedKeyByName()
true if auto-generated keys can be retrieved by name after a statement has executeddefault Optional<com.holonplatform.core.Path<?>[]> getPrimaryKey(String tableName, Connection connection) throws SQLException
tableName, if available.tableName - Table nameconnection - Connection to useSQLException - Error during primary key retrievingdefault Optional<JdbcDialect.LimitHandler> getLimitHandler()
JdbcDialect.LimitHandlerCopyright © 2017 The Holon Platform. All rights reserved.