public class BeanSerializer extends Object implements Serializer
BeanSerializer
is a Serializer
implementation which serializes EntityType
instances into JavaBean classesConstructor and Description |
---|
BeanSerializer()
Create a new BeanSerializer
|
BeanSerializer(boolean propertyAnnotations)
Create a new BeanSerializer
|
BeanSerializer(boolean propertyAnnotations,
String javadocSuffix)
Create a new BeanSerializer
|
BeanSerializer(String javadocSuffix)
Create a new BeanSerializer with the given javadoc suffix
|
Modifier and Type | Method and Description |
---|---|
protected void |
addFullConstructor(EntityType model,
com.mysema.codegen.CodeWriter writer) |
void |
addInterface(Class<?> iface) |
void |
addInterface(com.mysema.codegen.model.Type type) |
protected void |
addToString(EntityType model,
com.mysema.codegen.CodeWriter writer) |
protected void |
bodyEnd(EntityType model,
com.mysema.codegen.CodeWriter writer) |
protected void |
bodyStart(EntityType model,
com.mysema.codegen.CodeWriter writer) |
void |
serialize(EntityType model,
SerializerConfig serializerConfig,
com.mysema.codegen.CodeWriter writer)
Serialize the given
EntityType |
void |
setAddFullConstructor(boolean addFullConstructor) |
void |
setAddToString(boolean addToString) |
void |
setPrintSupertype(boolean printSupertype) |
public BeanSerializer()
public BeanSerializer(String javadocSuffix)
javadocSuffix
- suffix to be used after the simple name in class level javadocpublic BeanSerializer(boolean propertyAnnotations)
propertyAnnotations
- true, to serialize property annotationspublic BeanSerializer(boolean propertyAnnotations, String javadocSuffix)
propertyAnnotations
- true, to serialize property annotationsjavadocSuffix
- suffix to be used after the simple name in class level javadocpublic void serialize(EntityType model, SerializerConfig serializerConfig, com.mysema.codegen.CodeWriter writer) throws IOException
Serializer
EntityType
serialize
in interface Serializer
model
- EntityType to serializeserializerConfig
- serializer configurationwriter
- serialization targetIOException
protected void addFullConstructor(EntityType model, com.mysema.codegen.CodeWriter writer) throws IOException
IOException
protected void addToString(EntityType model, com.mysema.codegen.CodeWriter writer) throws IOException
IOException
protected void bodyStart(EntityType model, com.mysema.codegen.CodeWriter writer) throws IOException
IOException
protected void bodyEnd(EntityType model, com.mysema.codegen.CodeWriter writer) throws IOException
IOException
public void addInterface(Class<?> iface)
public void addInterface(com.mysema.codegen.model.Type type)
public void setAddToString(boolean addToString)
public void setAddFullConstructor(boolean addFullConstructor)
public void setPrintSupertype(boolean printSupertype)
Copyright © 2007–2016 Querydsl. All rights reserved.