com.mysema.query.sql
Class MetaDataSerializer
java.lang.Object
com.mysema.query.codegen.EntitySerializer
com.mysema.query.sql.MetaDataSerializer
- All Implemented Interfaces:
- Serializer
public class MetaDataSerializer
- extends EntitySerializer
MetaDataSerializer defines the Query type serialization logic for MetaDataExporter.
Subclass this class for customization.
- Author:
- tiwe
Method Summary |
protected void |
introClassHeader(com.mysema.codegen.CodeWriter writer,
EntityType model)
|
protected void |
introDefaultInstance(com.mysema.codegen.CodeWriter writer,
EntityType entityType)
|
protected void |
introImports(com.mysema.codegen.CodeWriter writer,
SerializerConfig config,
EntityType model)
|
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)
|
Methods inherited from class com.mysema.query.codegen.EntitySerializer |
constructors, constructorsForVariables, entityAccessor, entityField, hasOwnEntityProperties, initEntityField, initEntityFields, intro, introDelegatePackages, introFactoryMethods, introInits, introJavadoc, introPackage, introSuper, listAccessor, mapAccessor, method, methodField, outro, serialize, serialize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaDataSerializer
public MetaDataSerializer(String namePrefix,
NamingStrategy namingStrategy,
boolean innerClassesForKeys)
MetaDataSerializer
public MetaDataSerializer(String namePrefix,
NamingStrategy namingStrategy)
introClassHeader
protected void introClassHeader(com.mysema.codegen.CodeWriter writer,
EntityType model)
throws IOException
- Overrides:
introClassHeader
in class EntitySerializer
- Throws:
IOException
introDefaultInstance
protected void introDefaultInstance(com.mysema.codegen.CodeWriter writer,
EntityType entityType)
throws IOException
- Overrides:
introDefaultInstance
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
serializeProperties
protected void serializeProperties(EntityType model,
SerializerConfig config,
com.mysema.codegen.CodeWriter writer)
throws IOException
- Overrides:
serializeProperties
in class EntitySerializer
- Throws:
IOException
serializePrimaryKeys
protected void serializePrimaryKeys(EntityType model,
com.mysema.codegen.CodeWriter writer,
Collection<PrimaryKeyData> primaryKeys)
throws IOException
- Throws:
IOException
serializeForeignKeys
protected void serializeForeignKeys(EntityType model,
com.mysema.codegen.CodeWriter writer,
Collection<? extends KeyData> foreignKeys,
boolean inverse)
throws IOException
- Throws:
IOException
Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.