Package com.blazebit.persistence.impl
Interface AssociationParameterTransformerFactory
-
- All Known Implementing Classes:
ManagedEntityAssociationParameterTransformerFactory,TransientEntityAssociationParameterTransformerFactory
public interface AssociationParameterTransformerFactoryA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ParameterValueTransformergetToEntityTranformer(Class<?> entityType)Returns a parameter value transformer for transforming ids to the given entity type.ParameterValueTransformergetToIdTransformer()Returns a parameter value transformer for transforming entity objects to their ids.
-
-
-
Method Detail
-
getToEntityTranformer
ParameterValueTransformer getToEntityTranformer(Class<?> entityType)
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
-
-