org.mybatis.generator.codegen.mybatis3.javamapper.elements.AbstractJavaMapperMethodGenerator Java Examples

The following examples show how to use org.mybatis.generator.codegen.mybatis3.javamapper.elements.AbstractJavaMapperMethodGenerator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MixedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByPrimaryKeyWithoutBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules()
            .generateUpdateByPrimaryKeyWithoutBLOBs()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByPrimaryKeyWithoutBLOBsMethodGenerator(false);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #2
Source File: AnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addSelectByPrimaryKeyMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByPrimaryKey()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedSelectByPrimaryKeyMethodGenerator(false, false);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #3
Source File: AnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addInsertSelectiveMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateInsertSelective()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedInsertSelectiveMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #4
Source File: AnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addInsertMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateInsert()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedInsertMethodGenerator(false);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #5
Source File: AnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addDeleteByPrimaryKeyMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateDeleteByPrimaryKey()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedDeleteByPrimaryKeyMethodGenerator(false);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #6
Source File: AnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addSelectByExampleWithBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByExampleWithBLOBs()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedSelectByExampleWithBLOBsMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #7
Source File: AnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByPrimaryKeySelectiveMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByPrimaryKeySelective()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByPrimaryKeySelectiveMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #8
Source File: AnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByPrimaryKeyWithBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByPrimaryKeyWithBLOBs()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByPrimaryKeyWithBLOBsMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #9
Source File: AnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByPrimaryKeyWithoutBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules()
            .generateUpdateByPrimaryKeyWithoutBLOBs()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByPrimaryKeyWithoutBLOBsMethodGenerator(false);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #10
Source File: SimpleAnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addDeleteByPrimaryKeyMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateDeleteByPrimaryKey()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedDeleteByPrimaryKeyMethodGenerator(true);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #11
Source File: SimpleAnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addInsertMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateInsert()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedInsertMethodGenerator(true);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #12
Source File: SimpleAnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addSelectByPrimaryKeyMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByPrimaryKey()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedSelectByPrimaryKeyMethodGenerator(false, true);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #13
Source File: SimpleAnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByPrimaryKeyMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByPrimaryKeySelective()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByPrimaryKeyWithoutBLOBsMethodGenerator(true);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #14
Source File: AnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByExampleWithoutBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByExampleWithoutBLOBs()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByExampleWithoutBLOBsMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #15
Source File: AnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addCountByExampleMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateCountByExample()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedCountByExampleMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #16
Source File: AnnotatedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addDeleteByExampleMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateDeleteByExample()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedDeleteByExampleMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #17
Source File: MixedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByPrimaryKeyWithBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByPrimaryKeyWithBLOBs()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByPrimaryKeyWithBLOBsMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #18
Source File: MixedClientGenerator.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void addDeleteByPrimaryKeyMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateDeleteByPrimaryKey()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedDeleteByPrimaryKeyMethodGenerator(false);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #19
Source File: SimpleJavaClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
protected void initializeAndExecuteGenerator(
        AbstractJavaMapperMethodGenerator methodGenerator,
        Interface interfaze) {
    methodGenerator.setContext(context);
    methodGenerator.setIntrospectedTable(introspectedTable);
    methodGenerator.setProgressCallback(progressCallback);
    methodGenerator.setWarnings(warnings);
    methodGenerator.addInterfaceElements(interfaze);
}
 
Example #20
Source File: SimpleAnnotatedClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByPrimaryKeyMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByPrimaryKeySelective()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByPrimaryKeyWithoutBLOBsMethodGenerator(true);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #21
Source File: SimpleAnnotatedClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void addSelectByPrimaryKeyMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByPrimaryKey()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedSelectByPrimaryKeyMethodGenerator(false, true);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #22
Source File: SimpleAnnotatedClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void addInsertMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateInsert()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedInsertMethodGenerator(true);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #23
Source File: SimpleAnnotatedClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void addDeleteByPrimaryKeyMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateDeleteByPrimaryKey()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedDeleteByPrimaryKeyMethodGenerator(true);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #24
Source File: AnnotatedClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByPrimaryKeyWithBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByPrimaryKeyWithBLOBs()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByPrimaryKeyWithBLOBsMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #25
Source File: AnnotatedClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByPrimaryKeySelectiveMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByPrimaryKeySelective()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByPrimaryKeySelectiveMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #26
Source File: AnnotatedClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByExampleWithoutBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByExampleWithoutBLOBs()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByExampleWithoutBLOBsMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #27
Source File: AnnotatedClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void addUpdateByExampleSelectiveMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateUpdateByExampleSelective()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedUpdateByExampleSelectiveMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #28
Source File: AnnotatedClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void addSelectByPrimaryKeyMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByPrimaryKey()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedSelectByPrimaryKeyMethodGenerator(false, false);
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #29
Source File: AnnotatedClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void addSelectByExampleWithoutBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByExampleWithoutBLOBs()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedSelectByExampleWithoutBLOBsMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}
 
Example #30
Source File: AnnotatedClientGenerator.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void addSelectByExampleWithBLOBsMethod(Interface interfaze) {
    if (introspectedTable.getRules().generateSelectByExampleWithBLOBs()) {
        AbstractJavaMapperMethodGenerator methodGenerator = new AnnotatedSelectByExampleWithBLOBsMethodGenerator();
        initializeAndExecuteGenerator(methodGenerator, interfaze);
    }
}