public final class DefaultProjectionSerializer extends java.lang.Object implements ProjectionSerializer
ProjectionSerializer
is a Serializer
implementation for projection typesConstructor and Description |
---|
DefaultProjectionSerializer(TypeMappings typeMappings)
Create a new
ProjectionSerializer instance |
DefaultProjectionSerializer(TypeMappings typeMappings,
java.lang.Class<? extends java.lang.annotation.Annotation> generatedAnnotationClass)
Create a new
ProjectionSerializer instance |
Modifier and Type | Method and Description |
---|---|
protected void |
intro(EntityType model,
CodeWriter writer) |
protected void |
outro(EntityType model,
CodeWriter writer) |
void |
serialize(EntityType model,
SerializerConfig serializerConfig,
CodeWriter writer)
Serialize the given
EntityType |
public DefaultProjectionSerializer(TypeMappings typeMappings)
ProjectionSerializer
instancetypeMappings
- type mappings to be used@Inject public DefaultProjectionSerializer(TypeMappings typeMappings, @Named(value="generatedAnnotationClass") java.lang.Class<? extends java.lang.annotation.Annotation> generatedAnnotationClass)
ProjectionSerializer
instancetypeMappings
- type mappings to be usedgeneratedAnnotationClass
- the fully qualified class name of the Single-Element Annotation (with String
element) to be used on the generated classes.protected void intro(EntityType model, CodeWriter writer) throws java.io.IOException
java.io.IOException
protected void outro(EntityType model, CodeWriter writer) throws java.io.IOException
java.io.IOException
public void serialize(EntityType model, SerializerConfig serializerConfig, CodeWriter writer) throws java.io.IOException
Serializer
EntityType
serialize
in interface Serializer
model
- EntityType to serializeserializerConfig
- serializer configurationwriter
- serialization targetjava.io.IOException
Copyright © 2007–2021 Querydsl. All rights reserved.