public final class DefaultProjectionSerializer extends java.lang.Object implements ProjectionSerializer
ProjectionSerializer is a Serializer implementation for projection types| Constructor 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.IOExceptionprotected void outro(EntityType model, CodeWriter writer) throws java.io.IOException
java.io.IOExceptionpublic void serialize(EntityType model, SerializerConfig serializerConfig, CodeWriter writer) throws java.io.IOException
SerializerEntityTypeserialize in interface Serializermodel - EntityType to serializeserializerConfig - serializer configurationwriter - serialization targetjava.io.IOExceptionCopyright © 2007–2021 Querydsl. All rights reserved.