Class AnnotationProcessor
- java.lang.Object
-
- com.github.amjadnas.sqldbmanager.utills.AnnotationProcessor
-
public class AnnotationProcessor extends java.lang.Object
Utility class used to process the annotations
-
-
Method Summary
Modifier and Type Method Description static java.lang.Class[]
getEntities(java.lang.Class<?> clazz)
static boolean
isColumn(java.lang.reflect.Field clazz)
static boolean
isDao(java.lang.Class<?> clazz)
static boolean
isDao(java.lang.reflect.Field clazz)
static boolean
isDelete(java.lang.reflect.Method method)
static boolean
isEntity(java.lang.Class<?> clazz)
static boolean
isHandler(java.lang.Class<?> clazz)
static boolean
isInsert(java.lang.reflect.Method method)
static boolean
isQuery(java.lang.Class<?> clazz)
static boolean
isQuery(java.lang.reflect.Method clazz)
static boolean
isUpdate(java.lang.reflect.Method method)
-
-
-
Method Detail
-
isEntity
public static boolean isEntity(java.lang.Class<?> clazz)
- Parameters:
clazz
- the class object to be checked- Returns:
- if the provided class is an annotated entity object
-
isDao
public static boolean isDao(java.lang.Class<?> clazz)
- Parameters:
clazz
- the class object to be checked- Returns:
- if the provided class is an annotated Dao interface
-
isDao
public static boolean isDao(java.lang.reflect.Field clazz)
- Parameters:
clazz
- the class field to be checked- Returns:
- if the provided class is an annotated Dao interface
-
isColumn
public static boolean isColumn(java.lang.reflect.Field clazz)
- Parameters:
clazz
- the class field to be checked- Returns:
- if the provided class is an annotated Column field
-
isQuery
public static boolean isQuery(java.lang.Class<?> clazz)
-
isQuery
public static boolean isQuery(java.lang.reflect.Method clazz)
- Parameters:
clazz
- the class method to be checked- Returns:
- if the provided class is an annotated Query method
-
isHandler
public static boolean isHandler(java.lang.Class<?> clazz)
-
isInsert
public static boolean isInsert(java.lang.reflect.Method method)
- Parameters:
method
- the class method to be checked- Returns:
- if the provided class is an annotated Insert method
-
isUpdate
public static boolean isUpdate(java.lang.reflect.Method method)
- Parameters:
method
- the class method to be checked- Returns:
- if the provided class is an annotated Update method
-
isDelete
public static boolean isDelete(java.lang.reflect.Method method)
- Parameters:
method
- the class method to be checked- Returns:
- if the provided class is an annotated Delete method
-
getEntities
public static java.lang.Class[] getEntities(java.lang.Class<?> clazz)
- Parameters:
clazz
- the class method to be checked- Returns:
- returns the entities registered to the handler class
-
-