com.mysema.query.codegen
Class BeanSerializer
java.lang.Object
com.mysema.query.codegen.BeanSerializer
- All Implemented Interfaces:
- Serializer
- Direct Known Subclasses:
- ExtendedBeanSerializer
public class BeanSerializer
- extends Object
- implements Serializer
BeanSerializer is a Serializer implementation which serializes EntityType instances into JavaBean classes
- Author:
- tiwe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanSerializer
public BeanSerializer()
BeanSerializer
public BeanSerializer(String javadocSuffix)
BeanSerializer
public BeanSerializer(boolean propertyAnnotations)
BeanSerializer
public BeanSerializer(boolean propertyAnnotations,
String javadocSuffix)
serialize
public void serialize(EntityType model,
SerializerConfig serializerConfig,
com.mysema.codegen.CodeWriter writer)
throws IOException
- Description copied from interface:
Serializer
- Serialize the given EntityType
- Specified by:
serialize
in interface Serializer
- Parameters:
model
- EntityType to serializeserializerConfig
- TODOwriter
- serialization target
- Throws:
IOException
addFullConstructor
protected void addFullConstructor(EntityType model,
com.mysema.codegen.CodeWriter writer)
throws IOException
- Throws:
IOException
addToString
protected void addToString(EntityType model,
com.mysema.codegen.CodeWriter writer)
throws IOException
- Throws:
IOException
bodyStart
protected void bodyStart(EntityType model,
com.mysema.codegen.CodeWriter writer)
throws IOException
- Throws:
IOException
bodyEnd
protected void bodyEnd(EntityType model,
com.mysema.codegen.CodeWriter writer)
throws IOException
- Throws:
IOException
setAddToString
public void setAddToString(boolean addToString)
setAddFullConstructor
public void setAddFullConstructor(boolean addFullConstructor)
Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.