本文整理汇总了Java中org.mybatis.generator.codegen.mybatis3.javamapper.elements.sqlprovider.AbstractJavaProviderMethodGenerator类的典型用法代码示例。如果您正苦于以下问题:Java AbstractJavaProviderMethodGenerator类的具体用法?Java AbstractJavaProviderMethodGenerator怎么用?Java AbstractJavaProviderMethodGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AbstractJavaProviderMethodGenerator类属于org.mybatis.generator.codegen.mybatis3.javamapper.elements.sqlprovider包,在下文中一共展示了AbstractJavaProviderMethodGenerator类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addCountByExampleMethod
import org.mybatis.generator.codegen.mybatis3.javamapper.elements.sqlprovider.AbstractJavaProviderMethodGenerator; //导入依赖的package包/类
protected boolean addCountByExampleMethod(TopLevelClass topLevelClass) {
boolean rc = false;
if (introspectedTable.getRules().generateCountByExample()) {
AbstractJavaProviderMethodGenerator methodGenerator = new ProviderCountByExampleMethodGenerator(useLegacyBuilder);
initializeAndExecuteGenerator(methodGenerator, topLevelClass);
rc = true;
}
return rc;
}
示例2: addDeleteByExampleMethod
import org.mybatis.generator.codegen.mybatis3.javamapper.elements.sqlprovider.AbstractJavaProviderMethodGenerator; //导入依赖的package包/类
protected boolean addDeleteByExampleMethod(TopLevelClass topLevelClass) {
boolean rc = false;
if (introspectedTable.getRules().generateDeleteByExample()) {
AbstractJavaProviderMethodGenerator methodGenerator = new ProviderDeleteByExampleMethodGenerator(useLegacyBuilder);
initializeAndExecuteGenerator(methodGenerator, topLevelClass);
rc = true;
}
return rc;
}
示例3: addSelectByExampleWithBLOBsMethod
import org.mybatis.generator.codegen.mybatis3.javamapper.elements.sqlprovider.AbstractJavaProviderMethodGenerator; //导入依赖的package包/类
protected boolean addSelectByExampleWithBLOBsMethod(
TopLevelClass topLevelClass) {
boolean rc = false;
if (introspectedTable.getRules().generateSelectByExampleWithBLOBs()) {
AbstractJavaProviderMethodGenerator methodGenerator = new ProviderSelectByExampleWithBLOBsMethodGenerator(useLegacyBuilder);
initializeAndExecuteGenerator(methodGenerator, topLevelClass);
rc = true;
}
return rc;
}
示例4: addSelectByExampleWithoutBLOBsMethod
import org.mybatis.generator.codegen.mybatis3.javamapper.elements.sqlprovider.AbstractJavaProviderMethodGenerator; //导入依赖的package包/类
protected boolean addSelectByExampleWithoutBLOBsMethod(
TopLevelClass topLevelClass) {
boolean rc = false;
if (introspectedTable.getRules().generateSelectByExampleWithoutBLOBs()) {
AbstractJavaProviderMethodGenerator methodGenerator = new ProviderSelectByExampleWithoutBLOBsMethodGenerator(useLegacyBuilder);
initializeAndExecuteGenerator(methodGenerator, topLevelClass);
rc = true;
}
return rc;
}
示例5: addUpdateByExampleSelectiveMethod
import org.mybatis.generator.codegen.mybatis3.javamapper.elements.sqlprovider.AbstractJavaProviderMethodGenerator; //导入依赖的package包/类
protected boolean addUpdateByExampleSelectiveMethod(
TopLevelClass topLevelClass) {
boolean rc = false;
if (introspectedTable.getRules().generateUpdateByExampleSelective()) {
AbstractJavaProviderMethodGenerator methodGenerator = new ProviderUpdateByExampleSelectiveMethodGenerator(useLegacyBuilder);
initializeAndExecuteGenerator(methodGenerator, topLevelClass);
rc = true;
}
return rc;
}
示例6: addUpdateByExampleWithBLOBsMethod
import org.mybatis.generator.codegen.mybatis3.javamapper.elements.sqlprovider.AbstractJavaProviderMethodGenerator; //导入依赖的package包/类
protected boolean addUpdateByExampleWithBLOBsMethod(
TopLevelClass topLevelClass) {
boolean rc = false;
if (introspectedTable.getRules().generateUpdateByExampleWithBLOBs()) {
AbstractJavaProviderMethodGenerator methodGenerator = new ProviderUpdateByExampleWithBLOBsMethodGenerator(useLegacyBuilder);
initializeAndExecuteGenerator(methodGenerator, topLevelClass);
rc = true;
}
return rc;
}
示例7: addUpdateByExampleWithoutBLOBsMethod
import org.mybatis.generator.codegen.mybatis3.javamapper.elements.sqlprovider.AbstractJavaProviderMethodGenerator; //导入依赖的package包/类
protected boolean addUpdateByExampleWithoutBLOBsMethod(
TopLevelClass topLevelClass) {
boolean rc = false;
if (introspectedTable.getRules().generateUpdateByExampleWithoutBLOBs()) {
AbstractJavaProviderMethodGenerator methodGenerator = new ProviderUpdateByExampleWithoutBLOBsMethodGenerator(useLegacyBuilder);
initializeAndExecuteGenerator(methodGenerator, topLevelClass);
rc = true;
}
return rc;
}
示例8: addUpdateByPrimaryKeySelectiveMethod
import org.mybatis.generator.codegen.mybatis3.javamapper.elements.sqlprovider.AbstractJavaProviderMethodGenerator; //导入依赖的package包/类
protected void addUpdateByPrimaryKeySelectiveMethod(
TopLevelClass topLevelClass) {
if (introspectedTable.getRules().generateUpdateByPrimaryKeySelective()) {
AbstractJavaProviderMethodGenerator methodGenerator = new ProviderUpdateByPrimaryKeySelectiveMethodGenerator(useLegacyBuilder);
initializeAndExecuteGenerator(methodGenerator, topLevelClass);
}
}
示例9: initializeAndExecuteGenerator
import org.mybatis.generator.codegen.mybatis3.javamapper.elements.sqlprovider.AbstractJavaProviderMethodGenerator; //导入依赖的package包/类
protected void initializeAndExecuteGenerator(
AbstractJavaProviderMethodGenerator methodGenerator,
TopLevelClass topLevelClass) {
methodGenerator.setContext(context);
methodGenerator.setIntrospectedTable(introspectedTable);
methodGenerator.setProgressCallback(progressCallback);
methodGenerator.setWarnings(warnings);
methodGenerator.addClassElements(topLevelClass);
}