本文整理汇总了Java中org.mybatis.generator.api.ProgressCallback类的典型用法代码示例。如果您正苦于以下问题:Java ProgressCallback类的具体用法?Java ProgressCallback怎么用?Java ProgressCallback使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ProgressCallback类属于org.mybatis.generator.api包,在下文中一共展示了ProgressCallback类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: calculateClientGenerators
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
/**
* Calculate client generators.
*
* @param warnings
* the warnings
* @param progressCallback
* the progress callback
* @return true if an XML generator is required
*/
protected AbstractJavaClientGenerator calculateClientGenerators(List<String> warnings,
ProgressCallback progressCallback) {
if (!rules.generateJavaClient()) {
return null;
}
AbstractJavaClientGenerator javaGenerator = createJavaClientGenerator();
if (javaGenerator == null) {
return null;
}
initializeAbstractGenerator(javaGenerator, warnings, progressCallback);
clientGenerators.add(javaGenerator);
return javaGenerator;
}
示例2: calculateGenerators
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
@Override
public void calculateGenerators(List<String> warnings,
ProgressCallback progressCallback) {
calculateJavaModelGenerators(warnings, progressCallback);
// ### service 接口
calculateServiceInterfaceGenerators(warnings, progressCallback);
// vo
calculateVOGenerators(warnings, progressCallback);
// query
calculateQueryGenerators(warnings, progressCallback);
calculateControllerGenerators(warnings, progressCallback);
calculateServiceImplGenerators(warnings, progressCallback);
AbstractJavaClientGenerator javaClientGenerator =
calculateClientGenerators(warnings, progressCallback);
calculateXmlMapperGenerator(javaClientGenerator, warnings, progressCallback);
}
示例3: calculateClientGenerators
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
protected AbstractJavaClientGenerator calculateClientGenerators(List<String> warnings,
ProgressCallback progressCallback) {
if (!rules.generateJavaClient()) {
return null;
}
AbstractJavaClientGenerator javaGenerator = createJavaClientGenerator();
if (javaGenerator == null) {
return null;
}
initializeAbstractGenerator(javaGenerator, warnings, progressCallback);
clientGenerators.add(javaGenerator);
return javaGenerator;
}
示例4: calculateClientGenerators
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
/**
*
* @param warnings
* @param progressCallback
* @return true if an XML generator is required
*/
protected AbstractJavaClientGenerator calculateClientGenerators(List<String> warnings, ProgressCallback progressCallback) {
if (!rules.generateJavaClient()) {
return null;
}
AbstractJavaClientGenerator javaGenerator = createJavaClientGenerator();
if (javaGenerator == null) {
return null;
}
initializeAbstractGenerator(javaGenerator, warnings, progressCallback);
clientGenerators.add(javaGenerator);
return javaGenerator;
}
示例5: calculateGenerators
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
@Override
public void calculateGenerators(List<String> warnings,
ProgressCallback progressCallback) {
calculateJavaModelGenerators(warnings, progressCallback);
calculateDAOGenerators(warnings, progressCallback);
calculateSqlMapGenerator(warnings, progressCallback);
}
示例6: initializeAbstractGenerator
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
protected void initializeAbstractGenerator(
AbstractGenerator abstractGenerator, List<String> warnings,
ProgressCallback progressCallback) {
abstractGenerator.setContext(context);
abstractGenerator.setIntrospectedTable(this);
abstractGenerator.setProgressCallback(progressCallback);
abstractGenerator.setWarnings(warnings);
}
示例7: calculateXmlMapperGenerator
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
@Override
protected void calculateXmlMapperGenerator(AbstractJavaClientGenerator javaClientGenerator,
List<String> warnings,
ProgressCallback progressCallback) {
if (javaClientGenerator == null) {
if (context.getSqlMapGeneratorConfiguration() != null) {
xmlMapperGenerator = new SimpleXMLMapperGenerator();
}
} else {
xmlMapperGenerator = javaClientGenerator.getMatchedXMLGenerator();
}
initializeAbstractGenerator(xmlMapperGenerator, warnings,
progressCallback);
}
示例8: calculateJavaModelGenerators
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
@Override
protected void calculateJavaModelGenerators(List<String> warnings,
ProgressCallback progressCallback) {
AbstractJavaGenerator javaGenerator = new SimpleModelGenerator();
initializeAbstractGenerator(javaGenerator, warnings,
progressCallback);
javaModelGenerators.add(javaGenerator);
}
示例9: calculateGenerators
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
@Override
public void calculateGenerators(List<String> warnings,
ProgressCallback progressCallback) {
calculateJavaModelGenerators(warnings, progressCallback);
AbstractJavaClientGenerator javaClientGenerator =
calculateClientGenerators(warnings, progressCallback);
calculateXmlMapperGenerator(javaClientGenerator, warnings, progressCallback);
}
示例10: calculateXmlMapperGenerator
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
/**
* Calculate xml mapper generator.
*
* @param javaClientGenerator
* the java client generator
* @param warnings
* the warnings
* @param progressCallback
* the progress callback
*/
protected void calculateXmlMapperGenerator(AbstractJavaClientGenerator javaClientGenerator,
List<String> warnings,
ProgressCallback progressCallback) {
if (javaClientGenerator == null) {
if (context.getSqlMapGeneratorConfiguration() != null) {
xmlMapperGenerator = new XMLMapperGenerator();
}
} else {
xmlMapperGenerator = javaClientGenerator.getMatchedXMLGenerator();
}
initializeAbstractGenerator(xmlMapperGenerator, warnings,
progressCallback);
}
示例11: initializeAbstractGenerator
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
/**
* Initialize abstract generator.
*
* @param abstractGenerator
* the abstract generator
* @param warnings
* the warnings
* @param progressCallback
* the progress callback
*/
protected void initializeAbstractGenerator(
AbstractGenerator abstractGenerator, List<String> warnings,
ProgressCallback progressCallback) {
if (abstractGenerator == null) {
return;
}
abstractGenerator.setContext(context);
abstractGenerator.setIntrospectedTable(this);
abstractGenerator.setProgressCallback(progressCallback);
abstractGenerator.setWarnings(warnings);
}
示例12: calculateXmlMapperGenerator
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
protected void calculateXmlMapperGenerator(AbstractJavaClientGenerator javaClientGenerator,
List<String> warnings,
ProgressCallback progressCallback) {
if (javaClientGenerator == null) {
if (context.getSqlMapGeneratorConfiguration() != null) {
xmlMapperGenerator = new XMLMapperGenerator();
}
} else {
xmlMapperGenerator = javaClientGenerator.getMatchedXMLGenerator();
}
initializeAbstractGenerator(xmlMapperGenerator, warnings,
progressCallback);
}
示例13: initializeAbstractGenerator
import org.mybatis.generator.api.ProgressCallback; //导入依赖的package包/类
protected void initializeAbstractGenerator(
AbstractGenerator abstractGenerator, List<String> warnings,
ProgressCallback progressCallback) {
if (abstractGenerator == null) {
return;
}
abstractGenerator.setContext(context);
abstractGenerator.setIntrospectedTable(this);
abstractGenerator.setProgressCallback(progressCallback);
abstractGenerator.setWarnings(warnings);
}