db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "V.Narayanan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2730) Implement not implemented Embedded methods Blob.getBinaryStream(long pos, long length) and Clob. getCharacterStream(long pos, long length)
Date Wed, 30 May 2007 14:43:15 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

V.Narayanan updated DERBY-2730:
-------------------------------

    Attachment: GetBinaryStreamImpl_v1_NOT_FOR_COMMIT.stat
                GetBinaryStreamImpl_v1_NOT_FOR_COMMIT.diff

I have used the patch attached to the issue Derby-2711 to implement this patch. This patch

hence contains the changes introduced by Derby-2711 also. 

Pls note that this patch is *not* for a commit.

M      java/engine/org/apache/derby/impl/jdbc/EmbedBlob.java

Added implementation for the getBinaryStream(long position, long length) method
that wraps the stream returned from the getBinaryStream method inside the 
UpdateableBlobStream, using the constructor that accepts a position
and length as parameter, to return a subset of the Blob value.

A      java/engine/org/apache/derby/impl/jdbc/UpdateableBlobStream.java

Added a constructor that accepts position and length as parameter. Modified
the read methods to use the restriction on the position and length of the
stream.

M      java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/BlobTest.java
A      java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobUpdateableStreamTest.java
M      java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java

The other changes are related to Derby-2711

Pls consider this patch for reviews and comments

> Implement not implemented Embedded methods Blob.getBinaryStream(long pos, long length)
and Clob. getCharacterStream(long pos, long length)
> ------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2730
>                 URL: https://issues.apache.org/jira/browse/DERBY-2730
>             Project: Derby
>          Issue Type: New Feature
>          Components: JDBC
>            Reporter: V.Narayanan
>            Assignee: V.Narayanan
>         Attachments: GetBinaryStreamImpl_v1_NOT_FOR_COMMIT.diff, GetBinaryStreamImpl_v1_NOT_FOR_COMMIT.stat
>
>
> The following methods were introduced in the java.sql.Clob and java.sql.Blob interface
as part of JDBC 4.0 and need to be implemented.
> Clob
> ------
> getCharacterStream(long pos, long length)
> Blob
> ------
> getBinaryStream(long pos, long length)
> The implementation on the Network Client is already done as part of Derby-2444

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message