com.mysema.query.codegen
Class DTOSerializer

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

@Immutable
public 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(EntityModel model, CodeWriter writer)
           
protected  void outro(EntityModel model, CodeWriter writer)
           
 void serialize(EntityModel model, SerializerConfig serializerConfig, Writer w)
          Serialize the given ClassModel
 
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(EntityModel model,
                     CodeWriter writer)
              throws IOException
Throws:
IOException

outro

protected void outro(EntityModel model,
                     CodeWriter writer)
              throws IOException
Throws:
IOException

serialize

public void serialize(EntityModel model,
                      SerializerConfig serializerConfig,
                      Writer w)
               throws IOException
Description copied from interface: Serializer
Serialize the given ClassModel

Specified by:
serialize in interface Serializer
Parameters:
model - ClassModel to serialize
serializerConfig - TODO
w - serialization target
Throws:
IOException


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