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
ConstructorsConstructorDescriptionTransientEntityAssociationParameterTransformerFactory
(EntityMetamodel metamodel, AssociationToIdParameterTransformer toIdParameterTransformer) -
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.
-
Constructor Details
-
TransientEntityAssociationParameterTransformerFactory
public TransientEntityAssociationParameterTransformerFactory(EntityMetamodel metamodel, AssociationToIdParameterTransformer toIdParameterTransformer)
-
-
Method Details
-
getToEntityTranformer
Description copied from interface:AssociationParameterTransformerFactory
Returns a parameter value transformer for transforming ids to the given entity type.- Specified by:
getToEntityTranformer
in interfaceAssociationParameterTransformerFactory
- Parameters:
entityType
- The entity type- Returns:
- The transformer
-
getToIdTransformer
Description copied from interface:AssociationParameterTransformerFactory
Returns a parameter value transformer for transforming entity objects to their ids.- Specified by:
getToIdTransformer
in interfaceAssociationParameterTransformerFactory
- Returns:
- The transformer
-