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

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

?? resultset.java

?? 基于java的oa系統
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* Copyright (C) 2002-2004 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 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.ByteArrayInputStream;import java.io.IOException;import java.io.InputStream;import java.io.ObjectInputStream;import java.io.StringReader;import java.math.BigDecimal;import java.net.MalformedURLException;import java.net.URL;import java.sql.Array;import java.sql.Date;import java.sql.Ref;import java.sql.SQLException;import java.sql.SQLWarning;import java.sql.Time;import java.sql.Timestamp;import java.sql.Types;import java.util.Calendar;import java.util.GregorianCalendar;import java.util.HashMap;import java.util.Map;import java.util.TimeZone;/** * A ResultSet provides access to a table of data generated by executing a * Statement.  The table rows are retrieved in sequence.  Within a row its * column values can be accessed in any order. *  * <P> * A ResultSet maintains a cursor pointing to its current row of data. * Initially the cursor is positioned before the first row.  The 'next' method * moves the cursor to the next row. * </p> *  * <P> * The getXXX methods retrieve column values for the current row.  You can * retrieve values either using the index number of the column, or by using * the name of the column.  In general using the column index will be more * efficient.  Columns are numbered from 1. * </p> *  * <P> * For maximum portability, ResultSet columns within each row should be read in * left-to-right order and each column should be read only once. * </p> *  * <P> * For the getXXX methods, the JDBC driver attempts to convert the underlying * data to the specified Java type and returns a suitable Java value.  See the * JDBC specification for allowable mappings from SQL types to Java types with * the ResultSet getXXX methods. * </p> *  * <P> * Column names used as input to getXXX methods are case insenstive.  When * performing a getXXX using a column name, if several columns have the same * name, then the value of the first matching column will be returned.  The * column name option is designed to be used when column names are used in the * SQL Query.  For columns that are NOT explicitly named in the query, it is * best to use column numbers.  If column names were used there is no way for * the programmer to guarentee that they actually refer to the intended * columns. * </p> *  * <P> * A ResultSet is automatically closed by the Statement that generated it when * that Statement is closed, re-executed, or is used to retrieve the next * result from a sequence of multiple results. * </p> *  * <P> * The number, types and properties of a ResultSet's columns are provided by * the ResultSetMetaData object returned by the getMetaData method. * </p> * * @author Mark Matthews * @version $Id: ResultSet.java,v 1.18.2.35 2004/11/05 16:57:46 mmatthew Exp $ * * @see ResultSetMetaData * @see java.sql.ResultSet */public class ResultSet implements java.sql.ResultSet {    /**     * This method ends up being staticly synchronized, so just store our own     * copy....     */    private TimeZone defaultTimeZone;    /** The Connection instance that created us */    protected com.mysql.jdbc.Connection connection; // The connection that created us    /** Map column names (and all of their permutations) to column indices */    protected Map columnNameToIndex = null;    /** Map of fully-specified column names to column indices */    protected Map fullColumnNameToIndex = null;    /** The actual rows */    protected RowData rowData; // The results    /** The warning chain */    protected java.sql.SQLWarning warningChain = null;    /** The statement that created us */    protected com.mysql.jdbc.Statement owningStatement;    /** The catalog that was in use when we were created */    protected String catalog = null;    /**     * Any info message from the server that was created while generating this     * result set (if 'info parsing'  is enabled for the connection).     */    protected String serverInfo = null;    /** The fields for this result set */    protected Field[] fields; // The fields    /** Pointer to current row data */    protected byte[][] thisRow; // Values for current row    /** Are we in the middle of doing updates to the current row? */    protected boolean doingUpdates = false;    /** Has this result set been closed? */    protected boolean isClosed = false;    /** Are we on the insert row? */    protected boolean onInsertRow = false;    /**     * Do we actually contain rows, or just information about     * UPDATE/INSERT/DELETE?     */    protected boolean reallyResult = false;    /** Did the previous value retrieval find a NULL? */    protected boolean wasNullFlag = false;    /**     * First character of the query that created this result set...Used to     * determine whether or not to parse server info messages in certain     * circumstances.     */    protected char firstCharOfQuery;    /** The current row #, -1 == before start of result set */    protected int currentRow = -1; // Cursor to current row;    /** The direction to fetch rows (always FETCH_FORWARD) */    protected int fetchDirection = FETCH_FORWARD;    /** The number of rows to fetch in one go... */    protected int fetchSize = 0;    /** Are we read-only or updatable? */    protected int resultSetConcurrency = 0;    /** Are we scroll-sensitive/insensitive? */    protected int resultSetType = 0;    /** How many rows were affected by UPDATE/INSERT/DELETE? */    protected long updateCount;    // These are longs for    // recent versions of the MySQL server.    //    // They get reduced to ints via the JDBC API,    // but can be retrieved through a MySQLStatement    // in their entirety.    //    /** Value generated for AUTO_INCREMENT columns */    protected long updateId = -1;    private Calendar fastDateCal = null;    private boolean hasBuiltIndexMapping = false;    private boolean useStrictFloatingPoint = false;    /**     * Create a result set for an executeUpdate statement.     *     * @param updateCount the number of rows affected by the update     * @param updateID the autoincrement value (if any)     */    public ResultSet(long updateCount, long updateID) {        this.updateCount = updateCount;        this.updateId = updateID;        reallyResult = false;        fields = new Field[0];    }    /**     * Create a new ResultSet     *     * @param catalog the database in use when we were created     * @param fields an array of Field objects (basically, the ResultSet     *        MetaData)     * @param tuples actual row data     * @param conn the Connection that created us.     *     * @throws SQLException if an error occurs     */    public ResultSet(String catalog, Field[] fields, RowData tuples,        com.mysql.jdbc.Connection conn) throws SQLException {        this(fields, tuples);        setConnection(conn);        this.catalog = catalog;            }    /**     * Creates a new ResultSet object.     *     * @param fields DOCUMENT ME!     * @param tuples DOCUMENT ME!     *     * @throws SQLException DOCUMENT ME!     */    public ResultSet(Field[] fields, RowData tuples) throws SQLException {        //_currentRow   = -1;        this.fields = fields;        this.rowData = tuples;        this.updateCount = (long) rowData.size();        if (Driver.DEBUG) {            System.out.println("Retrieved " + updateCount + " rows");        }        this.reallyResult = true;        // Check for no results        if (this.rowData.size() > 0) {            //_thisRow = _rows.next();            if (this.updateCount == 1) {                if (this.thisRow == null) {                    //_currentRow = -1;                    this.rowData.close(); // empty result set                    this.updateCount = -1;                }            }        } else {            this.thisRow = null;        }        this.rowData.setOwner(this);    }    /**     * JDBC 2.0     *      * <p>     * Determine if the cursor is after the last row in the result set.     * </p>     *     * @return true if after the last row, false otherwise.  Returns false when     *         the result set contains no rows.     *     * @exception SQLException if a database-access error occurs.     */    public boolean isAfterLast() throws SQLException {        if (Driver.TRACE) {            Object[] args = {  };            Debug.methodCall(this, "isAfterLast", args);        }        checkClosed();                boolean b = rowData.isAfterLast();        if (Driver.TRACE) {            Debug.returnValue(this, "isAfterLast", new Boolean(b));        }        return b;    }    /**     * JDBC 2.0 Get an array column.     *     * @param i the first column is 1, the second is 2, ...     *     * @return an object representing an SQL array     *     * @throws SQLException if a database error occurs     * @throws NotImplemented DOCUMENT ME!     */    public java.sql.Array getArray(int i) throws SQLException {        throw new NotImplemented();    }    /**     * JDBC 2.0 Get an array column.     *     * @param colName the column name     *     * @return an object representing an SQL array     *     * @throws SQLException if a database error occurs     * @throws NotImplemented DOCUMENT ME!     */    public java.sql.Array getArray(String colName) throws SQLException {        throw new NotImplemented();    }    /**     * A column value can be retrieved as a stream of ASCII characters and then     * read in chunks from the stream.  This method is particulary suitable     * for retrieving large LONGVARCHAR values. The JDBC driver will do any     * necessary conversion from the database format into ASCII.     *      * <p>     * <B>Note:</B> All the data in the returned stream must be read prior to     * getting the value of any other column.  The next call to a get method     * implicitly closes the stream.  Also, a stream may return 0 for     * available() whether there is data available or not.     * </p>     *     * @param columnIndex the first column is 1, the second is 2, ...     *     * @return a Java InputStream that delivers the database column value as a     *         stream of one byte ASCII characters.  If the value is SQL NULL     *         then the result is null     *     * @exception java.sql.SQLException if a database access error occurs     *     * @see getBinaryStream     */    public InputStream getAsciiStream(int columnIndex)        throws java.sql.SQLException {        checkRowPos();        return getBinaryStream(columnIndex);    }    /**     * DOCUMENT ME!     *     * @param columnName DOCUMENT ME!     *     * @return DOCUMENT ME!     *     * @throws java.sql.SQLException DOCUMENT ME!     */    public InputStream getAsciiStream(String columnName)        throws java.sql.SQLException {        return getAsciiStream(findColumn(columnName));    }    //---------------------------------------------------------------------    // Traversal/Positioning    //---------------------------------------------------------------------    /**     * JDBC 2.0     *      * <p>     * Determine if the cursor is before the first row in the result set.     * </p>     *     * @return true if before the first row, false otherwise. Returns false     *         when the result set contains no rows.     *     * @exception SQLException if a database-access error occurs.     */    public boolean isBeforeFirst() throws SQLException {        if (Driver.TRACE) {            Object[] args = {  };            Debug.methodCall(this, "isBeforeFirst", args);        }        checkClosed();                boolean b = rowData.isBeforeFirst();        if (Driver.TRACE) {            Debug.returnValue(this, "isBeforeFirst", new Boolean(b));        }        return b;    }    /**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美成人伊人久久综合网| 在线视频国内自拍亚洲视频| 日韩欧美激情在线| 国内偷窥港台综合视频在线播放| 久久久久久亚洲综合| 国模娜娜一区二区三区| 欧美岛国在线观看| 国产福利一区在线观看| 亚洲欧洲一区二区三区| 欧美日韩一区高清| 蜜臀a∨国产成人精品| 国产日韩av一区| 一本大道久久a久久精品综合| 欧美成人欧美edvon| 97国产一区二区| 日韩码欧中文字| 欧美三级中文字幕| 免费视频一区二区| 国产午夜精品久久久久久免费视 | 在线播放国产精品二区一二区四区| 91精品婷婷国产综合久久竹菊| 国产偷国产偷亚洲高清人白洁| 亚洲成人免费视| 久久色视频免费观看| av激情成人网| 亚洲123区在线观看| 久久久国产综合精品女国产盗摄| 五月婷婷久久综合| 精品国产精品网麻豆系列| 成人听书哪个软件好| 亚洲电影中文字幕在线观看| 久久这里只有精品视频网| 91黄视频在线观看| 国产成人免费视频一区| 亚洲成人av电影| 国产精品免费av| 欧美一区二区黄色| 91亚洲男人天堂| 国产乱一区二区| 香蕉久久一区二区不卡无毒影院| 欧美色图激情小说| 国产成人亚洲综合a∨猫咪| 尤物视频一区二区| 国产三级欧美三级| 欧美一二区视频| 日本韩国精品一区二区在线观看| 综合亚洲深深色噜噜狠狠网站| 国产.欧美.日韩| 免费精品视频在线| 一区二区三区在线观看国产| 久久九九久久九九| 欧美一级精品大片| 欧美伊人久久久久久久久影院| 亚洲一区二区在线免费观看视频| 在线观看视频一区二区 | 欧美成人精品二区三区99精品| 亚洲第一电影网| 亚洲伦在线观看| 久久品道一品道久久精品| 欧美一级在线免费| 欧美日韩久久一区二区| 色综合久久久久综合体桃花网| 亚洲综合在线第一页| 国产欧美日韩亚州综合| 日韩丝袜情趣美女图片| 91精品国产综合久久久久久久久久 | 日本视频免费一区| 亚洲国产成人av| 亚洲一区二区在线观看视频 | av在线播放一区二区三区| 国产一区二区三区在线看麻豆| 精品国产99国产精品| 337p亚洲精品色噜噜噜| 欧洲精品一区二区| 欧美优质美女网站| 欧美亚洲国产一区二区三区| 欧美在线一二三| 欧美日韩一区不卡| 欧美理论电影在线| 88在线观看91蜜桃国自产| 欧美日韩免费在线视频| 欧美美女激情18p| 91精品国产91久久久久久最新毛片| 国产精品一卡二卡在线观看| 国产精品亚洲综合一区在线观看| 亚洲欧美日韩国产综合| 亚洲男同性视频| 亚洲一级二级在线| 天天影视网天天综合色在线播放| 久久亚洲精华国产精华液| 日韩美一区二区三区| 久久精品免费在线观看| 国产精品每日更新在线播放网址 | 91激情五月电影| 欧美群妇大交群的观看方式| 欧美日韩在线精品一区二区三区激情| 免费观看在线色综合| 久久超级碰视频| 国产美女视频91| 97se亚洲国产综合在线| 欧美日韩国产首页| 久久亚洲私人国产精品va媚药| 欧美日韩国产一级片| 欧美成人伊人久久综合网| 国产精品久久夜| 亚洲另类色综合网站| 日韩国产欧美视频| 国产成人综合精品三级| 91久久线看在观草草青青| 在线电影院国产精品| 久久九九99视频| 亚洲永久精品国产| 国内一区二区视频| 色狠狠一区二区三区香蕉| 日韩视频免费直播| 国产精品成人网| 免费成人结看片| 91在线视频免费观看| 日韩视频中午一区| 亚洲欧洲99久久| 蜜乳av一区二区| 91视频在线看| 26uuuu精品一区二区| 亚洲精品欧美激情| 国产老女人精品毛片久久| 色婷婷一区二区三区四区| 欧美电影免费观看完整版| 亚洲美女屁股眼交3| 国产尤物一区二区| 欧美美女激情18p| 综合分类小说区另类春色亚洲小说欧美| 精品欧美一区二区三区精品久久| 欧美性色黄大片| 欧美国产欧美综合| 九九热在线视频观看这里只有精品| 污片在线观看一区二区| 国产精品123区| 欧美一级生活片| 亚洲黄一区二区三区| 成人精品亚洲人成在线| 日韩女优毛片在线| 午夜精品一区二区三区三上悠亚 | 麻豆国产欧美一区二区三区| 色婷婷久久久亚洲一区二区三区| 91免费观看国产| 国产精品欧美一级免费| 免费精品视频在线| 欧美日韩国产综合视频在线观看| 欧美日韩久久一区| 一区二区欧美国产| 91在线观看下载| 国产精品日产欧美久久久久| 国产主播一区二区三区| 日韩一级黄色片| 免费欧美日韩国产三级电影| 69成人精品免费视频| 亚洲国产精品一区二区www| 色综合久久久久综合体| 国产女人aaa级久久久级| 国产一区二区毛片| 精品国产一区二区三区忘忧草| 国产精品乱码人人做人人爱 | 国产精品一区二区免费不卡 | 国产一区二区三区黄视频| 9191久久久久久久久久久| 亚洲一区二区三区四区五区黄| 亚洲6080在线| 欧美日韩国产电影| 日韩精品一级二级 | a在线播放不卡| 亚洲国产成人在线| av亚洲精华国产精华精| 亚洲欧美在线视频观看| 色天天综合久久久久综合片| 亚洲免费观看高清在线观看| 色偷偷久久一区二区三区| 亚洲亚洲人成综合网络| 51久久夜色精品国产麻豆| 五月激情六月综合| 欧美成人vr18sexvr| 国产成人综合在线| 亚洲欧美色综合| 欧美体内she精高潮| 免费成人小视频| 久久久久久久久一| 色综合久久中文字幕| 午夜精品成人在线| 精品国产亚洲一区二区三区在线观看| 亚洲码国产岛国毛片在线| 欧美性生交片4| 日韩电影免费在线观看网站| 精品精品国产高清一毛片一天堂| 国产精品白丝在线| 91免费在线视频观看| 性久久久久久久久久久久| 欧美精品一区二区精品网| 盗摄精品av一区二区三区| 亚洲精品久久久蜜桃| 91.com视频| 成人午夜视频在线|