All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.mybatis.mp.generator.template.AbstractTemplateBuilder Maven / Gradle / Ivy

package cn.mybatis.mp.generator.template;

import cn.mybatis.mp.generator.config.GeneratorConfig;
import cn.mybatis.mp.generator.database.meta.EntityInfo;

public abstract class AbstractTemplateBuilder implements ITemplateBuilder {

    protected final GeneratorConfig generatorConfig;

    protected final EntityInfo entityInfo;

    public AbstractTemplateBuilder(GeneratorConfig generatorConfig, EntityInfo entityInfo) {
        this.generatorConfig = generatorConfig;
        this.entityInfo = entityInfo;
    }

    @Override
    public boolean fileCover() {
        return this.generatorConfig.isFileCover();
    }

    @Override
    public EntityInfo entityInfo() {
        return entityInfo;
    }

    @Override
    public String charset() {
        return this.generatorConfig.getCharset();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy