Search in sources :

Example 11 with AbstractDAOElementGenerator

use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.

the class DAOGenerator method addInsertMethod.

protected void addInsertMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateInsert()) {
        AbstractDAOElementGenerator methodGenerator = new InsertMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
}
Also used : InsertMethodGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.InsertMethodGenerator) AbstractDAOElementGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator)

Example 12 with AbstractDAOElementGenerator

use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.

the class DAOGenerator method addSelectByExampleWithBLOBsMethod.

protected void addSelectByExampleWithBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByExampleWithBLOBs()) {
        AbstractDAOElementGenerator methodGenerator = new SelectByExampleWithBLOBsMethodGenerator(generateForJava5);
        initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
}
Also used : AbstractDAOElementGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator) SelectByExampleWithBLOBsMethodGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.SelectByExampleWithBLOBsMethodGenerator)

Example 13 with AbstractDAOElementGenerator

use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.

the class DAOGenerator method addCountByExampleMethod.

protected void addCountByExampleMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateCountByExample()) {
        AbstractDAOElementGenerator methodGenerator = new CountByExampleMethodGenerator(generateForJava5);
        initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
}
Also used : CountByExampleMethodGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.CountByExampleMethodGenerator) AbstractDAOElementGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator)

Example 14 with AbstractDAOElementGenerator

use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.

the class DAOGenerator method addUpdateByExampleWithoutBLOBsMethod.

protected void addUpdateByExampleWithoutBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByExampleWithoutBLOBs()) {
        AbstractDAOElementGenerator methodGenerator = new UpdateByExampleWithoutBLOBsMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
}
Also used : AbstractDAOElementGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator) UpdateByExampleWithoutBLOBsMethodGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.UpdateByExampleWithoutBLOBsMethodGenerator)

Example 15 with AbstractDAOElementGenerator

use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.

the class DAOGenerator method addInsertSelectiveMethod.

protected void addInsertSelectiveMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateInsertSelective()) {
        AbstractDAOElementGenerator methodGenerator = new InsertSelectiveMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
}
Also used : InsertSelectiveMethodGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.InsertSelectiveMethodGenerator) AbstractDAOElementGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator)

Aggregations

AbstractDAOElementGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator)15 CountByExampleMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.CountByExampleMethodGenerator)1 DeleteByExampleMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.DeleteByExampleMethodGenerator)1 DeleteByPrimaryKeyMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.DeleteByPrimaryKeyMethodGenerator)1 InsertMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.InsertMethodGenerator)1 InsertSelectiveMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.InsertSelectiveMethodGenerator)1 SelectByExampleWithBLOBsMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.SelectByExampleWithBLOBsMethodGenerator)1 SelectByExampleWithoutBLOBsMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.SelectByExampleWithoutBLOBsMethodGenerator)1 SelectByPrimaryKeyMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.SelectByPrimaryKeyMethodGenerator)1 UpdateByExampleParmsInnerclassGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.UpdateByExampleParmsInnerclassGenerator)1 UpdateByExampleSelectiveMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.UpdateByExampleSelectiveMethodGenerator)1 UpdateByExampleWithBLOBsMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.UpdateByExampleWithBLOBsMethodGenerator)1 UpdateByExampleWithoutBLOBsMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.UpdateByExampleWithoutBLOBsMethodGenerator)1 UpdateByPrimaryKeySelectiveMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.UpdateByPrimaryKeySelectiveMethodGenerator)1 UpdateByPrimaryKeyWithBLOBsMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.UpdateByPrimaryKeyWithBLOBsMethodGenerator)1 UpdateByPrimaryKeyWithoutBLOBsMethodGenerator (org.mybatis.generator.codegen.ibatis2.dao.elements.UpdateByPrimaryKeyWithoutBLOBsMethodGenerator)1 Rules (org.mybatis.generator.internal.rules.Rules)1