Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Oracle JDBC Driver

 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Could you plese help me to give an url about the API of Oracle JDBC Driver.
It is because I want to know whether oracle.jdbc.driver.OracleBlobInputStream is subclass of java.io.ByteArrayInputStream or not..

thanks
daniel
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34372
345
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Daniel,
Are you using an IDE? Most will let you view the inheritance hierarchy for a class.

Note that it is best not to use database specific classes if it isn't necessary. What are you trying to do?
 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne,
I am developing an application using Struts, SpringFramework and Hibernate and alse Oracle as database.
In my application there is feature to upload document and it is saved into BLOB.
I have problem about why there is no error but that document is not saved into database.
When I retrieved again that data, The length of content is correct and all byte is 0 (zero). So I think there is problem when saving that BLOB.
Then I do a tests to know what the problem is.

After I save the document, I use findByPk method to retrieve again that document. And I get java.io.ByteArrayInputStream as implementation object of InputStream interface.

But when I use findByPk (not after saving the document), I get oracle.jdbc.driver.OracleBlobInputStream as implementation object of InputSteram interface.

So.. that is why I ask about that specific class in Oracle JDBC driver...

Correct me if I am wrong..

thanks
daniel



When I traced my code, there is different implementation object of InputStream interface.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic