• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write SQLOutput.writeArray?

 
Vicky Roy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am writing to some procedure through SQLOutput stream from Java. The data structure holds a List also apart than standard types.
I have created below sample entity. Here in class A, how to implement the writeSQL method where I need to write List of Bs. Also let me know how you will read the same object.

I searched over the net but didn't find any clue. Any clue/pointer will be highly appreciated.



Thanks,
Vicky
 
Roel De Nijs
Sheriff
Posts: 10763
148
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you should first read the javadoc of the SQLOutput interface, and in particular this part
Java API Specification, SQLOutput wrote:The output stream for writing the attributes of a user-defined type back to the database. This interface, used only for custom mapping, is used by the driver, and its methods are never directly invoked by a programmer.


That might explain why you didn't find any clue on the net...
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!