Search in sources :

Example 1 with AbstractDAOElementGenerator

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

the class DAOGenerator method addUpdateByExampleWithBLOBsMethod.

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

Example 2 with AbstractDAOElementGenerator

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

the class DAOGenerator method addUpdateByPrimaryKeySelectiveMethod.

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

Example 3 with AbstractDAOElementGenerator

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

the class DAOGenerator method addUpdateByExampleParmsInnerclass.

protected void addUpdateByExampleParmsInnerclass(TopLevelClass topLevelClass, Interface interfaze) {
    Rules rules = introspectedTable.getRules();
    if (rules.generateUpdateByExampleSelective() || rules.generateUpdateByExampleWithBLOBs() || rules.generateUpdateByExampleWithoutBLOBs()) {
        AbstractDAOElementGenerator methodGenerator = new UpdateByExampleParmsInnerclassGenerator();
        initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
}
Also used : AbstractDAOElementGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator) UpdateByExampleParmsInnerclassGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.UpdateByExampleParmsInnerclassGenerator) Rules(org.mybatis.generator.internal.rules.Rules)

Example 4 with AbstractDAOElementGenerator

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

the class DAOGenerator method addDeleteByExampleMethod.

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

Example 5 with AbstractDAOElementGenerator

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

the class DAOGenerator method addUpdateByPrimaryKeyWithBLOBsMethod.

protected void addUpdateByPrimaryKeyWithBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByPrimaryKeyWithBLOBs()) {
        AbstractDAOElementGenerator methodGenerator = new UpdateByPrimaryKeyWithBLOBsMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
    }
}
Also used : UpdateByPrimaryKeyWithBLOBsMethodGenerator(org.mybatis.generator.codegen.ibatis2.dao.elements.UpdateByPrimaryKeyWithBLOBsMethodGenerator) 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