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

📄 daofactory.java.svn-base

📁 梦界家园程序开发基底框架
💻 SVN-BASE
字号:
package jm.framework.util;

import jm.dbo.JMDBOConntionCall;
import jm.dbo.JMDBOConfig;
import jm.dbo.JMDBOOutKeyValue;
import jm.framework.log.Logger;

/**
 *
 * <p>Title: JM</p>
 *
 * <p>Copyright: Copyright (c) 2004-2006</p>
 *
 * <p>Company: 1SHome</p>
 *
 * <p>@author Spook</p>
 *
 * @version 1.2.5.2
 * @see JDK 1.5.0.6
 */
public class DaoFactory {
    // 掕悢
    /** 儕僜乕僗僼傽僀儖柤 */
    private final String CLASS_NAME = "DaoFactory";

    private Logger loger_ = null;

    private JMDBOConntionCall conntion_ = null;

    public DaoFactory () {
        // 儊儞僶曄悢偵僙僢僩
        loger_ = Logger.instance(CLASS_NAME);
        conntion_ = JMDBOConntionCall.getInstance();
    }

    public void setSQLFree (boolean isFree) {
        conntion_.setSQLFree(isFree);
    }

    public DBInValue getSQLInKey () {
        return (DBInValue) JMDBOConfig.getSQLDefaultInKey();
    }

    public DBInValue getSQLInKey (String iDBName) {
        return (DBInValue) JMDBOConfig.getSQLInKey(iDBName);
    }

    public DBInValue getSQLInKey (String iDBName, String iDBType) {
        return (DBInValue) JMDBOConfig.getSQLInKey(iDBName, iDBType);
    }

    ////////////////////////////////////////////////////////////////////
    /**
     * SQL 运行
     * @param inValue DBInValue
     * @return DBOutValue
     * @throws Exception
     */
    public DBOutValue execute (DBInValue inValue) throws Exception {

        loger_.debug("execute", ">> DaoFactory.execute load ...... ");
        // SQL 运行
        JMDBOOutKeyValue result = conntion_.inVoker(inValue);
        loger_.debug("execute", ">> DaoFactory.execute.result ==> " + result.getResult());

        loger_.debug("execute", ">> DaoFactory.execute End ... ");

        return (DBOutValue) result;
    }

}

⌨️ 快捷键说明

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