| java.sql.SQLInput |
The SQLInput interface defines operations which apply to a type of input stream which carries a series of values which represent an instance of an SQL structured type or SQL distinct type.
SQLInput interface is used for custom mapping of SQL User Defined Types (UDTs)to Java classes. It is used by JDBC drivers below the level of the public interfaces and application programs do not normally use the SQLInput methods directly. Reader methods such as readLong and readBytes provide means to read values from an SQLInput stream.
When the getObject method is called with an object which implements the SQLData interface, the JDBC driver determines the SQL type of the UDT being mapped by calling the SQLData.getSQLType method. The driver creates an instance of an SQLInput stream, filling the stream with the attributes of the UDT. The SQLInput stream is passed to the SQLData.readSQL method which then calls the SQLInput reader methods to read the attributes.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the next attribute in the stream in the form of a java.sql.Array.
| |||||||||||
Returns the next attribute in the stream in the form of an ASCII
character stream embodied as a java.io.InputStream.
| |||||||||||
Returns the next attribute in the stream in the form of a
java.math.BigDecimal.
| |||||||||||
Returns the next attribute in the stream in the form of a stream of bytes
embodied as a java.io.InputStream.
| |||||||||||
Returns the next attribute in the stream in the form of a java.sql.Blob.
| |||||||||||
Returns the next attribute in the stream in the form of a boolean.
| |||||||||||
Returns the next attribute in the stream in the form of a byte.
| |||||||||||
Returns the next attribute in the stream in the form of a byte array.
| |||||||||||
Returns the next attribute in the stream in the form of a Unicode
character stream embodied as a java.io.Reader.
| |||||||||||
Returns the next attribute in the stream in the form of a java.sql.Clob.
| |||||||||||
Returns the next attribute in the stream in the form of a java.sql.Date.
| |||||||||||
Returns the next attribute in the stream in the form of a double.
| |||||||||||
Returns the next attribute in the stream in the form of a float.
| |||||||||||
Returns the next attribute in the stream in the form of an int.
| |||||||||||
Returns the next attribute in the stream in the form of a long.
| |||||||||||
Returns the next attribute in the stream in the form of a
java.lang.Object.
| |||||||||||
Returns the next attribute in the stream in the form of a java.sql.Ref.
| |||||||||||
Returns the next attribute in the stream in the form of a short.
| |||||||||||
Returns the next attribute in the stream in the form of a String.
| |||||||||||
Returns the next attribute in the stream in the form of a java.sql.Time.
| |||||||||||
Returns the next attribute in the stream in the form of a
java.sql.Timestamp.
| |||||||||||
Reads the next attribute in the stream (SQL DATALINK value) and returns
it as a java.net.URL object.
| |||||||||||
Reports whether the last value read was SQL NULL.
| |||||||||||
Returns the next attribute in the stream in the form of a java.sql.Array.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of an ASCII character stream embodied as a java.io.InputStream.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a java.math.BigDecimal.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a stream of bytes embodied as a java.io.InputStream.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a java.sql.Blob.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a boolean.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a byte.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a byte array.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a Unicode character stream embodied as a java.io.Reader.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a java.sql.Clob.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a java.sql.Date.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a double.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a float.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of an int.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a long.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a java.lang.Object.
The type of the Object returned is determined by the type mapping for this JDBC driver, including any customized mappings in force. A type map is given to the SQLInput by the JDBC driver before the SQLInput is given to the application.
If the attribute is an SQL structured or distinct type, its SQL type is determined. If the streams type map contains an element for that SQL type, the driver creates an object of relevant type and invokes the method SQLData.readSQL on it, which reads supplementary data from the stream using whichever protocol is defined for that method.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a java.sql.Ref.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a short.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a String.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a java.sql.Time.
| SQLException | if there is a database error |
|---|
Returns the next attribute in the stream in the form of a java.sql.Timestamp.
| SQLException | if there is a database error |
|---|
Reads the next attribute in the stream (SQL DATALINK value) and returns it as a java.net.URL object.
| SQLException | if there is a database error |
|---|
Reports whether the last value read was SQL NULL.
| SQLException | if there is a database error |
|---|