/** * 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(); }
Object attrib = getNextAttribute(); if (attrib instanceof Struct) { Struct s = (Struct)attrib; SQLInputImpl sqlInput = new SQLInputImpl(attribs, map);
SQLInputImpl sqlInput = new SQLInputImpl(attribs, map);
SQLInputImpl sqlInput = new SQLInputImpl(attribs, map);
/** * 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(); }
SQLInputImpl sqlInput = new SQLInputImpl(attribs, map);
/** * 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(); }
/** * 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 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> 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 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> 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 <code>CLOB</code> value at the head of this * <code>SQLInputImpl</code> object as a <code>Clob</code> object * in the Java programming language. * <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 a <code>Clob</code> object representing the SQL * <code>CLOB</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 Clob readClob() throws SQLException { return (Clob)getNextAttribute(); }
/** * Reads an SQL <code>ARRAY</code> value from the stream and * returns it as an <code>Array</code> object in the Java programming * language. * <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 an <code>Array</code> object representing the SQL * <code>ARRAY</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 Array readArray() throws SQLException { return (Array)getNextAttribute(); }