Interface FieldReferences
A set of util methods to create generic field references, mostly for testing purposes or trivial cases where just a few references are required.
While it is expected that the generated Hibernate Search static metamodel will contain more precise field references that would match the actual field capabilities, these generic references can be used by the users if they decide to opt-out of using the generated static metamodel and would just want to create a few simple pre-defined references.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <SR,
T> AnyAggregationReference <SR, T> anyAggregationReference
(String absolutePath, Class<SR> scopeRootType, ValueModel valueModel, Class<T> aggregationType) static <SR,
T> AnyPredicateReference <SR, T> anyPredicateReference
(String absolutePath, Class<SR> scopeRootType, ValueModel valueModel, Class<T> predicateType) static <SR,
T> AnyProjectionReference <SR, T> anyProjectionReference
(String absolutePath, Class<SR> scopeRootType, ValueModel valueModel, Class<T> projectionType) static <SR,
T> AnySortReference <SR, T> anySortReference
(String absolutePath, Class<SR> scopeRootType, ValueModel valueModel, Class<T> sortType)
-
Method Details
-
anySortReference
static <SR,T> AnySortReference<SR,T> anySortReference(String absolutePath, Class<SR> scopeRootType, ValueModel valueModel, Class<T> sortType) -
anyProjectionReference
static <SR,T> AnyProjectionReference<SR,T> anyProjectionReference(String absolutePath, Class<SR> scopeRootType, ValueModel valueModel, Class<T> projectionType) -
anyPredicateReference
static <SR,T> AnyPredicateReference<SR,T> anyPredicateReference(String absolutePath, Class<SR> scopeRootType, ValueModel valueModel, Class<T> predicateType) -
anyAggregationReference
static <SR,T> AnyAggregationReference<SR,T> anyAggregationReference(String absolutePath, Class<SR> scopeRootType, ValueModel valueModel, Class<T> aggregationType)
-