- java.lang.Object
-
- javax.sql.rowset.serial.SQLOutputImpl
-
- All Implemented Interfaces:
SQLOutput
public class SQLOutputImpl extends Object implements SQLOutput
The output stream for writing the attributes of a custom-mapped user-defined type (UDT) back to the database. The driver uses this interface internally, and its methods are never directly invoked by an application programmer.When an application calls the method
PreparedStatement.setObject
, the driver checks to see whether the value to be written is a UDT with a custom mapping. If it is, there will be an entry in a type map containing theClass
object for the class that implementsSQLData
for this UDT. If the value to be written is an instance ofSQLData
, the driver will create an instance ofSQLOutputImpl
and pass it to the methodSQLData.writeSQL
. The methodwriteSQL
in turn calls the appropriateSQLOutputImpl.writeXXX
methods to write data from theSQLData
object to theSQLOutputImpl
output stream as the representation of an SQL user-defined type.- Since:
- 1.5
-
-
Constructor Summary
Constructors Constructor Description SQLOutputImpl(Vector<?> attributes, Map<String,?> map)
Creates a newSQLOutputImpl
object initialized with the given vector of attributes and type map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeArray(Array x)
Writes anArray
object in the Java programming language to thisSQLOutputImpl
object.void
writeAsciiStream(InputStream x)
Writes a stream of ASCII characters to thisSQLOutputImpl
object.void
writeBigDecimal(BigDecimal x)
Writes ajava.math.BigDecimal
object in the Java programming language to thisSQLOutputImpl
object.void
writeBinaryStream(InputStream x)
Writes a stream of uninterpreted bytes to thisSQLOutputImpl
object.void
writeBlob(Blob x)
Writes aBlob
object in the Java programming language to thisSQLOutputImpl
object.void
writeBoolean(boolean x)
Writes aboolean
in the Java programming language to thisSQLOutputImpl
object.void
writeByte(byte x)
Writes abyte
in the Java programming language to thisSQLOutputImpl
object.void
writeBytes(byte[] x)
Writes an array ofbytes
in the Java programming language to thisSQLOutputImpl
object.void
writeCharacterStream(Reader x)
Writes a stream of Unicode characters to thisSQLOutputImpl
object.void
-