@SupportedAnnotationTypes(value="javax.jdo.annotations.PersistenceCapable") public class JDOQueryProcessor extends AbstractProcessor
This processor can generate classes in two modes.
| Modifier and Type | Field and Description |
|---|---|
int |
fieldDepth |
static String |
OPTION_MODE |
int |
queryMode |
processingEnv| Constructor and Description |
|---|
JDOQueryProcessor() |
| Modifier and Type | Method and Description |
|---|---|
TypeElement |
getPersistentSupertype(TypeElement element)
Method to find the next persistent supertype above this one.
|
static String |
getQueryClassNameForClassName(String name)
Method to return the (simple) name of the query class for a specified class name.
|
SourceVersion |
getSupportedSourceVersion() |
void |
init(ProcessingEnvironment pe) |
boolean |
isPersistableType(TypeElement el) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
protected void |
processClass(TypeElement el)
Handler for processing a JDO annotated class to create the criteria class stub.
|
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitializedpublic static final String OPTION_MODE
public int queryMode
public int fieldDepth
public void init(ProcessingEnvironment pe)
init in interface Processorinit in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorprotected void processClass(TypeElement el)
el - The class elementpublic boolean isPersistableType(TypeElement el)
public TypeElement getPersistentSupertype(TypeElement element)
element - The elementpublic static String getQueryClassNameForClassName(String name)
name - Simple name of the class (without package)Copyright © 2015. All rights reserved.