com.mysema.query.codegen
Class EmbeddableSerializer

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

public final class EmbeddableSerializer
extends EntitySerializer

EmbeddableSerializer is a Serializer implementation for embeddable types

Author:
tiwe

Field Summary
 
Fields inherited from class com.mysema.query.codegen.EntitySerializer
keywords, typeMappings
 
Constructor Summary
EmbeddableSerializer(TypeMappings typeMappings, Collection<String> keywords)
           
 
Method Summary
protected  void introClassHeader(com.mysema.codegen.CodeWriter writer, EntityType model)
           
protected  void introFactoryMethods(com.mysema.codegen.CodeWriter writer, EntityType model)
           
protected  void introImports(com.mysema.codegen.CodeWriter writer, SerializerConfig config, EntityType model)
           
 
Methods inherited from class com.mysema.query.codegen.EntitySerializer
constructors, constructorsForVariables, entityAccessor, entityField, getAdditionalConstructorParameter, hasOwnEntityProperties, initEntityField, initEntityFields, intro, introDefaultInstance, introDelegatePackages, introInits, introJavadoc, introPackage, introSuper, isImportExprPackage, listAccessor, mapAccessor, outro, serialize, serialize, serializeProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddableSerializer

@Inject
public EmbeddableSerializer(TypeMappings typeMappings,
                                   @Named(value="keywords")
                                   Collection<String> keywords)
Method Detail

introClassHeader

protected void introClassHeader(com.mysema.codegen.CodeWriter writer,
                                EntityType model)
                         throws IOException
Overrides:
introClassHeader in class EntitySerializer
Throws:
IOException

introFactoryMethods

protected void introFactoryMethods(com.mysema.codegen.CodeWriter writer,
                                   EntityType model)
                            throws IOException
Overrides:
introFactoryMethods in class EntitySerializer
Throws:
IOException

introImports

protected void introImports(com.mysema.codegen.CodeWriter writer,
                            SerializerConfig config,
                            EntityType model)
                     throws IOException
Overrides:
introImports in class EntitySerializer
Throws:
IOException


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