/** * Reads an SQL <code>ROWID</code> value from the stream and returns it as a * <code>RowId</code> object in the Java programming language. * * @return a <code>RowId</code> object representing data of the SQL <code>ROWID</code> value * at the head of the stream; <code>null</code> if the value read is * SQL <code>NULL</code> * @exception SQLException if a database access error occurs * @since 1.6 */ public RowId readRowId() throws SQLException { return (RowId)getNextAttribute(); }
/** * 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 { return (java.sql.Timestamp)getNextAttribute(); }
/** * Reads the next attribute in the stream and returns it as a <code>String</code> * in the Java programming language. It is intended for use when * accessing <code>NCHAR</code>,<code>NVARCHAR</code> * and <code>LONGNVARCHAR</code> columns. * * @return the attribute; if the value is SQL <code>NULL</code>, returns <code>null</code> * @exception SQLException if a database access error occurs * @since 1.6 */ public String readNString() throws SQLException { return (String)getNextAttribute(); }
/** * Retrieves the value at the head of this <code>SQLInputImpl</code> object * as a <code>Ref</code> object in the Java programming language. * * @return a <code>Ref</code> object representing the SQL * <code>REF</code> value at the head of the stream; 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 Ref readRef() throws SQLException { return (Ref)getNextAttribute(); }
/** * Reads an SQL <code>NCLOB</code> value from the stream and returns it as a * <code>Clob</code> object in the Java programming language. * * @return a <code>NClob</code> object representing data of the SQL <code>NCLOB</code> value * at the head of the stream; <code>null</code> if the value read is * SQL <code>NULL</code> * @exception SQLException if a database access error occurs * @since 1.6 */ public NClob readNClob() throws SQLException { return (NClob)getNextAttribute(); }
/** * Reads an SQL <code>XML</code> value from the stream and returns it as a * <code>SQLXML</code> object in the Java programming language. * * @return a <code>SQLXML</code> object representing data of the SQL <code>XML</code> value * at the head of the stream; <code>null</code> if the value read is * SQL <code>NULL</code> * @exception SQLException if a database access error occurs * @since 1.6 */ public SQLXML readSQLXML() throws SQLException { return (SQLXML)getNextAttribute(); }
/** * 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 { return (java.math.BigDecimal)getNextAttribute(); }
/** * 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 { return (java.io.InputStream)getNextAttribute(); }
/** * 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 { return (byte[])getNextAttribute(); }
/** * 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 { return (java.io.Reader)getNextAttribute(); }
/** * 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 { return (java.sql.Date)getNextAttribute(); }
/** * Retrieves the next attribute in this <code>SQLInputImpl</code> object as * a <code>String</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 further values in the stream. */ public String readString() throws SQLException { return (String)getNextAttribute(); }
/** * 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 { return (java.sql.Time)getNextAttribute(); }
/** * 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 { return (java.io.InputStream)getNextAttribute(); }
/** * 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(); return (attrib == null) ? 0 : attrib.floatValue(); }
/** * Retrieves the next attribute in this <code>SQLInputImpl</code> object as * a <code>byte</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 further values in the stream */ public byte readByte() throws SQLException { Byte attrib = (Byte)getNextAttribute(); return (attrib == null) ? 0 : attrib.byteValue(); }
/** * Retrieves the next attribute in this <code>SQLInputImpl</code> object as * a <code>boolean</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 further values in the stream. */ public boolean readBoolean() throws SQLException { Boolean attrib = (Boolean)getNextAttribute(); return (attrib == null) ? false : attrib.booleanValue(); }
/** * Retrieves the next attribute in this <code>SQLInputImpl</code> object * as an <code>int</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 int readInt() throws SQLException { Integer attrib = (Integer)getNextAttribute(); return (attrib == null) ? 0 : attrib.intValue(); }
/** * Retrieves the next attribute in this <code>SQLInputImpl</code> object * as a <code>short</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 short readShort() throws SQLException { Short attrib = (Short)getNextAttribute(); return (attrib == null) ? 0 : attrib.shortValue(); }
/** * 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(); return (attrib == null) ? 0 : attrib.longValue(); }