public interface JpaDatastoreConfigProperties
extends com.holonplatform.core.config.ConfigPropertySet, com.holonplatform.core.datastore.DataContextBound
ConfigPropertySet for JPA Datastore configuration, using DEFAULT_NAME as property prefix.| Modifier and Type | Interface and Description |
|---|---|
static class |
JpaDatastoreConfigProperties.JpaDatastoreConfigPropertiesImpl
Default implementation
|
| Modifier and Type | Field and Description |
|---|---|
static com.holonplatform.core.config.ConfigProperty<Boolean> |
AUTO_FLUSH
Whether to enable the
EntityManager auto-flush mode. |
static String |
DEFAULT_NAME
Configuration property set default name
|
static com.holonplatform.core.config.ConfigProperty<Boolean> |
PRIMARY
Whether to qualify the Datastore bean as
primary, i.e. the preferential bean to be injected in a
single-valued dependency when multiple candidates are present. |
static com.holonplatform.core.config.ConfigProperty<Boolean> |
TRANSACTIONAL
Whether to add
Transactional behaviour to transactional Datastore methods, to automatically create or
partecipate in a transaction when methods are invoked. |
| Modifier and Type | Method and Description |
|---|---|
static com.holonplatform.core.config.ConfigPropertySet.Builder<JpaDatastoreConfigProperties> |
builder()
Builder to create property set instances bound to a property data source, without data context id specification.
|
static com.holonplatform.core.config.ConfigPropertySet.Builder<JpaDatastoreConfigProperties> |
builder(String dataContextId)
Builder to create property set instances bound to a property data source.
|
static final String DEFAULT_NAME
static final com.holonplatform.core.config.ConfigProperty<Boolean> PRIMARY
primary, i.e. the preferential bean to be injected in a
single-valued dependency when multiple candidates are present.
By default, the registred Datastore bean is marked as primary only when the EntityManagerFactory bean to
which is bound is registered as primary candidate bean.
static final com.holonplatform.core.config.ConfigProperty<Boolean> AUTO_FLUSH
EntityManager auto-flush mode. When auto-flush is enabled, the
EntityManager.flush() method is invoked after the execution of any Datastore data manipulation operation.static final com.holonplatform.core.config.ConfigProperty<Boolean> TRANSACTIONAL
Transactional behaviour to transactional Datastore methods, to automatically create or
partecipate in a transaction when methods are invoked. Affected methods are: refresh,
insert, update, save, delete.static com.holonplatform.core.config.ConfigPropertySet.Builder<JpaDatastoreConfigProperties> builder(String dataContextId)
dataContextId - Optional data context id to which Datastore is boundstatic com.holonplatform.core.config.ConfigPropertySet.Builder<JpaDatastoreConfigProperties> builder()
Copyright © 2019 The Holon Platform. All rights reserved.