Class AnnotationProcessor
- java.lang.Object
-
- com.github.amjadnas.sqldbmanager.utills.AnnotationProcessor
-
public class AnnotationProcessor extends Object
Utility class used to process the annotations
-
-
Method Summary
Modifier and Type Method Description static Class[]getEntities(Class<?> clazz)static booleanisColumn(Field clazz)static booleanisDao(Class<?> clazz)static booleanisDao(Field clazz)static booleanisDelete(Method method)static booleanisEntity(Class<?> clazz)static booleanisHandler(Class<?> clazz)static booleanisInsert(Method method)static booleanisQuery(Class<?> clazz)static booleanisQuery(Method clazz)static booleanisUpdate(Method method)
-
-
-
Method Detail
-
isEntity
public static boolean isEntity(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(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(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(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(Class<?> clazz)
-
isQuery
public static boolean isQuery(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(Class<?> clazz)
-
isInsert
public static boolean isInsert(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(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(Method method)
- Parameters:
method- the class method to be checked- Returns:
- if the provided class is an annotated Delete method
-
-