Java Platform 1.2
Beta 4

Interface java.sql.SQLOutput


public abstract interface SQLOutput

Method Summary
 void writeArray(Array x)
          Write an array to the stream.
 void writeAsciiStream(InputStream x)
          Return the next attribute to the stream as a stream of ASCII characters.
 void writeBigDecimal(BigDecimal x)
          Write the next attribute to the stream as a java.math.
 void writeBinaryStream(InputStream x)
          Return the next attribute to the stream as a stream of uninterpreted bytes.
 void writeBlob(Blob x)
          Write a BLOB to the stream.
 void writeBoolean(boolean x)
          Write the next attribute to the stream as a Java boolean.
 void writeByte(byte x)
          Write the next attribute to the stream as a Java byte.
 void writeBytes(byte[] x)
          Write the next attribute to the stream as an array of bytes.
 void writeCharacterStream(Reader x)
          Return the next attribute to the stream as a stream of Unicode characters.
 void writeClob(Clob x)
          Write a CLOB to the stream.
 void writeDate(Date x)
          Write the next attribute to the stream as a java.sql.
 void writeDouble(double x)
          Write the next attribute to the stream as a Java double.
 void writeFloat(float x)
          Write the next attribute to the stream as a Java float.
 void writeInt(int x)
          Write the next attribute to the stream as a Java int.
 void writeLong(long x)
          Write the next attribute to the stream as a Java long.
 void writeObject(SQLData x)
          Write to the stream the data contained in the given object.
 void writeRef(Ref x)
          Write a REF(<structured-type>) to the stream.
 void writeShort(short x)
          Write the next attribute to the stream as a Java short.
 void writeString(String x)
          Write the next attribute to the stream as a Java String.
 void writeStruct(Struct x)
          Write a structured-type to the stream.
 void writeTime(Time x)
          Write the next attribute to the stream as a java.sql.
 void writeTimestamp(Timestamp x)
          Write the next attribute to the stream as a java.sql.
 

Method Detail

writeString

public void writeString(String x)
                 throws SQLException
Write the next attribute to the stream as a Java String.
Parameters:
x - the value to pass to the database.

writeBoolean

public void writeBoolean(boolean x)
                  throws SQLException
Write the next attribute to the stream as a Java boolean.
Parameters:
x - the value to pass to the database.

writeByte

public void writeByte(byte x)
               throws SQLException
Write the next attribute to the stream as a Java byte.
Parameters:
x - the value to pass to the database.

writeShort

public void writeShort(short x)
                throws SQLException
Write the next attribute to the stream as a Java short.
Parameters:
x - the value to pass to the database.

writeInt

public void writeInt(int x)
              throws SQLException
Write the next attribute to the stream as a Java int.
Parameters:
x - the value to pass to the database.

writeLong

public void writeLong(long x)
               throws SQLException
Write the next attribute to the stream as a Java long.
Parameters:
x - the value to pass to the database.

writeFloat

public void writeFloat(float x)
                throws SQLException
Write the next attribute to the stream as a Java float.
Parameters:
x - the value to pass to the database.

writeDouble

public void writeDouble(double x)
                 throws SQLException
Write the next attribute to the stream as a Java double.
Parameters:
x - the value to pass to the database.

writeBigDecimal

public void writeBigDecimal(BigDecimal x)
                     throws SQLException
Write the next attribute to the stream as a java.math.BigDecimal object.
Parameters:
x - the value to pass to the database.

writeBytes

public void writeBytes(byte[] x)
                throws SQLException
Write the next attribute to the stream as an array of bytes.
Parameters:
x - the value to pass to the database.

writeDate

public void writeDate(Date x)
               throws SQLException
Write the next attribute to the stream as a java.sql.Date object.
Parameters:
x - the value to pass to the database.

writeTime

public void writeTime(Time x)
               throws SQLException
Write the next attribute to the stream as a java.sql.Time object.
Parameters:
x - the value to pass to the database.

writeTimestamp

public void writeTimestamp(Timestamp x)
                    throws SQLException
Write the next attribute to the stream as a java.sql.Timestamp object.
Parameters:
x - the value to pass to the database.

writeCharacterStream

public void writeCharacterStream(Reader x)
                          throws SQLException
Return the next attribute to the stream as a stream of Unicode characters.
Parameters:
x - the value to pass to the database.

writeAsciiStream

public void writeAsciiStream(InputStream x)
                      throws SQLException
Return the next attribute to the stream as a stream of ASCII characters.
Parameters:
x - the value to pass to the database.

writeBinaryStream

public void writeBinaryStream(InputStream x)
                       throws SQLException
Return the next attribute to the stream as a stream of uninterpreted bytes.
Parameters:
x - the value to pass to the database.

writeObject

public void writeObject(SQLData x)
                 throws SQLException
Write to the stream the data contained in the given object. When @x is null, the method writes an SQL NULL to the stream. Otherwise, it calls the SQLData.writeSQL method of the @x, which writes to the stream using the protocol described for SQLData.writeSQL.
Parameters:
x - the object representing data of an SQL structured or distinct type

writeRef

public void writeRef(Ref x)
              throws SQLException
Write a REF(<structured-type>) to the stream.
Parameters:
x - an object representing data of an SQL REF Type

writeBlob

public void writeBlob(Blob x)
               throws SQLException
Write a BLOB to the stream.
Parameters:
x - an object representing a BLOB

writeClob

public void writeClob(Clob x)
               throws SQLException
Write a CLOB to the stream.
Parameters:
x - an object representing a CLOB

writeStruct

public void writeStruct(Struct x)
                 throws SQLException
Write a structured-type to the stream.
Parameters:
x - an object representing data of a Structured Type

writeArray

public void writeArray(Array x)
                throws SQLException
Write an array to the stream.
Parameters:
x - an object representing an SQL array

Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.