• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to write SQLOutput.writeArray?  RSS feed

 
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: 11338
177
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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!