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:- Aaron M. Renn (arenn@urbanophile.com)
readArray
public Array readArray() This method reads the next item from the stream a Java SQL
Array.
Returns:
- The value read from the stream as an
Array.
Throws:
readAsciiStream
public InputStream readAsciiStream() This method reads the next item from the stream a ASCII text
InputStream.
Returns:
- The value read from the stream as an
InputStream.
Throws:
readBigDecimal
public BigDecimal readBigDecimal() This method reads the next item from the stream a Java
BigDecimal.
Returns:
- The value read from the stream as a
BigDecimal.
Throws:
readBinaryStream
public InputStream readBinaryStream() This method reads the next item from the stream a binary
InputStream.
Returns:
- The value read from the stream as an
InputStream.
Throws:
readBlob
public Blob readBlob() This method reads the next item from the stream a Java SQL
Blob.
Returns:
- The value read from the stream as a
Blob.
Throws:
readBoolean
public boolean readBoolean() This method reads the next item from the stream a Java
boolean.
Returns:
- The value read from the stream as a
boolean.
Throws:
readByte
public byte readByte() This method reads the next item from the stream a Java
byte.
Returns:
- The value read from the stream as a
byte.
Throws:
readBytes
public byte[] readBytes() This method reads the next item from the stream a Java
byte array
Returns:
- The value read from the stream as a byte array.
Throws:
readCharacterStream
public Reader readCharacterStream() This method reads the next item from the stream a character
Reader.
Returns:
- The value read from the stream as a
Reader.
Throws:
readClob
public Clob readClob() This method reads the next item from the stream a Java SQL
Clob.
Returns:
- The value read from the stream as a
Clob.
Throws:
readDate
public Date readDate() This method reads the next item from the stream a Java
java.sql.Date.
Returns:
- The value read from the stream as a
java.sql.Date.
Throws:
readDouble
public double readDouble() This method reads the next item from the stream a Java
double.
Returns:
- The value read from the stream as a
double.
Throws:
readFloat
public float readFloat() This method reads the next item from the stream a Java
float.
Returns:
- The value read from the stream as a
float.
Throws:
readInt
public int readInt() This method reads the next item from the stream a Java
int.
Returns:
- The value read from the stream as an
int.
Throws:
readLong
public long readLong() This method reads the next item from the stream a Java
long.
Returns:
- The value read from the stream as a
long.
Throws:
readObject
public Object readObject() This method reads the next item from the stream a Java
Object.
Returns:
- The value read from the stream as an
Object.
Throws:
readRef
public Ref readRef() This method reads the next item from the stream a Java SQL
Ref.
Returns:
- The value read from the stream as an
Ref.
Throws:
readShort
public short readShort() This method reads the next item from the stream a Java
short.
Returns:
- The value read from the stream as a
short.
Throws:
readString
public String readString() This method reads the next item from the stream a Java
String.
Returns:
- The value read from the stream as a
String.
Throws:
readTime
public Time readTime() This method reads the next item from the stream a Java
java.sql.Time.
Returns:
- The value read from the stream as a
java.sql.Time.
Throws:
readTimestamp
public Timestamp readTimestamp() This method reads the next item from the stream a Java
java.sql.Timestamp.
Returns:
- The value read from the stream as a
java.sql.Timestamp.
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:
true if the last value read was a NULL,
false otherwise.
Throws: