Class ExampleGenerator


public class ExampleGenerator extends AbstractJavaGenerator
  • Constructor Details

    • ExampleGenerator

      public ExampleGenerator(String project)
  • Method Details

    • getCompilationUnits

      public List<CompilationUnit> getCompilationUnits()
      Specified by:
      getCompilationUnits in class AbstractJavaGenerator
    • getCriterionInnerClass

      private InnerClass getCriterionInnerClass()
    • createCriterionConstructor

      private Method createCriterionConstructor()
    • getCriteriaInnerClass

      private InnerClass getCriteriaInnerClass()
    • getGeneratedCriteriaInnerClass

      private InnerClass getGeneratedCriteriaInnerClass(TopLevelClass topLevelClass)
    • getSetNullMethod

      private Method getSetNullMethod(IntrospectedColumn introspectedColumn)
    • getSetNotNullMethod

      private Method getSetNotNullMethod(IntrospectedColumn introspectedColumn)
    • getSetEqualMethod

      private Method getSetEqualMethod(IntrospectedColumn introspectedColumn)
    • getSetNotEqualMethod

      private Method getSetNotEqualMethod(IntrospectedColumn introspectedColumn)
    • getSetGreaterThanMethod

      private Method getSetGreaterThanMethod(IntrospectedColumn introspectedColumn)
    • getSetGreaterThenOrEqualMethod

      private Method getSetGreaterThenOrEqualMethod(IntrospectedColumn introspectedColumn)
    • getSetLessThanMethod

      private Method getSetLessThanMethod(IntrospectedColumn introspectedColumn)
    • getSetLessThanOrEqualMethod

      private Method getSetLessThanOrEqualMethod(IntrospectedColumn introspectedColumn)
    • getSetLikeMethod

      private Method getSetLikeMethod(IntrospectedColumn introspectedColumn)
    • getSetNotLikeMethod

      private Method getSetNotLikeMethod(IntrospectedColumn introspectedColumn)
    • getSingleValueMethod

      private Method getSingleValueMethod(IntrospectedColumn introspectedColumn, String nameFragment, String operator)
    • initializeAndMethodName

      private String initializeAndMethodName(IntrospectedColumn introspectedColumn)
    • initializeAddLine

      private String initializeAddLine(IntrospectedColumn introspectedColumn)
    • getSetBetweenOrNotBetweenMethod

      private Method getSetBetweenOrNotBetweenMethod(IntrospectedColumn introspectedColumn, boolean betweenMethod)
      Generates methods that set between and not between conditions.
      Parameters:
      introspectedColumn - the introspected column
      betweenMethod - true if between, else not between
      Returns:
      a generated method for the between or not between method
    • getSetInOrNotInMethod

      private Method getSetInOrNotInMethod(IntrospectedColumn introspectedColumn, boolean inMethod)
      Generates an In or NotIn method.
      Parameters:
      introspectedColumn - the introspected column
      inMethod - if true generates an "in" method, else generates a "not in" method
      Returns:
      a generated method for the in or not in method
    • getNoValueMethod

      private Method getNoValueMethod(IntrospectedColumn introspectedColumn, String nameFragment, String operator)
    • addTypeHandledObjectsAndMethods

      private String addTypeHandledObjectsAndMethods(IntrospectedColumn introspectedColumn, Method constructor, InnerClass innerClass)
      This method adds all the extra methods and fields required to support a user defined type handler on some column.
      Parameters:
      introspectedColumn - the introspected column
      constructor - the constructor
      innerClass - the enclosing class
      Returns:
      the name of the List added to the class by this method