com.mysema.query.codegen
Class ProjectionSerializer

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

@Immutable
public final class ProjectionSerializer
extends Object
implements Serializer

ProjectionSerializer is a Serializer implementation for DTO types

Author:
tiwe

Constructor Summary
ProjectionSerializer(TypeMappings typeMappings)
           
 
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

public ProjectionSerializer(TypeMappings 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-2011 Mysema Ltd. All Rights Reserved.