public final class ProjectionSerializer extends Object implements Serializer
Serializer
implementation for projection typesConstructor and Description |
---|
ProjectionSerializer(TypeMappings typeMappings)
Create a new ProjectionSerializer instance
|
Modifier and Type | Method and Description |
---|---|
protected void |
intro(EntityType model,
com.mysema.codegen.CodeWriter writer) |
protected void |
outro(EntityType model,
com.mysema.codegen.CodeWriter writer) |
void |
serialize(EntityType model,
SerializerConfig serializerConfig,
com.mysema.codegen.CodeWriter writer)
Serialize the given
EntityType |
@Inject public ProjectionSerializer(TypeMappings typeMappings)
typeMappings
- protected void intro(EntityType model, com.mysema.codegen.CodeWriter writer) throws IOException
IOException
protected void outro(EntityType model, com.mysema.codegen.CodeWriter writer) throws IOException
IOException
public void serialize(EntityType model, SerializerConfig serializerConfig, com.mysema.codegen.CodeWriter writer) throws IOException
Serializer
EntityType
serialize
in interface Serializer
model
- EntityType to serializeserializerConfig
- TODOwriter
- serialization targetIOException
Copyright © 2007–2015 Mysema Ltd. All rights reserved.