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

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

?? preparedstatement.java

?? mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
	 *            the catalog in use when we were created	 * 	 * @throws SQLException	 *             if an error occurs	 */	protected PreparedStatement(Connection conn, String catalog)			throws SQLException {		super(conn, catalog);	}	/**	 * Constructor for the PreparedStatement class.	 * 	 * @param conn	 *            the connection creating this statement	 * @param sql	 *            the SQL for this statement	 * @param catalog	 *            the catalog/database this statement should be issued against	 * 	 * @throws SQLException	 *             if a database error occurs.	 */	public PreparedStatement(Connection conn, String sql, String catalog)			throws SQLException {		super(conn, catalog);		if (sql == null) {			throw SQLError.createSQLException(Messages.getString("PreparedStatement.0"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		this.originalSql = sql;		if (this.originalSql.startsWith(PING_MARKER)) {			this.doPingInstead = true;		} else {			this.doPingInstead = false;		}				this.dbmd = this.connection.getMetaData();		this.useTrueBoolean = this.connection.versionMeetsMinimum(3, 21, 23);		this.parseInfo = new ParseInfo(sql, this.connection, this.dbmd,				this.charEncoding, this.charConverter);		initializeFromParseInfo();	}	/**	 * Creates a new PreparedStatement object.	 * 	 * @param conn	 *            the connection creating this statement	 * @param sql	 *            the SQL for this statement	 * @param catalog	 *            the catalog/database this statement should be issued against	 * @param cachedParseInfo	 *            already created parseInfo.	 * 	 * @throws SQLException	 *             DOCUMENT ME!	 */	public PreparedStatement(Connection conn, String sql, String catalog,			ParseInfo cachedParseInfo) throws SQLException {		super(conn, catalog);		if (sql == null) {			throw SQLError.createSQLException(Messages.getString("PreparedStatement.1"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		this.originalSql = sql;		this.dbmd = this.connection.getMetaData();		this.useTrueBoolean = this.connection.versionMeetsMinimum(3, 21, 23);		this.parseInfo = cachedParseInfo;		this.usingAnsiMode = !this.connection.useAnsiQuotedIdentifiers();		initializeFromParseInfo();	}	/**	 * JDBC 2.0 Add a set of parameters to the batch.	 * 	 * @exception SQLException	 *                if a database-access error occurs.	 * 	 * @see Statement#addBatch	 */	public void addBatch() throws SQLException {		if (this.batchedArgs == null) {			this.batchedArgs = new ArrayList();		}		this.batchedArgs.add(new BatchParams(this.parameterValues,				this.parameterStreams, this.isStream, this.streamLengths,				this.isNull));	}	public synchronized void addBatch(String sql) throws SQLException {		this.batchHasPlainStatements = true;		super.addBatch(sql);	}	protected String asSql() throws SQLException {		return asSql(false);	}	protected String asSql(boolean quoteStreamsAndUnknowns) throws SQLException {		if (this.isClosed) {			return "statement has been closed, no further internal information available";		}				StringBuffer buf = new StringBuffer();		try {			for (int i = 0; i < this.parameterCount; ++i) {				if (this.charEncoding != null) {					buf.append(new String(this.staticSqlStrings[i],							this.charEncoding));				} else {					buf.append(new String(this.staticSqlStrings[i]));				}				if ((this.parameterValues[i] == null) && !this.isStream[i]) {					if (quoteStreamsAndUnknowns) {						buf.append("'");					}					buf.append("** NOT SPECIFIED **"); //$NON-NLS-1$					if (quoteStreamsAndUnknowns) {						buf.append("'");					}				} else if (this.isStream[i]) {					if (quoteStreamsAndUnknowns) {						buf.append("'");					}					buf.append("** STREAM DATA **"); //$NON-NLS-1$					if (quoteStreamsAndUnknowns) {						buf.append("'");					}				} else {					if (this.charConverter != null) {						buf.append(this.charConverter								.toString(this.parameterValues[i]));					} else {						if (this.charEncoding != null) {							buf.append(new String(this.parameterValues[i],									this.charEncoding));						} else {							buf.append(StringUtils									.toAsciiString(this.parameterValues[i]));						}					}				}			}			if (this.charEncoding != null) {				buf.append(new String(						this.staticSqlStrings[this.parameterCount],						this.charEncoding));			} else {				buf						.append(StringUtils								.toAsciiString(this.staticSqlStrings[this.parameterCount]));			}		} catch (UnsupportedEncodingException uue) {			throw new RuntimeException(Messages					.getString("PreparedStatement.32") //$NON-NLS-1$					+ this.charEncoding					+ Messages.getString("PreparedStatement.33")); //$NON-NLS-1$		}		return buf.toString();	}	public synchronized void clearBatch() throws SQLException {		this.batchHasPlainStatements = false;		super.clearBatch();	}	/**	 * In general, parameter values remain in force for repeated used of a	 * Statement. Setting a parameter value automatically clears its previous	 * value. However, in some cases, it is useful to immediately release the	 * resources used by the current parameter values; this can be done by	 * calling clearParameters	 * 	 * @exception SQLException	 *                if a database access error occurs	 */	public synchronized void clearParameters() throws SQLException {		checkClosed();				for (int i = 0; i < this.parameterValues.length; i++) {			this.parameterValues[i] = null;			this.parameterStreams[i] = null;			this.isStream[i] = false;			this.isNull[i] = false;		}	}	/**	 * Closes this prepared statement and releases all resources.	 * 	 * @throws SQLException	 *             if database error occurs.	 */	public synchronized void close() throws SQLException {		realClose(true, true);	}	private final void escapeblockFast(byte[] buf, Buffer packet, int size)			throws SQLException {		int lastwritten = 0;		for (int i = 0; i < size; i++) {			byte b = buf[i];			if (b == '\0') {				// write stuff not yet written				if (i > lastwritten) {					packet.writeBytesNoNull(buf, lastwritten, i - lastwritten);				}				// write escape				packet.writeByte((byte) '\\');				packet.writeByte((byte) '0');				lastwritten = i + 1;			} else {				if ((b == '\\') || (b == '\'')						|| (!this.usingAnsiMode && b == '"')) {					// write stuff not yet written					if (i > lastwritten) {						packet.writeBytesNoNull(buf, lastwritten, i								- lastwritten);					}					// write escape					packet.writeByte((byte) '\\');					lastwritten = i; // not i+1 as b wasn't written.				}			}		}		// write out remaining stuff from buffer		if (lastwritten < size) {			packet.writeBytesNoNull(buf, lastwritten, size - lastwritten);		}	}	private final void escapeblockFast(byte[] buf,			ByteArrayOutputStream bytesOut, int size) {		int lastwritten = 0;		for (int i = 0; i < size; i++) {			byte b = buf[i];			if (b == '\0') {				// write stuff not yet written				if (i > lastwritten) {					bytesOut.write(buf, lastwritten, i - lastwritten);				}				// write escape				bytesOut.write('\\');				bytesOut.write('0');				lastwritten = i + 1;			} else {				if ((b == '\\') || (b == '\'')						|| (!this.usingAnsiMode && b == '"')) {					// write stuff not yet written					if (i > lastwritten) {						bytesOut.write(buf, lastwritten, i - lastwritten);					}					// write escape					bytesOut.write('\\');					lastwritten = i; // not i+1 as b wasn't written.				}			}		}		// write out remaining stuff from buffer		if (lastwritten < size) {			bytesOut.write(buf, lastwritten, size - lastwritten);		}	}	/**	 * Some prepared statements return multiple results; the execute method	 * handles these complex statements as well as the simpler form of	 * statements handled by executeQuery and executeUpdate	 * 	 * @return true if the next result is a ResultSet; false if it is an update	 *         count or there are no more results	 * 	 * @exception SQLException	 *                if a database access error occurs	 */	public boolean execute() throws SQLException {		checkClosed();				Connection locallyScopedConn = this.connection;				if (locallyScopedConn.isReadOnly() && (this.firstCharOfStmt != 'S')) {			throw SQLError.createSQLException(Messages.getString("PreparedStatement.20") //$NON-NLS-1$					+ Messages.getString("PreparedStatement.21"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}				ResultSet rs = null;		CachedResultSetMetaData cachedMetadata = null;		synchronized (locallyScopedConn.getMutex()) {			clearWarnings();			this.batchedGeneratedKeys = null;			Buffer sendPacket = fillSendPacket();			String oldCatalog = null;			if (!locallyScopedConn.getCatalog().equals(this.currentCatalog)) {				oldCatalog = locallyScopedConn.getCatalog();				locallyScopedConn.setCatalog(this.currentCatalog);			}			//			// Check if we have cached metadata for this query...			//			if (locallyScopedConn.getCacheResultSetMetadata()) {				cachedMetadata = locallyScopedConn.getCachedMetaData(this.originalSql);			}			Field[] metadataFromCache = null;						if (cachedMetadata != null) {				metadataFromCache = cachedMetadata.fields;			}						boolean oldInfoMsgState = false;			if (this.retrieveGeneratedKeys) {				oldInfoMsgState = locallyScopedConn.isReadInfoMsgEnabled();				locallyScopedConn.setReadInfoMsgEnabled(true);			}			// If there isn't a limit clause in the SQL			// then limit the number of rows to return in			// an efficient manner. Only do this if			// setMaxRows() hasn't been used on any Statements			// generated from the current Connection (saves			// a query, and network traffic).			//			// Only apply max_rows to selects			//			if (locallyScopedConn.useMaxRows()) {				int rowLimit = -1;				if (this.firstCharOfStmt == 'S') {					if (this.hasLimitClause) {						rowLimit = this.maxRows;					} else {						if (this.maxRows <= 0) {							locallyScopedConn.execSQL(this,									"SET OPTION SQL_SELECT_LIMIT=DEFAULT", -1, //$NON-NLS-1$									null, java.sql.ResultSet.TYPE_FORWARD_ONLY,									java.sql.ResultSet.CONCUR_READ_ONLY, false,									this.currentCatalog, true);						} else {							locallyScopedConn									.execSQL(											this,											"SET OPTION SQL_SELECT_LIMIT=" + this.maxRows, -1, //$NON-NLS-1$											null,											java.sql.ResultSet.TYPE_FORWARD_ONLY,											java.sql.ResultSet.CONCUR_READ_ONLY,											false, this.currentCatalog,											true);						}					}				} else {					locallyScopedConn.execSQL(this,							"SET OPTION SQL_SELECT_LIMIT=DEFAULT", -1, null, //$NON-NLS-1$							java.sql.ResultSet.TYPE_FORWARD_ONLY,							java.sql.ResultSet.CONCUR_READ_ONLY, false,							this.currentCatalog, true);				}				// Finally, execute the query				rs = executeInternal(rowLimit, sendPacket,						createStreamingResultSet(),						(this.firstCharOfStmt == 'S'), true, metadataFromCache, false);			} else {				rs = executeInternal(-1, sendPacket,						createStreamingResultSet(),						(this.firstCharOfStmt == 'S'), true, metadataFromCache, false);			}			if (cachedMetadata != null) {				locallyScopedConn.initializeResultsMetadataFromCache(this.originalSql,						cachedMetadata, this.results);			} else {				if (rs.reallyResult() && locallyScopedConn.getCacheResultSetMetadata()) {					locallyScopedConn.initializeResultsMetadataFromCache(this.originalSql,							null /* will be created */, rs);				}			}						if (this.retrieveGeneratedKeys) {				locallyScopedConn.setReadInfoMsgEnabled(oldInfoMsgState);				rs.setFirstCharOfQuery(this.firstCharOfStmt);			}			if (oldCatalog != null) {				locallyScopedConn.setCatalog(oldCatalog);			}			this.lastInsertId = rs.getUpdateID();			if (rs != null) {				this.results = rs;			}		}		return ((rs != null) && rs.reallyResult());	}	/**	 * JDBC 2.0 Submit a batch of commands to the database for execution. This	 * method is optional.	 * 	 * @return an array of update counts containing one element for each command	 *         in the batch. The array is ordered according to the order in	 *         which commands were inserted into the batch	 * 	 * @exception SQLException	 *                if a database-access error occurs, or the driver does not	 *                support batch statements	 * @throws java.sql.BatchUpdateException	 *             DOCUMENT ME!	 */	public int[] executeBatch() throws SQLException {		checkClosed();				if (this.connection.isReadOnly()) {			throw new SQLException(Messages.getString("PreparedStatement.25") //$NON-NLS-1$					+ Messages.getString("PreparedStatement.26"), //$NON-NLS-1$					SQLError.SQL_STATE_ILLEGAL_ARGUMENT);		}		synchronized (this.connection.getMutex()) {		    if (this.batchedArgs == null || this.batchedArgs.size() == 0) {                return new int[0];            }		    			try {				clearWarnings();				if (!this.batchHasPlainStatements						&& this.connection.getRewriteBatchedStatements()) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区二区三区视频播放 | 国产午夜亚洲精品理论片色戒| 欧美性极品少妇| 欧美挠脚心视频网站| 中文字幕亚洲精品在线观看| 久久久久久久久久久久久夜| 国产精品电影院| 免费成人性网站| 色网站国产精品| 日韩一级片在线观看| 亚洲精品日日夜夜| 激情小说亚洲一区| 在线看国产一区二区| 久久久久久久综合日本| 亚洲一区在线电影| caoporn国产一区二区| 欧美成人精品二区三区99精品| 国产精品福利一区二区三区| 午夜激情一区二区三区| 91免费在线播放| 国产无一区二区| 国产电影一区二区三区| 99re66热这里只有精品3直播| 欧美va天堂va视频va在线| 亚洲国产精品久久艾草纯爱| 99久久综合国产精品| 久久一区二区三区四区| 久久99国产精品免费网站| 91麻豆精品国产综合久久久久久| 亚洲综合免费观看高清完整版在线| 国产精品影音先锋| 久久久www成人免费无遮挡大片| 五月天久久比比资源色| 91精品国产品国语在线不卡| 亚洲国产一二三| 欧美一级一级性生活免费录像| 青青国产91久久久久久| 精品国精品自拍自在线| 国产美女精品人人做人人爽| 久久久蜜臀国产一区二区| 国产经典欧美精品| 日韩一区欧美一区| 色狠狠av一区二区三区| 亚洲精品一二三| 777亚洲妇女| 国产91在线观看丝袜| 一区二区三区日韩| 欧美变态tickling挠脚心| 国产激情一区二区三区| 亚洲精品视频在线观看免费 | 国产精品毛片无遮挡高清| 91视频xxxx| 久久精品二区亚洲w码| 中文字幕一区二区三区四区不卡| 精品精品欲导航| av不卡在线播放| 国产综合成人久久大片91| 成人免费在线视频| 精品国产乱码久久久久久久 | 国产精品私房写真福利视频| 精品视频一区三区九区| 99在线精品观看| 国产成人午夜99999| 丝袜a∨在线一区二区三区不卡| 国产欧美日韩另类一区| 日韩一区二区三区精品视频| 91久久免费观看| 福利一区在线观看| 美女国产一区二区| 首页国产欧美日韩丝袜| 亚洲在线视频免费观看| 国产精品福利一区二区三区| 国产午夜精品在线观看| 日韩精品一区国产麻豆| 精品久久久久一区二区国产| 在线不卡一区二区| 欧美色中文字幕| 91麻豆精品国产自产在线| 欧美撒尿777hd撒尿| 欧美视频三区在线播放| 欧美午夜精品理论片a级按摩| 欧美性猛交xxxxxx富婆| 欧美色综合影院| 欧美精品在线一区二区三区| 欧美三级日韩三级国产三级| 欧美日韩成人综合天天影院 | 亚洲国产美国国产综合一区二区| 亚洲美女一区二区三区| 亚洲国产wwwccc36天堂| 日韩影院在线观看| 国产精品99久久不卡二区| 欧美麻豆精品久久久久久| 日韩女优毛片在线| 国产日韩欧美综合一区| 亚洲欧美一区二区三区孕妇| 亚洲午夜久久久久中文字幕久| 免费成人深夜小野草| 99久久99久久综合| 欧美一区二区三区四区久久| 久久视频一区二区| 亚洲精品国产精华液| 国产在线观看一区二区| 91色.com| 中文字幕不卡在线观看| 性久久久久久久久| 色综合天天综合网天天看片| 欧美一二三区在线| 亚洲一卡二卡三卡四卡五卡| 紧缚奴在线一区二区三区| 欧美色网站导航| 国产精品毛片高清在线完整版| 午夜欧美电影在线观看| 色综合久久综合网97色综合| 久久久高清一区二区三区| 亚洲大尺度视频在线观看| 色av综合在线| 国产精品久久三| 成人污视频在线观看| 久久久噜噜噜久噜久久综合| 日本免费在线视频不卡一不卡二| 国产在线不卡一卡二卡三卡四卡| 国内精品免费在线观看| 欧美日韩一区二区三区不卡| 国产亚洲欧美色| 国产激情一区二区三区四区 | 精品一区二区在线观看| 欧美色爱综合网| 亚洲成人激情社区| 欧美男女性生活在线直播观看| 亚洲精品视频在线看| 色综合久久66| 亚洲一区在线播放| 日韩一级欧美一级| 国产一区二区在线电影| 国产亚洲成av人在线观看导航 | 亚洲欧美影音先锋| 91啪九色porn原创视频在线观看| 国产精品嫩草99a| 99re这里只有精品6| 污片在线观看一区二区| 精品国产污污免费网站入口 | 天天av天天翘天天综合网色鬼国产| 欧美日韩午夜在线视频| 久久99精品视频| 亚洲欧美电影院| 欧美丰满高潮xxxx喷水动漫| 裸体一区二区三区| 《视频一区视频二区| 欧美日韩五月天| 成人av集中营| 美女一区二区三区在线观看| 欧美国产日本视频| 欧美一卡2卡3卡4卡| eeuss鲁一区二区三区| 蜜桃视频在线观看一区| 中文字幕字幕中文在线中不卡视频| 在线播放一区二区三区| 成人免费看片app下载| 免费观看91视频大全| 一区二区免费视频| 中文字幕亚洲一区二区av在线| 欧美色图12p| 91国内精品野花午夜精品| 国产成人av资源| 国产精品综合视频| 蓝色福利精品导航| 秋霞成人午夜伦在线观看| 亚洲美女精品一区| 亚洲欧洲国产日韩| 中文字幕成人av| 国产精品成人免费| 自拍偷拍亚洲激情| 亚洲综合一区二区精品导航| 日韩毛片精品高清免费| 国产精品久久毛片a| 亚洲欧美日韩精品久久久久| 国产精品久久久久久久蜜臀 | 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 国产伦精品一区二区三区免费迷 | 欧美三级韩国三级日本三斤| 欧美精品一级二级| 欧美人牲a欧美精品| 日韩一区二区在线观看视频| 欧美成人bangbros| 成人欧美一区二区三区视频网页| 亚洲嫩草精品久久| 美国欧美日韩国产在线播放| 国产精品综合av一区二区国产馆| 蜜桃精品视频在线| 亚洲日本免费电影| 亚洲精品菠萝久久久久久久| 青青草国产成人99久久| 成人午夜看片网址| 欧美性猛交xxxxxxxx| 亚洲国产精品国自产拍av| 亚洲大型综合色站| 成人性色生活片| 日韩女优电影在线观看| 亚洲精品自拍动漫在线| 国产成人免费视频网站|