D - JdbcDatastore typepublic static interface JdbcDatastore.Builder<D extends JdbcDatastore> extends com.holonplatform.core.datastore.Datastore.Builder<D,JdbcDatastore.Builder<D>>
JdbcDatastore builder.| Modifier and Type | Method and Description |
|---|---|
JdbcDatastore.Builder<D> |
autoCommit(boolean autoCommit)
Set whether the auto-commit mode has to be setted for connections.
|
JdbcDatastore.Builder<D> |
database(com.holonplatform.jdbc.DatabasePlatform database)
Set the database platform to which the DataSource is connected.
|
JdbcDatastore.Builder<D> |
dataSource(DataSource dataSource)
Set the
DataSource to use. |
JdbcDatastore.Builder<D> |
dataSource(com.holonplatform.jdbc.DataSourceConfigProperties configuration)
Set the configuration property source to build the
DataSource to use with the Datastore. |
JdbcDatastore.Builder<D> |
dialect(JdbcDialect dialect)
Set the dialect to use.
|
JdbcDatastore.Builder<D> |
dialect(String dialectClassName)
Set the fully qualified dialect class name to use as datastore dialect.
|
JdbcDatastore.Builder<D> dataSource(DataSource dataSource)
DataSource to use.dataSource - DataSource to set (not null)JdbcDatastore.Builder<D> dataSource(com.holonplatform.jdbc.DataSourceConfigProperties configuration)
DataSource to use with the Datastore.configuration - DataSource configuration properties (not null)JdbcDatastore.Builder<D> database(com.holonplatform.jdbc.DatabasePlatform database)
If DataSourceConfigProperties are provided, the database platform is obtained from the
DataSourceConfigProperties.PLATFORM property or auto-detected by the datastore if the property is not
specified.
database - Database platform to set (not null)JdbcDatastore.Builder<D> dialect(JdbcDialect dialect)
If a DatabasePlatform is provided (using database(DatabasePlatform) or read/detected from
the DataSource configuration properties with dataSource(DataSourceConfigProperties)), the datastore
tries to autodetect the dialect to use, if available.
dialect - The dialect to set (not null)JdbcDatastore.Builder<D> dialect(String dialectClassName)
If a DatabasePlatform is provided (using database(DatabasePlatform) or read/detected from
the DataSource configuration properties with dataSource(DataSourceConfigProperties)), the datastore
tries to autodetect the dialect to use, if available.
dialectClassName - The dialect class name to set (not null)JdbcDatastore.Builder<D> autoCommit(boolean autoCommit)
true)autoCommit - Whether to set connections auto-commitCopyright © 2017 The Holon Platform. All rights reserved.