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

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

?? indirectingserializableextension.java

?? c3p0數據庫連接池實現源碼
?? JAVA
字號:
/* * Distributed as part of c3p0 v.0.9.1-pre6 * * Copyright (C) 2005 Machinery For Change, Inc. * * Author: Steve Waldman <swaldman@mchange.com> * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1, as  * published by the Free Software Foundation. * * This software 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 software; see the file LICENSE.  If not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA. */package com.mchange.v2.codegen.bean;import java.util.*;import java.io.Serializable;import java.io.IOException;import com.mchange.v2.codegen.IndentedWriter;import com.mchange.v2.ser.IndirectPolicy;public class IndirectingSerializableExtension extends SerializableExtension{    protected String findIndirectorExpr;    protected String indirectorClassName;    /**     * We expect this indirector to be a public class with a public no_arg ctor;     * If you need the indirector initialized somehow, you'll have to extend     * the class.     *     * @see #writeInitializeIndirector     * @see #writeExtraDeclarations     */    public IndirectingSerializableExtension( String indirectorClassName )    { 	this.indirectorClassName = indirectorClassName;	this.findIndirectorExpr = "new " + indirectorClassName + "()";    }    protected IndirectingSerializableExtension()    {}    public Collection extraSpecificImports()    {	Collection col = super.extraSpecificImports();	col.add( indirectorClassName );	col.add( "com.mchange.v2.ser.IndirectlySerialized" );	col.add( "com.mchange.v2.ser.Indirector" );	col.add( "com.mchange.v2.ser.SerializableUtils" );	col.add( "java.io.NotSerializableException" );	return col;    }    protected IndirectPolicy indirectingPolicy( Property prop, Class propType )    {	if (Serializable.class.isAssignableFrom( propType ))	    return IndirectPolicy.DEFINITELY_DIRECT;	else	    return IndirectPolicy.INDIRECT_ON_EXCEPTION;    }    /**     * hook method... does nothing by default... override at will.     * The indirector will be called, uh, "indirector".     * You are in the middle of a method when you define this.     */    protected void writeInitializeIndirector( Property prop, Class propType, IndentedWriter iw ) throws IOException    {}    protected void writeExtraDeclarations(ClassInfo info, Class superclassType, Property[] props, Class[] propTypes, IndentedWriter iw)	throws IOException    {}    public void generate(ClassInfo info, Class superclassType, Property[] props, Class[] propTypes, IndentedWriter iw)	throws IOException    {	super.generate( info, superclassType, props, propTypes, iw);	writeExtraDeclarations( info, superclassType, props, propTypes, iw);    }    protected void writeStoreObject( Property prop, Class propType, IndentedWriter iw ) throws IOException    {	IndirectPolicy policy = indirectingPolicy( prop, propType );	if (policy == IndirectPolicy.DEFINITELY_INDIRECT)	    writeIndirectStoreObject( prop, propType, iw );	else if (policy == IndirectPolicy.INDIRECT_ON_EXCEPTION)	    {		iw.println("try");		iw.println("{");		iw.upIndent();		iw.println("//test serialize");		iw.println("SerializableUtils.toByteArray(" + prop.getName() + ");");		super.writeStoreObject( prop, propType, iw );		iw.downIndent();		iw.println("}");		iw.println("catch (NotSerializableException nse)");		iw.println("{");		iw.upIndent();		writeIndirectStoreObject( prop, propType, iw );		iw.downIndent();		iw.println("}");	    }	else if (policy == IndirectPolicy.DEFINITELY_DIRECT)	    super.writeStoreObject( prop, propType, iw );	else	    throw new InternalError("indirectingPolicy() overridden to return unknown policy: " + policy);    }    protected void writeIndirectStoreObject( Property prop, Class propType, IndentedWriter iw ) throws IOException    {	iw.println("try");	iw.println("{");	iw.upIndent();	iw.println("Indirector indirector = " + findIndirectorExpr + ';');	writeInitializeIndirector( prop, propType, iw );	iw.println("oos.writeObject( indirector.indirectForm( " + prop.getName() + " ) );");	iw.downIndent();	iw.println("}");	iw.println("catch (IOException indirectionIOException)");	iw.println("{ throw indirectionIOException; }");	iw.println("catch (Exception indirectionOtherException)");	iw.println("{ throw new IOException(\"Problem indirectly serializing " + prop.getName() + ": \" + indirectionOtherException.toString() ); }");    }    protected void writeUnstoreObject( Property prop, Class propType, IndentedWriter iw ) throws IOException    {	IndirectPolicy policy = indirectingPolicy( prop, propType );	if (policy == IndirectPolicy.DEFINITELY_INDIRECT || policy == IndirectPolicy.INDIRECT_ON_EXCEPTION)	    {		iw.println("Object o = ois.readObject();");		iw.println("if (o instanceof IndirectlySerialized) o = ((IndirectlySerialized) o).getObject();");		iw.println("this." + prop.getName() + " = (" + prop.getSimpleTypeName() + ") o;");	    }	else if (policy == IndirectPolicy.DEFINITELY_DIRECT)	    super.writeUnstoreObject( prop, propType, iw );	else	    throw new InternalError("indirectingPolicy() overridden to return unknown policy: " + policy);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品水嫩水嫩| 免费成人在线视频观看| 日韩电影在线一区二区三区| 丁香啪啪综合成人亚洲小说| 欧美日本在线看| 一区二区三区欧美视频| 国产精品18久久久久| 在线电影国产精品| 一区二区高清在线| 91丨九色丨蝌蚪富婆spa| 久久一区二区视频| 蜜桃av一区二区三区电影| 欧美伊人久久大香线蕉综合69| 国产日韩欧美麻豆| 精品一区二区三区av| 欧美一区二区三区在线看| 亚洲综合一区二区精品导航| 99麻豆久久久国产精品免费 | 欧美三级电影在线观看| 欧美高清在线一区| 国产精品一二三在| 久久亚区不卡日本| 激情五月激情综合网| 欧美电视剧免费全集观看| 香蕉av福利精品导航| 在线影视一区二区三区| 一区二区三区电影在线播| 色94色欧美sute亚洲线路二| 亚洲人妖av一区二区| 99在线视频精品| 亚洲裸体xxx| 欧美性生交片4| 亚洲国产一区二区三区青草影视| 欧美色图第一页| 亚欧色一区w666天堂| 51久久夜色精品国产麻豆| 日本欧美一区二区在线观看| 日韩视频一区在线观看| 精品中文字幕一区二区| 国产亚洲一区字幕| av在线播放成人| 一区二区免费看| 91精品国产黑色紧身裤美女| 麻豆精品视频在线观看视频| 26uuu精品一区二区三区四区在线| 精品亚洲porn| 国产精品久久三区| 91黄色激情网站| 亚洲成av人片一区二区| 欧美一区二区视频在线观看 | 久久精品国产久精国产爱| 欧美不卡一区二区| 成人毛片视频在线观看| 亚洲美女精品一区| 日韩午夜激情免费电影| 成人美女视频在线看| 亚洲一区二区成人在线观看| 欧美sm美女调教| 99久久国产免费看| 日日骚欧美日韩| 国产欧美一二三区| 欧美日韩国产在线播放网站| 国内精品在线播放| 一区二区三区四区乱视频| 精品日韩av一区二区| 91丨国产丨九色丨pron| 美女在线视频一区| 日韩一区在线播放| 精品国产sm最大网站| 91麻豆免费在线观看| 久久精品国产亚洲a| 亚洲日本韩国一区| 精品999久久久| 在线看日本不卡| 国产一区视频网站| 婷婷丁香久久五月婷婷| 中文字幕亚洲在| 日韩欧美成人一区| 欧美亚洲动漫另类| 粉嫩高潮美女一区二区三区| 午夜精品成人在线| 国产精品国产三级国产普通话三级 | 老司机免费视频一区二区| 亚洲欧美日韩国产综合| 欧美精品一区二区三区在线播放| 欧美三级日韩在线| 91在线看国产| 国产成人精品免费看| 另类调教123区| 图片区小说区国产精品视频| 亚洲欧洲制服丝袜| 国产精品国产三级国产aⅴ入口 | 26uuu成人网一区二区三区| 在线视频欧美区| www.亚洲精品| 粉嫩一区二区三区在线看 | 婷婷成人激情在线网| 亚洲欧洲一区二区在线播放| 久久噜噜亚洲综合| 久久蜜臀中文字幕| 久久中文娱乐网| 久久亚洲综合色| 亚洲精品一区二区三区福利| 777a∨成人精品桃花网| 欧美理论电影在线| 欧美日韩亚洲综合| 欧美日韩国产综合一区二区 | 国产三区在线成人av| 精品国产电影一区二区| 精品国产一区二区在线观看| 日韩精品最新网址| www国产精品av| 久久人人97超碰com| 久久亚洲精精品中文字幕早川悠里 | 中文字幕一区二区5566日韩| 国产精品视频第一区| 国产精品―色哟哟| 1区2区3区国产精品| 亚洲免费在线播放| 亚洲高清视频的网址| 日韩成人午夜精品| 国产真实乱对白精彩久久| 狠狠色综合日日| 本田岬高潮一区二区三区| 成人综合激情网| 97国产一区二区| 精品视频在线视频| 日韩欧美色电影| 国产欧美日产一区| 一区二区三区四区激情| 日本成人在线不卡视频| 国内成+人亚洲+欧美+综合在线| 狠狠色丁香九九婷婷综合五月| 国产91露脸合集magnet| 99re这里只有精品视频首页| 欧美无人高清视频在线观看| 日韩欧美国产一区在线观看| 国产欧美日韩卡一| 亚洲成人免费看| 国产精品一区在线观看乱码| 一本大道久久a久久精品综合| 欧美色图12p| 久久久国产一区二区三区四区小说| 一区视频在线播放| 秋霞电影网一区二区| 成人免费视频一区二区| 欧美日韩www| 久久一区二区三区四区| 一区二区高清免费观看影视大全| 日韩高清在线一区| 成人性生交大片免费看中文| 欧美视频一区二区三区在线观看| 精品国产污污免费网站入口 | 国产麻豆成人精品| 欧美在线观看18| 欧美国产一区视频在线观看| 亚洲国产va精品久久久不卡综合| 国产一区二三区好的| 在线观看亚洲成人| 国产欧美一区二区精品性| 日韩不卡手机在线v区| 成人高清免费观看| 日韩女优电影在线观看| 亚洲美女在线一区| 国产大陆亚洲精品国产| 这里只有精品免费| 中文字幕综合网| 国产乱子伦视频一区二区三区 | 欧美主播一区二区三区| 国产日本亚洲高清| 奇米精品一区二区三区四区| 日本高清免费不卡视频| 国产午夜精品一区二区三区嫩草| 天堂成人免费av电影一区| 色成年激情久久综合| 中文字幕国产一区二区| 国产精品一色哟哟哟| 精品少妇一区二区三区免费观看| 一区二区三区欧美| 91在线视频观看| 国产精品久久久久久久第一福利| 久久99精品视频| 欧美一卡二卡三卡四卡| 亚洲777理论| 欧美日韩性生活| 亚洲一区二区成人在线观看| 91免费精品国自产拍在线不卡| 日本一区二区三区四区 | 欧美另类变人与禽xxxxx| 亚洲与欧洲av电影| 欧美亚洲国产一区二区三区va | 国产精品久久久久久久蜜臀| 国产乱一区二区| 国产日产欧美一区| 国产99精品国产| 国产精品久久久久久久久晋中| 国产99久久久国产精品免费看 | 蜜臀av一级做a爰片久久| 91精品国产91热久久久做人人| 五月开心婷婷久久|