Package com.blazebit.persistence
Class ConfigurationProperties
java.lang.Object
com.blazebit.persistence.ConfigurationProperties
public final class ConfigurationProperties extends Object
- Since:
- 1.0.0
- Author:
- Christian Beikov, Moritz Becker
-
Field Summary
Fields Modifier and Type Field Description static StringCOMPATIBLE_MODEWe added a flag to enable a JPA compatible mode because we allow to make use of many vendor specific extensions which maybe aren't portable.static StringCRITERIA_NEGATION_WRAPPERIf set to true, JPA Criteria predicates are wrapped in a negation predicate instead of copied with negation being propagated.static StringCRITERIA_VALUE_AS_PARAMETERIf set to true, values passed to the JPACriteriaBuilderAPI are rendered as parameters, otherwise values are rendered as literals.static StringEXPRESSION_CACHE_CLASSThe fully qualified expression cache implementation class name.static StringEXPRESSION_OPTIMIZATIONIf set to false, no expression optimization takes place.static StringIMPLICIT_GROUP_BY_FROM_HAVINGIf set to false, no implicit group by clauses will be generated from the HAVING part of the query.static StringIMPLICIT_GROUP_BY_FROM_ORDER_BYIf set to false, no implicit group by clauses will be generated from the ORDER BY part of the query.static StringIMPLICIT_GROUP_BY_FROM_SELECTIf set to false, no implicit group by clauses will be generated from the SELECT part of the query.static StringINLINE_COUNT_QUERYIf set to true, the count query in aPaginatedCriteriaBuilderis inlined into the id or object query as select item.static StringINLINE_CTESIf set to true, the CTE queries are inlined by default.static StringINLINE_ID_QUERYIf set to true, the id query in aPaginatedCriteriaBuilderis inlined into the object query as subquery.static StringOPTIMIZED_KEYSET_PREDICATE_RENDERINGIf set to true, the keyset predicate is rendered in an optimized form so that database optimizers are more likely to use indices.static StringPARAMETER_AS_LITERAL_RENDERINGIf set to false, parameters are always rendered as such, otherwise the values might get inlined when no type can be inferred.static StringQUERY_PLAN_CACHE_ENABLEDIf set to true, the query plans are cached and reused.static StringRETURNING_CLAUSE_CASE_SENSITIVESome databases require case sensitivity for attribute paths in the returning clause (unlike PostgreSQL which requires case insensitivity for column names in returning clause) By default the returning clause is case sensitive.static StringSIZE_TO_COUNT_TRANSFORMATIONIf set to false, uses of SIZE will always be transformed to subqueries.static StringVALUES_CLAUSE_FILTER_NULLSIf set to false, tuples of a VALUES clause with all null values won't be filtered out. -
Method Summary
-
Field Details
-
COMPATIBLE_MODE
We added a flag to enable a JPA compatible mode because we allow to make use of many vendor specific extensions which maybe aren't portable. By enabling the compatible mode functionality is restricted but more portable. By default the compatible mode is disabled because most JPA providers support the same extensions. Valid values for this property aretrueorfalse.- Since:
- 1.0.5
- See Also:
- Constant Field Values
-
RETURNING_CLAUSE_CASE_SENSITIVE
Some databases require case sensitivity for attribute paths in the returning clause (unlike PostgreSQL which requires case insensitivity for column names in returning clause) By default the returning clause is case sensitive. Valid values for this property aretrueorfalse. The property can be changed for a criteria builder before generating the query.- Since:
- 1.1.0
- See Also:
- Constant Field Values
-
SIZE_TO_COUNT_TRANSFORMATION
If set to false, uses of SIZE will always be transformed to subqueries. By default the size to count transformation is enabled. Valid values for this property aretrueorfalse. Default istrueThe property can be changed for a criteria builder before generating the query.- Since:
- 1.1.0
- See Also:
- Constant Field Values
-
IMPLICIT_GROUP_BY_FROM_SELECT
If set to false, no implicit group by clauses will be generated from the SELECT part of the query. Valid values for this property aretrueorfalse. Default istrueThe property can be changed for a criteria builder before generating the query.- Since:
- 1.1.0
- See Also:
- Constant Field Values
-
IMPLICIT_GROUP_BY_FROM_HAVING
If set to false, no implicit group by clauses will be generated from the HAVING part of the query. Valid values for this property aretrueorfalse. Default istrueThe property can be changed for a criteria builder before generating the query.- Since:
- 1.1.0
- See Also:
- Constant Field Values
-
IMPLICIT_GROUP_BY_FROM_ORDER_BY
If set to false, no implicit group by clauses will be generated from the ORDER BY part of the query. Valid values for this property aretrueorfalse. Default istrueThe property can be changed for a criteria builder before generating the query.- Since:
- 1.1.0
- See Also:
- Constant Field Values
-
EXPRESSION_OPTIMIZATION
If set to false, no expression optimization takes place. Valid values for this property aretrueorfalse. Default istrue- Since:
- 1.1.0
- See Also:
- Constant Field Values
-
EXPRESSION_CACHE_CLASS
The fully qualified expression cache implementation class name.- Since:
- 1.2.0
- See Also:
- Constant Field Values
-
VALUES_CLAUSE_FILTER_NULLS
If set to false, tuples of a VALUES clause with all null values won't be filtered out. Valid values for this property aretrueorfalse. Default istrueThe property can be changed for a criteria builder before using the VALUES clause.- Since:
- 1.2.0
- See Also:
- Constant Field Values
-
PARAMETER_AS_LITERAL_RENDERING
If set to false, parameters are always rendered as such, otherwise the values might get inlined when no type can be inferred. Valid values for this property aretrueorfalse. Default istrueThe property can be changed for a criteria builder before constructing a query.- Since:
- 1.2.0
- See Also:
- Constant Field Values
-
OPTIMIZED_KEYSET_PREDICATE_RENDERING
If set to true, the keyset predicate is rendered in an optimized form so that database optimizers are more likely to use indices. See https://github.com/Blazebit/blaze-persistence/issues/419 Default istrueThe property can be changed for a criteria builder before constructing a query.- Since:
- 1.2.0
- See Also:
- Constant Field Values
-
INLINE_ID_QUERY
If set to true, the id query in aPaginatedCriteriaBuilderis inlined into the object query as subquery. Valid values for this property aretrue,falseorauto. Default isautowhich will make use of inlining if the JPA provider and DBMS dialect support it. The property can be changed for a criteria builder before generating the query.- Since:
- 1.4.1
- See Also:
PaginatedCriteriaBuilder.withInlineIdQuery(boolean), Constant Field Values
-
INLINE_COUNT_QUERY
If set to true, the count query in aPaginatedCriteriaBuilderis inlined into the id or object query as select item. Valid values for this property aretrue,falseorauto. Default isautowhich will make use of inlining if the JPA provider and DBMS dialect support it. The property can be changed for a criteria builder before generating the query.- Since:
- 1.4.1
- See Also:
PaginatedCriteriaBuilder.withInlineCountQuery(boolean), Constant Field Values
-
INLINE_CTES
If set to true, the CTE queries are inlined by default. Valid values for this property aretrue,falseorauto. Default istruewhich will always inline non-recursive CTEs. Theautoconfiguration will only make use of inlining if the JPA provider and DBMS dialect support/require it. The property can be changed for a criteria builder before constructing a query.- Since:
- 1.4.1
- See Also:
CTEBuilder.with(Class, boolean),CTEBuilder.with(Class, CriteriaBuilder, boolean), Constant Field Values
-
QUERY_PLAN_CACHE_ENABLED
If set to true, the query plans are cached and reused. Valid values for this property aretrueandfalse. Default istrue. This configuration option currently only takes effect when Hibernate is used as JPA provider. The property can be changed for a criteria builder before constructing a query.- Since:
- 1.5.0
- See Also:
- Constant Field Values
-
CRITERIA_NEGATION_WRAPPER
If set to true, JPA Criteria predicates are wrapped in a negation predicate instead of copied with negation being propagated. Valid values for this property aretrueandfalse. Default istrue.- Since:
- 1.6.3
- See Also:
- Constant Field Values
-
CRITERIA_VALUE_AS_PARAMETER
If set to true, values passed to the JPACriteriaBuilderAPI are rendered as parameters, otherwise values are rendered as literals. Valid values for this property aretrueandfalse. Default istrue.- Since:
- 1.6.3
- See Also:
- Constant Field Values
-