Package com.querydsl.codegen
Class GroovyBeanSerializer
java.lang.Object
com.querydsl.codegen.GroovyBeanSerializer
- All Implemented Interfaces:
Serializer
GroovyBeanSerializer is a Serializer implementation which serializes EntityType
instances into Groovy classes- Author:
- tiwe
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newGroovyBeanSerializerinstanceGroovyBeanSerializer(boolean propertyAnnotations) Create a newGroovyBeanSerializerinstanceGroovyBeanSerializer(boolean propertyAnnotations, String javadocSuffix) Create a newGroovyBeanSerializerinstanceGroovyBeanSerializer(String javadocSuffix) Create a newGroovyBeanSerializerinstance -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbodyEnd(EntityType model, CodeWriter writer) protected voidbodyStart(EntityType model, CodeWriter writer) voidserialize(EntityType model, SerializerConfig serializerConfig, CodeWriter writer) Serialize the givenEntityTypevoidsetPrintSupertype(boolean printSupertype)
-
Constructor Details
-
GroovyBeanSerializer
public GroovyBeanSerializer()Create a newGroovyBeanSerializerinstance -
GroovyBeanSerializer
Create a newGroovyBeanSerializerinstance- Parameters:
javadocSuffix- suffix to be used after the simple name in class level javadoc
-
GroovyBeanSerializer
public GroovyBeanSerializer(boolean propertyAnnotations) Create a newGroovyBeanSerializerinstance- Parameters:
propertyAnnotations- true, to serialize property annotations
-
GroovyBeanSerializer
Create a newGroovyBeanSerializerinstance- Parameters:
propertyAnnotations- true, to serialize property annotationsjavadocSuffix- suffix to be used after the simple name in class level javadoc
-
-
Method Details
-
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
-
bodyStart
- Throws:
IOException
-
bodyEnd
- Throws:
IOException
-
setPrintSupertype
public void setPrintSupertype(boolean printSupertype)
-