Package com.blazebit.persistence.view
Class ConfigurationProperties
java.lang.Object
com.blazebit.persistence.view.ConfigurationProperties
Configuration properties that can be specified via
EntityViewConfiguration.setProperty(String, String)
.- Since:
- 1.0.6
- Author:
- Christian Beikov
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
A boolean flag that allows to specify if empty flat views should be created by default if not specified viaEmptyFlatViewCreation
.static final String
An integer value that defines the default batch size for entity view attributes.static final String
A boolean specifying if correlation value batching is expected or view root batching.static final String
A mode specifying if correlation value, view root or embedded view batching is expected.static final String
A boolean flag to make it possible to disable the expression validation.static final String
A boolean flag to make it possible to disable the managed type validation.static final String
The maximum value up to which the count query should count i.e. seePaginatedCriteriaBuilder.withBoundedCount(long)
.static final String
A boolean flag that allows to disable a count query for a paginated criteria builder.static final String
A boolean flag that allows to enable the extraction of all keysets for a paginated criteria builder.static final String
A boolean flag that allows to force the use of the keyset for a paginated criteria builder rather than relying on firstResult/maxResults.static final String
The offset from the maxResults at which to find the highest keyset i.e. the highest keyset will be at positionMath.min(size, maxResults - offset)
.static final String
A boolean flag to make it possible to use the generated proxies with serialization.static final String
A boolean flag to make it possible to disable unsafe proxy generation.static final String
A boolean flag to make it possible to disable the scanning for static builders annotated withStaticBuilder
.static final String
A boolean flag to make it possible to disable the scanning for static implementations annotated withStaticImplementation
.static final String
A boolean flag to make it possible to disable the scanning for static metmodels annotated withStaticMetamodel
.static final String
A boolean flag to make it possible to prepare all view template caches on startup.static final String
A boolean flag to make it possible to disable the strict validation that disallows the use of an updatable entity view type for owned relationships.static final String
A boolean flag to make it possible to prepare the entity view updater cache on startup.static final String
A boolean flag that allows to switch from warnings to boot time validation errors when invalid plural attribute setters are encountered while the strict cascading check is enabled.static final String
An override for the flush mode of updatable entity views.static final String
An override for the flush strategy of updatable entity views.static final String
A boolean flag to make it possible to disable the strict cascading check that disallows setting updatable or creatable entity views on non-cascading attributes before being associated with a cascading attribute. -
Method Summary
-
Field Details
-
PROXY_EAGER_LOADING
A boolean flag to make it possible to use the generated proxies with serialization. When deserializing an instance the class might not have been loaded yet, so we can force loading proxy classes on startup to avoid this problem. By default the eager loading of proxies is disabled to have a better startup performance. Valid values for this property aretrue
orfalse
.- Since:
- 1.0.6
- See Also:
-
TEMPLATE_EAGER_LOADING
A boolean flag to make it possible to prepare all view template caches on startup. By default the eager loading of the view templates is disabled to have a better startup performance. Valid values for this property aretrue
orfalse
.- Since:
- 1.2.0
- See Also:
-
PROXY_UNSAFE_ALLOWED
A boolean flag to make it possible to disable unsafe proxy generation. By default the unsafe proxies are allowed to be able to make use of the features. Valid values for this property aretrue
orfalse
.- Since:
- 1.0.6
- See Also:
-
EXPRESSION_VALIDATION_DISABLED
A boolean flag to make it possible to disable the expression validation. By default the expression validation is enabled, but since the validation is not bullet proof, it can be disabled. Valid values for this property aretrue
orfalse
.- Since:
- 1.1.0
- See Also:
-
MANAGED_TYPE_VALIDATION_DISABLED
A boolean flag to make it possible to disable the managed type validation. By default the managed type validation is enabled, but since the validation is not bullet proof, it can be disabled. Valid values for this property aretrue
orfalse
.- Since:
- 1.3.0
- See Also:
-
DEFAULT_BATCH_SIZE
An integer value that defines the default batch size for entity view attributes. By default the value is 1 and can be overridden either via BatchFetch.size() or by setting this property via EntityViewSetting.setProperty(java.lang.String, java.lang.Object). To specify the batch size of a specific attribute, append the attribute name after the "batch_size" like e.g.com.blazebit.persistence.view.batch_size.subProperty
- Since:
- 1.2.0
- See Also:
-
EXPECT_BATCH_CORRELATION_VALUES
A boolean specifying if correlation value batching is expected or view root batching. By default the value is true and can be overridden by setting this property via EntityViewSetting.setProperty(java.lang.String, java.lang.Object). To specify the batch expectation of a specific attribute, append the attribute name after the "batch_correlation_values" like e.g.com.blazebit.persistence.view.batch_correlation_values.subProperty
- Since:
- 1.2.0
- See Also:
-
EXPECT_BATCH_MODE
A mode specifying if correlation value, view root or embedded view batching is expected. By default the value isvalues
and can be overridden by setting this property via EntityViewSetting.setProperty(java.lang.String, java.lang.Object). Valid values arevalues
view_roots
embedding_views
com.blazebit.persistence.view.batch_mode.subProperty
- Since:
- 1.3.0
- See Also:
-
UPDATER_EAGER_LOADING
A boolean flag to make it possible to prepare the entity view updater cache on startup. By default the eager loading of entity view updates is disabled to have a better startup performance. Valid values for this property aretrue
orfalse
.- Since:
- 1.2.0
- See Also:
-
UPDATER_FLUSH_MODE
An override for the flush mode of updatable entity views. By default, the property is not set. This has the effect, that the flush modes configured for the respective updatable entity views are used. Valid values for this property arepartial
,lazy
orfull
. To specify an override for a specific entity view, append the fully qualified entity view class name after the "flush_mode" like e.g.com.blazebit.persistence.view.updater.flush_mode.com.mypackage.views.MyView
- Since:
- 1.2.0
- See Also:
-
UPDATER_FLUSH_STRATEGY
An override for the flush strategy of updatable entity views. By default, the property is not set. This has the effect, that the flush strategies configured for the respective updatable entity views are used. Valid values for this property areauto
,entity
orquery
. To specify an override for a specific entity view, append the fully qualified entity view class name after the "flush_strategy" like e.g.com.blazebit.persistence.view.updater.flush_strategy.com.mypackage.views.MyView
- Since:
- 1.2.0
- See Also:
-
UPDATER_DISALLOW_OWNED_UPDATABLE_SUBVIEW
A boolean flag to make it possible to disable the strict validation that disallows the use of an updatable entity view type for owned relationships. By default the use is disallowed i.e. the default value istrue
, but since there might be strange models out there, it possible to allow this. Valid values for this property aretrue
orfalse
.- Since:
- 1.3.0
- See Also:
-
UPDATER_STRICT_CASCADING_CHECK
A boolean flag to make it possible to disable the strict cascading check that disallows setting updatable or creatable entity views on non-cascading attributes before being associated with a cascading attribute. When disabled, it is possible, like in JPA, that the changes done to an updatable entity view are not flushed when it is not associated with an attribute that cascades updates. By default the use is enabled i.e. the default value istrue
. Valid values for this property aretrue
orfalse
.- Since:
- 1.4.0
- See Also:
-
UPDATER_ERROR_ON_INVALID_PLURAL_SETTER
A boolean flag that allows to switch from warnings to boot time validation errors when invalid plural attribute setters are encountered while the strict cascading check is enabled. Whentrue
, a boot time validation error is thrown when encountering an invalid setter, otherwise just a warning. This configuration has no effect when the strict cascading check is disabled. By default the use is disabled i.e. the default value isfalse
. Valid values for this property aretrue
orfalse
.- Since:
- 1.4.0
- See Also:
-
PAGINATION_DISABLE_COUNT_QUERY
A boolean flag that allows to disable a count query for a paginated criteria builder. By default the count query is enabled i.e. the default value isfalse
. Valid values for this property aretrue
orfalse
.- Since:
- 1.4.0
- See Also:
-
PAGINATION_EXTRACT_ALL_KEYSETS
A boolean flag that allows to enable the extraction of all keysets for a paginated criteria builder. By default the extraction of all keysets is disabled i.e. the default value isfalse
. Valid values for this property aretrue
orfalse
.- Since:
- 1.4.0
- See Also:
-
PAGINATION_FORCE_USE_KEYSET
A boolean flag that allows to force the use of the keyset for a paginated criteria builder rather than relying on firstResult/maxResults. This is useful if a strict keyset based pagination is necessary and the page size or the offset might vary. By default forcing keysets is disabled i.e. the default value isfalse
. Valid values for this property aretrue
orfalse
.- Since:
- 1.4.0
- See Also:
-
PAGINATION_HIGHEST_KEYSET_OFFSET
The offset from the maxResults at which to find the highest keyset i.e. the highest keyset will be at positionMath.min(size, maxResults - offset)
. Setting 1 along with a maxResults + 1 allows to look ahead one element to check if there are more elements which is useful for pagination with lazy page count or endless scrolling. By default the offset is disabled i.e. the default value isnull
.- Since:
- 1.5.0
- See Also:
-
PAGINATION_BOUNDED_COUNT
The maximum value up to which the count query should count i.e. seePaginatedCriteriaBuilder.withBoundedCount(long)
. By default the bounded count is disabled i.e. all rows are counted.- Since:
- 1.5.0
- See Also:
-
STATIC_BUILDER_SCANNING_DISABLED
A boolean flag to make it possible to disable the scanning for static builders annotated withStaticBuilder
. By default the scanning is enabled i.e. the default value isfalse
. Valid values for this property aretrue
orfalse
.- Since:
- 1.5.0
- See Also:
-
STATIC_IMPLEMENTATION_SCANNING_DISABLED
A boolean flag to make it possible to disable the scanning for static implementations annotated withStaticImplementation
. By default the scanning is enabled i.e. the default value isfalse
. Valid values for this property aretrue
orfalse
.- Since:
- 1.5.0
- See Also:
-
STATIC_METAMODEL_SCANNING_DISABLED
A boolean flag to make it possible to disable the scanning for static metmodels annotated withStaticMetamodel
. By default the scanning is enabled i.e. the default value isfalse
. Valid values for this property aretrue
orfalse
.- Since:
- 1.5.0
- See Also:
-
CREATE_EMPTY_FLAT_VIEWS
A boolean flag that allows to specify if empty flat views should be created by default if not specified viaEmptyFlatViewCreation
. By default the creation of empty flat views is enabled i.e. the default value istrue
. Valid values for this property aretrue
orfalse
.- Since:
- 1.5.0
- See Also:
-