Class AnnotationProcessor
- java.lang.Object
-
- com.github.amjadnas.sqldbmanager.utills.AnnotationProcessor
-
public class AnnotationProcessor extends java.lang.ObjectUtility class used to process the annotations
-
-
Method Summary
Modifier and Type Method Description static java.lang.Class[]getEntities(java.lang.Class<?> clazz)static booleanisColumn(java.lang.reflect.Field clazz)static booleanisDao(java.lang.Class<?> clazz)static booleanisDao(java.lang.reflect.Field clazz)static booleanisDelete(java.lang.reflect.Method method)static booleanisEntity(java.lang.Class<?> clazz)static booleanisHandler(java.lang.Class<?> clazz)static booleanisInsert(java.lang.reflect.Method method)static booleanisQuery(java.lang.Class<?> clazz)static booleanisQuery(java.lang.reflect.Method clazz)static booleanisUpdate(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
-
-