Interface SQLOutput

public interface SQLOutput

SQLOutput is an output stream to which the elements of a user-defined type are written when this type has to be stored in the database. This interface is used only for custom mapping by the JDBC driver.

Methods

writeArray

public void writeArray(Array x) throws SQLException 

This writes a SQL ARRAY value to the stream. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The Array object to store

writeAsciiStream

public void writeAsciiStream(java.io.InputStream x) throws SQLException

This writes the next element to the stream as a stream of ASCII characters. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The character input stream

writeBigDecimal

public void writeBigDecimal(java.math.BigDecimal x) throws SQLException

This writes the next element to the stream as a java.math.BigDecimal object. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeBinaryStream

public void writeBinaryStream(java.io.InputStream x) throws SQLException

This writes the next element to the stream as a stream of bytes. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The byte input stream

writeBlob

public void writeBlob(Blob x) throws SQLException

This writes a SQL BLOB value to the stream. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The Blob object to store

writeBoolean

public void writeBoolean(boolean x) throws SQLException 

This writes the next element to the stream as a boolean. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeByte

public void writeByte(byte x) throws SQLException

This writes the next element to the stream as a byte. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeBytes

public void writeBytes(byte[] x) throws SQLException

This writes the next element to the stream as an array of bytes. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeCharacterStream

public void writeCharacterStream(java.io.Reader x) throws SQLException

This writes the next element to the stream as a stream of Unicode characters. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The character input stream object

writeClob

public void writeClob(Clob x) throws SQLException

This writes a SQL CLOB value to the stream. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The Clob object to store

writeDate

public void writeDate(Date x) throws SQLException 

This writes the next element to the stream as a java.sql.Date object. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeDouble

public void writeDouble(double x) throws SQLException

This writes the next element to the stream as a double. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeFloat

public void writeFloat(float x) throws SQLException

This writes the next element to the stream as a float. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeInt

public void writeInt(int x) throws SQLException

This writes the next element to the stream as an int. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeLong

public void writeLong(long x) throws SQLException

This writes the next element to the stream as a long. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeObject

public void writeObject(SQLData x) throws SQLException 

This method is used to send the data of the SQLData object to the current stream. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The object representing data of a SQL structured or distinct type

writeRef

public void writeRef(Ref x) throws SQLException

This writes a SQL REF value to the stream. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The Ref object to store

writeShort

public void writeShort(short x) throws SQLException

This writes the next element to the stream as a short. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeString

public void writeString(String x) throws SQLException

This writes the next element to the stream as a String. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeStruct

public void writeStruct(Struct x) throws SQLException

This writes a SQL structured type value to the stream. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The Struct object to store

writeTime

public void writeTime(Time x) throws SQLException

This writes the next element to the stream as a java.sql.Time object. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeTimestamp

public void writeTimestamp(Timestamp x) throws SQLException

This writes the next element to the stream as a java.sql.Timestamp object. A SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The value to store

writeURL

public void writeURL(java.net.URL x) throws SQLException

This writes a SQL SQLException is thrown if an error occurs while accessing this value.

Parameters:

x:

The java.net.URL object to store



JDBC 3. 0. JAVA Database Connectivity
JDBC 3: Java Database Connectivity
ISBN: 0764548751
EAN: 2147483647
Year: 2002
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net