Package org.mybatis.generator.codegen.ibatis2.model

Examples of org.mybatis.generator.codegen.ibatis2.model.ExampleGenerator


    String type = context.getJavaClientGeneratorConfiguration().getConfigurationType();

    AbstractJavaGenerator javaGenerator;
    if ("IBATIS".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new DAOGenerator(new IbatisDAOTemplate(), isJava5Targeted());
    } else if ("SPRING".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new DAOGenerator(new SpringDAOTemplate(), isJava5Targeted());
    } else if ("GENERIC-CI".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new DAOGenerator(new GenericCIDAOTemplate(), isJava5Targeted());
    } else if ("GENERIC-SI".equalsIgnoreCase(type)) { //$NON-NLS-1$
      javaGenerator = new DAOGenerator(new GenericSIDAOTemplate(), isJava5Targeted());
    } else {
      javaGenerator = (AbstractJavaGenerator) ObjectFactory.createInternalObject(type);
    }

    initializeAbstractGenerator(javaGenerator, warnings, progressCallback);
View Full Code Here


        String type = context.getJavaClientGeneratorConfiguration()
                .getConfigurationType();

        AbstractJavaGenerator javaGenerator;
        if ("IBATIS".equalsIgnoreCase(type)) { //$NON-NLS-1$
            javaGenerator = new DAOGenerator(new IbatisDAOTemplate(),
                    isJava5Targeted());
        } else if ("SPRING".equalsIgnoreCase(type)) { //$NON-NLS-1$
            javaGenerator = new DAOGenerator(new SpringDAOTemplate(),
                    isJava5Targeted());
        } else if ("GENERIC-CI".equalsIgnoreCase(type)) { //$NON-NLS-1$
            javaGenerator = new DAOGenerator(new GenericCIDAOTemplate(),
                    isJava5Targeted());
        } else if ("GENERIC-SI".equalsIgnoreCase(type)) { //$NON-NLS-1$
            javaGenerator = new DAOGenerator(new GenericSIDAOTemplate(),
                    isJava5Targeted());
        } else {
            javaGenerator = (AbstractJavaGenerator) ObjectFactory
                    .createInternalObject(type);
        }
View Full Code Here

    return answer;
  }

  protected void addCountByExampleMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateCountByExample()) {
      AbstractDAOElementGenerator methodGenerator = new CountByExampleMethodGenerator(generateForJava5);
      initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
  }
View Full Code Here

    }
  }

  protected void addDeleteByExampleMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateDeleteByExample()) {
      AbstractDAOElementGenerator methodGenerator = new DeleteByExampleMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
  }
View Full Code Here

    }
  }

  protected void addDeleteByPrimaryKeyMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateDeleteByPrimaryKey()) {
      AbstractDAOElementGenerator methodGenerator = new DeleteByPrimaryKeyMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
  }
View Full Code Here

    }
  }

  protected void addInsertMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateInsert()) {
      AbstractDAOElementGenerator methodGenerator = new InsertMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
  }
View Full Code Here

    }
  }

  protected void addInsertSelectiveMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateInsertSelective()) {
      AbstractDAOElementGenerator methodGenerator = new InsertSelectiveMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
  }
View Full Code Here

    }
  }

  protected void addSelectByExampleWithBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByExampleWithBLOBs()) {
      AbstractDAOElementGenerator methodGenerator = new SelectByExampleWithBLOBsMethodGenerator(generateForJava5);
      initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
  }
View Full Code Here

    }
  }

  protected void addSelectByExampleWithoutBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByExampleWithoutBLOBs()) {
      AbstractDAOElementGenerator methodGenerator = new SelectByExampleWithoutBLOBsMethodGenerator(
          generateForJava5);
      initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
  }
View Full Code Here

    }
  }

  protected void addSelectByPrimaryKeyMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByPrimaryKey()) {
      AbstractDAOElementGenerator methodGenerator = new SelectByPrimaryKeyMethodGenerator();
      initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
  }
View Full Code Here

TOP

Related Classes of org.mybatis.generator.codegen.ibatis2.model.ExampleGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.