⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loadergenerator.java

📁 数据仓库工具
💻 JAVA
📖 第 1 页 / 共 5 页
字号:

/*
LoaderGenerator - tool for generated xml, sql and doml file needed for Octopus.


    Copyright (C) 2003  Together

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

package org.webdocwf.util.loader.generator;

import java.util.Vector;

import org.webdocwf.util.loader.BufferOctopusClass;
import org.webdocwf.util.loader.LoaderException;
import org.webdocwf.util.loader.TimeWatch;
import org.webdocwf.util.loader.logging.StandardLogger;

/**
 * LoaderGenerator class dinamicly generates the xml files (LoaderJob.xml and ImportDefinition.xml)
 * from the input data and source database.
 * Also LoaderGenerator creates SQL statements for building and loading an SQL target database.
 * @author Radoslav Dutina
 * @version 1.0
 */
public class LoaderGenerator {

    private InputParameters generatorParameters;
    private StandardLogger logger;
    private String strLogDirName = "";
    private String strLogFileName = "defaultGenerator";
    private String logMode = "normal";
    private TimeWatch timeCounter;
    private String strLoggerParam = "";
    private boolean standardLogger;

    /**
     * This method set sourceDataBase
     * @param sourceDataBase
     * @throws LoaderException
     */
    public void setSourceDataBase(String sourceDataBase) throws LoaderException {
        this.generatorParameters.setSourceDataBase(sourceDataBase);
    }

    /**
     * This method return sourceDataBase
     * @return sourceDataBase
     * @throws LoaderException
     */

    public String getSourceDataBase() throws LoaderException {
        return this.generatorParameters.getSourceDataBase();
    }
    /**
     * This method set targetDataBase
     * @param targetDataBase
     * @throws LoaderException
     */

    public void setTargetDataBase(String targetDataBase) throws LoaderException {
        this.generatorParameters.setTargetDataBase(targetDataBase);
    }

    /**
     * This method return targetDataBase
     * @return targetDataBase
     * @throws LoaderException
     */
    public String getTargetDataBase() throws LoaderException {
        return this.generatorParameters.getTargetDataBase();
    }

    /**
     * This method set sourceType
     * @param sourceType
     * @throws LoaderException
     */
    public void setSourceType(String sourceType) throws LoaderException {
        this.generatorParameters.setSourceType(sourceType);
    }

    /**
     * This method return sourceType
     * @return sourceType
     * @throws LoaderException
     */
    public String getSourceType() throws LoaderException {
        return this.generatorParameters.getSourceType();
    }

    /**
     * This method set targetType
     * @param targetType
     * @throws LoaderException
     */
    public void setTargetType(String targetType) throws LoaderException {
        this.generatorParameters.setTargetType(targetType);
    }

    /**
     * This method return targetType
     * @return String which is target type
     * @throws LoaderException
     */
    public String getTargetType() throws LoaderException {
        return this.generatorParameters.getTargetType();
    }

    /**
     * This method set sourceDriverName
     * @param sourceDriverName
     * @throws LoaderException
     */
    public void setSourceDriverName(String sourceDriverName) throws LoaderException {
        this.generatorParameters.setSourceDriverName(sourceDriverName);
    }

    /**
     * This method return sourceDriverName
     * @return sourceDriverName
     * @throws LoaderException
     */
    public String getSourceDriverName() throws LoaderException {
        return this.generatorParameters.getSourceDriverName();
    }

    /**
     * This method set targetDriverName
     * @param targetDriverName
     * @throws LoaderException
     */
    public void setTargetDriverName(String targetDriverName) throws LoaderException {
        this.generatorParameters.setTargetDriverName(targetDriverName);
    }

    /**
     * This method return targetDriverName
     * @return targetDriverName
     * @throws LoaderException
     */
    public String getTargetDriverName() throws LoaderException {
        return this.generatorParameters.getTargetDriverName();
    }

    /**
     * This method set valueMode
     * @param valueMode
     * @throws LoaderException
     */
    public void setValueMode(String valueMode) throws LoaderException {
        this.generatorParameters.setValueMode(valueMode);
    }

    /**
     * This method returns valueMode
     * @return String which is value mode
     * @throws LoaderException
     */
    public String getValueMode() throws LoaderException {
        return this.generatorParameters.getValueMode();
    }

    /**
     * This method set generatorOutput
     * @param generatorOutput
     * @throws LoaderException
     */
    public void setGeneratorOutput(String generatorOutput) throws LoaderException {
        this.generatorParameters.setGeneratorOutput(generatorOutput);
    }

    /**
     * This method return generatorOutput
     * @return generatorOutput
     * @throws LoaderException
     */
    public String getGeneratorOutput() throws LoaderException {
        return this.generatorParameters.getGeneratorOutput();
    }

    /**
     * This method set sourceUser
     * @param sourceUser
     * @throws LoaderException
     */
    public void setSourceUser(String sourceUser) throws LoaderException {
        this.generatorParameters.setSourceUser(sourceUser);
    }

    /**
     * This method return sourceUser
     * @return sourceUser
     * @throws LoaderException
     */
    public String getSourceUser() throws LoaderException {
        return this.generatorParameters.getSourceUser();
    }

    /**
     * This method set targetUser
     * @param targetUser
     * @throws LoaderException
     */
    public void setTargetUser(String targetUser) throws LoaderException {
        this.generatorParameters.setTargetUser(targetUser);
    }

    /**
     * This method return targetUser
     * @return targetUser
     * @throws LoaderException
     */
    public String getTargetUser() throws LoaderException {
        return this.generatorParameters.getTargetUser();
    }
    /**
     * This method set sourcePassword
     * @param sourcePassword
     * @throws LoaderException
     */
    public void setSourcePassword(String sourcePassword) throws LoaderException {
        this.generatorParameters.setSourcePassword(sourcePassword);
    }

    /**
     * This method return sourcePassword
     * @return sourcePassword
     * @throws LoaderException
     */
    public String getSourcePassword() throws LoaderException {
        return this.generatorParameters.getSourcePassword();
    }

    /**
     * This method set targetPassword
     * @param targetPassword
     * @throws LoaderException
     */
    public void setTargetPassword(String targetPassword) throws LoaderException {
        this.generatorParameters.setTargetPassword(targetPassword);
    }

    /**
     * This method set targetPassword
     * @return targetPassword
     * @throws LoaderException
     */
    public String getTargetPassword() throws LoaderException {

⌨️ 快捷键说明

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