public class EntityProcessor extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_MODEL_SUFFIX |
static String |
ENTITY_LIST_FILE_PATH |
processingEnv
Constructor and Description |
---|
EntityProcessor() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getSupportedAnnotationTypes() |
SourceVersion |
getSupportedSourceVersion() |
void |
init(ProcessingEnvironment processingEnv) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
protected void |
processChecksConstraints(TypeDefinitionBuilder tableBuilder,
Check[] checks) |
protected void |
processIndexes(TypeDefinitionBuilder tableBuilder,
String tableName,
Index[] indexes) |
protected void |
processTable(TypeDefinitionBuilder tableBuilder,
String tableName,
Table table) |
protected void |
processTriggers(TypeDefinitionBuilder tableBuilder,
String tableName,
Trigger[] triggers) |
protected void |
processUniqueConstraints(TypeDefinitionBuilder tableBuilder,
Unique[] uniques) |
getCompletions, getSupportedOptions, isInitialized
public static final String CLASS_MODEL_SUFFIX
public static final String ENTITY_LIST_FILE_PATH
public void init(ProcessingEnvironment processingEnv)
init
in interface Processor
init
in class AbstractProcessor
public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface Processor
getSupportedAnnotationTypes
in class AbstractProcessor
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
protected void processTable(TypeDefinitionBuilder tableBuilder, String tableName, Table table) throws MappingException
MappingException
protected void processUniqueConstraints(TypeDefinitionBuilder tableBuilder, Unique[] uniques) throws MappingException
MappingException
protected void processTriggers(TypeDefinitionBuilder tableBuilder, String tableName, Trigger[] triggers) throws MappingException
MappingException
protected void processIndexes(TypeDefinitionBuilder tableBuilder, String tableName, Index[] indexes) throws MappingException
MappingException
protected void processChecksConstraints(TypeDefinitionBuilder tableBuilder, Check[] checks) throws MappingException
MappingException
Copyright © 2015. All Rights Reserved.