| java.sql.SQLOutput | 
The interface for an output stream used to write attributes of an SQL User Defined Type (UDT) to the database. This interface is used for custom mapping of types and is called by the JDBC driver. It is not intended to be used by applications.
 When an object which implements the SQLData interface is used as an argument to an SQL statement, the JDBC driver calls the method SQLData.getSQLType to establish the type of the SQL UDT that is being passed. The driver then creates an SQLOutput stream and passes it to the SQLData.writeSQL method, which in turn uses the appropriate SQLOutput writer methods to write the data from the SQLData object into the stream according to the defined mapping.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
           Write an SQL 
            Arrayvalue into the output stream. | ||||||||||
|  | 
           Write a stream of ASCII characters into the output stream.
           | ||||||||||
|  | 
           Write a 
            java.math.BigDecimalvalue into the output stream. | ||||||||||
|  | 
           Write a stream of uninterpreted bytes into the output stream.
           | ||||||||||
|  | 
           Write an SQL 
            Blobvalue into the output stream. | ||||||||||
|  | 
           Write a 
            booleanvalue into the output stream. | ||||||||||
|  | 
           Write a 
            bytevalue into the output stream. | ||||||||||
|  | 
           Write an array of bytes into the output stream.
           | ||||||||||
|  | 
           Write a stream of unicode characters into the output stream.
           | ||||||||||
|  | 
           Write an SQL 
            Clobvalue into the output stream. | ||||||||||
|  | 
           Write a 
            java.sql.Datevalue into the output stream. | ||||||||||
|  | 
           Write a 
            doublevalue into the output stream. | ||||||||||
|  | 
           Write a 
            floatvalue into the output stream. | ||||||||||
|  | 
           Write an 
            intvalue into the output stream. | ||||||||||
|  | 
           Write a 
            longvalue into the output stream. | ||||||||||
|  | 
           Write a 
            Clobinto the output stream as an SQL NCLOB. | ||||||||||
|  | 
           Write a 
            Stringinto the output stream as an SQL NCHAR, NVARCHAR, or LONGNVARCHAR. | ||||||||||
|  | 
           Write an 
            SQLDataobject into the output stream. | ||||||||||
|  | 
           Write an SQL 
            Refvalue into the output stream. | ||||||||||
|  | 
           Write a 
            RowIdinto the output stream as an SQL ROWID. | ||||||||||
|  | 
           Write a 
            SQLXMLinto the output stream as an SQL XML. | ||||||||||
|  | 
           Write a 
            shortvalue into the output stream. | ||||||||||
|  | 
           Write a 
            Stringvalue into the output stream. | ||||||||||
|  | 
           Write an SQL 
            Structvalue into the output stream. | ||||||||||
|  | 
           Write a 
            java.sql.Timevalue into the output stream. | ||||||||||
|  | 
           Write a 
            java.sql.Timestampvalue into the output stream. | ||||||||||
|  | 
           Write a 
            URLinto the output stream as an SQL DATALINK. | ||||||||||
Write an SQL Array value into the output stream.
| theArray | the java.sql.Arrayobject to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a stream of ASCII characters into the output stream.
| theStream | the stream of ASCII characters to write, as a java.io.InputStreamobject | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a java.math.BigDecimal value into the output stream.
| theBigDecimal | the BigDecimalvalue to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a stream of uninterpreted bytes into the output stream.
| theStream | the stream of bytes to write, as a java.io.InputStreamobject | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write an SQL Blob value into the output stream.
| theBlob | the java.sql.Blobobject to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a boolean value into the output stream.
| theFlag | the booleanvalue to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a byte value into the output stream.
| theByte | the bytevalue to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write an array of bytes into the output stream.
| theBytes | the array of bytes to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a stream of unicode characters into the output stream.
| theStream | the stream of unicode characters to write, as a java.io.Readerobject. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write an SQL Clob value into the output stream.
| theClob | the java.sql.Clobobject to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a java.sql.Date value into the output stream.
| theDate | the Datevalue to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a double value into the output stream.
| theDouble | the doublevalue to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a float value into the output stream.
| theFloat | the floatvalue to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write an int value into the output stream.
| theInt | the intvalue to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a long value into the output stream.
| theLong | the longvalue to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a Clob into the output stream as an SQL NCLOB.
| theNClob | the java.sql.Clobobject to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a String into the output stream as an SQL NCHAR, NVARCHAR, or LONGNVARCHAR.
| theString | the Stringto write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write an SQLData object into the output stream. 
 If the SQLData object is null, writes NULL to the stream. 
 Otherwise, calls the SQLData.writeSQL method of the object, which writes the object's attributes to the stream by calling the appropriate SQLOutput writer methods for each attribute, in order. The order of the attributes is the order they are listed in the SQL definition of the User Defined Type.
| theObject | the SQLDataobject to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write an SQL Ref value into the output stream.
| theRef | the java.sql.Refobject to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a RowId into the output stream as an SQL ROWID.
| theRowId | the java.sql.RowIdobject to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a SQLXML into the output stream as an SQL XML.
| theXml | the java.sql.SQLXMLobject to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a short value into the output stream.
| theShort | the shortvalue to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a String value into the output stream.
| theString | the Stringto write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write an SQL Struct value into the output stream.
| theStruct | the java.sql.Structobject to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a java.sql.Time value into the output stream.
| theTime | the Timevalue to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a java.sql.Timestamp value into the output stream.
| theTimestamp | the Timestampvalue to write. | 
|---|
| SQLException | if a database error occurs. | 
|---|
Write a URL into the output stream as an SQL DATALINK.
| theURL | the datalink value as a java.net.URLto write. | 
|---|
| SQLException | if a database error occurs. | 
|---|