[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/24/docs/api/java.sql/java/sql/SQLOutput.html [Back]  [Original]

SQLOutput (Java SE 24 & JDK 24)
Contents 
Hide sidebar ❮❯ Show sidebar
  1. Description
  2. Method Summary
  3. Method Details
    1. writeString(String)
    2. writeBoolean(boolean)
    3. writeByte(byte)
    4. writeShort(short)
    5. writeInt(int)
    6. writeLong(long)
    7. writeFloat(float)
    8. writeDouble(double)
    9. writeBigDecimal(BigDecimal)
    10. writeBytes(byte[])
    11. writeDate(Date)
    12. writeTime(Time)
    13. writeTimestamp(Timestamp)
    14. writeCharacterStream(Reader)
    15. writeAsciiStream(InputStream)
    16. writeBinaryStream(InputStream)
    17. writeObject(SQLData)
    18. writeRef(Ref)
    19. writeBlob(Blob)
    20. writeClob(Clob)
    21. writeStruct(Struct)
    22. writeArray(Array)
    23. writeURL(URL)
    24. writeNString(String)
    25. writeNClob(NClob)
    26. writeRowId(RowId)
    27. writeSQLXML(SQLXML)
    28. writeObject(Object, SQLType)

Interface SQLOutput

All Known Implementing Classes:
SQLOutputImpl

public interface SQLOutput
The output stream for writing the attributes of a user-defined type back to the database. This interface, used only for custom mapping, is used by the driver, and its methods are never directly invoked by a programmer.

When an object of a class implementing the interface SQLData is passed as an argument to an SQL statement, the JDBC driver calls the method SQLData.getSQLType to determine the kind of SQL datum being passed to the database. The driver then creates an instance of SQLOutput and passes it to the method SQLData.writeSQL. The method writeSQL in turn calls the appropriate SQLOutput writer methods writeBoolean, writeCharacterStream, and so on) to write data from the SQLData object to the SQLOutput output stream as the representation of an SQL user-defined type.

Since:
1.2


Web Proxy Viewer  |  New URL  |  Original Page