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

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

?? tinysqlresultset.java

?? TinySQL是一個輕量級的純java數據庫引擎
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
   * @exception SQLException in case of error
   * @param column the column being retrieved
   * @return the column as a double
   *
   */
  public double getDouble(int column)
    throws SQLException
  {

    // get the column as a string
    //
    String str = getString(column);

    // it it's null, return zero
    //
    if( str == null ) return 0;

    // attempt the conversion
    //
    try
    {
      return Double.valueOf( str.trim( )).doubleValue( );
    }
    catch( NumberFormatException e )
    {
      throw new SQLException( "tinySQL invalid double Number: " + e.getMessage( ));
    }
  }  

  /**
   *
   * Return a column as a BigDecimal object
   * @see java.sql.ResultSet#getBigDecimal
   * @exception SQLException in case of a problem
   * @param column the column being retrieved
   * @param scale the number of digits to the right of the decimal
   * @return the column as a BigDecimal
   * @deprecated
   */
  public BigDecimal getBigDecimal(int column, int scale)
       throws SQLException
  {

    // get the column as a string
    //
    String str = getString(column);

    // return null as zero, otherwise use the string
    //
    if( str == null )
      return new BigDecimal(new BigInteger("0"), scale);
    else
      return new BigDecimal( new BigInteger( str.trim( )), scale );
  }

  /**
   *
   * Get the value of a column in the current row as a Java byte array.
   * @see java.sql.ResultSet#getBytes
   * @exception SQLException thrown in case of trouble
   * @param column the column being retrieved
   * @return a byte array that is the value of the column
   *
   */
  public byte[] getBytes(int column) throws SQLException {

    // get the column as a string
    //
    String str = getString(column);

    if( str == null ) return null;
    try {
      return str.getBytes(str);
    }
    catch( java.io.UnsupportedEncodingException e ) {
      throw new java.sql.SQLException("Bad bytes!: " + e.getMessage());
    }

  }

  /**
   *
   * Get the value of a column in the current row as a java.sql.Date object.
   * @see java.sqlResultSet#getDate
   * @exception SQLException thrown in case of error
   * @param column the column being retrieved
   * @return the java.sql.Date object for the column
   *
   */
  public java.sql.Date getDate(int column)
       throws SQLException 
  {

    // get the column as a string in the format YYYY-MM-DD
    //
    String str;
    str = getString(column);

    // return null if the string is null
    //
    if( str == null ) return null;

    // try to use the string to instantiate a java.util.Date object,
    // then use that object to instantiate a java.sql.Date object.
    //
    try {
      SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd");
      java.util.Date d = fmt.parse(str, new ParsePosition(0));

      return new java.sql.Date(d.getTime());

    } catch( Exception e ) {
      throw new SQLException("Date format error: " + e.getMessage());
    }

  }

  /**
   *
   * Get the value of a column in the current row as a java.sql.Time object.
   *
   * @see java.sql.ResultSet#getTime
   * @exception SQLException thrown in the event of troubles
   * @param column the column being retrieved
   * @return the column as a java.sql.Time object
   *
   */
  public java.sql.Time getTime(int column)
       throws SQLException {

    // get the column as a string
    //
    String str = getString(column);

    // if the string is null, return null
    //
    if( str == null ) return null;

    // try to use the string to instantiate a java.util.Date object,
    // then use that object to instantiate a java.sql.Time object.
    //
    try {

      SimpleDateFormat fmt = new SimpleDateFormat("EEE MMM dd hh:mm:ss z yyyy");
      java.util.Date d = fmt.parse(str, new ParsePosition(0));

      return new java.sql.Time(d.getTime());

    } catch( Exception e ) {
      throw new SQLException("Data format error: " + e.getMessage());
    }
  }

  /**
   * Get the value of a column in the current row as a java.sql.Timestamp
   * @see java.sql.ResultSet#getTimestamp
   * @exception SQLException thrown in the event of troubles
   * @param column the column being retrieved
   * @return the column as a java.sql.Timestamp object
   */
  public java.sql.Timestamp getTimestamp(int column)
       throws SQLException {

    // get the column as a string
    //
    String str = getString(column);

    // if the string is null, return null
    //
    if( str == null ) return null;

    // try to use the string to instantiate a java.util.Date object,
    // then use that object to instantiate a java.sql.Timestamp object.
    //
    try {

      SimpleDateFormat fmt = new SimpleDateFormat("EEE MMM dd hh:mm:ss z yyyy");
      java.util.Date d = fmt.parse(str, new ParsePosition(0));

      return new java.sql.Timestamp(d.getTime());

    } catch( Exception e ) {
      throw new SQLException("Data format error: " + e.getMessage());
    }

  }

  /**
   *
   * This is not currently supported.
   *
   */
  public java.io.InputStream getAsciiStream(int column)
       throws SQLException {
    return null;
  }

  /**
   *
   * This is not currently supported.
   * @deprecated
   *
   */
  public java.io.InputStream getUnicodeStream(int column)
       throws SQLException {
    return null;
  }

  /**
   *
   * This is not currently supported.
   *
   */
  public java.io.InputStream getBinaryStream(int column)
       throws SQLException {
    return null;
  }


  /**
   *
   * Get the name of the cursor corresponding to this result set.
   * This has to meaning to tinySQL
   * @see java.sql.ResultSet#getCursorName
   * @return ""
   *
   */
  public String getCursorName() throws SQLException {
    return "";
  }

  /**
   *
   * Returns a ResultSetMetaData object for this result set
   * @see java.sql.ResultSet#getMetaData
   * @exception SQLException thrown on error getting meta-data
   * @return ResultSetMetaData object containing result set info
   *
   */
  public ResultSetMetaData getMetaData()
       throws SQLException {

    // if we didn't instantiate a meta data object, then
    // do so. Since it's a field of this object, and
    // not private to this method, it will stay around
    // between calls to this method.
    //
    if( meta == null ) {
      meta = new tinySQLResultSetMetaData(result);
    }

    // return the ResultSetMetaData object
    //
    return meta;
  }

  /**
   *
   * Retrieves data as objects
   * @see java.sql.ResultSet#getObject
   * @exception SQLException in the event of an error
   * @param column the column desired
   * @param type the SQL data type of the field
   * @scale precision for BigDecimals
   * @return the column specified as an Object
   *
   */
  public Object getObject(int column, int type, int scale)
       throws SQLException {

    switch(type) {
    case Types.BIT:
      return new Boolean(getBoolean(column));

    case Types.TINYINT:
      return new Character((char)getInt(column));

    case Types.SMALLINT:
      return new Integer(getShort(column));

    case Types.INTEGER:
      return new Integer(getInt(column));

    case Types.BIGINT:
      return new Long(getLong(column));

    case Types.FLOAT:
      return new Float(getFloat(column));

    case Types.REAL:
      return new Float(getFloat(column));

    case Types.DOUBLE:
      return new Double(getDouble(column));

    case Types.NUMERIC:
      return getBigDecimal(column, scale);

    case Types.DECIMAL:
      return getBigDecimal(column, scale);

    case Types.CHAR:
      return getString(column);

    case Types.VARCHAR:
      return getString(column);

    case Types.LONGVARCHAR:
      return getString(column);

    case Types.DATE:
      return getDate(column);

    case Types.TIME:
      return getTime(column);

    case Types.TIMESTAMP:
      return getTimestamp(column);

    case Types.BINARY:
      return getBytes(column);

    case Types.VARBINARY:
      return getBytes(column);

    case Types.LONGVARBINARY:
      return getBytes(column);

    default:
      return null;
    }
  }

  /**
   *
   * Same as above, except with a default scale to 0.
   *
   */
  public Object getObject(int column, int type)
       throws SQLException {
    return getObject(column, type, 0);
  }

  /**
   *
   * Same as above, except using the column's default SQL type.
   *
   */
  public Object getObject(int column) throws SQLException {
    ResultSetMetaData meta = getMetaData();
    int type = meta.getColumnType(column);

    return getObject(column, type);
  }

  /**
   *
   * Return the String value of a column given its name, rather than
   * its index.
   * @see java.sql.ResultSet#getString
   * @param name the name of the column desired
   * @return the value of the column as a String
   *
   */
  public String getString(String name) throws SQLException {

    return getString(findColumn(name));

  }

  /**
   *
   * Returns the column as a byte based on column name
   *
   */
  public byte getByte(String columnName) throws SQLException {

    return getByte(findColumn(columnName));

  }

  /**
   *
   * Get the value of a boolean column in the current row
   * @param columnName is the SQL name of the column
   * @return the column value; if isNull the value is false
   *
   */
  public boolean getBoolean(String columnName) throws SQLException {

    return getBoolean(findColumn(columnName));

  }

  /**
   *
   * Get the value of a short by column name
   * @param columnName is the SQL name of the column
   * @return the column value; if isNull the value is 0
   *
   */
  public short getShort(String columnName) throws SQLException {

    return getShort(findColumn(columnName));

  }

  /**
   *
   * Get the integer value of a column by name
   * @param columnName is the SQL name of the column
   * @return the column value; if isNull the value is 0
   *
   */
  public int getInt(String columnName) throws SQLException {

    return getInt(findColumn(columnName));

  }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线看国产一区| 国产传媒久久文化传媒| 欧美精品一区二区三区在线| av中文字幕亚洲| 极品少妇一区二区| 亚洲综合免费观看高清完整版在线| 欧美变态tickle挠乳网站| 97se亚洲国产综合自在线| 极品少妇xxxx偷拍精品少妇| 亚洲中国最大av网站| 国产视频亚洲色图| 6080国产精品一区二区| 色诱视频网站一区| 成人国产精品免费| 国产原创一区二区三区| 青青草视频一区| 亚洲成av人片| 亚洲一区二区三区中文字幕 | 国产婷婷色一区二区三区四区| 欧美日韩另类一区| 91在线观看一区二区| 国产麻豆成人精品| 蜜臀久久99精品久久久久宅男| 中文字幕亚洲成人| 国产欧美一区二区精品忘忧草| 91精品国产综合久久久久久| 欧美在线视频你懂得| 欧美日韩午夜影院| 色94色欧美sute亚洲线路一ni| 成人a免费在线看| 丁香婷婷综合色啪| 国产成人精品在线看| 国产老肥熟一区二区三区| 国产麻豆视频一区| 国产综合一区二区| 国产一区二区三区蝌蚪| 国产美女久久久久| 国产高清视频一区| 国产99久久久国产精品潘金网站| 国产又粗又猛又爽又黄91精品| 美女一区二区视频| 久久66热re国产| 国产一区二区三区电影在线观看| 久久er精品视频| 国产美女av一区二区三区| 激情综合网av| 国产一区二区三区av电影| 国产麻豆精品在线| 成人深夜在线观看| 92精品国产成人观看免费| 91理论电影在线观看| 色88888久久久久久影院按摩 | 极品少妇xxxx精品少妇| 国产乱淫av一区二区三区| 国产福利91精品| eeuss国产一区二区三区| 成人国产精品免费观看动漫| 色狠狠色狠狠综合| 欧美精选一区二区| 精品国产91久久久久久久妲己| 26uuu久久天堂性欧美| 亚洲国产成人一区二区三区| 亚洲视频免费观看| 日韩精品国产欧美| 国产二区国产一区在线观看| 99re在线视频这里只有精品| 欧美日韩第一区日日骚| 精品国产乱码久久久久久牛牛 | 尤物视频一区二区| 日韩精品国产欧美| 国产成人精品1024| 91行情网站电视在线观看高清版| 欧美日韩成人激情| 亚洲成人777| 国内精品在线播放| 91在线看国产| 337p粉嫩大胆噜噜噜噜噜91av| 国产精品第五页| 青青草国产成人99久久| 成人深夜福利app| 欧美一区二区日韩一区二区| 国产日韩欧美高清| 亚洲第一成人在线| 国产成人午夜视频| 777色狠狠一区二区三区| 久久久国产精品不卡| 亚洲一区二区精品视频| 国产一区二区91| 欧美在线观看一区| 国产欧美一区二区三区鸳鸯浴| 一区二区三区四区视频精品免费 | 高清av一区二区| 欧美撒尿777hd撒尿| 国产调教视频一区| 日本视频在线一区| 一本一道久久a久久精品综合蜜臀| 91精品国产综合久久国产大片| 国产精品美女久久久久aⅴ国产馆| 午夜视频一区二区| 成人不卡免费av| 26uuu成人网一区二区三区| 亚洲综合激情网| 成人的网站免费观看| 久久综合av免费| 日本伊人精品一区二区三区观看方式| av电影在线不卡| 久久综合色8888| 日本不卡的三区四区五区| 91小视频在线| 国产农村妇女精品| 久久丁香综合五月国产三级网站| 色综合天天综合网国产成人综合天| 精品国免费一区二区三区| 午夜一区二区三区在线观看| fc2成人免费人成在线观看播放| 精品国产乱码久久久久久图片| 午夜国产不卡在线观看视频| 色综合久久久久久久| 国产日韩精品一区二区三区| 久久国产综合精品| 91精品国产综合久久久久久漫画| 亚洲成人在线网站| 欧美吻胸吃奶大尺度电影 | 亚欧色一区w666天堂| 91视频免费观看| 国产精品久久久久久久久动漫 | 欧美一区二区三区影视| 亚洲成人先锋电影| 精品视频1区2区| 亚洲一区二区三区影院| 在线精品视频小说1| 亚洲欧美日韩人成在线播放| 成人高清免费观看| 中文字幕在线观看一区二区| 大白屁股一区二区视频| 久久久www免费人成精品| 国内精品国产三级国产a久久| 欧美本精品男人aⅴ天堂| 麻豆91小视频| 精品嫩草影院久久| 国产一区二区视频在线播放| 亚洲精品在线电影| 久久国产精品72免费观看| www日韩大片| 国产成人午夜99999| 日本一区二区三区dvd视频在线| 国产激情一区二区三区桃花岛亚洲| 久久婷婷色综合| 盗摄精品av一区二区三区| 国产精品私房写真福利视频| eeuss影院一区二区三区| 亚洲人成在线播放网站岛国| 91福利视频网站| 午夜精彩视频在线观看不卡| 欧美一区二视频| 久久69国产一区二区蜜臀| 欧美激情一区在线观看| av不卡在线播放| 亚洲国产欧美另类丝袜| 日韩一区二区不卡| 国产精品自拍一区| 中文字幕亚洲一区二区va在线| 色婷婷av一区二区三区gif| 亚洲不卡一区二区三区| 久久一二三国产| 91同城在线观看| 日韩制服丝袜先锋影音| 久久久久久久网| 色婷婷av一区二区三区gif| 日韩av在线免费观看不卡| 久久久久88色偷偷免费| 色欧美片视频在线观看在线视频| 日本不卡一二三| 国产精品久久久久一区 | 久久久久国产免费免费| 91看片淫黄大片一级| 免费人成黄页网站在线一区二区| 一区二区高清在线| wwww国产精品欧美| 在线观看av一区二区| 国内精品国产成人| 一区二区三区四区高清精品免费观看| 欧美一二三区在线| 色综合久久久久综合99| 九一九一国产精品| 一区二区三区蜜桃网| 久久久噜噜噜久久人人看| 欧美中文一区二区三区| 国产99久久久国产精品潘金网站| 亚洲妇女屁股眼交7| 欧美国产欧美综合| 欧美精品v日韩精品v韩国精品v| 国产成人激情av| 久久er99热精品一区二区| 亚洲午夜在线电影| 国产精品久久久一区麻豆最新章节| 日韩丝袜情趣美女图片| 日本道色综合久久| 国产成a人无v码亚洲福利| 免费观看久久久4p|