appconfigstruct.java

来自「一个java 代码生成器」· Java 代码 · 共 97 行

JAVA
97
字号
/**
 * Copyright (c) 2002, Siddhartha P. Chandurkar siddhartha@visioncodified.com
 * All rights reserved.
 * Licensed under the Academic Free License version 1.1
 * See the file LICENSE.TXT for details.
 * LICENSE.txt is located in the directory  <install-directory>\Jenerator
 * of your Jenertaor Installation.
 *
 */
package com.jenerator.struct.app;


//<Imports>

import org.apache.log4j.Logger;

//</Imports>

/**
 *	The class is a datastructure which contains all the
 *  configuration parameters which are needed for the
 *  application. The values are read from an XML file
 *  i.e. config.xml
 *  @author		Siddhartha P. Chandurkar
 *	@version	0.9.0
 */
public class AppConfigStruct {


    //ATTRIBUTES

    //The Jdbc driver which has to be used to connect to the DB
    private String jdbcDriver;
    //The DB user name
    private String userName;
    //The DB password
    private String password;
    //The url to the database
    private String url;
    //The directory where the generated output has to copied
    private String genDir;
    //For logging
    private static Logger log = Logger.getLogger(AppConfigStruct.class.getName());

    //CONSTRUCTORS

    public AppConfigStruct() {

    }


    //METHODS

    //Get and Set methods

    public String getJdbcDriver() {
        return jdbcDriver;
    }

    public String getUserName() {
        return userName;
    }

    public String getPassword() {
        return password;
    }

    public String getUrl() {
        return url;
    }

    public String getGenDir() {
        return genDir;
    }


    public void setJdbcDriver(String _jdbcDriver) {
        jdbcDriver = _jdbcDriver;
    }

    public void setUserName(String _userName) {
        userName = _userName;
    }

    public void setPassword(String _password) {
        password = _password;
    }

    public void setUrl(String _url) {
        url = _url;
    }

    public void setGenDir(String _genDir) {
        genDir = _genDir;
    }

}//AppConfigStruct

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?