[ http://issues.apache.org/jira/browse/DERBY-1328?page=all ]

V.Narayanan updated DERBY-1328:
-------------------------------

    Attachment: ClobBlob_free_v1.diff
                ClobBlob_free_v1.stat

Implementation of free() methods in Clob and Blob interface

Involves freeing the resources that are used by the Clob and Blob 
implementation once the free() method is called on these interfaces. Most of 
the cases this involved closing the streams that were used in the 
implementation. Any IO Exception that may occur during the closing of these 
streams is wrapped as a SQLException and returned to the user. 

Calling a free on a Clob or a Blob on which free has already been called is a 
no-op. When any other method in the Clob or Blob interface is called after free 
is called then an SQLException is raised. 

When free is called on either a Clob or a Blob a boolean variable isValid is 
set to false. This variable is checked each time any method on a Clob or Blob 
interface is called. If found to be false a SQLExeption is thrown. By default 
isValid = true. 

A function checkValidity() has been introduced on the interfaces to check for 
the isValid variable and return an appropriate SQLException.

> Implementing the free methods in the Clob and Blob interface
> ------------------------------------------------------------
>
>          Key: DERBY-1328
>          URL: http://issues.apache.org/jira/browse/DERBY-1328
>      Project: Derby
>         Type: New Feature

>   Components: JDBC
>     Reporter: V.Narayanan
>     Assignee: V.Narayanan
>  Attachments: ClobBlob_free_v1.diff, ClobBlob_free_v1.stat
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to