Class QueryEnhancerSelector.DefaultQueryEnhancerSelector
java.lang.Object
org.springframework.data.jpa.repository.query.QueryEnhancerSelector.DefaultQueryEnhancerSelector
- All Implemented Interfaces:
QueryEnhancerSelector
- Enclosing interface:
QueryEnhancerSelector
public static class QueryEnhancerSelector.DefaultQueryEnhancerSelector
extends Object
implements QueryEnhancerSelector
Default
QueryEnhancerSelector implementation using class-path information to determine enhancer
availability. Subclasses may provide a different configuration by using the protected constructor.- Since:
- 4.0
- Author:
- Mark Paluch
-
Nested Class Summary
Nested classes/interfaces inherited from interface QueryEnhancerSelector
QueryEnhancerSelector.DefaultQueryEnhancerSelector -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static QueryEnhancerFactoryprotected static QueryEnhancerFactoryFields inherited from interface QueryEnhancerSelector
DEFAULT_SELECTOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultQueryEnhancerSelector(QueryEnhancerFactory nativeQuery, QueryEnhancerFactory jpql) -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryEnhancerFactoryjpql()Returns the default JPQLQueryEnhancerFactorybased on class path presence of Hibernate and EclipseLink.select(DeclaredQuery query) Select aQueryEnhancerfor aquery.
-
Field Details
-
DEFAULT_NATIVE
-
DEFAULT_JPQL
-
-
Constructor Details
-
DefaultQueryEnhancerSelector
-
-
Method Details
-
jpql
Returns the default JPQLQueryEnhancerFactorybased on class path presence of Hibernate and EclipseLink.- Returns:
- the default JPQL
QueryEnhancerFactory.
-
select
Description copied from interface:QueryEnhancerSelectorSelect aQueryEnhancerfor aquery.- Specified by:
selectin interfaceQueryEnhancerSelector- Parameters:
query-- Returns:
-