public abstract class AbstractDomainExporter extends Object
Modifier and Type | Field and Description |
---|---|
protected TypeFactory |
typeFactory |
Constructor and Description |
---|
AbstractDomainExporter(String namePrefix,
String nameSuffix,
File targetFolder,
SerializerConfig serializerConfig,
Charset charset) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
collectTypes() |
protected EntityType |
createEmbeddableType(Class<?> cl) |
protected EntityType |
createEmbeddableType(com.mysema.codegen.model.Type type) |
protected EntityType |
createEntityType(Class<?> cl) |
protected EntityType |
createEntityType(com.mysema.codegen.model.Type type) |
protected EntityType |
createEntityType(com.mysema.codegen.model.Type type,
Map<Class<?>,EntityType> types) |
protected Property |
createProperty(EntityType entityType,
String propertyName,
com.mysema.codegen.model.Type propertyType,
AnnotatedElement annotated) |
protected EntityType |
createSuperType(Class<?> cl) |
void |
execute()
Export the contents
|
protected AnnotatedElement |
getAnnotatedElement(Class<?> cl,
String propertyName) |
Set<File> |
getGeneratedFiles() |
protected com.mysema.codegen.model.Type |
getType(Class<?> cl,
Class<?> mappedType,
String propertyName) |
protected com.mysema.codegen.model.Type |
getTypeOverride(com.mysema.codegen.model.Type propertyType,
AnnotatedElement annotated) |
protected com.mysema.codegen.model.Type |
normalize(com.mysema.codegen.model.Type first,
com.mysema.codegen.model.Type second) |
void |
setUnknownAsEntity(boolean unknownAsEntity) |
protected final TypeFactory typeFactory
public AbstractDomainExporter(String namePrefix, String nameSuffix, File targetFolder, SerializerConfig serializerConfig, Charset charset)
namePrefix
- nameSuffix
- targetFolder
- serializerConfig
- charset
- public void execute() throws IOException
IOException
protected EntityType createEmbeddableType(Class<?> cl)
protected EntityType createEmbeddableType(com.mysema.codegen.model.Type type)
protected EntityType createEntityType(Class<?> cl)
protected EntityType createEntityType(com.mysema.codegen.model.Type type)
protected EntityType createEntityType(com.mysema.codegen.model.Type type, Map<Class<?>,EntityType> types)
@Nullable protected com.mysema.codegen.model.Type getTypeOverride(com.mysema.codegen.model.Type propertyType, AnnotatedElement annotated)
protected Property createProperty(EntityType entityType, String propertyName, com.mysema.codegen.model.Type propertyType, AnnotatedElement annotated)
protected EntityType createSuperType(Class<?> cl)
protected AnnotatedElement getAnnotatedElement(Class<?> cl, String propertyName) throws NoSuchMethodException
NoSuchMethodException
protected com.mysema.codegen.model.Type getType(Class<?> cl, Class<?> mappedType, String propertyName) throws NoSuchMethodException
NoSuchMethodException
protected com.mysema.codegen.model.Type normalize(com.mysema.codegen.model.Type first, com.mysema.codegen.model.Type second)
public void setUnknownAsEntity(boolean unknownAsEntity)
Copyright © 2007–2015 Mysema Ltd. All rights reserved.