⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simpleresultset.java

📁 非常棒的java数据库
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
     * @return the value
     */
    public long getLong(String columnName) throws SQLException {
        return getLong(findColumn(columnName));
    }

    /**
     * Returns the value as a short.
     *
     * @return the value
     */
    public short getShort(String columnName) throws SQLException {
        return getShort(findColumn(columnName));
    }

    /**
     * Returns the value as a boolean.
     *
     * @return the value
     */
    public boolean getBoolean(String columnName) throws SQLException {
        return getBoolean(findColumn(columnName));
    }

    /**
     * Returns the value as a byte array.
     *
     * @return the value
     */
    public byte[] getBytes(String columnName) throws SQLException {
        return getBytes(findColumn(columnName));
    }

    /**
     * Returns the value as a java.math.BigDecimal.
     *
     * @return the value
     */
    public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
        Object o = get(columnIndex);
        if (o != null && !(o instanceof BigDecimal)) {
            o = new BigDecimal(o.toString());
        }
        return (BigDecimal) o;
    }

    /**
     * Returns the value as an java.sql.Date.
     *
     * @return the value
     */
    public Date getDate(int columnIndex) throws SQLException {
        return (Date) get(columnIndex);
    }

    /**
     * Returns a reference to itself.
     *
     * @return this
     */
    public ResultSetMetaData getMetaData() throws SQLException {
        return this;
    }

    /**
     * Returns null.
     *
     * @return null
     */
    public SQLWarning getWarnings() throws SQLException {
        return null;
    }

    /**
     * Returns null.
     *
     * @return null
     */
    public Statement getStatement() throws SQLException {
        return null;
    }

    /**
     * Returns the value as an java.sql.Time.
     *
     * @return the value
     */
    public Time getTime(int columnIndex) throws SQLException {
        return (Time) get(columnIndex);
    }

    /**
     * Returns the value as an java.sql.Timestamp.
     *
     * @return the value
     */
    public Timestamp getTimestamp(int columnIndex) throws SQLException {
        return (Timestamp) get(columnIndex);
    }
    
    /**
     * Returns the value as a java.sql.Array.
     *
     * @return the value
     */
    public Array getArray(int columnIndex) throws SQLException {
        return new SimpleArray((Object[]) get(columnIndex));
    }

    /**
     * Returns the value as an Object.
     *
     * @return the value
     */
    public Object getObject(String columnName) throws SQLException {
        return getObject(findColumn(columnName));
    }

    /**
     * Returns the value as a String.
     *
     * @return the value
     */
    public String getString(String columnName) throws SQLException {
        return getString(findColumn(columnName));
    }

    /**
     * Returns the value as a java.math.BigDecimal.
     *
     * @return the value
     */
    public BigDecimal getBigDecimal(String columnName) throws SQLException {
        return getBigDecimal(findColumn(columnName));
    }

    /**
     * Returns the value as a java.sql.Date.
     *
     * @return the value
     */
    public Date getDate(String columnName) throws SQLException {
        return getDate(findColumn(columnName));
    }

    /**
     * Returns the value as a java.sql.Time.
     *
     * @return the value
     */
    public Time getTime(String columnName) throws SQLException {
        return getTime(findColumn(columnName));
    }

    /**
     * Returns the value as a java.sql.Timestamp.
     *
     * @return the value
     */
    public Timestamp getTimestamp(String columnName) throws SQLException {
        return getTimestamp(findColumn(columnName));
    }
    
    /**
     * Returns the value as a java.sql.Array.
     *
     * @return the value
     */
    public Array getArray(String columnName) throws SQLException {
        return getArray(findColumn(columnName));
    }
    
    
    // ---- result set meta data ---------------------------------------------

    /**
     * Returns the column count.
     *
     * @return the column count
     */
    public int getColumnCount() throws SQLException {
        return columns.size();
    }

    /**
     * Returns 15.
     *
     * @return 15
     */
    public int getColumnDisplaySize(int columnIndex) throws SQLException {
        return 15;
    }

    /**
     * Returns the SQL type.
     *
     * @return the SQL type
     */
    public int getColumnType(int columnIndex) throws SQLException {
        return getColumn(columnIndex - 1).sqlType;
    }

    /**
     * Returns the precision.
     *
     * @return the precision
     */
    public int getPrecision(int columnIndex) throws SQLException {
        return getColumn(columnIndex - 1).precision;
    }

    /**
     * Returns the scale.
     *
     * @return the scale
     */
    public int getScale(int columnIndex) throws SQLException {
        return getColumn(columnIndex - 1).scale;
    }

    /**
     * Returns ResultSetMetaData.columnNullableUnknown.
     *
     * @return columnNullableUnknown
     */
    public int isNullable(int columnIndex) throws SQLException {
        return ResultSetMetaData.columnNullableUnknown;
    }

    /**
     * Returns false.
     *
     * @return false
     */
    public boolean isAutoIncrement(int columnIndex) throws SQLException {
        return false;
    }

    /**
     * Returns true.
     *
     * @return true
     */
    public boolean isCaseSensitive(int columnIndex) throws SQLException {
        return true;
    }

    /**
     * Returns false.
     *
     * @return false
     */
    public boolean isCurrency(int columnIndex) throws SQLException {
        return false;
    }

    /**
     * Returns false.
     *
     * @return false
     */
    public boolean isDefinitelyWritable(int columnIndex) throws SQLException {
        return false;
    }

    /**
     * Returns true.
     *
     * @return true
     */
    public boolean isReadOnly(int columnIndex) throws SQLException {
        return true;
    }

    /**
     * Returns true.
     *
     * @return true
     */
    public boolean isSearchable(int columnIndex) throws SQLException {
        return true;
    }

    /**
     * Returns true.
     *
     * @return true
     */
    public boolean isSigned(int columnIndex) throws SQLException {
        return true;
    }

    /**
     * Returns false.
     *
     * @return false
     */
    public boolean isWritable(int columnIndex) throws SQLException {
        return false;
    }

    /**
     * Returns null.
     *
     * @return null
     */
    public String getCatalogName(int columnIndex) throws SQLException {
        return null;
    }

    /**
     * Returns null.
     *
     * @return null
     */
    public String getColumnClassName(int columnIndex) throws SQLException {
        return null;
    }

    /**
     * Returns the column name.
     *
     * @return the column name
     */
    public String getColumnLabel(int columnIndex) throws SQLException {
        return getColumn(columnIndex - 1).name;
    }

    /**
     * Returns the column name.
     *
     * @return the column name
     */
    public String getColumnName(int columnIndex) throws SQLException {
        return getColumnLabel(columnIndex);
    }

    /**
     * Returns null.
     *
     * @return null
     */
    public String getColumnTypeName(int columnIndex) throws SQLException {
        return null;
    }

    /**
     * Returns null.
     *
     * @return null
     */
    public String getSchemaName(int columnIndex) throws SQLException {
        return null;
    }

    /**
     * Returns null.
     *
     * @return null
     */
    public String getTableName(int columnIndex) throws SQLException {
        return null;
    }

    // ---- unsupported / result set ---------------------------------------------

    /** 
     * INTERNAL 
     */
    public void clearWarnings() throws SQLException {
    }

    /** 
     * INTERNAL 
     */
    public void afterLast() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public void cancelRowUpdates() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public void updateNull(String columnName) throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public void deleteRow() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public void insertRow() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public void moveToCurrentRow() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public void moveToInsertRow() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public void refreshRow() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public void updateRow() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public boolean first() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public boolean isAfterLast() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public boolean isBeforeFirst() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public boolean isFirst() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public boolean isLast() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public boolean last() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public boolean previous() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public boolean rowDeleted() throws SQLException {
        throw getUnsupportedException();
    }

    /** 
     * INTERNAL 
     */
    public boolean rowInserted() throws SQLException {
        throw getUnsupportedException();
    }

    /** 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -