Package com.blazebit.persistence.impl
Interface AssociationParameterTransformerFactory
- All Known Implementing Classes:
ManagedEntityAssociationParameterTransformerFactory,TransientEntityAssociationParameterTransformerFactory
public interface AssociationParameterTransformerFactory
A factory for creating/getting parameter value transformers.
When rewriting entity or id expressions in predicates, the opposite side of a predicate
could be a parameter. In such a case, the parameter has to be transformed before being passed to the JPA query.
This factory provides access to efficient parameter value transformers that can be registered on parameters.
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptiongetToEntityTranformer(Class<?> entityType) Returns a parameter value transformer for transforming ids to the given entity type.Returns a parameter value transformer for transforming entity objects to their ids.
-
Method Details
-
getToEntityTranformer
Returns a parameter value transformer for transforming ids to the given entity type.- Parameters:
entityType- The entity type- Returns:
- The transformer
-
getToIdTransformer
ParameterValueTransformer getToIdTransformer()Returns a parameter value transformer for transforming entity objects to their ids.- Returns:
- The transformer
-