Interface QueryEngineOptions
- All Known Subinterfaces:
SessionFactoryOptions
- All Known Implementing Classes:
AbstractDelegatingSessionFactoryOptions
public interface QueryEngineOptions
User configuration options related to the
QueryEngine.
Custom translators, strategies, and the custom function registry are optional.
A null value indicates that no custom implementation was supplied.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTranslator for transforming HQL (as an Antlr parse tree) into an SQM tree.User defined SQM functions available for use in HQL and Criteria.User supplied registry of SQM functions available for use in HQL and CriteriaContract for handling SQM trees representing insertion (INSERT) queries where the target of the mutation is a multi-table entity.Contract for handling SQM trees representing mutation (UPDATE or DELETE) queries where the target of the mutation is a multi-table entity.Factory for translators transforming an SQM tree into a different form.Deprecated, for removal: This API element is subject to removal in a future version.getUuid()booleanShould HQL integer division HQL should produce an integer on Oracle, MySQL, and MariaDB, where the/operator produces a non-integer.booleanresolveCustomSqmMultiTableInsertStrategy(EntityMappingType rootEntityDescriptor, RuntimeModelCreationContext creationContext) Contract for handling SQM trees representing insertion (INSERT) queries where the target of the mutation is a multi-table entity.resolveCustomSqmMultiTableMutationStrategy(EntityMappingType rootEntityDescriptor, RuntimeModelCreationContext creationContext) Contract for handling SQM trees representing mutation (UPDATE or DELETE) queries where the target of the mutation is a multi-table entity.
-
Method Details
-
getCustomHqlTranslator
Translator for transforming HQL (as an Antlr parse tree) into an SQM tree.- See Also:
-
getCustomSqmTranslatorFactory
Factory for translators transforming an SQM tree into a different form. For standard ORM implementations this will generally be some form of SQL tree.- See Also:
-
getCustomSqlFunctionMap
User defined SQM functions available for use in HQL and Criteria. Returns an empty map if no custom functions were supplied.Ultimately made available to the
SqmTranslatorFactoryfor use in translating an SQM tree.Can be used in conjunction with
getCustomSqmFunctionRegistry(), but generally one or the other will be used. -
getCustomSqmFunctionRegistry
User supplied registry of SQM functions available for use in HQL and CriteriaCan be used in conjunction with
getCustomSqlFunctionMap(), but generally one or the other will be used. -
getCustomSqmMultiTableMutationStrategy
Contract for handling SQM trees representing mutation (UPDATE or DELETE) queries where the target of the mutation is a multi-table entity.- See Also:
-
getCustomSqmMultiTableInsertStrategy
Contract for handling SQM trees representing insertion (INSERT) queries where the target of the mutation is a multi-table entity.- See Also:
-
resolveCustomSqmMultiTableMutationStrategy
@Nullable SqmMultiTableMutationStrategy resolveCustomSqmMultiTableMutationStrategy(@Nonnull EntityMappingType rootEntityDescriptor, @Nonnull RuntimeModelCreationContext creationContext) Contract for handling SQM trees representing mutation (UPDATE or DELETE) queries where the target of the mutation is a multi-table entity.- See Also:
-
resolveCustomSqmMultiTableInsertStrategy
@Nullable SqmMultiTableInsertStrategy resolveCustomSqmMultiTableInsertStrategy(@Nonnull EntityMappingType rootEntityDescriptor, @Nonnull RuntimeModelCreationContext creationContext) Contract for handling SQM trees representing insertion (INSERT) queries where the target of the mutation is a multi-table entity.- See Also:
-
getJpaCompliance
- See Also:
-
getCriteriaValueHandlingMode
- See Also:
-
getImmutableEntityUpdateQueryHandlingMode
@Deprecated(since="7.0", forRemoval=true) @Nonnull ImmutableEntityUpdateQueryHandlingMode getImmutableEntityUpdateQueryHandlingMode()Deprecated, for removal: This API element is subject to removal in a future version.SinceImmutableEntityUpdateQueryHandlingModeis deprecated. UseallowImmutableEntityUpdate()instead.- See Also:
-
allowImmutableEntityUpdate
boolean allowImmutableEntityUpdate()- See Also:
-
isPortableIntegerDivisionEnabled
boolean isPortableIntegerDivisionEnabled()Should HQL integer division HQL should produce an integer on Oracle, MySQL, and MariaDB, where the/operator produces a non-integer.- See Also:
-
getSessionFactoryName
-
getUuid
-
isSafeModeEnabled
boolean isSafeModeEnabled()
-
ImmutableEntityUpdateQueryHandlingModeis deprecated.