亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? abstractbasemanager.java

?? 另外一種持久性o/m軟件
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package org.apache.torque.manager;/* * Copyright 2001-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *     http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */import java.lang.ref.WeakReference;import java.util.Arrays;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.Iterator;import java.io.Serializable;import java.io.IOException;import java.io.ObjectInputStream;import org.apache.commons.collections.FastArrayList;import org.apache.jcs.JCS;import org.apache.jcs.access.GroupCacheAccess;import org.apache.jcs.access.exception.CacheException;import org.apache.torque.Torque;import org.apache.torque.TorqueException;import org.apache.torque.om.ObjectKey;import org.apache.torque.om.Persistent;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;/** * This class contains common functionality of a Manager for * instantiating OM's. * * @author <a href="mailto:jmcnally@collab.net">John McNally</a> * @version $Id: AbstractBaseManager.java,v 1.18 2005/01/31 19:43:58 tfischer Exp $ */public abstract class AbstractBaseManager    implements Serializable{    /** the log */    protected static Log log = LogFactory.getLog(AbstractBaseManager.class);    /** used to cache the om objects. cache is set by the region property */    protected transient GroupCacheAccess cache;    /** method results cache */    protected MethodResultCache mrCache;    /** the class that the service will instantiate */    private Class omClass;    private String className;    private String region;    private boolean isNew = true;    protected Map validFields;    protected Map listenersMap = new HashMap();    /**     * Get the Class instance     *     * @return the om class     */    protected Class getOMClass()    {        return omClass;    }    /**     * Set the Class that will be instantiated by this manager     *     * @param omClass the om class     */    protected void setOMClass(Class omClass)    {        this.omClass = omClass;    }    /**     * Get a fresh instance of an om     *     * @return an instance of the om class     * @throws InstantiationException     * @throws IllegalAccessException     */    protected Persistent getOMInstance()        throws InstantiationException, IllegalAccessException    {        return (Persistent) omClass.newInstance();    }    /**     * Get the classname to instantiate for getInstance()     * @return value of className.     */    public String getClassName()    {        return className;    }    /**     * Set the classname to instantiate for getInstance()     * @param v  Value to assign to className.     * @throws TorqueException Any exceptions caught during processing will be     *         rethrown wrapped into a TorqueException.     */    public void setClassName(String  v)        throws TorqueException    {        this.className = v;        try        {            setOMClass(Class.forName(getClassName()));        }        catch (ClassNotFoundException cnfe)        {            throw new TorqueException("Could not load " + getClassName());        }    }    /**     * Return an instance of an om based on the id     *     * @param id     * @throws TorqueException Any exceptions caught during processing will be     *         rethrown wrapped into a TorqueException.     */    protected Persistent getOMInstance(ObjectKey id)        throws TorqueException    {        return getOMInstance(id, true);    }    /**     * Return an instance of an om based on the id     *     * @throws TorqueException Any exceptions caught during processing will be     *         rethrown wrapped into a TorqueException.     */    protected Persistent getOMInstance(ObjectKey key, boolean fromCache)        throws TorqueException    {        Persistent om = null;        if (fromCache)        {            om = cacheGet(key);        }        if (om == null)        {            om = retrieveStoredOM(key);            if (fromCache)            {                putInstanceImpl(om);            }        }        return om;    }    protected Persistent cacheGet(Serializable key)    {        Persistent om = null;        if (cache != null)        {            synchronized (this)            {                om = (Persistent) cache.get(key);            }        }        return om;    }    /**     *      * @throws TorqueException Any exceptions caught during processing will be     *         rethrown wrapped into a TorqueException.     */    protected void clearImpl()        throws TorqueException    {        if (cache != null)        {            try            {                cache.remove();            }            catch (CacheException ce)            {                throw new TorqueException(                        "Could not clear cache due to internal JCS error.", ce);            }        }    }    /**     *      * @param key     * @return     * @throws TorqueException Any exceptions caught during processing will be     *         rethrown wrapped into a TorqueException.     */    protected Persistent removeInstanceImpl(Serializable key)        throws TorqueException    {        Persistent oldOm = null;        if (cache != null)        {            try            {                synchronized (this)                {                    oldOm = (Persistent) cache.get(key);                    cache.remove(key);                }            }            catch (CacheException ce)            {                throw new TorqueException                    ("Could not remove from cache due to internal JCS error",                     ce);            }        }        return oldOm;    }    /**     *      * @param om     * @return     * @throws TorqueException Any exceptions caught during processing will be     *         rethrown wrapped into a TorqueException.     */    protected Persistent putInstanceImpl(Persistent om)        throws TorqueException    {        ObjectKey key = om.getPrimaryKey();        return putInstanceImpl(key, om);    }    /**     *      * @param key     * @param om     * @return     * @throws TorqueException Any exceptions caught during processing will be     *         rethrown wrapped into a TorqueException.     */    protected Persistent putInstanceImpl(Serializable key, Persistent om)        throws TorqueException    {        if (getOMClass() != null && !getOMClass().isInstance(om))        {            throw new TorqueException(om + "; class=" + om.getClass().getName()                + "; id=" + om.getPrimaryKey() + " cannot be cached with "                + getOMClass().getName() + " objects");        }        Persistent oldOm = null;        if (cache != null)        {            try            {                synchronized (this)                {                    oldOm = (Persistent) cache.get(key);                    cache.put(key, om);                }            }            catch (CacheException ce)            {                throw new TorqueException                    ("Could not cache due to internal JCS error", ce);            }        }        return oldOm;    }    /**     *      * @param id     * @return     * @throws TorqueException Any exceptions caught during processing will be     *         rethrown wrapped into a TorqueException.     */    protected abstract Persistent retrieveStoredOM(ObjectKey id)        throws TorqueException;    /**     * Gets a list of om's based on id's.     *     * @param ids a <code>ObjectKey[]</code> value     * @return a <code>List</code> value     * @throws TorqueException Any exceptions caught during processing will be     *         rethrown wrapped into a TorqueException.     */    protected List getOMs(ObjectKey[] ids)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美女性感视频久久| 欧美精品在线一区二区| 亚洲免费电影在线| 欧美成人精品1314www| 91色视频在线| 国产成人鲁色资源国产91色综 | 在线观看网站黄不卡| 国产成人精品aa毛片| 日本不卡在线视频| 伊人性伊人情综合网| 国产精品乱码人人做人人爱| 欧美一区二区免费观在线| 一本一道久久a久久精品| 国产精品456露脸| 久久精品久久综合| 久久超碰97中文字幕| 丝袜美腿亚洲色图| 亚洲gay无套男同| 1024成人网| 亚洲欧美国产三级| 国产精品久久久久久久久图文区 | 亚洲激情自拍偷拍| 综合av第一页| 亚洲色图另类专区| 亚洲丝袜制服诱惑| 亚洲欧美日韩国产一区二区三区 | 亚洲va韩国va欧美va| 亚洲女子a中天字幕| 亚洲日本成人在线观看| 国产精品无人区| 亚洲婷婷国产精品电影人久久| 国产欧美视频在线观看| 欧美国产精品一区| 亚洲欧美国产77777| 亚洲制服丝袜在线| 视频一区欧美日韩| 麻豆91精品91久久久的内涵| 亚洲视频一区在线观看| 亚洲精品国产无天堂网2021| 一区二区三区蜜桃网| 五月综合激情网| 免费人成在线不卡| 成人午夜在线免费| 91久久线看在观草草青青| 欧美视频第二页| 91激情五月电影| 日韩午夜精品电影| 国产精品萝li| 午夜精品一区二区三区电影天堂| 美女在线视频一区| 成人免费视频视频| 欧美日本一区二区三区四区| 日韩精品中文字幕一区| 国产精品乱人伦中文| 亚洲午夜在线视频| 国产iv一区二区三区| 欧美三级中文字| 久久日韩精品一区二区五区| 2017欧美狠狠色| 亚洲影院理伦片| 国产专区欧美精品| 欧美人与z0zoxxxx视频| 久久香蕉国产线看观看99| 亚洲乱码国产乱码精品精可以看 | 波多野结衣在线一区| 欧美日韩精品一区二区在线播放| 精品福利一二区| 亚洲国产中文字幕| 成人av免费观看| 日韩午夜在线影院| 亚洲午夜视频在线观看| 国产美女av一区二区三区| 日本韩国欧美一区| 国产亚洲欧洲一区高清在线观看| 一区二区三区在线免费| 粉嫩在线一区二区三区视频| 欧美军同video69gay| 成人免费在线观看入口| 黑人精品欧美一区二区蜜桃| 99久久国产综合精品麻豆 | 亚洲超碰精品一区二区| 国产精品综合在线视频| 日韩久久精品一区| 综合久久久久综合| 成人性生交大片| 国产亚洲一区二区三区四区 | 欧美国产精品一区二区三区| 五月婷婷激情综合| 欧美性做爰猛烈叫床潮| 亚洲伦在线观看| 97精品久久久午夜一区二区三区| 久久久久国产精品麻豆ai换脸| 午夜日韩在线观看| 欧美日韩不卡一区| 日韩不卡一区二区| 91精品国产91久久久久久最新毛片 | 国产成人自拍高清视频在线免费播放| 欧美日韩国产一区| 亚洲午夜日本在线观看| 欧美日韩二区三区| 一区二区三区在线不卡| 91成人在线免费观看| 亚洲品质自拍视频| 欧美色图一区二区三区| 亚洲福利电影网| 91久久精品一区二区| 亚洲美女淫视频| 欧美午夜精品久久久久久超碰| 亚洲图片欧美综合| 欧美一区二区黄| 日韩成人午夜电影| 久久噜噜亚洲综合| 99久久久久久| 国产人成亚洲第一网站在线播放| 国产精品一二三四区| 国产欧美日产一区| 色偷偷久久人人79超碰人人澡| 老汉av免费一区二区三区| 色偷偷成人一区二区三区91| 蓝色福利精品导航| 一区二区三区美女| 久久免费午夜影院| 欧美日本乱大交xxxxx| 成人妖精视频yjsp地址| 日精品一区二区| 一区二区三区四区乱视频| 精品久久久久久久一区二区蜜臀| 91国模大尺度私拍在线视频| 高清在线成人网| 精品亚洲porn| 日本强好片久久久久久aaa| 亚洲视频每日更新| 国产人妖乱国产精品人妖| 日韩欧美电影一区| 欧美人妖巨大在线| 欧美性猛交xxxx乱大交退制版 | 亚洲视频一二三| 国产免费成人在线视频| 久久这里只有精品6| 欧美一级免费大片| 欧美日韩成人激情| 欧美日韩国产影片| 欧美三级视频在线观看| 色94色欧美sute亚洲线路一ni| 成人性视频免费网站| 国产成人鲁色资源国产91色综 | 日本一区二区三区dvd视频在线| 日韩三级电影网址| 欧美一区二区三区四区五区| 欧美性感一区二区三区| 色婷婷av一区二区| 91福利小视频| 欧美日韩不卡一区二区| 欧美日韩在线三级| 欧美精选在线播放| 欧美精品国产精品| 欧美日韩高清在线| 911精品产国品一二三产区| 欧美精品乱码久久久久久按摩| 欧美日韩国产经典色站一区二区三区| 91亚洲国产成人精品一区二区三| 99精品国产热久久91蜜凸| 91视频com| 欧美裸体bbwbbwbbw| 欧美一区二区福利视频| 欧美大片日本大片免费观看| 久久亚洲精品小早川怜子| 中文乱码免费一区二区| 亚洲人精品午夜| 香蕉乱码成人久久天堂爱免费| 奇米影视一区二区三区| 国产一区二区三区四区五区入口| 国产成人免费在线观看| 色狠狠色狠狠综合| 欧美一级日韩一级| 国产视频在线观看一区二区三区| 国产精品乱子久久久久| 亚洲成人av一区| 狂野欧美性猛交blacked| 成人一区二区三区中文字幕| 色老汉一区二区三区| 日韩欧美国产高清| 国产精品福利一区二区三区| 亚洲国产视频在线| 国产一区中文字幕| 91福利视频久久久久| 精品成a人在线观看| 亚洲免费观看高清完整版在线观看熊| 午夜av区久久| 99国产欧美另类久久久精品| 日韩免费一区二区三区在线播放| 国产精品欧美一区二区三区| 午夜国产不卡在线观看视频| 国产成人亚洲综合a∨猫咪| 欧美剧情电影在线观看完整版免费励志电影| 日韩视频免费观看高清完整版| 亚洲欧洲中文日韩久久av乱码| 久久不见久久见中文字幕免费| 91老司机福利 在线| 久久精品视频一区二区|