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

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

?? jdbc4resultset.java

?? 用于JAVA數據庫連接.解壓就可用,方便得很
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/*
 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.sql.NClob;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLXML;

import com.mysql.jdbc.Connection;
import com.mysql.jdbc.Field;
import com.mysql.jdbc.NotUpdatable;
import com.mysql.jdbc.ResultSetImpl;
import com.mysql.jdbc.RowData;
import com.mysql.jdbc.SQLError;
import com.mysql.jdbc.Statement;
import com.mysql.jdbc.exceptions.NotYetImplementedException;

public class JDBC4ResultSet extends ResultSetImpl {

	public JDBC4ResultSet(long updateCount, long updateID, 
			ConnectionImpl conn, StatementImpl creatorStmt) {
		super(updateCount, updateID, conn, creatorStmt);
	}
	
	public JDBC4ResultSet(String catalog, Field[] fields, RowData tuples,
			ConnectionImpl conn, StatementImpl creatorStmt) throws SQLException {
		super(catalog, fields, tuples, conn, creatorStmt);
	}
	
	/**
	 * JDBC 4.0
	 * 
	 * <p>
	 * Get the value of a column in the current row as a java.io.Reader.
	 * </p>
	 * 
	 * @param columnIndex
	 *            the column to get the value from
	 * 
	 * @return the value in the column as a java.io.Reader.
	 * 
	 * @throws SQLException
	 *             if an error occurs
	 */
	public Reader getNCharacterStream(int columnIndex) throws SQLException {
		checkColumnBounds(columnIndex);
		
		String fieldEncoding = this.fields[columnIndex - 1].getCharacterSet();
		if (fieldEncoding == null || !fieldEncoding.equals("UTF-8")) {
			throw new SQLException(
					"Can not call getNCharacterStream() when field's charset isn't UTF-8");
		}
		return getCharacterStream(columnIndex);
	}

	/**
	 * JDBC 4.0
	 * 
	 * <p>
	 * Get the value of a column in the current row as a java.io.Reader.
	 * </p>
	 * 
	 * @param columnName
	 *            the column name to retrieve the value from
	 * 
	 * @return the value as a java.io.Reader
	 * 
	 * @throws SQLException
	 *             if an error occurs
	 */
	public Reader getNCharacterStream(String columnName) throws SQLException {
		return getNCharacterStream(findColumn(columnName));
	}

	/**
	 * JDBC 4.0 Get a NCLOB column.
	 * 
	 * @param i
	 *            the first column is 1, the second is 2, ...
	 * 
	 * @return an object representing a NCLOB
	 * 
	 * @throws SQLException
	 *             if an error occurs
	 */
	public NClob getNClob(int columnIndex) throws SQLException {
		checkColumnBounds(columnIndex);
		
		String fieldEncoding = this.fields[columnIndex - 1].getCharacterSet();
		if (fieldEncoding == null || !fieldEncoding.equals("UTF-8")) {
			throw new SQLException(
					"Can not call getNClob() when field's charset isn't UTF-8");
		}
		if (!this.isBinaryEncoded) {
			String asString = getStringForNClob(columnIndex);

			if (asString == null) {
				return null;
			}

			return new com.mysql.jdbc.JDBC4NClob(asString);
		}

		return getNativeNClob(columnIndex);
	}

	/**
	 * JDBC 4.0 Get a NCLOB column.
	 * 
	 * @param colName
	 *            the column name
	 * 
	 * @return an object representing a NCLOB
	 * 
	 * @throws SQLException
	 *             if an error occurs
	 */
	public NClob getNClob(String columnName) throws SQLException {
		return getNClob(findColumn(columnName));
	}
	
	/**
	 * JDBC 4.0 Get a NCLOB column.
	 * 
	 * @param columnIndex
	 *            the first column is 1, the second is 2, ...
	 * 
	 * @return an object representing a NCLOB
	 * 
	 * @throws SQLException
	 *             if an error occurs
	 */
	protected java.sql.NClob getNativeNClob(int columnIndex)
			throws SQLException {
		String stringVal = getStringForNClob(columnIndex);

		if (stringVal == null) {
			return null;
		}

		return getNClobFromString(stringVal, columnIndex);
	}
	
	private String getStringForNClob(int columnIndex) throws SQLException {
		String asString = null;

		String forcedEncoding = "UTF-8";

		try {
			byte[] asBytes = null;

			if (!this.isBinaryEncoded) {
				asBytes = getBytes(columnIndex);
			} else {
				asBytes = getNativeBytes(columnIndex, true);
			}

			if (asBytes != null) {
				asString = new String(asBytes, forcedEncoding);
			}
		} catch (UnsupportedEncodingException uee) {
			throw SQLError.createSQLException("Unsupported character encoding "
					+ forcedEncoding, SQLError.SQL_STATE_ILLEGAL_ARGUMENT);
		}

		return asString;
	}
	
	private final java.sql.NClob getNClobFromString(String stringVal,
			int columnIndex) throws SQLException {
		return new com.mysql.jdbc.JDBC4NClob(stringVal);
	}
	
	/**
	 * JDBC 4.0
	 * 
	 * Get the value of a column in the current row as a Java String
	 * 
	 * @param columnIndex
	 *            the first column is 1, the second is 2...
	 * 
	 * @return the column value, null for SQL NULL
	 * 
	 * @exception SQLException
	 *                if a database access error occurs
	 */
	public String getNString(int columnIndex) throws SQLException {
		checkColumnBounds(columnIndex);
		
		String fieldEncoding = this.fields[columnIndex - 1].getCharacterSet();
		if (fieldEncoding == null || !fieldEncoding.equals("UTF-8")) {
			throw new SQLException(
					"Can not call getNString() when field's charset isn't UTF-8");
		}
		return getString(columnIndex);
	}
	
	/**
	 * JDBC 4.0
	 * 
	 * The following routines simply convert the columnName into a columnIndex
	 * and then call the appropriate routine above.
	 * 
	 * @param columnName
	 *            is the SQL name of the column
	 * 
	 * @return the column value
	 * 
	 * @exception SQLException
	 *                if a database access error occurs
	 */
	public String getNString(String columnName) throws SQLException {
		return getNString(findColumn(columnName));
	}
	
	/**
	 * JDBC 4.0 Update a column with a character stream value. The updateXXX()
	 * methods are used to update column values in the current row, or the
	 * insert row. The updateXXX() methods do not update the underlying
	 * database, instead the updateRow() or insertRow() methods are called to
	 * update the database.
	 * 
	 * @param columnIndex
	 *            the first column is 1, the second is 2, ...
	 * @param x
	 *            the new column value
	 * @param length
	 *            the length of the stream
	 * 
	 * @exception SQLException
	 *                if a database-access error occurs
	 * @throws NotUpdatable
	 *             DOCUMENT ME!
	 */
	public void updateNCharacterStream(int columnIndex, Reader x, int length)
			throws SQLException {
		throw new NotUpdatable();
	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲黄网站在线观看| 美洲天堂一区二卡三卡四卡视频| 国产美女视频91| 精品成人在线观看| 日本一区二区视频在线| 一区二区三区在线免费视频| 美女视频第一区二区三区免费观看网站| 美日韩一级片在线观看| 国产黄色91视频| 欧美久久一二三四区| 亚洲精品日韩综合观看成人91| 午夜一区二区三区视频| 国产盗摄一区二区三区| 91福利资源站| 国产亚洲短视频| 日韩国产欧美一区二区三区| 成人午夜大片免费观看| 亚洲最新视频在线播放| 蜜臀av在线播放一区二区三区| 99麻豆久久久国产精品免费优播| 日韩一区国产二区欧美三区| 中文字幕一区二区三区四区| 久久狠狠亚洲综合| 欧美日韩卡一卡二| 亚洲激情第一区| 97久久久精品综合88久久| 精品电影一区二区| 日韩av中文字幕一区二区| 在线观看三级视频欧美| 中文字幕中文字幕一区| 国产精品99久久久久久久vr| 日韩一级二级三级精品视频| 午夜电影一区二区三区| 欧美日韩免费观看一区二区三区| 国产精品青草久久| 粉嫩av一区二区三区| 久久精品在这里| 日本精品视频一区二区| 欧美日韩一区二区在线观看| 欧美成人激情免费网| 亚洲日本va在线观看| 美女视频免费一区| 成人国产在线观看| 5858s免费视频成人| 国产精品超碰97尤物18| 色婷婷亚洲综合| 久久久99免费| 欧美日韩国产一区二区三区地区| 黄色日韩三级电影| 日韩精品国产精品| 亚洲综合成人在线| 欧美激情一区二区三区四区 | 欧美人妖巨大在线| 国产福利一区在线| 亚洲视频中文字幕| 欧美丝袜丝交足nylons| 日本最新不卡在线| 2020国产精品| caoporen国产精品视频| 中文字幕乱码亚洲精品一区| 一本到不卡免费一区二区| 午夜精品久久久久久久99樱桃| 欧美三电影在线| 韩国av一区二区三区四区 | 欧美一区二区成人| 国产剧情av麻豆香蕉精品| 亚洲色图视频免费播放| 欧美日本精品一区二区三区| 精品一区二区精品| 亚洲人成伊人成综合网小说| 日韩欧美在线123| 成人免费va视频| 久久精品国产亚洲高清剧情介绍| 国产欧美精品一区二区三区四区| 91在线视频免费观看| 激情av综合网| 性做久久久久久免费观看| 国产精品久久久久久久久动漫 | 91网址在线看| 国产精品一线二线三线精华| 亚洲在线视频免费观看| 国产精品久久夜| 日韩欧美国产一区二区三区 | 91精品国产高清一区二区三区 | 亚洲第一福利视频在线| 亚洲黄色尤物视频| 尤物视频一区二区| 一区二区欧美在线观看| 亚洲综合激情网| 一区二区免费视频| 亚洲成人tv网| 激情另类小说区图片区视频区| 日韩精品午夜视频| 久久av资源网| 成人一区二区三区| 91福利视频久久久久| 欧美电影在线免费观看| 精品噜噜噜噜久久久久久久久试看 | 懂色av中文一区二区三区| 91在线云播放| 91精品国产综合久久精品麻豆 | 欧美一区二区三级| 国产欧美精品一区| 亚洲午夜一二三区视频| 激情五月激情综合网| 成人在线视频一区| 欧美日韩一卡二卡| 久久精品男人的天堂| 亚洲综合丁香婷婷六月香| 国模少妇一区二区三区| 欧美主播一区二区三区| 欧美精品一区男女天堂| 亚洲bt欧美bt精品| 成人免费黄色在线| 精品国产精品网麻豆系列| 中文字幕一区二区三区在线播放 | 色婷婷精品大视频在线蜜桃视频| 欧美电视剧免费全集观看| 一区二区三区国产豹纹内裤在线| 综合久久一区二区三区| 亚洲精品欧美二区三区中文字幕| 成人综合在线观看| 中文字幕第一区第二区| 97se亚洲国产综合自在线观| 国产精品高潮呻吟| 91在线观看高清| 亚洲免费在线播放| 欧美美女bb生活片| 极品美女销魂一区二区三区| 久久这里都是精品| 成人动漫在线一区| 伊人开心综合网| 欧美高清hd18日本| 免费看日韩a级影片| 在线播放视频一区| 天堂av在线一区| 在线视频观看一区| 午夜视黄欧洲亚洲| 欧美精三区欧美精三区| 美女性感视频久久| 日韩欧美一二三区| 国产高清精品在线| 一区免费观看视频| 色嗨嗨av一区二区三区| 亚洲国产日韩在线一区模特| 欧美日韩亚洲高清一区二区| 日韩国产欧美在线播放| 日韩美女主播在线视频一区二区三区| 久久电影国产免费久久电影| 国产欧美va欧美不卡在线| 成人爽a毛片一区二区免费| 国产精品国产三级国产| 91麻豆国产在线观看| 天堂一区二区在线| 国产日产欧美精品一区二区三区| 9l国产精品久久久久麻豆| 亚洲mv大片欧洲mv大片精品| 精品欧美一区二区在线观看| av资源网一区| 日本成人在线视频网站| 国产片一区二区三区| 欧美日韩精品电影| 岛国精品在线播放| 亚洲电影你懂得| 国产精品久久久久久亚洲毛片 | 日本一区二区视频在线| 欧美日韩成人综合天天影院 | 国产无一区二区| 欧美精选一区二区| 91香蕉国产在线观看软件| 国产美女视频一区| 亚洲国产精品久久不卡毛片 | 三级精品在线观看| 亚洲综合免费观看高清完整版在线| 精品国产伦一区二区三区观看方式 | 欧美人动与zoxxxx乱| 成人激情午夜影院| 国产一区二区三区观看| 午夜久久久久久| 一二三四区精品视频| 国产精品久久久久久久久久久免费看 | 亚洲福中文字幕伊人影院| 一色屋精品亚洲香蕉网站| 欧美激情一区二区| 久久精品无码一区二区三区| 欧美一级精品在线| 51久久夜色精品国产麻豆| 91精品国产综合久久久久| 69精品人人人人| 日韩精品一区二| 精品欧美一区二区在线观看| 欧美刺激午夜性久久久久久久 | 一区二区三区四区高清精品免费观看| 国产精品福利一区| 国产精品久久久久9999吃药| 国产精品久线在线观看| 亚洲男人的天堂一区二区| 亚洲综合激情网| 免费看欧美女人艹b| 粉嫩一区二区三区性色av|