public class MetaDataSerializer extends EntitySerializer
keywords, typeMappings
Constructor and Description |
---|
MetaDataSerializer(TypeMappings typeMappings,
NamingStrategy namingStrategy,
boolean innerClassesForKeys)
Create a new MetaDataSerializer instance
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getAdditionalConstructorParameter(EntityType model) |
protected void |
introClassHeader(com.mysema.codegen.CodeWriter writer,
EntityType model) |
protected void |
introDefaultInstance(com.mysema.codegen.CodeWriter writer,
EntityType entityType,
java.lang.String defaultName) |
protected void |
introImports(com.mysema.codegen.CodeWriter writer,
SerializerConfig config,
EntityType model) |
protected void |
serializeForeignKeys(EntityType model,
com.mysema.codegen.CodeWriter writer,
java.util.Collection<? extends KeyData> foreignKeys,
boolean inverse) |
protected void |
serializePrimaryKeys(EntityType model,
com.mysema.codegen.CodeWriter writer,
java.util.Collection<PrimaryKeyData> primaryKeys) |
protected void |
serializeProperties(EntityType model,
SerializerConfig config,
com.mysema.codegen.CodeWriter writer) |
constructors, constructorsForVariables, entityAccessor, entityField, hasOwnEntityProperties, initEntityField, initEntityFields, intro, introDelegatePackages, introFactoryMethods, introInits, introJavadoc, introPackage, introSuper, isImportExprPackage, listAccessor, mapAccessor, outro, serialize, serialize
@Inject public MetaDataSerializer(TypeMappings typeMappings, NamingStrategy namingStrategy, @Named(value="innerClassesForKeys") boolean innerClassesForKeys)
namingStrategy
- naming strategy for table to class and column to property conversioninnerClassesForKeys
- wrap key properties into inner classes (default: false)schemaToPackage
- if schema name is appended to package or notprotected void introClassHeader(com.mysema.codegen.CodeWriter writer, EntityType model) throws java.io.IOException
introClassHeader
in class EntitySerializer
java.io.IOException
protected java.lang.String getAdditionalConstructorParameter(EntityType model)
getAdditionalConstructorParameter
in class EntitySerializer
protected void introDefaultInstance(com.mysema.codegen.CodeWriter writer, EntityType entityType, java.lang.String defaultName) throws java.io.IOException
introDefaultInstance
in class EntitySerializer
java.io.IOException
protected void introImports(com.mysema.codegen.CodeWriter writer, SerializerConfig config, EntityType model) throws java.io.IOException
introImports
in class EntitySerializer
java.io.IOException
protected void serializeProperties(EntityType model, SerializerConfig config, com.mysema.codegen.CodeWriter writer) throws java.io.IOException
serializeProperties
in class EntitySerializer
java.io.IOException
protected void serializePrimaryKeys(EntityType model, com.mysema.codegen.CodeWriter writer, java.util.Collection<PrimaryKeyData> primaryKeys) throws java.io.IOException
java.io.IOException
protected void serializeForeignKeys(EntityType model, com.mysema.codegen.CodeWriter writer, java.util.Collection<? extends KeyData> foreignKeys, boolean inverse) throws java.io.IOException
java.io.IOException
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.