
SQLOutput
The JDBC API
|
133
Timestamp readTimestamp( )
Returns a value as a Timestamp.
URL readURL( )
Returns a value as a java.net.URL. (Java 1.4)
boolean wasNull( )
Returns true if the last value read was an SQL NULL value.
SQLOutput
Interface name: java.sql.SQLOutput
Java 1.2
SQLOutput is an output stream used by JDBC drivers to get the
data values of a user-defined type (UDT) from a class that imple-
ments the
SQLData interface. All of SQLOutput’s methods can throw
an
SQLException. (Java 1.2)
Methods
NOTE
The following mutator or writeXXX( ) methods all write
the Java data type value to the output stream. They are all
used in SQLData’s writeSQL( ) method.
void writeArray(Array x)
Writes a value as an Array.
void writeAsciiStream(InputStream x)
Writes an ASCII input stream.
void writeBigDecimal(BigDecimal x)
Writes a value as a java.math.BigDecimal.
void writeBinaryStream(InputStream x)
Writes a binary input stream.
void writeBlob(Blob x)
Writes a Blob locator.
void writeBoolean(boolean x)
Writes a value as a boolean.
void writeByte(byte x)
Writes a value as a byte.
void writeBytes(byte[ ] x)
Writes a value as a byte array.