亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
av在线综合网| 高清成人免费视频| 九色|91porny| 色天天综合色天天久久| 欧美精品乱码久久久久久| 国产日产精品1区| 性做久久久久久| 99精品在线免费| 久久蜜桃一区二区| 亚洲伊人伊色伊影伊综合网| 国产福利视频一区二区三区| 欧美日韩国产成人在线91| 久久亚洲春色中文字幕久久久| 伊人开心综合网| 国产成人av福利| 日韩精品在线看片z| 亚洲一区二区综合| 91在线无精精品入口| 久久综合久久综合久久| 三级在线观看一区二区| 一本到高清视频免费精品| 欧美高清在线一区二区| 国产一二三精品| 欧美一区二区日韩| 午夜精品aaa| 欧美唯美清纯偷拍| 亚洲伊人色欲综合网| 一本大道久久a久久精品综合| 国产人成一区二区三区影院| 久久精品久久综合| 欧美一级免费观看| 日本成人在线电影网| 欧美日韩国产综合视频在线观看| 亚洲日穴在线视频| 91亚洲国产成人精品一区二区三| 中日韩av电影| 99天天综合性| 一区二区视频免费在线观看| 99久久伊人网影院| 亚洲天堂免费看| 一本色道久久综合亚洲91| 亚洲精品写真福利| 欧美性大战久久久久久久蜜臀 | 亚洲人精品午夜| 一本一道久久a久久精品综合蜜臀| 成人免费一区二区三区在线观看| 91丝袜美女网| 午夜a成v人精品| 欧美成人精品福利| 狠狠色综合日日| 久久久91精品国产一区二区精品| 成人激情综合网站| 亚洲欧美色图小说| 欧美老人xxxx18| 国产一区二区三区精品欧美日韩一区二区三区 | 欧美性做爰猛烈叫床潮| 日韩中文欧美在线| 精品国产乱子伦一区| 国产一区二区看久久| 1区2区3区精品视频| 欧美视频一区二区三区| 美女在线观看视频一区二区| 久久精品欧美一区二区三区不卡| 成人国产精品免费| 亚洲成人第一页| 欧美精品一区二区三区高清aⅴ| 国产精一区二区三区| 亚洲精品中文字幕在线观看| 日韩一级二级三级| 99精品在线免费| 天天色天天操综合| 欧美国产欧美综合| 欧美三级资源在线| 国产麻豆日韩欧美久久| 亚洲精品国产高清久久伦理二区| 日韩亚洲欧美一区二区三区| 99综合电影在线视频| 日本免费新一区视频| 日韩一区欧美一区| 日韩一级黄色片| 在线一区二区三区| 国产主播一区二区三区| 亚洲丶国产丶欧美一区二区三区| 国产欧美日韩三级| 制服视频三区第一页精品| 成人性生交大片免费看中文网站| 香蕉久久夜色精品国产使用方法 | 91精品婷婷国产综合久久竹菊| 国产一区在线精品| 午夜精品国产更新| 亚洲免费观看在线视频| 久久综合色综合88| 69p69国产精品| 色视频一区二区| www.久久久久久久久| 久久国产日韩欧美精品| 五月激情综合色| 亚洲一区二区三区美女| 亚洲人成7777| 国产精品美女久久久久久久久| 精品久久五月天| 欧美一区二区三区四区高清| 在线免费不卡电影| 91在线无精精品入口| 波多野结衣中文字幕一区二区三区| 久久se精品一区精品二区| 午夜精品久久久久久久99水蜜桃| 亚洲欧美日韩一区| 亚洲国产精品激情在线观看| 久久久三级国产网站| 欧美videos中文字幕| 精品欧美一区二区在线观看| 日韩色视频在线观看| 日韩三级伦理片妻子的秘密按摩| 欧美久久久久中文字幕| 欧美日韩国产精品成人| 欧美三区在线视频| 777奇米成人网| 7777精品久久久大香线蕉| 欧美日韩一区在线| 欧美日韩一区二区三区四区| 欧美午夜电影网| 在线综合视频播放| 日韩视频免费观看高清在线视频| 欧美一卡二卡在线观看| 欧美成人a∨高清免费观看| 日韩免费高清av| 精品国产乱码久久久久久夜甘婷婷| 日韩欧美色综合| 国产色产综合色产在线视频| 久久久五月婷婷| 中文字幕在线一区| 一区二区三区欧美在线观看| 亚洲综合图片区| 日韩不卡在线观看日韩不卡视频| 日韩av电影免费观看高清完整版 | 日韩一卡二卡三卡四卡| 精品国产一区二区三区久久影院| 精品国产三级电影在线观看| 久久久久久一级片| 亚洲欧洲三级电影| 亚洲在线免费播放| 麻豆精品一区二区av白丝在线| 精品伊人久久久久7777人| 福利一区二区在线| 欧美图区在线视频| 欧美一卡二卡三卡四卡| 国产亚洲欧洲997久久综合| 国产精品久久久久久久午夜片| 夜夜揉揉日日人人青青一国产精品 | 久久免费精品国产久精品久久久久| 国产性色一区二区| 亚洲女人的天堂| 日韩—二三区免费观看av| 丰满白嫩尤物一区二区| 在线精品国精品国产尤物884a| 欧美成人伊人久久综合网| 国产精品久久久久久久久久久免费看 | 2欧美一区二区三区在线观看视频| 久久嫩草精品久久久久| 亚洲综合图片区| 国产精品一品二品| 欧美日韩精品电影| 国产欧美日韩精品一区| 一区二区三区在线观看网站| 激情五月婷婷综合网| 在线视频观看一区| 国产日韩欧美激情| 日韩av一区二区三区| 成人av中文字幕| 日韩欧美电影一二三| 亚洲人吸女人奶水| 国产 日韩 欧美大片| 日韩亚洲欧美在线| 亚洲一卡二卡三卡四卡无卡久久| 国产精品影视天天线| 欧美片网站yy| 亚洲精品免费在线| 国产精品主播直播| 欧美变态tickling挠脚心| 一区二区三区久久久| 国内外成人在线| 日韩欧美视频在线| 亚洲va在线va天堂| 在线精品视频免费播放| 国产精品日韩精品欧美在线 | 亚洲国产三级在线| 成人免费高清在线| 久久精品水蜜桃av综合天堂| 石原莉奈在线亚洲三区| 欧美日韩一级片网站| 亚洲精品免费看| 99久久国产综合精品色伊| 欧美国产精品中文字幕| 国产综合色精品一区二区三区| 欧美一级xxx| 日日摸夜夜添夜夜添国产精品| 色欧美片视频在线观看在线视频| 中文字幕一区二区三区四区 | 《视频一区视频二区|