public interface JdbcDatastore extends com.holonplatform.core.datastore.Datastore, com.holonplatform.core.datastore.DatastoreCommodityRegistrar<JdbcDatastoreCommodityContext>
Datastore.| Modifier and Type | Interface and Description |
|---|---|
static interface |
JdbcDatastore.Builder<D extends JdbcDatastore>
JdbcDatastore builder. |
static interface |
JdbcDatastore.ConnectionOperation<R>
Represents an operation to be executed using a Datastore managed
Connection. |
| Modifier and Type | Method and Description |
|---|---|
static JdbcDatastore.Builder<JdbcDatastore> |
builder()
Get a builder to create a
JdbcDatastore instance. |
<R> R |
withConnection(JdbcDatastore.ConnectionOperation<R> operation)
Execute given
operation using a new Connection provided by the Datastore and return the
operation result. |
bulkDelete, bulkInsert, bulkUpdate, create, delete, getAvailableCommodities, insert, query, refresh, save, update<R> R withConnection(JdbcDatastore.ConnectionOperation<R> operation)
operation using a new Connection provided by the Datastore and return the
operation result.
The connection lifecycle if managed by Datastore, performing the appropriate closing operations at the end of the
Function execution.
R - Operation result typeoperation - The operation to execute (not null)IllegalStateException - If a DataSource is not available or not initializedcom.holonplatform.core.exceptions.DataAccessException - If an error occurred during connection management or operation executionstatic JdbcDatastore.Builder<JdbcDatastore> builder()
JdbcDatastore instance.Copyright © 2017 The Holon Platform. All rights reserved.