private void addColumnMethodToCriteria(TopLevelClass topLevelClass, InnerClass innerClass, IntrospectedTable introspectedTable) {
        // !!!!! Column import比较特殊引入的是外部类
        topLevelClass.addImportedType(introspectedTable.getRules().calculateAllFieldsClass());
        for (IntrospectedColumn introspectedColumn : introspectedTable.getNonBLOBColumns()) {
            topLevelClass.addImportedType(introspectedColumn.getFullyQualifiedJavaType());
            // EqualTo
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "EqualTo", "="));
            // NotEqualTo
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "NotEqualTo", "<>"));
            // GreaterThan
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "GreaterThan", ">"));
            // GreaterThanOrEqualTo
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "GreaterThanOrEqualTo", ">="));
            // LessThan
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "LessThan", "<"));
            // LessThanOrEqualTo
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "LessThanOrEqualTo", "<="));
        }
    }
private void addColumnMethodToCriteria(TopLevelClass topLevelClass, InnerClass innerClass, IntrospectedTable introspectedTable) {
        
        topLevelClass.addImportedType(introspectedTable.getRules().calculateAllFieldsClass());
        for (IntrospectedColumn introspectedColumn : introspectedTable.getNonBLOBColumns()) {
            topLevelClass.addImportedType(introspectedColumn.getFullyQualifiedJavaType());
            
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "EqualTo", "="));
            
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "NotEqualTo", "<>"));
            
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "GreaterThan", ">"));
            
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "GreaterThanOrEqualTo", ">="));
            
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "LessThan", "<"));
            
            FormatTools.addMethodWithBestPosition(innerClass, this.generateSingleValueMethod(introspectedTable, introspectedColumn, "LessThanOrEqualTo", "<="));
        }
    }
private void addColumnMethodToCriteria ( TopLevelClass topLevelClass , InnerClass innerClass , IntrospectedTable introspectedTable ) { // !!!!! Column import比较特殊引入的是外部类 topLevelClass . addImportedType ( introspectedTable . getRules ( ) . calculateAllFieldsClass ( ) ) ; for ( IntrospectedColumn introspectedColumn : introspectedTable . getNonBLOBColumns ( ) ) { topLevelClass . addImportedType ( introspectedColumn . getFullyQualifiedJavaType ( ) ) ; // EqualTo FormatTools . addMethodWithBestPosition ( innerClass , this . generateSingleValueMethod ( introspectedTable , introspectedColumn , "EqualTo" , "=" ) ) ; // NotEqualTo FormatTools . addMethodWithBestPosition ( innerClass , this . generateSingleValueMethod ( introspectedTable , introspectedColumn , "NotEqualTo" , "<>" ) ) ; // GreaterThan FormatTools . addMethodWithBestPosition ( innerClass , this . generateSingleValueMethod ( introspectedTable , introspectedColumn , "GreaterThan" , ">" ) ) ; // GreaterThanOrEqualTo FormatTools . addMethodWithBestPosition ( innerClass , this . generateSingleValueMethod ( introspectedTable , introspectedColumn , "GreaterThanOrEqualTo" , ">=" ) ) ; // LessThan FormatTools . addMethodWithBestPosition ( innerClass , this . generateSingleValueMethod ( introspectedTable , introspectedColumn , "LessThan" , "<" ) ) ; // LessThanOrEqualTo FormatTools . addMethodWithBestPosition ( innerClass , this . generateSingleValueMethod ( introspectedTable , introspectedColumn , "LessThanOrEqualTo" , "<=" ) ) ; } }
添加列操作方法
@param topLevelClass
@param innerClass
@param introspectedTable
添加列操作方法