Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1417

Add new, lengthless overloads to the streaming api

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • JDBC
    • None
    • Normal

    Description

      The JDBC4 Expert Group has approved a new set of overloads for the streaming methods. These overloads do not take a length argument. Here are the new overloads:

      PreparedStatement.setAsciiStream(int parameterIndex, java.io.InputStream x)
      PreparedStatement.setBinaryStream(int parameterIndex, java.io.InputStream x)
      PreparedStatement.setCharacterStream(int parameterIndex, java.io.Reader reader)
      PreparedStatement.setNCharacterStream(int parameterIndex, java.io.Reader reader)
      PreparedStatement.setBlob(int parameterIndex, java.io.InputStream inputStream)
      PreparedStatement.setClob(int parameterIndex, java.io.Reader reader)
      PreparedStatement.setNClob(int parameterIndex, java.io.Reader reader)
      CallableStatement.setAsciiStream(java.lang.String parameterName, java.io.InputStream x)
      CallableStatement.setBinaryStream(java.lang.String parameterName, java.io.InputStream x)
      CallableStatement.setCharacterStream(java.lang.String parameterName, java.io.Reader reader)
      CallableStatement.setNCharacterStream(java.lang.String parameterName, java.io.Reader reader)
      CallableStatement.setBlob(java.lang.String parameterName, java.io.InputStream inputStream)
      CallableStatement.setClob(java.lang.String parameterName, java.io.Reader reader)
      CallableStatement.setNClob(java.lang.String parameterName, java.io.Reader reader)
      ResultSet.updateAsciiStream(int columnIndex, java.io.InputStream x)
      ResultSet.updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x)
      ResultSet.updateBinaryStream(int columnIndex, java.io.InputStream x)
      ResultSet.updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length)
      ResultSet.updateCharacterStream(int columnIndex, java.io.Reader x)
      ResultSet.updateCharacterStream(java.lang.String columnLabel, java.io.Reader x)
      ResultSet.updateNCharacterStream(int columnIndex, java.io.Reader x)
      ResultSet.updateNCharacterStream(java.lang.String columnLabel, java.io.Reader x)
      ResultSet.updateBlob(int columnIndex, java.io.InputStream inputStream)
      ResultSet.updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream)
      ResultSet.updateClob(int columnIndex, java.io.Reader reader)
      ResultSet.updateClob(java.lang.String columnLabel, java.io.Reader reader)
      ResultSet.updateNClob(int columnIndex, java.io.Reader reader)
      ResultSet.updateNClob(java.lang.String columnLabel, java.io.Reader reader)

      We should add these new overloads soon so that the build will not break when this methods turn up in a published Mustang build.

      Attachments

        1. derby-1417-01-castsInTests.diff
          3 kB
          Richard N. Hillegas
        2. derby-1417-1a-notImplemented.diff
          11 kB
          Kristian Waagan
        3. derby-1417-1a-notImplemented.stat
          0.5 kB
          Kristian Waagan
        4. derby-1417-2a-rstest-refactor.diff
          35 kB
          Kristian Waagan
        5. derby-1417-3a-embimpl-and-tests.diff
          89 kB
          Kristian Waagan
        6. derby-1417-3a-embimpl-and-tests.stat
          0.5 kB
          Kristian Waagan
        7. derby-1417-3b-embimpl-and-tests.diff
          90 kB
          Kristian Waagan
        8. derby-1417-3b-embimpl-and-tests.stat
          0.5 kB
          Kristian Waagan
        9. derby-1417-4a-disable-psTestsDnc.diff
          2 kB
          Kristian Waagan
        10. derby-1417-5a-brokered.diff
          19 kB
          Kristian Waagan
        11. derby-1417-5a-brokered.stat
          0.3 kB
          Kristian Waagan
        12. derby-1417-6a-clientimpl.diff
          74 kB
          Kristian Waagan
        13. derby-1417-6a-clientimpl.stat
          1 kB
          Kristian Waagan
        14. derby-1417-6b-clientimpl.diff
          76 kB
          Kristian Waagan
        15. derby-1417-6c-clientimpl.diff
          77 kB
          Kristian Waagan
        16. derby-1417-6d-clientimpl.diff
          77 kB
          Kristian Waagan
        17. derby-1417-7a-clientborderfix.diff
          12 kB
          Kristian Waagan
        18. derby-1417-7a-clientborderfix.stat
          0.3 kB
          Kristian Waagan
        19. derby-1417-8a-enableblobstreaming.diff
          2 kB
          Kristian Waagan
        20. derby-1417-8a-enableblobstreaming.stat
          0.2 kB
          Kristian Waagan
        21. derby-1417-9a-blobstream-newapproach.diff
          2 kB
          Kristian Waagan
        22. derby-1417-9a-blobstream-newapproach.stat
          0.2 kB
          Kristian Waagan

        Issue Links

          Activity

            People

              kristwaa Kristian Waagan
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: