Search in sources :

Example 6 with AbstractDAOElementGenerator

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

the class DAOGenerator method addDeleteByPrimaryKeyMethod.

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

Example 7 with AbstractDAOElementGenerator

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

the class DAOGenerator method addSelectByPrimaryKeyMethod.

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

Example 8 with AbstractDAOElementGenerator

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

the class DAOGenerator method addSelectByExampleWithoutBLOBsMethod.

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

Example 9 with AbstractDAOElementGenerator

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

the class DAOGenerator method addUpdateByExampleSelectiveMethod.

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

Example 10 with AbstractDAOElementGenerator

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

the class DAOGenerator method addUpdateByPrimaryKeyWithoutBLOBsMethod.

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

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