org.mybatis.generator.codegen.AbstractJavaGenerator Java Examples

The following examples show how to use org.mybatis.generator.codegen.AbstractJavaGenerator. 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: IntrospectedTableMyBatis3Impl.java    From mapper-generator-javafx with Apache License 2.0 6 votes vote down vote up
@Override
public List<GeneratedJavaFile> getGeneratedJavaFiles() {
    List<GeneratedJavaFile> answer = new ArrayList<>();

    for (AbstractJavaGenerator javaGenerator : javaGenerators) {
        List<CompilationUnit> compilationUnits = javaGenerator.getCompilationUnits();
        for (CompilationUnit compilationUnit : compilationUnits) {
            GeneratedJavaFile gjf = new GeneratedJavaFile(compilationUnit,
                            javaGenerator.getProject(),
                            context.getProperty(PropertyRegistry.CONTEXT_JAVA_FILE_ENCODING),
                            context.getJavaFormatter());
            answer.add(gjf);
        }
    }

    return answer;
}
 
Example #2
Source File: IntrospectedTableMyBatis3DynamicSqlImpl.java    From mapper-generator-javafx with Apache License 2.0 5 votes vote down vote up
@Override
protected void calculateJavaModelGenerators(List<String> warnings, ProgressCallback progressCallback) {

    AbstractJavaGenerator javaGenerator = new DynamicSqlModelGenerator(getModelProject());
    initializeAbstractGenerator(javaGenerator, warnings, progressCallback);
    javaGenerators.add(javaGenerator);
}
 
Example #3
Source File: IntrospectedTableMyBatis3AlanImpl.java    From mapper-generator-javafx with Apache License 2.0 5 votes vote down vote up
@Override
protected void calculateJavaModelGenerators(List<String> warnings, ProgressCallback progressCallback) {

    AbstractJavaGenerator javaGenerator = new DynamicSqlModelGenerator(getModelProject());
    initializeAbstractGenerator(javaGenerator, warnings, progressCallback);
    javaGenerators.add(javaGenerator);
}
 
Example #4
Source File: IntrospectedTableMyBatis3SimpleImpl.java    From mapper-generator-javafx with Apache License 2.0 5 votes vote down vote up
@Override
protected void calculateJavaModelGenerators(List<String> warnings, ProgressCallback progressCallback) {

    AbstractJavaGenerator javaGenerator = new SimpleModelGenerator(getModelProject());
    initializeAbstractGenerator(javaGenerator, warnings, progressCallback);
    javaGenerators.add(javaGenerator);
}
 
Example #5
Source File: IntrospectedTableMyBatis3SimpleImpl.java    From mybatis-generator-core-fix with Apache License 2.0 5 votes vote down vote up
@Override
protected void calculateJavaModelGenerators(List<String> warnings,
        ProgressCallback progressCallback) {

    AbstractJavaGenerator javaGenerator = new SimpleModelGenerator();
    initializeAbstractGenerator(javaGenerator, warnings,
            progressCallback);
    javaModelGenerators.add(javaGenerator);
}
 
Example #6
Source File: IntrospectedTableMyBatis3SimpleImpl.java    From mybatis-generator-plus with Apache License 2.0 5 votes vote down vote up
@Override
protected void calculateJavaModelGenerators(List<String> warnings,
        ProgressCallback progressCallback) {

    AbstractJavaGenerator javaGenerator = new SimpleModelGenerator();
    initializeAbstractGenerator(javaGenerator, warnings,
            progressCallback);
    javaModelGenerators.add(javaGenerator);
}
 
Example #7
Source File: IntrospectedTableIbatis2Java2Impl.java    From mybatis-generator-core-fix with Apache License 2.0 4 votes vote down vote up
public IntrospectedTableIbatis2Java2Impl() {
    super(TargetRuntime.IBATIS2);
    javaModelGenerators = new ArrayList<AbstractJavaGenerator>();
    daoGenerators = new ArrayList<AbstractJavaGenerator>();
}
 
Example #8
Source File: IntrospectedTableMyBatis3Impl.java    From mybatis-generator-core-fix with Apache License 2.0 4 votes vote down vote up
/**
 * Instantiates a new introspected table my batis3 impl.
 */
public IntrospectedTableMyBatis3Impl() {
    super(TargetRuntime.MYBATIS3);
    javaModelGenerators = new ArrayList<AbstractJavaGenerator>();
    clientGenerators = new ArrayList<AbstractJavaGenerator>();
}
 
Example #9
Source File: IntrospectedTableIbatis2Java2Impl.java    From mybatis-generator-plus with Apache License 2.0 4 votes vote down vote up
public IntrospectedTableIbatis2Java2Impl() {
	super(TargetRuntime.IBATIS2);
	javaModelGenerators = new ArrayList<AbstractJavaGenerator>();
	daoGenerators = new ArrayList<AbstractJavaGenerator>();
}
 
Example #10
Source File: IntrospectedTableMyBatis3Impl.java    From mybatis-generator-plus with Apache License 2.0 4 votes vote down vote up
public IntrospectedTableMyBatis3Impl() {
	super(TargetRuntime.MYBATIS3);
	javaModelGenerators = new ArrayList<AbstractJavaGenerator>();
	clientGenerators = new ArrayList<AbstractJavaGenerator>();
}