Class IsXXX

    • Constructor Detail

      • IsXXX

        public IsXXX​(ClassEnhancer enhancer,
                     String name,
                     int access,
                     Object returnType,
                     Object[] argTypes,
                     String[] argNames)
        enhancer - ClassEnhancer
        name - Name of method
        access - Access type
        returnType - Return type
        argTypes - Argument types
        argNames - Argument names
    • Method Detail

      • getStateManagerIsMethod

        protected abstract String getStateManagerIsMethod()
        Method returning the name of the method on the StateManager that gives the return info.
        Name of the StateManager method (isNew, isPersistent, isDeleted etc)
      • execute

        public void execute()
        Method to add the contents of the class method. Creates the method as follows
         return dnStateManager != null ? dnStateManager.isXXX(this) : false;
        where "isXXX" is replaced by the output of "getStateManagerIsMethod"
        Specified by:
        execute in class ClassMethod