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

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

?? callablestatement.java

?? 用于JAVA數據庫連接.解壓就可用,方便得很
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* Copyright (C) 2002-2007 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as  published by the Free Software Foundation. There are special exceptions to the terms and conditions of the GPL  as it is applied to this software. View the full text of the  exception in file EXCEPTIONS-CONNECTOR-J in the directory of this  software distribution. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  */package com.mysql.jdbc;import java.io.InputStream;import java.io.Reader;import java.io.UnsupportedEncodingException;import java.lang.reflect.Constructor;import java.lang.reflect.InvocationTargetException;import java.math.BigDecimal;import java.net.URL;import java.sql.Array;import java.sql.Blob;import java.sql.Clob;import java.sql.Date;import java.sql.ParameterMetaData;import java.sql.Ref;import java.sql.SQLException;import java.sql.Time;import java.sql.Timestamp;import java.sql.Types;import java.util.ArrayList;import java.util.Calendar;import java.util.HashMap;import java.util.Iterator;import java.util.List;import java.util.Map;import java.util.Properties;import com.mysql.jdbc.exceptions.NotYetImplementedException;/** * Representation of stored procedures for JDBC *  * @author Mark Matthews * @version $Id: CallableStatement.java,v 1.1.2.1 2005/05/13 18:58:38 mmatthews *          Exp $ */public class CallableStatement extends PreparedStatement implements		java.sql.CallableStatement {	protected final static Constructor JDBC_4_CSTMT_2_ARGS_CTOR;		protected final static Constructor JDBC_4_CSTMT_4_ARGS_CTOR;		static {		if (Util.isJdbc4()) {			try {				JDBC_4_CSTMT_2_ARGS_CTOR = Class.forName(						"com.mysql.jdbc.JDBC4CallableStatement")						.getConstructor(								new Class[] { ConnectionImpl.class,										CallableStatementParamInfo.class });				JDBC_4_CSTMT_4_ARGS_CTOR = Class.forName(						"com.mysql.jdbc.JDBC4CallableStatement")						.getConstructor(								new Class[] { ConnectionImpl.class,										String.class, String.class,										Boolean.TYPE });			} catch (SecurityException e) {				throw new RuntimeException(e);			} catch (NoSuchMethodException e) {				throw new RuntimeException(e);			} catch (ClassNotFoundException e) {				throw new RuntimeException(e);			}		} else {			JDBC_4_CSTMT_4_ARGS_CTOR = null;			JDBC_4_CSTMT_2_ARGS_CTOR = null;		}	}		protected class CallableStatementParam {		int desiredJdbcType;		int index;		int inOutModifier;		boolean isIn;		boolean isOut;		int jdbcType;		short nullability;		String paramName;		int precision;		int scale;		String typeName;		CallableStatementParam(String name, int idx, boolean in, boolean out,				int jdbcType, String typeName, int precision, int scale,				short nullability, int inOutModifier) {			this.paramName = name;			this.isIn = in;			this.isOut = out;			this.index = idx;			this.jdbcType = jdbcType;			this.typeName = typeName;			this.precision = precision;			this.scale = scale;			this.nullability = nullability;			this.inOutModifier = inOutModifier;		}		/*		 * (non-Javadoc)		 * 		 * @see java.lang.Object#clone()		 */		protected Object clone() throws CloneNotSupportedException {			return super.clone();		}	}	protected class CallableStatementParamInfo {		String catalogInUse;		boolean isFunctionCall;		String nativeSql;		int numParameters;		List parameterList;		Map parameterMap;		/**		 * Constructor that converts a full list of parameter metadata into one		 * that only represents the placeholders present in the {CALL ()}.		 * 		 * @param fullParamInfo the metadata for all parameters for this stored 		 * procedure or function.		 */		CallableStatementParamInfo(CallableStatementParamInfo fullParamInfo) {			this.nativeSql = originalSql;			this.catalogInUse = currentCatalog;			isFunctionCall = fullParamInfo.isFunctionCall;			int[] localParameterMap = placeholderToParameterIndexMap;			int parameterMapLength = localParameterMap.length;						parameterList = new ArrayList(fullParamInfo.numParameters);			parameterMap = new HashMap(fullParamInfo.numParameters);						if (isFunctionCall) {				// Take the return value				parameterList.add(fullParamInfo.parameterList.get(0));			}						int offset = isFunctionCall ? 1 : 0;						for (int i = 0; i < parameterMapLength; i++) {				if (localParameterMap[i] != 0) {					CallableStatementParam param = (CallableStatementParam)fullParamInfo.parameterList.get(localParameterMap[i] + offset);										parameterList.add(param);					parameterMap.put(param.paramName, param);				}			}						this.numParameters = parameterList.size();		}				CallableStatementParamInfo(java.sql.ResultSet paramTypesRs)				throws SQLException {			boolean hadRows = paramTypesRs.last();			this.nativeSql = originalSql;			this.catalogInUse = currentCatalog;			isFunctionCall = callingStoredFunction;			if (hadRows) {				this.numParameters = paramTypesRs.getRow();				this.parameterList = new ArrayList(this.numParameters);				this.parameterMap = new HashMap(this.numParameters);				paramTypesRs.beforeFirst();				addParametersFromDBMD(paramTypesRs);			} else {				this.numParameters = 0;			}						if (isFunctionCall) {				this.numParameters += 1;		}		}		private void addParametersFromDBMD(java.sql.ResultSet paramTypesRs)				throws SQLException {			int i = 0;			while (paramTypesRs.next()) {				String paramName = paramTypesRs.getString(4);				int inOutModifier = paramTypesRs.getInt(5);				boolean isOutParameter = false;				boolean isInParameter = false;				if (i == 0 && isFunctionCall) {					isOutParameter = true;					isInParameter = false;				} else if (inOutModifier == DatabaseMetaData.procedureColumnInOut) {					isOutParameter = true;					isInParameter = true;				} else if (inOutModifier == DatabaseMetaData.procedureColumnIn) {					isOutParameter = false;					isInParameter = true;				} else if (inOutModifier == DatabaseMetaData.procedureColumnOut) {					isOutParameter = true;					isInParameter = false;				}				int jdbcType = paramTypesRs.getInt(6);				String typeName = paramTypesRs.getString(7);				int precision = paramTypesRs.getInt(8);				int scale = paramTypesRs.getInt(10);				short nullability = paramTypesRs.getShort(12);				CallableStatementParam paramInfoToAdd = new CallableStatementParam(						paramName, i++, isInParameter, isOutParameter,						jdbcType, typeName, precision, scale, nullability,						inOutModifier);				this.parameterList.add(paramInfoToAdd);				this.parameterMap.put(paramName, paramInfoToAdd);			}		}		protected void checkBounds(int paramIndex) throws SQLException {			int localParamIndex = paramIndex - 1;			if ((paramIndex < 0) || (localParamIndex >= this.numParameters)) {				throw SQLError.createSQLException(						Messages.getString("CallableStatement.11") + paramIndex //$NON-NLS-1$								+ Messages.getString("CallableStatement.12") + numParameters //$NON-NLS-1$								+ Messages.getString("CallableStatement.13"), SQLError.SQL_STATE_ILLEGAL_ARGUMENT); //$NON-NLS-1$			}		}		/*		 * (non-Javadoc)		 * 		 * @see java.lang.Object#clone()		 */		protected Object clone() throws CloneNotSupportedException {			// TODO Auto-generated method stub			return super.clone();		}		CallableStatementParam getParameter(int index) {			return (CallableStatementParam) this.parameterList.get(index);		}		CallableStatementParam getParameter(String name) {			return (CallableStatementParam) this.parameterMap.get(name);		}		public String getParameterClassName(int arg0) throws SQLException {			String mysqlTypeName = getParameterTypeName(arg0);						boolean isBinaryOrBlob = StringUtils.indexOfIgnoreCase(mysqlTypeName, "BLOB") != -1 || 				StringUtils.indexOfIgnoreCase(mysqlTypeName, "BINARY") != -1;						boolean isUnsigned = StringUtils.indexOfIgnoreCase(mysqlTypeName, "UNSIGNED") != -1;						int mysqlTypeIfKnown = 0;						if (StringUtils.startsWithIgnoreCase(mysqlTypeName, "MEDIUMINT")) {				mysqlTypeIfKnown = MysqlDefs.FIELD_TYPE_INT24;			}						return ResultSetMetaData.getClassNameForJavaType(getParameterType(arg0), 					isUnsigned, mysqlTypeIfKnown, isBinaryOrBlob, false);		}		public int getParameterCount() throws SQLException {			if (this.parameterList == null) {				return 0;			}						return this.parameterList.size();		}		public int getParameterMode(int arg0) throws SQLException {			checkBounds(arg0);			return getParameter(arg0 - 1).inOutModifier;		}		public int getParameterType(int arg0) throws SQLException {			checkBounds(arg0);			return getParameter(arg0 - 1).jdbcType;		}		public String getParameterTypeName(int arg0) throws SQLException {			checkBounds(arg0);			return getParameter(arg0 - 1).typeName;		}		public int getPrecision(int arg0) throws SQLException {			checkBounds(arg0);			return getParameter(arg0 - 1).precision;		}		public int getScale(int arg0) throws SQLException {			checkBounds(arg0);			return getParameter(arg0 - 1).scale;		}		public int isNullable(int arg0) throws SQLException {			checkBounds(arg0);			return getParameter(arg0 - 1).nullability;		}		public boolean isSigned(int arg0) throws SQLException {			checkBounds(arg0);			return false;		}		Iterator iterator() {			return this.parameterList.iterator();		}		int numberOfParameters() {			return this.numParameters;		}	}	/**	 * Can't implement this directly, as then you can't use callable statements	 * on JDK-1.3.1, which unfortunately isn't EOL'd yet, and still present	 * quite a bit out there in the wild (Websphere, FreeBSD, anyone?)	 */	protected class CallableStatementParamInfoJDBC3 extends CallableStatementParamInfo			implements ParameterMetaData {		CallableStatementParamInfoJDBC3(java.sql.ResultSet paramTypesRs)				throws SQLException {			super(paramTypesRs);		}		public CallableStatementParamInfoJDBC3(CallableStatementParamInfo paramInfo) {			super(paramInfo);		}				/**	     * Returns true if this either implements the interface argument or is directly or indirectly a wrapper	     * for an object that does. Returns false otherwise. If this implements the interface then return true,	     * else if this is a wrapper then return the result of recursively calling <code>isWrapperFor</code> on the wrapped	     * object. If this does not implement the interface and is not a wrapper, return false.	     * This method should be implemented as a low-cost operation compared to <code>unwrap</code> so that	     * callers can use this method to avoid expensive <code>unwrap</code> calls that may fail. If this method	     * returns true then calling <code>unwrap</code> with the same argument should succeed.	     *	     * @param interfaces a Class defining an interface.	     * @return true if this implements the interface or directly or indirectly wraps an object that does.	     * @throws java.sql.SQLException  if an error occurs while determining whether this is a wrapper	     * for an object with the given interface.	     * @since 1.6	     */		public boolean isWrapperFor(Class iface) throws SQLException {			checkClosed();						// This works for classes that aren't actually wrapping			// anything			return iface.isInstance(this);		}	    /**	     * Returns an object that implements the given interface to allow access to non-standard methods,	     * or standard methods not exposed by the proxy.	     * The result may be either the object found to implement the interface or a proxy for that object.	     * If the receiver implements the interface then that is the object. If the receiver is a wrapper	     * and the wrapped object implements the interface then that is the object. Otherwise the object is	     *  the result of calling <code>unwrap</code> recursively on the wrapped object. If the receiver is not a	     * wrapper and does not implement the interface, then an <code>SQLException</code> is thrown.	     *	     * @param iface A Class defining an interface that the result must implement.	     * @return an object that implements the interface. May be a proxy for the actual implementing object.	     * @throws java.sql.SQLException If no object found that implements the interface 	     * @since 1.6	     */		public Object unwrap(Class iface) throws java.sql.SQLException {	    	try {	    		// This works for classes that aren't actually wrapping	    		// anything	    		return Util.cast(iface, this);	        } catch (ClassCastException cce) {	            throw SQLError.createSQLException("Unable to unwrap to " + iface.toString(), 	            		SQLError.SQL_STATE_ILLEGAL_ARGUMENT);	        }	    }	}	private final static int NOT_OUTPUT_PARAMETER_INDICATOR = Integer.MIN_VALUE;	private final static String PARAMETER_NAMESPACE_PREFIX = "@com_mysql_jdbc_outparam_"; //$NON-NLS-1$	private static String mangleParameterName(String origParameterName) {		if (origParameterName == null) {			return null;		}		int offset = 0;		if (origParameterName.length() > 0				&& origParameterName.charAt(0) == '@') {			offset = 1;		}		StringBuffer paramNameBuf = new StringBuffer(PARAMETER_NAMESPACE_PREFIX				.length()				+ origParameterName.length());		paramNameBuf.append(PARAMETER_NAMESPACE_PREFIX);		paramNameBuf.append(origParameterName.substring(offset));		return paramNameBuf.toString();	}	private boolean callingStoredFunction = false;	private ResultSetInternalMethods functionReturnValueResults;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国产澳门| 欧日韩精品视频| 日本高清成人免费播放| 欧美欧美午夜aⅴ在线观看| 久久久蜜桃精品| 亚洲成人7777| 99久久亚洲一区二区三区青草| 日韩视频在线一区二区| 亚洲激情一二三区| 成人av免费在线观看| 久久久综合精品| 精品在线一区二区| 欧美精品第1页| 亚洲高清久久久| 色天使色偷偷av一区二区| 亚洲国产精品99久久久久久久久| 日韩电影在线观看网站| 在线观看一区二区精品视频| 日韩一区中文字幕| 成人ar影院免费观看视频| 26uuu精品一区二区| 日本不卡高清视频| 777久久久精品| 日韩成人一区二区三区在线观看| 欧美日韩一区精品| 香蕉加勒比综合久久| 欧美日韩在线三级| 日日摸夜夜添夜夜添亚洲女人| 欧美在线色视频| 亚洲制服丝袜在线| 欧美在线|欧美| 亚洲成人免费在线| 欧美日韩国产小视频在线观看| 一区2区3区在线看| 欧美三级日韩三级| 日本午夜精品视频在线观看| 欧美精品色综合| 男人的天堂久久精品| 日韩精品一区二区三区中文不卡| 久久99久久久久久久久久久| 2020国产精品久久精品美国| 国产一区二区三区| 国产精品九色蝌蚪自拍| 99久久久国产精品免费蜜臀| 亚洲综合av网| 日韩欧美国产电影| 成人黄色一级视频| 伊人婷婷欧美激情| 日韩欧美资源站| 国产sm精品调教视频网站| 最近日韩中文字幕| 777午夜精品免费视频| 国产一区二区三区四区五区入口| 欧美国产精品专区| 欧美无人高清视频在线观看| 免费久久99精品国产| 久久精品亚洲精品国产欧美kt∨| eeuss国产一区二区三区| 亚洲国产一区二区a毛片| 91精品麻豆日日躁夜夜躁| 国产一区二区美女| 亚洲欧美国产毛片在线| 欧美一区二区精美| 99久久er热在这里只有精品15| 亚洲成人一区二区| 国产女同性恋一区二区| 欧美日韩视频在线一区二区| 国产一区二区三区在线看麻豆| 亚洲精品欧美专区| 精品国产污污免费网站入口| 99久久精品免费看国产| 日韩成人av影视| 中文字幕在线不卡一区二区三区| 91精品国产91综合久久蜜臀| 成人av在线资源网| 精品一区二区三区影院在线午夜| 亚洲图片激情小说| 精品福利一二区| 欧美日韩综合在线免费观看| 成人午夜激情在线| 久久精品国产亚洲aⅴ| 一区二区三区高清不卡| 国产欧美一区二区精品婷婷 | 麻豆91精品视频| 亚洲欧美日韩国产另类专区| 久久香蕉国产线看观看99| 欧美亚洲综合另类| 波多野结衣在线aⅴ中文字幕不卡 波多野结衣在线一区 | 中文字幕制服丝袜一区二区三区 | 国产日韩成人精品| 欧美一区二区三区四区视频| 一本一道久久a久久精品| 韩国av一区二区| 日韩电影免费在线看| 一区二区三区中文字幕精品精品| 国产精品蜜臀在线观看| 久久网站最新地址| 精品久久久久久最新网址| 欧美片在线播放| 欧美理论在线播放| 欧美午夜寂寞影院| 欧美中文一区二区三区| 欧美亚洲高清一区二区三区不卡| 成人av在线电影| av一区二区不卡| 99精品国产99久久久久久白柏| 成人午夜精品一区二区三区| 国产成人小视频| 国产999精品久久久久久| 国产一区二区精品在线观看| 国产一区二区精品久久| 国产在线一区二区综合免费视频| 久久精品久久精品| 狠狠色狠狠色综合| 国产福利电影一区二区三区| 国产a级毛片一区| 粉嫩一区二区三区在线看| www.亚洲色图| 色婷婷久久综合| 欧美午夜片在线看| 制服丝袜一区二区三区| 欧美成人性福生活免费看| 国产人妖乱国产精品人妖| 国产精品乱人伦| 一区二区在线观看视频在线观看| 亚洲免费观看高清完整版在线观看| 亚洲免费av高清| 亚洲一区在线观看网站| 日本美女一区二区| 国产真实乱子伦精品视频| 成人国产精品免费| 色综合久久久久| 日韩亚洲欧美成人一区| 国产午夜精品美女毛片视频| 中文字幕一区二区三区四区不卡 | 亚洲美女视频在线| 亚洲午夜电影在线观看| 伦理电影国产精品| 大胆亚洲人体视频| 欧美日韩精品系列| wwwwxxxxx欧美| 一区二区三区在线视频免费观看| 香蕉影视欧美成人| 国产99久久久国产精品| 色系网站成人免费| 日韩你懂的电影在线观看| 中文字幕一区二区三区在线观看| 午夜伊人狠狠久久| 国产精品99久久久久久久vr| 色综合久久天天综合网| 日韩免费一区二区三区在线播放| 中文字幕中文字幕一区二区| 免费久久99精品国产| 91丨porny丨首页| 日韩久久久精品| 亚洲综合在线观看视频| 老司机免费视频一区二区| 91玉足脚交白嫩脚丫在线播放| 欧美一区日本一区韩国一区| 中文字幕日韩av资源站| 另类人妖一区二区av| 日本精品视频一区二区三区| 久久欧美中文字幕| 日日夜夜免费精品| 一本大道久久a久久精品综合| 2021中文字幕一区亚洲| 天堂一区二区在线免费观看| jlzzjlzz欧美大全| 久久女同精品一区二区| 日韩激情av在线| 色欧美乱欧美15图片| 亚洲国产精品精华液ab| 精品一区二区精品| 欧美一区二区三区在线视频| 亚洲男同1069视频| 91在线精品秘密一区二区| 久久久久久久性| 美女视频网站久久| 911精品产国品一二三产区| 一区二区高清视频在线观看| 成人va在线观看| 久久精品在这里| 韩国视频一区二区| 日韩午夜精品电影| 奇米亚洲午夜久久精品| 欧美高清视频一二三区| 一区二区三区不卡视频| 91老师片黄在线观看| 国产精品福利影院| 99精品1区2区| 综合色天天鬼久久鬼色| 91视频精品在这里| 中文字幕一区av| 色网站国产精品| 亚洲电影第三页| 在线不卡一区二区| 免费精品视频在线| www久久精品| 成人国产精品免费观看动漫| 亚洲欧洲性图库|