public class GroovyBeanSerializer extends java.lang.Object implements Serializer
GroovyBeanSerializer is a Serializer implementation which serializes EntityType
instances into Groovy classes| Constructor and Description |
|---|
GroovyBeanSerializer()
Create a new
GroovyBeanSerializer instance |
GroovyBeanSerializer(boolean propertyAnnotations)
Create a new
GroovyBeanSerializer instance |
GroovyBeanSerializer(boolean propertyAnnotations,
java.lang.String javadocSuffix)
Create a new
GroovyBeanSerializer instance |
GroovyBeanSerializer(java.lang.String javadocSuffix)
Create a new
GroovyBeanSerializer instance |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bodyEnd(EntityType model,
CodeWriter writer) |
protected void |
bodyStart(EntityType model,
CodeWriter writer) |
void |
serialize(EntityType model,
SerializerConfig serializerConfig,
CodeWriter writer)
Serialize the given
EntityType |
void |
setPrintSupertype(boolean printSupertype) |
public GroovyBeanSerializer()
GroovyBeanSerializer instancepublic GroovyBeanSerializer(java.lang.String javadocSuffix)
GroovyBeanSerializer instancejavadocSuffix - suffix to be used after the simple name in class level javadocpublic GroovyBeanSerializer(boolean propertyAnnotations)
GroovyBeanSerializer instancepropertyAnnotations - true, to serialize property annotationspublic GroovyBeanSerializer(boolean propertyAnnotations,
java.lang.String javadocSuffix)
GroovyBeanSerializer instancepropertyAnnotations - true, to serialize property annotationsjavadocSuffix - suffix to be used after the simple name in class level javadocpublic void serialize(EntityType model, SerializerConfig serializerConfig, CodeWriter writer) throws java.io.IOException
SerializerEntityTypeserialize in interface Serializermodel - EntityType to serializeserializerConfig - serializer configurationwriter - serialization targetjava.io.IOExceptionprotected void bodyStart(EntityType model, CodeWriter writer) throws java.io.IOException
java.io.IOExceptionprotected void bodyEnd(EntityType model, CodeWriter writer) throws java.io.IOException
java.io.IOExceptionpublic void setPrintSupertype(boolean printSupertype)
Copyright © 2007–2021 Querydsl. All rights reserved.