Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.sql

Interface SQLInput

java.lang.Object
|
+--java.sql.SQLInput


public interface SQLInput

This interface provides methods for reading values from a stream that is connected to a SQL structured or distinct type. It is used for custom mapping of user defined data types.

Author:

Method Summary

java.sql.ArrayreadArray()

This method reads the next item from the stream a Java SQL Array.
java.io.InputStreamreadAsciiStream()

This method reads the next item from the stream a ASCII text InputStream.
java.math.BigDecimalreadBigDecimal()

This method reads the next item from the stream a Java BigDecimal.
java.io.InputStreamreadBinaryStream()

This method reads the next item from the stream a binary InputStream.
java.sql.BlobreadBlob()

This method reads the next item from the stream a Java SQL Blob.
booleanreadBoolean()

This method reads the next item from the stream a Java boolean.
bytereadByte()

This method reads the next item from the stream a Java byte.
byte[]readBytes()

This method reads the next item from the stream a Java byte array
java.io.ReaderreadCharacterStream()

This method reads the next item from the stream a character Reader.
java.sql.ClobreadClob()

This method reads the next item from the stream a Java SQL Clob.
java.sql.DatereadDate()

This method reads the next item from the stream a Java java.sql.Date.
doublereadDouble()

This method reads the next item from the stream a Java double.
floatreadFloat()

This method reads the next item from the stream a Java float.
intreadInt()

This method reads the next item from the stream a Java int.
longreadLong()

This method reads the next item from the stream a Java long.
java.lang.ObjectreadObject()

This method reads the next item from the stream a Java Object.
java.sql.RefreadRef()

This method reads the next item from the stream a Java SQL Ref.
shortreadShort()

This method reads the next item from the stream a Java short.
java.lang.StringreadString()

This method reads the next item from the stream a Java String.
java.sql.TimereadTime()

This method reads the next item from the stream a Java java.sql.Time.
java.sql.TimestampreadTimestamp()

This method reads the next item from the stream a Java java.sql.Timestamp.
java.net.URLreadURL()

booleanwasNull()

This method tests whether or not the last value read was a SQL NULL value.

Method Details

readArray

public Array readArray()

This method reads the next item from the stream a Java SQL Array.

Returns:

Throws:


readAsciiStream

public InputStream readAsciiStream()

This method reads the next item from the stream a ASCII text InputStream.

Returns:

Throws:


readBigDecimal

public BigDecimal readBigDecimal()

This method reads the next item from the stream a Java BigDecimal.

Returns:

Throws:


readBinaryStream

public InputStream readBinaryStream()

This method reads the next item from the stream a binary InputStream.

Returns:

Throws:


readBlob

public Blob readBlob()

This method reads the next item from the stream a Java SQL Blob.

Returns:

Throws:


readBoolean

public boolean readBoolean()

This method reads the next item from the stream a Java boolean.

Returns:

Throws:


readByte

public byte readByte()

This method reads the next item from the stream a Java byte.

Returns:

Throws:


readBytes

public byte[] readBytes()

This method reads the next item from the stream a Java byte array

Returns:

Throws:


readCharacterStream

public Reader readCharacterStream()

This method reads the next item from the stream a character Reader.

Returns:

Throws:


readClob

public Clob readClob()

This method reads the next item from the stream a Java SQL Clob.

Returns:

Throws:


readDate

public Date readDate()

This method reads the next item from the stream a Java java.sql.Date.

Returns:

Throws:


readDouble

public double readDouble()

This method reads the next item from the stream a Java double.

Returns:

Throws:


readFloat

public float readFloat()

This method reads the next item from the stream a Java float.

Returns:

Throws:


readInt

public int readInt()

This method reads the next item from the stream a Java int.

Returns:

Throws:


readLong

public long readLong()

This method reads the next item from the stream a Java long.

Returns:

Throws:


readObject

public Object readObject()

This method reads the next item from the stream a Java Object.

Returns:

Throws:


readRef

public Ref readRef()

This method reads the next item from the stream a Java SQL Ref.

Returns:

Throws:


readShort

public short readShort()

This method reads the next item from the stream a Java short.

Returns:

Throws:


readString

public String readString()

This method reads the next item from the stream a Java String.

Returns:

Throws:


readTime

public Time readTime()

This method reads the next item from the stream a Java java.sql.Time.

Returns:

Throws:


readTimestamp

public Timestamp readTimestamp()

This method reads the next item from the stream a Java java.sql.Timestamp.

Returns:

Throws:


readURL

public URL readURL()

Since:

wasNull

public boolean wasNull()

This method tests whether or not the last value read was a SQL NULL value.

Returns:

Throws: