java.sql

Interface SQLOutput

public interface SQLOutput

This interface provides methods for writing Java types to a SQL stream. It is used for implemented custom type mappings for user defined data types.
Method Summary
voidwriteArray(Array value)
This method writes the specified Java SQL Array object to the SQL stream.
voidwriteAsciiStream(InputStream stream)
This method writes the specified ASCII text stream to the SQL stream.
voidwriteBigDecimal(BigDecimal value)
This method writes the specified Java BigDecimal to the SQL stream.
voidwriteBinaryStream(InputStream stream)
This method writes the specified uninterpreted binary byte stream to the SQL stream.
voidwriteBlob(Blob value)
This method writes the specified Java SQL Blob object to the SQL stream.
voidwriteBoolean(boolean value)
This method writes the specified Java boolean to the SQL stream.
voidwriteByte(byte value)
This method writes the specified Java byte to the SQL stream.
voidwriteBytes(byte[] value)
This method writes the specified Java byte array to the SQL stream.
voidwriteCharacterStream(Reader stream)
This method writes the specified Java character stream to the SQL stream.
voidwriteClob(Clob value)
This method writes the specified Java SQL Clob object to the SQL stream.
voidwriteDate(Date value)
This method writes the specified Java java.sql.Date to the SQL stream.
voidwriteDouble(double value)
This method writes the specified Java double to the SQL stream.
voidwriteFloat(float value)
This method writes the specified Java float to the SQL stream.
voidwriteInt(int value)
This method writes the specified Java int to the SQL stream.
voidwriteLong(long value)
This method writes the specified Java long to the SQL stream.
voidwriteObject(SQLData value)
This method writes the specified Java SQLData object to the SQL stream.
voidwriteRef(Ref value)
This method writes the specified Java SQL Ref object to the SQL stream.
voidwriteShort(short value)
This method writes the specified Java short to the SQL stream.
voidwriteString(String value)
This method writes the specified Java String to the SQL stream.
voidwriteStruct(Struct value)
This method writes the specified Java SQL Struct object to the SQL stream.
voidwriteTime(Time value)
This method writes the specified Java java.sql.Time to the SQL stream.
voidwriteTimestamp(Timestamp value)
This method writes the specified Java java.sql.Timestamp to the SQL stream.
voidwriteURL(URL value)
This method writes the specified java.net.URL object to the SQL stream.

Method Detail

writeArray

public void writeArray(Array value)
This method writes the specified Java SQL Array object to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeAsciiStream

public void writeAsciiStream(InputStream stream)
This method writes the specified ASCII text stream to the SQL stream.

Parameters: stream The stream that holds the ASCII data to write.

Throws: SQLException If an error occurs.

writeBigDecimal

public void writeBigDecimal(BigDecimal value)
This method writes the specified Java BigDecimal to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeBinaryStream

public void writeBinaryStream(InputStream stream)
This method writes the specified uninterpreted binary byte stream to the SQL stream.

Parameters: stream The stream that holds the binary data to write.

Throws: SQLException If an error occurs.

writeBlob

public void writeBlob(Blob value)
This method writes the specified Java SQL Blob object to the SQL stream.

Parameters: value The Blob object to write to the stream.

Throws: SQLException If an error occurs.

See Also: Blob

writeBoolean

public void writeBoolean(boolean value)
This method writes the specified Java boolean to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeByte

public void writeByte(byte value)
This method writes the specified Java byte to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeBytes

public void writeBytes(byte[] value)
This method writes the specified Java byte array to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeCharacterStream

public void writeCharacterStream(Reader stream)
This method writes the specified Java character stream to the SQL stream.

Parameters: stream The stream that holds the character data to write.

Throws: SQLException If an error occurs.

writeClob

public void writeClob(Clob value)
This method writes the specified Java SQL Clob object to the SQL stream.

Parameters: value The Clob object to write to the stream.

Throws: SQLException If an error occurs.

See Also: Clob

writeDate

public void writeDate(Date value)
This method writes the specified Java java.sql.Date to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeDouble

public void writeDouble(double value)
This method writes the specified Java double to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeFloat

public void writeFloat(float value)
This method writes the specified Java float to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeInt

public void writeInt(int value)
This method writes the specified Java int to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeLong

public void writeLong(long value)
This method writes the specified Java long to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeObject

public void writeObject(SQLData value)
This method writes the specified Java SQLData object to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeRef

public void writeRef(Ref value)
This method writes the specified Java SQL Ref object to the SQL stream.

Parameters: value The Ref object to write to the stream.

Throws: SQLException If an error occurs.

See Also: Ref

writeShort

public void writeShort(short value)
This method writes the specified Java short to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeString

public void writeString(String value)
This method writes the specified Java String to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeStruct

public void writeStruct(Struct value)
This method writes the specified Java SQL Struct object to the SQL stream.

Parameters: value The Struct object to write to the stream.

Throws: SQLException If an error occurs.

See Also: Struct

writeTime

public void writeTime(Time value)
This method writes the specified Java java.sql.Time to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeTimestamp

public void writeTimestamp(Timestamp value)
This method writes the specified Java java.sql.Timestamp to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

writeURL

public void writeURL(URL value)
This method writes the specified java.net.URL object to the SQL stream.

Parameters: value The value to write to the stream.

Throws: SQLException If an error occurs.

Since: 1.4