Package com.querydsl.codegen
Class DefaultProjectionSerializer
java.lang.Object
com.querydsl.codegen.DefaultProjectionSerializer
- All Implemented Interfaces:
ProjectionSerializer,Serializer
ProjectionSerializer is a Serializer implementation for projection types- Author:
- tiwe
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultProjectionSerializer(TypeMappings typeMappings) Create a newProjectionSerializerinstanceDefaultProjectionSerializer(TypeMappings typeMappings, Class<? extends Annotation> generatedAnnotationClass) Create a newProjectionSerializerinstance -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintro(EntityType model, CodeWriter writer) protected voidoutro(EntityType model, CodeWriter writer) voidserialize(EntityType model, SerializerConfig serializerConfig, CodeWriter writer) Serialize the givenEntityType
-
Constructor Details
-
DefaultProjectionSerializer
Create a newProjectionSerializerinstance- Parameters:
typeMappings- type mappings to be used
-
DefaultProjectionSerializer
@Inject public DefaultProjectionSerializer(TypeMappings typeMappings, @Named("generatedAnnotationClass") Class<? extends Annotation> generatedAnnotationClass) Create a newProjectionSerializerinstance- Parameters:
typeMappings- type mappings to be usedgeneratedAnnotationClass- the fully qualified class name of the Single-Element Annotation (withStringelement) to be used on the generated classes.- See Also:
-
-
Method Details
-
intro
- Throws:
IOException
-
outro
- Throws:
IOException
-
serialize
public void serialize(EntityType model, SerializerConfig serializerConfig, CodeWriter writer) throws IOException Description copied from interface:SerializerSerialize the givenEntityType- Specified by:
serializein interfaceSerializer- Parameters:
model- EntityType to serializeserializerConfig- serializer configurationwriter- serialization target- Throws:
IOException
-