public interface JdbcOperationContext extends SQLContext, ConnectionHandler, com.holonplatform.core.datastore.DatastoreCommodityHandler
| Modifier and Type | Method and Description |
|---|---|
IdentifierResolutionStrategy |
getIdentifierResolutionStrategy()
Get the
IdentifierResolutionStrategy. |
default SQLStatementConfigurator |
getStatementConfigurator()
Get the
SQLStatementConfigurator. |
PreparedStatement |
prepareInsertStatement(SQLStatement statement,
Connection connection,
SQLPrimaryKey primaryKey)
Create and configure a
PreparedStatement for an INSERT type operation, using given
SQLStatement and connection. |
PreparedStatement |
prepareStatement(SQLStatement statement,
Connection connection)
Create and configure a
PreparedStatement using given SQLStatement and connection. |
<R> R |
withSharedConnection(Supplier<R> operations)
Execute given operations using a shared connection.
|
getDialect, getTypeConverter, getValueDeserializer, getValueSerializer, tracegetExpressionResolverswithConnection, withConnectionIdentifierResolutionStrategy getIdentifierResolutionStrategy()
IdentifierResolutionStrategy.<R> R withSharedConnection(Supplier<R> operations)
R - Operation result typeoperations - Operations to execute (not null)default SQLStatementConfigurator getStatementConfigurator()
SQLStatementConfigurator.SQLStatementConfiguratorPreparedStatement prepareStatement(SQLStatement statement, Connection connection)
PreparedStatement using given SQLStatement and connection.statement - SQL statement (not null)connection - Connection (not null)PreparedStatementcom.holonplatform.core.exceptions.DataAccessException - If an error occurredPreparedStatement prepareInsertStatement(SQLStatement statement, Connection connection, SQLPrimaryKey primaryKey)
PreparedStatement for an INSERT type operation, using given
SQLStatement and connection.statement - SQL statement (not null)connection - Connection (not null)primaryKey - Optional primary key to use to retrieve any auto-generated keyPreparedStatementcom.holonplatform.core.exceptions.DataAccessException - If an error occurredCopyright © 2019 The Holon Platform. All rights reserved.