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

📄 sqlinputimpl.java

📁 Mobile 应用程序使用 Java Micro Edition (Java ME) 平台
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
     * Retrieves the next attribute in this <code>SQLInputImpl</code> object     * as a <code>long</code> in the Java programming language.     * <P>     * This method does not perform type-safe checking to determine if the     * returned type is the expected type; this responsibility is delegated     * to the UDT mapping as defined by a <code>SQLData</code> implementation.     * <P>     * @return the next attribute in this <code>SQLInputImpl</code> object;     *       if the value is <code>SQL NULL</code>, return <code>null</code>     * @throws SQLException if the read position is located at an invalid     *       position or if there are no more values in the stream      */    public long readLong() throws SQLException {        Long attrib = (Long)getNextAttribute();        if (attrib == null) {            lastValueWasNull = true;            return (long)0;        } else {            lastValueWasNull = false;            return attrib.longValue();        }    }    /**     * Retrieves the next attribute in this <code>SQLInputImpl</code> object     * as a <code>float</code> in the Java programming language.     * <P>     * This method does not perform type-safe checking to determine if the     * returned type is the expected type; this responsibility is delegated     * to the UDT mapping as defined by a <code>SQLData</code> implementation.     * <P>     * @return the next attribute in this <code>SQLInputImpl</code> object;     *       if the value is <code>SQL NULL</code>, return <code>null</code>     * @throws SQLException if the read position is located at an invalid     *       position or if there are no more values in the stream      */    public float readFloat() throws SQLException {        Float attrib = (Float)getNextAttribute();        if (attrib == null) {            lastValueWasNull = true;            return (float)0;        } else {            lastValueWasNull = false;            return attrib.floatValue();        }    }    /**     * Retrieves the next attribute in this <code>SQLInputImpl</code> object     * as a <code>double</code> in the Java programming language.     * <P>     * This method does not perform type-safe checking to determine if the     * returned type is the expected type; this responsibility is delegated     * to the UDT mapping as defined by a <code>SQLData</code> implementation.     * <P>     * @return the next attribute in this <code>SQLInputImpl</code> object;     *       if the value is <code>SQL NULL</code>, return <code>null</code>     * @throws SQLException if the read position is located at an invalid     *       position or if there are no more values in the stream      */    public double readDouble() throws SQLException {        Double attrib = (Double)getNextAttribute();        if (attrib == null) {            lastValueWasNull = true;            return (double)0;        } else {            lastValueWasNull = false;            return attrib.doubleValue();        }    }    /**     * Retrieves the next attribute in this <code>SQLInputImpl</code> object      * as a <code>java.math.BigDecimal</code>.     * <P>     * This method does not perform type-safe checking to determine if the     * returned type is the expected type; this responsibility is delegated     * to the UDT mapping as defined by a <code>SQLData</code> implementation.     * <P>     * @return the next attribute in this <code>SQLInputImpl</code> object;     *       if the value is <code>SQL NULL</code>, return <code>null</code>     * @throws SQLException if the read position is located at an invalid     *       position or if there are no more values in the stream      */    public java.math.BigDecimal readBigDecimal() throws SQLException {        java.math.BigDecimal attrib = (java.math.BigDecimal)getNextAttribute();        if (attrib == null) {            lastValueWasNull = true;            return null;        } else {            lastValueWasNull = false;            return attrib;        }    }        /**     * Retrieves the next attribute in this <code>SQLInputImpl</code> object     * as an array of bytes.     * <p>     * This method does not perform type-safe checking to determine if the     * returned type is the expected type; this responsibility is delegated     * to the UDT mapping as defined by a <code>SQLData</code> implementation.     * <P>     * @return the next attribute in this <code>SQLInputImpl</code> object;     *       if the value is <code>SQL NULL</code>, return <code>null</code>     * @throws SQLException if the read position is located at an invalid     *       position or if there are no more values in the stream      */    public byte[] readBytes() throws SQLException {        byte[] attrib = (byte[])getNextAttribute();        if (attrib == null) {            lastValueWasNull = true;            return null;        } else {            lastValueWasNull = false;            return attrib;        }    }    /**     * Retrieves the next attribute in this <code>SQLInputImpl</code> as      * a <code>java.sql.Date</code> object.     * <P>     * This method does not perform type-safe checking to determine if the     * returned type is the expected type; this responsibility is delegated     * to the UDT mapping as defined by a <code>SQLData</code> implementation.     * <P>     * @return the next attribute in this <code>SQLInputImpl</code> object;     *       if the value is <code>SQL NULL</code>, return <code>null</code>     * @throws SQLException if the read position is located at an invalid     *       position or if there are no more values in the stream      */    public java.sql.Date readDate() throws SQLException {        java.sql.Date attrib = (java.sql.Date)getNextAttribute();        if (attrib == null) {            lastValueWasNull = true;            return null;        } else {            lastValueWasNull = false;            return attrib;        }    }    /**     * Retrieves the next attribute in this <code>SQLInputImpl</code> object as     * a <code>java.sql.Time</code> object.     * <P>     * This method does not perform type-safe checking to determine if the     * returned type is the expected type as this responsibility is delegated     * to the UDT mapping as implemented by a <code>SQLData</code>     * implementation.     *     * @return the attribute; if the value is <code>SQL NULL</code>, return     * <code>null</code>     * @throws SQLException if the read position is located at an invalid     * position; or if there are no further values in the stream.      */    public java.sql.Time readTime() throws SQLException {        java.sql.Time attrib = (java.sql.Time)getNextAttribute();        if (attrib == null) {            lastValueWasNull = true;            return null;        } else {            lastValueWasNull = false;            return attrib;        }    }    /**     * Retrieves the next attribute in this <code>SQLInputImpl</code> object as      * a <code>java.sql.Timestamp</code> object.     *     * @return the attribute; if the value is <code>SQL NULL</code>, return     * <code>null</code>     * @throws SQLException if the read position is located at an invalid     * position; or if there are no further values in the stream.      */    public java.sql.Timestamp readTimestamp() throws SQLException {        java.sql.Timestamp attrib = (java.sql.Timestamp)getNextAttribute();        if (attrib == null) {            lastValueWasNull = true;            return null;        } else {            lastValueWasNull = false;            return attrib;        }    }    /**     * Retrieves the next attribute in this <code>SQLInputImpl</code> object     * as a stream of Unicode characters.     * <P>     * This method does not perform type-safe checking to determine if the     * returned type is the expected type as this responsibility is delegated     * to the UDT mapping as implemented by a <code>SQLData</code>     * implementation.     *     * @return the attribute; if the value is <code>SQL NULL</code>, return <code>null</code>     * @throws SQLException if the read position is located at an invalid     * position; or if there are no further values in the stream.     */    public java.io.Reader readCharacterStream() throws SQLException {        java.io.Reader attrib = (java.io.Reader)getNextAttribute();        if (attrib == null) {            lastValueWasNull = true;            return null;        } else {            lastValueWasNull = false;            return attrib;        }    }    /**     * Returns the next attribute in this <code>SQLInputImpl</code> object     * as a stream of ASCII characters.     * <P>     * This method does not perform type-safe checking to determine if the     * returned type is the expected type as this responsibility is delegated     * to the UDT mapping as implemented by a <code>SQLData</code>     * implementation.     *     * @return the attribute; if the value is <code>SQL NULL</code>,      * return <code>null</code>     * @throws SQLException if the read position is located at an invalid     * position; or if there are no further values in the stream.     */    public java.io.InputStream readAsciiStream() throws SQLException {        java.io.InputStream attrib = (java.io.InputStream)getNextAttribute();        if (attrib == null) {            lastValueWasNull = true;            return null;        } else {            lastValueWasNull = false;            return attrib;        }    }        /**     * Returns the next attribute in this <code>SQLInputImpl</code> object     * as a stream of uninterpreted bytes.     * <P>     * This method does not perform type-safe checking to determine if the     * returned type is the expected type as this responsibility is delegated     * to the UDT mapping as implemented by a <code>SQLData</code>     * implementation.     *     * @return the attribute; if the value is <code>SQL NULL</code>, return      * <code>null</code>     * @throws SQLException if the read position is located at an invalid     * position; or if there are no further values in the stream.     */    public java.io.InputStream readBinaryStream() throws SQLException {        java.io.InputStream attrib = (java.io.InputStream)getNextAttribute();        if (attrib == null) {            lastValueWasNull = true;            return null;        } else {            lastValueWasNull = false;            return attrib;        }        

⌨️ 快捷键说明

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