public class MetaDataSerializer extends EntitySerializer
MetaDataSerializer
defines the Query type serialization logic for MetaDataExporter
.
Extend this class for customization.keywords, typeMappings
Constructor and Description |
---|
MetaDataSerializer(TypeMappings typeMappings,
NamingStrategy namingStrategy,
boolean innerClassesForKeys,
Set<String> imports,
Comparator<Property> columnComparator,
Class<?> entityPathType)
Create a new
MetaDataSerializer instance |
Modifier and Type | Method and Description |
---|---|
protected void |
constructorContent(com.mysema.codegen.CodeWriter writer,
EntityType model) |
protected void |
constructorsForVariables(com.mysema.codegen.CodeWriter writer,
EntityType model) |
protected void |
customField(EntityType model,
Property field,
SerializerConfig config,
com.mysema.codegen.CodeWriter writer) |
protected String |
getAdditionalConstructorParameter(EntityType model) |
protected void |
introClassHeader(com.mysema.codegen.CodeWriter writer,
EntityType model) |
protected void |
introDefaultInstance(com.mysema.codegen.CodeWriter writer,
EntityType entityType,
String defaultName) |
protected void |
introImports(com.mysema.codegen.CodeWriter writer,
SerializerConfig config,
EntityType model) |
protected void |
outro(EntityType model,
com.mysema.codegen.CodeWriter writer) |
protected void |
serializeForeignKeys(EntityType model,
com.mysema.codegen.CodeWriter writer,
Collection<? extends KeyData> foreignKeys,
boolean inverse) |
protected void |
serializePrimaryKeys(EntityType model,
com.mysema.codegen.CodeWriter writer,
Collection<PrimaryKeyData> primaryKeys) |
protected void |
serializeProperties(EntityType model,
SerializerConfig config,
com.mysema.codegen.CodeWriter writer) |
protected void |
writeUserImports(com.mysema.codegen.CodeWriter writer) |
constructors, entityAccessor, entityField, hasOwnEntityProperties, initEntityField, initEntityFields, intro, introDelegatePackages, introFactoryMethods, introInits, introJavadoc, introPackage, introSuper, isImportExprPackage, listAccessor, mapAccessor, serialize, serialize
@Inject public MetaDataSerializer(TypeMappings typeMappings, NamingStrategy namingStrategy, @Named(value="innerClassesForKeys") boolean innerClassesForKeys, @Named(value="imports") Set<String> imports, @Named(value="columnComparator") Comparator<Property> columnComparator, @Named(value="entityPathType") Class<?> entityPathType)
MetaDataSerializer
instancenamingStrategy
- naming strategy for table to class and column to property conversioninnerClassesForKeys
- wrap key properties into inner classes (default: false)imports
- java user importsprotected void constructorsForVariables(com.mysema.codegen.CodeWriter writer, EntityType model) throws IOException
constructorsForVariables
in class EntitySerializer
IOException
protected void constructorContent(com.mysema.codegen.CodeWriter writer, EntityType model) throws IOException
constructorContent
in class EntitySerializer
IOException
protected void introClassHeader(com.mysema.codegen.CodeWriter writer, EntityType model) throws IOException
introClassHeader
in class EntitySerializer
IOException
protected String getAdditionalConstructorParameter(EntityType model)
getAdditionalConstructorParameter
in class EntitySerializer
protected void introDefaultInstance(com.mysema.codegen.CodeWriter writer, EntityType entityType, String defaultName) throws IOException
introDefaultInstance
in class EntitySerializer
IOException
protected void introImports(com.mysema.codegen.CodeWriter writer, SerializerConfig config, EntityType model) throws IOException
introImports
in class EntitySerializer
IOException
protected void writeUserImports(com.mysema.codegen.CodeWriter writer) throws IOException
IOException
protected void outro(EntityType model, com.mysema.codegen.CodeWriter writer) throws IOException
outro
in class EntitySerializer
IOException
protected void serializeProperties(EntityType model, SerializerConfig config, com.mysema.codegen.CodeWriter writer) throws IOException
serializeProperties
in class EntitySerializer
IOException
protected void customField(EntityType model, Property field, SerializerConfig config, com.mysema.codegen.CodeWriter writer) throws IOException
customField
in class EntitySerializer
IOException
protected void serializePrimaryKeys(EntityType model, com.mysema.codegen.CodeWriter writer, Collection<PrimaryKeyData> primaryKeys) throws IOException
IOException
protected void serializeForeignKeys(EntityType model, com.mysema.codegen.CodeWriter writer, Collection<? extends KeyData> foreignKeys, boolean inverse) throws IOException
IOException
Copyright © 2007–2016 Querydsl. All rights reserved.