Class AnnotationProcessor


  • public class AnnotationProcessor
    extends Object
    Utility class used to process the annotations
    • 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
      • getEntities

        public static Class[] getEntities​(Class<?> clazz)
        Parameters:
        clazz - the class method to be checked
        Returns:
        returns the entities registered to the handler class