@SupportedAnnotationTypes(value={"javax.persistence.Entity","javax.persistence.Embeddable","javax.persistence.MappedSuperclass"}) public class JPACriteriaProcessor extends AbstractProcessor
public static volatile SingularAttribute<X, Y> y;
public static volatile CollectionAttribute<X, Z> z;
public static volatile SetAttribute<X, Z> z;
public static volatile ListAttribute<X, Z> z;
public static volatile MapAttribute<X, K, Z> z;where K is the type of the key of the map in class X
Modifier and Type | Field and Description |
---|---|
protected static Class[] |
annotationsWithTargetEntity |
processingEnv
Constructor and Description |
---|
JPACriteriaProcessor() |
Modifier and Type | Method and Description |
---|---|
static List<? extends Element> |
getDefaultAccessMembers(TypeElement el)
Convenience accessor for members for the default access type of the supplied type element.
|
TypeElement |
getPersistentSupertype(TypeElement element)
Method to find the next persistent supertype above this one.
|
SourceVersion |
getSupportedSourceVersion() |
static boolean |
isJPAAnnotated(TypeElement el)
Convenience method to return if this class element has any of the defining JPA annotations.
|
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
protected void |
processClass(TypeElement el)
Handler for processing a JPA annotated class to create the criteria class stub.
|
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
protected static Class[] annotationsWithTargetEntity
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
protected void processClass(TypeElement el)
el
- The class elementpublic TypeElement getPersistentSupertype(TypeElement element)
element
- The elementpublic static List<? extends Element> getDefaultAccessMembers(TypeElement el)
el
- The type elementpublic static boolean isJPAAnnotated(TypeElement el)
el
- The class elementpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
in class AbstractProcessor
Copyright © 2016. All rights reserved.