com.mysema.query.codegen
Class DTOSerializer

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

@Immutable
public final class DTOSerializer
extends Object
implements Serializer

DTOSerializer is a Serializer implementation for DTO types

Author:
tiwe

Constructor Summary
DTOSerializer(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

DTOSerializer

public DTOSerializer(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-2010 Mysema Ltd. All Rights Reserved.