Interface ProjectionRegistry
-
- All Known Implementing Classes:
PojoSearchQueryElementRegistry
public interface ProjectionRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> CompositeProjectionDefinition<T>composite(Class<T> objectClass)<T> Optional<CompositeProjectionDefinition<T>>compositeOptional(Class<T> objectClass)
-
-
-
Method Detail
-
composite
<T> CompositeProjectionDefinition<T> composite(Class<T> objectClass)
- Type Parameters:
T- The type of objects returned by the projection.- Parameters:
objectClass- The type of objects returned by the projection. The class is expected to be mapped (generally through annotations) in such a way that it defines the inner projections.- Returns:
- A definition of the projection.
- Throws:
SearchException- If no projection definition exists for this object class.
-
compositeOptional
<T> Optional<CompositeProjectionDefinition<T>> compositeOptional(Class<T> objectClass)
- Type Parameters:
T- The type of objects returned by the projection.- Parameters:
objectClass- The type of objects returned by the projection. The class is expected to be mapped (generally through annotations) in such a way that it defines the inner projections.- Returns:
- A definition of the projection,
or
Optional.empty()if no projection definition is available for the given object class.
-
-