com.mysema.query.codegen
Class ProjectionSerializer

java.lang.Object
  extended by com.mysema.query.codegen.ProjectionSerializer
All Implemented Interfaces:
Serializer

public final class ProjectionSerializer
extends Object
implements Serializer

ProjectionSerializer is a Serializer implementation for projection types

Author:
tiwe

Constructor Summary
ProjectionSerializer(TypeMappings typeMappings)
          Create a new ProjectionSerializer instance
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectionSerializer

@Inject
public ProjectionSerializer(TypeMappings typeMappings)
Create a new ProjectionSerializer instance

Parameters:
typeMappings -
Method Detail

intro

protected void intro(EntityType model,
                     com.mysema.codegen.CodeWriter writer)
              throws IOException
Throws:
IOException

outro

protected void outro(EntityType model,
                     com.mysema.codegen.CodeWriter writer)
              throws IOException
Throws:
IOException

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 serialize
serializerConfig - TODO
writer - serialization target
Throws:
IOException


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.