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

Anurag Shekhar updated DERBY-2346:
----------------------------------

    Attachment: derby-2346-only_for_review.diff

This patch is not for commit. Right now it generates failures in postion tests 
due to DERBY-2450. I will resumbmit it after DERBY-2250 is resolved.

Description of Patch
New Files
java/engine/org/apache/derby/impl/jdbc/ClobStreamControl.java
This class extends from LOBStreamControl and provides wrapper methods to uses 
Strings to access LOBData.

java/engine/org/apache/derby/impl/jdbc/ClobAsciiStream.java
A Stream which assumes all the bytes coming in is ascii char and passes it on 
to Writer.

java/engine/org/apache/derby/impl/jdbc/ClobUtf8Writer.java

This class uses ClobStreamControl to updates the clob. User will get this 
object when it makes calls to retrieve outputstream from clob.

     
java/engine/org/apache/derby/impl/jdbc/EmbedClob.java
Modified to use ClobStreamControl when the clob is materialized.
Added additional set methods.

java/engine/org/apache/derby/impl/jdbc/UTF8Reader.java

Added a new constructor to accept length as parameter. When the length is 
passed to the constructor, it doesn't tries to read the length from the stream 
and considers the data from the beginning of the stream.

java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java
Added a new method to replace bytes in the middle of file/array when the   new 
bytes may have a diff length from the original bytes.      

> Provide set methods for clob for embedded driver
> ------------------------------------------------
>
>                 Key: DERBY-2346
>                 URL: https://issues.apache.org/jira/browse/DERBY-2346
>             Project: Derby
>          Issue Type: Sub-task
>          Components: JDBC
>    Affects Versions: 10.3.0.0
>            Reporter: Anurag Shekhar
>         Assigned To: Anurag Shekhar
>         Attachments: derby-2346-only_for_review.diff
>
>


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

Reply via email to