[
https://issues.apache.org/jira/browse/DERBY-2247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466061
]
Anurag Shekhar commented on DERBY-2247:
---------------------------------------
changes made in derby-2247v2-using_StoreFactory.diff from previous patch
LobStreamControl class is using StorageFactory to create a file in database
temporary file system.
There is no change in policy file.
both tests are now part of junit framework but still run under jdbc4 (jdk1.6)
as they are using some jdbc4.0 methods (create and free). I will be enabling
the network drivers set method test cases to test embedded driver too in a
separate patch.
Additional files modified in this patch
java/engine/org/apache/derby/io/StorageFactory.java
added a new method to create temporary file (StorageFactory.createTemporaryFile)
java/engine/org/apache/derby/impl/io/BaseStorageFactory.java
Implemented method createTemporaryFile. This method takes care of creating a
unique file in database temporary file system.
java/engine/org/apache/derby/io/StorageRandomAccessFile.java
added a new method read(byte[] b, int off, int len). This method is used by
LobStreamControl to read bytes of given length or the remaining bytes whichever
is less. In the absence of this method it need to call read in loop. The only
implementation of StorageRandomAccessFile also extends from RandomAccessFile so
no new implementation is required.
java/testing/org/apache/derbyTesting/functionTests/util/corruptio/CorruptRandomAccessFile.java
java/testing/org/apache/derbyTesting/functionTests/util/corruptio/CorruptBaseStorageFactory.java
added new methods in these class which forward the call to corresponding
methods in torageRandomAccessFile and BaseStorageFactory.
> provide set methods for blob in embeded driver
> ----------------------------------------------
>
> Key: DERBY-2247
> URL: https://issues.apache.org/jira/browse/DERBY-2247
> Project: Derby
> Issue Type: Sub-task
> Components: JDBC
> Environment: all
> Reporter: Anurag Shekhar
> Assigned To: Anurag Shekhar
> Priority: Minor
> Attachments: derby-2247.diff, derby-2247v2-using_StoreFactory.diff
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira