You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "V.Narayanan (JIRA)" <de...@db.apache.org> on 2006/05/16 13:51:06 UTC

[jira] Created: (DERBY-1328) Implementing the free methods in the Clob and Blob interface

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




-- 
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


[jira] Assigned: (DERBY-1328) Implementing the free methods in the Clob and Blob interface

Posted by "V.Narayanan (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-1328?page=all ]

V.Narayanan reassigned DERBY-1328:
----------------------------------

    Assign To: V.Narayanan

> 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

>


-- 
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


[jira] Commented: (DERBY-1328) Implementing the free methods in the Clob and Blob interface

Posted by "Rick Hillegas (JIRA)" <de...@db.apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-1328?page=comments#action_12412082 ] 

Rick Hillegas commented on DERBY-1328:
--------------------------------------

Committed at subversion revision 407116.

> 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


[jira] Resolved: (DERBY-1328) Implementing the free methods in the Clob and Blob interface

Posted by "V.Narayanan (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-1328?page=all ]
     
V.Narayanan resolved DERBY-1328:
--------------------------------

    Resolution: Fixed
    Derby Info: [Patch Available]

patch has been submitted and committed.
thanx
Narayanan

> 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


[jira] Updated: (DERBY-1328) Implementing the free methods in the Clob and Blob interface

Posted by "V.Narayanan (JIRA)" <de...@db.apache.org>.
     [ 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


[jira] Commented: (DERBY-1328) Implementing the free methods in the Clob and Blob interface

Posted by "Rick Hillegas (JIRA)" <de...@db.apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-1328?page=comments#action_12412080 ] 

Rick Hillegas commented on DERBY-1328:
--------------------------------------

Looks good. JDBC4 tests run cleanly. Derbyall runs cleanly except for wisconsin noise. I can't commit this patch because minotaur's https is down again.

> 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


[jira] Commented: (DERBY-1328) Implementing the free methods in the Clob and Blob interface

Posted by "V.Narayanan (JIRA)" <de...@db.apache.org>.
    [ http://issues.apache.org/jira/browse/DERBY-1328?page=comments#action_12412293 ] 

V.Narayanan commented on DERBY-1328:
------------------------------------

Thanx a ton for the review and the commit Rick!
Narayanan

> 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


[jira] Closed: (DERBY-1328) Implementing the free methods in the Clob and Blob interface

Posted by "Rick Hillegas (JIRA)" <de...@db.apache.org>.
     [ http://issues.apache.org/jira/browse/DERBY-1328?page=all ]
     
Rick Hillegas closed DERBY-1328:
--------------------------------


> 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