com.mysema.query.codegen
Class EntitySerializer
java.lang.Object
com.mysema.query.codegen.AbstractSerializer
com.mysema.query.codegen.EntitySerializer
- All Implemented Interfaces:
- Serializer
- Direct Known Subclasses:
- EmbeddableSerializer, SupertypeSerializer
@Immutable
public class EntitySerializer
- extends AbstractSerializer
EntitySerializer is a Serializer implementation for entity types
- Author:
- tiwe
Method Summary |
protected void |
constructors(EntityModel model,
Writer writer)
|
protected void |
constructorsForVariables(StringBuilder builder,
EntityModel model)
|
protected void |
entityField(PropertyModel field,
Writer writer)
|
protected boolean |
hasOwnEntityProperties(EntityModel model)
|
protected void |
initEntityFields(StringBuilder builder,
EntityModel model)
|
protected void |
intro(EntityModel model,
Writer writer)
|
protected void |
introClassHeader(StringBuilder builder,
EntityModel model)
|
protected void |
introDefaultInstance(StringBuilder builder,
EntityModel model)
|
protected void |
introFactoryMethods(StringBuilder builder,
EntityModel model)
|
protected void |
introImports(StringBuilder builder,
EntityModel model)
|
protected void |
introInits(StringBuilder builder,
EntityModel model)
|
protected void |
introJavadoc(StringBuilder builder,
EntityModel model)
|
protected void |
introPackage(StringBuilder builder,
EntityModel model)
|
protected void |
introSuper(StringBuilder builder,
EntityModel model)
|
protected void |
listAccessor(PropertyModel field,
Writer writer)
|
protected void |
mapAccessor(PropertyModel field,
Writer writer)
|
protected void |
outro(EntityModel model,
Writer writer)
|
void |
serialize(EntityModel model,
Writer writer)
Serialize the given ClassModel |
protected void |
serialize(PropertyModel field,
String type,
Writer writer,
String factoryMethod,
String... args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntitySerializer
public EntitySerializer()
constructors
protected void constructors(EntityModel model,
Writer writer)
throws IOException
- Throws:
IOException
constructorsForVariables
protected void constructorsForVariables(StringBuilder builder,
EntityModel model)
entityField
protected void entityField(PropertyModel field,
Writer writer)
throws IOException
- Throws:
IOException
hasOwnEntityProperties
protected boolean hasOwnEntityProperties(EntityModel model)
initEntityFields
protected void initEntityFields(StringBuilder builder,
EntityModel model)
intro
protected void intro(EntityModel model,
Writer writer)
throws IOException
- Throws:
IOException
introClassHeader
protected void introClassHeader(StringBuilder builder,
EntityModel model)
introDefaultInstance
protected void introDefaultInstance(StringBuilder builder,
EntityModel model)
introFactoryMethods
protected void introFactoryMethods(StringBuilder builder,
EntityModel model)
throws IOException
- Throws:
IOException
introImports
protected void introImports(StringBuilder builder,
EntityModel model)
introInits
protected void introInits(StringBuilder builder,
EntityModel model)
introJavadoc
protected void introJavadoc(StringBuilder builder,
EntityModel model)
introPackage
protected void introPackage(StringBuilder builder,
EntityModel model)
introSuper
protected void introSuper(StringBuilder builder,
EntityModel model)
listAccessor
protected void listAccessor(PropertyModel field,
Writer writer)
throws IOException
- Throws:
IOException
mapAccessor
protected void mapAccessor(PropertyModel field,
Writer writer)
throws IOException
- Throws:
IOException
outro
protected void outro(EntityModel model,
Writer writer)
throws IOException
- Throws:
IOException
serialize
public void serialize(EntityModel model,
Writer writer)
throws IOException
- Description copied from interface:
Serializer
- Serialize the given ClassModel
- Parameters:
model
- ClassModel to serializewriter
- serialization target
- Throws:
IOException
serialize
protected void serialize(PropertyModel field,
String type,
Writer writer,
String factoryMethod,
String... args)
throws IOException
- Throws:
IOException
Copyright © 2007-2009 Mysema Ltd. All Rights Reserved.