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

com.github.wtbian.core.Context Maven / Gradle / Ivy

Go to download

The mvc-generator makes it easier to write code with spring-mvc applications. mvc-generator generate code with freemarker template of controller, service and dao etc level object using maven plugin. Simplicity is the biggest advantage of the generator code over generating code tools.

There is a newer version: 1.0.4.1
Show newest version
package com.github.wtbian.core;

import java.util.List;

/**
 * Created by bianwentao on 2019/1/26.
 */
public class Context {
    /**
     * project source directory
     */
    String sourceDirectory;

    /**
     * sql text
     */
    private String sqlScript;

    /**
     * table name
     */
    private String tableName;

    /**
     * table fields properties
     */
    private List properties;

    /**
     * table comments
     */
    private String comments;

    /**
     * directory for dao level code generate
     */
    private String daoDirectory;

    /**
     * directory for service level code generate
     */
    private String serviceDirectory;

    /**
     * directory for controller level code generate
     */
    private String controllerDirectory;

    /**
     * directory for vo level code generate
     */
    private String voDirectory;

    /**
     * directory for domain level code generate
     */
    private String domainDirectory;

    /**
     * constructor
     */

    private Context() {
    }

    private static volatile Context instance;

    public static Context getInstance() {
        if (instance == null) {
            synchronized (Context.class) {
                instance = new Context();
            }
        }
        return instance;
    }

    public String getSourceDirectory() {
        return sourceDirectory;
    }

    public void setSourceDirectory(String sourceDirectory) {
        this.sourceDirectory = sourceDirectory;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public List getProperties() {
        return properties;
    }

    public void setProperties(List properties) {
        this.properties = properties;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public String getSqlScript() {
        return sqlScript;
    }

    public void setSqlScript(String sqlScript) {
        this.sqlScript = sqlScript;
    }

    public String getDaoDirectory() {
        return daoDirectory;
    }

    public void setDaoDirectory(String daoDirectory) {
        this.daoDirectory = daoDirectory;
    }

    public String getServiceDirectory() {
        return serviceDirectory;
    }

    public void setServiceDirectory(String serviceDirectory) {
        this.serviceDirectory = serviceDirectory;
    }

    public String getControllerDirectory() {
        return controllerDirectory;
    }

    public void setControllerDirectory(String controllerDirectory) {
        this.controllerDirectory = controllerDirectory;
    }

    public String getVoDirectory() {
        return voDirectory;
    }

    public void setVoDirectory(String voDirectory) {
        this.voDirectory = voDirectory;
    }

    public String getDomainDirectory() {
        return domainDirectory;
    }

    public void setDomainDirectory(String domainDirectory) {
        this.domainDirectory = domainDirectory;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy