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

V.Narayanan updated DERBY-796:
------------------------------

    Attachment: lob_1.diff

As pointed out in the above comments reflection is used and this was making the 
process slow. This has been overcome with the following changes.

1) ClientJDBCObjectFactory is an interface having two implementations

   a) ClientJDBCObjectFactoryImpl
   b) ClientJDBCObjectFactoryImpl40

   ClientJDBCObjectFactoryImpl is compiled by jdk1.4
   ClientJDBCObjectFactoryImpl40 is compiled by mustang (compiled optionally if 
jdk16 variable is present in ant.properties)

2) The method getFactory() in the ClientDriver class would initialize a 
variable of type ClientJDBCObjectFactory with an appropriate implementation 
depending on the jdk version under use.

3) This method is then used to return an instance of the factory implementation 
that will be used to return the approriate JDBC interface implementations to 
the user

Issues that were addresses earlier and have been fixed
------------------------------------------------------

1) comments have been added to the 
ClientJDBCObjectFactory,ClientJDBCObjectFactoryImpl,ClientJDBCObjectFactoryImpl40
 classes. Comments have also been added  to the atLeast method in 
Configuration.java

2) I have raised a JIRA issue for setCharacterStreamInternal to be modified 
(DERBY-856) . setBinaryStreamInternal is being modified as part of DERBY-599

3) Reflection would'nt be used for every object creation as in the previous 
case and would be only be used in getFactory to rerurn a factory 
implementation. 

thanx
Narayanan

> jdbc 4.0 specific Blob and Clob method support
> ----------------------------------------------
>
>          Key: DERBY-796
>          URL: http://issues.apache.org/jira/browse/DERBY-796
>      Project: Derby
>         Type: New Feature
>   Components: JDBC
>     Versions: 10.2.0.0
>  Environment: jdbc 4.0 on all platforms
>     Reporter: V.Narayanan
>     Assignee: V.Narayanan
>     Priority: Minor
>      Fix For: 10.2.0.0
>  Attachments: lob.diff, lob_1.diff
>


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