Package com.blazebit.persistence.impl
Class TransientEntityAssociationParameterTransformerFactory
- java.lang.Object
-
- com.blazebit.persistence.impl.TransientEntityAssociationParameterTransformerFactory
-
- All Implemented Interfaces:
AssociationParameterTransformerFactory
public class TransientEntityAssociationParameterTransformerFactory extends Object implements AssociationParameterTransformerFactory
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
-
Constructor Summary
Constructors Constructor Description TransientEntityAssociationParameterTransformerFactory(com.blazebit.persistence.parser.EntityMetamodel metamodel, AssociationToIdParameterTransformer toIdParameterTransformer)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
TransientEntityAssociationParameterTransformerFactory
public TransientEntityAssociationParameterTransformerFactory(com.blazebit.persistence.parser.EntityMetamodel metamodel, AssociationToIdParameterTransformer toIdParameterTransformer)
-
-
Method Detail
-
getToEntityTranformer
public ParameterValueTransformer getToEntityTranformer(Class<?> entityType)
Description copied from interface:AssociationParameterTransformerFactoryReturns a parameter value transformer for transforming ids to the given entity type.- Specified by:
getToEntityTranformerin interfaceAssociationParameterTransformerFactory- Parameters:
entityType- The entity type- Returns:
- The transformer
-
getToIdTransformer
public ParameterValueTransformer getToIdTransformer()
Description copied from interface:AssociationParameterTransformerFactoryReturns a parameter value transformer for transforming entity objects to their ids.- Specified by:
getToIdTransformerin interfaceAssociationParameterTransformerFactory- Returns:
- The transformer
-
-