Interface java.sql.SQLOutput
- public interface SQLOutput
Method Summary
|
void
|
writeArrayLocator(ArrayLocator x)
Write a LOCATOR(<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.BigDecimal object.
|
void
|
writeBinaryStream(InputStream x)
Return the next attribute to the stream as a stream of uninterpreted
bytes.
|
void
|
writeBlobLocator(BlobLocator x)
Write a LOCATOR(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
|
writeClobLocator(ClobLocator x)
Write a LOCATOR(CLOB) to the stream.
|
void
|
writeDate(Date x)
Write the next attribute to the stream as a java.sql.Date object.
|
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,
as a value of an SQL structured or distinct type.
|
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
|
writeStructLocator(StructLocator x)
Write a LOCATOR(<structured-type>) to the stream.
|
void
|
writeTime(Time x)
Write the next attribute to the stream as a java.sql.Time object.
|
void
|
writeTimestamp(Timestamp x)
Write the next attribute to the stream as a java.sql.Timestamp object.
|
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,
as a value of an SQL structured or distinct type. 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
writeBlobLocator
public void writeBlobLocator(BlobLocator x) throws SQLException
- Write a LOCATOR(BLOB) to the stream.
- Parameters:
x
- an object representing data of a locator to a BLOB
writeClobLocator
public void writeClobLocator(ClobLocator x) throws SQLException
- Write a LOCATOR(CLOB) to the stream.
- Parameters:
x
- an object representing data of a locator to a CLOB
writeStructLocator
public void writeStructLocator(StructLocator x) throws SQLException
- Write a LOCATOR(<structured-type>) to the stream.
- Parameters:
x
- an object representing data of a locator to an instance
of a Structured Type
writeArrayLocator
public void writeArrayLocator(ArrayLocator x) throws SQLException
- Write a LOCATOR(<array>) to the stream.
- Parameters:
x
- an object representing data of a locator to an SQL array
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.