Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6431311

Add setXXXStream and setXXXLOB methods which do not take an length argument

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.4.1
    • core-libs
    • b91
    • generic
    • generic
    • Not verified

      Need to add the following methods for a better usability experience
      PreparedStatement add:
      setAsciiStream(int parameterIndex, java.io.InputStream x)
      setBinaryStream(int parameterIndex, java.io.InputStream x)
      setCharacterStream(int parameterIndex, java.io.Reader reader)
      setNCharacterStream(int parameterIndex, java.io.Reader reader)
      setBlob(int parameterIndex, java.io.InputStream inputStream)
      setClob(int parameterIndex, java.io.Reader reader)
      setNClob(int parameterIndex, java.io.Reader reader)

      CallableStatement add:
      setAsciiStream(java.lang.String parameterName, java.io.InputStream x)
      setBinaryStream(java.lang.String parameterName, java.io.InputStream x)
      setCharacterStream(java.lang.String parameterName, java.io.Reader reader)
      setNCharacterStream(java.lang.String parameterName, java.io.Reader reader)
      setBlob(java.lang.String parameterName, java.io.InputStream inputStream)
      setClob(java.lang.String parameterName, java.io.Reader reader)
      setNClob(java.lang.String parameterName, java.io.Reader reader)


      ResultSet add:
      updateAsciiStream(int columnIndex, java.io.InputStream x)
      updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x)
      updateBinaryStream(int columnIndex, java.io.InputStream x)
      updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length)
      updateCharacterStream(int columnIndex, java.io.Reader x)
      updateCharacterStream(java.lang.String columnLabel, java.io.Reader x)
      updateNCharacterStream(int columnIndex, java.io.Reader x)
      updateNCharacterStream(java.lang.String columnLabel, java.io.Reader x)
      updateBlob(int columnIndex, java.io.InputStream inputStream)
      updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream)
      updateClob(int columnIndex, java.io.Reader reader)
      updateClob(java.lang.String columnLabel, java.io.Reader reader)
      updateNClob(int columnIndex, java.io.Reader reader)
      updateNClob(java.lang.String columnLabel, java.io.Reader reader)

      These are all optional if the backend cannot support it and will result in a SQLFeatureNotSupportedException being thrown.

      This just got final approval via the EG this week and is a long outstanding customer request.

            lancea Lance Andersen
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: