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