Skip to Main Content
JDBC Pocket Reference
book

JDBC Pocket Reference

by Donald Bales
January 2003
Intermediate to advanced content levelIntermediate to advanced
176 pages
5h 3m
English
O'Reilly Media, Inc.
Content preview from JDBC Pocket Reference
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.
SQLPermission
134
|
JDBC Pocket Reference
void writeCharacterStream(Reader x)
Writes a character input stream.
void writeClob(Clob x)
Writes a Clob locator.
void writeDate(Date x)
Writes a value as a
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro Couchbase Server, Second Edition

Pro Couchbase Server, Second Edition

David Ostrovsky, Mohammed Haji, Yaniv Rodenski
Pro Couchbase Server

Pro Couchbase Server

David Ostrovsky, Yaniv Rodenski

Publisher Resources

ISBN: 9780596528713