Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how can I have multiple return from this method?  RSS feed

 
sahar sa
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I want the select method to select some data from DB and then return it . but i dont know how can I return multiple or a row of data ?
can you give me an idea how can i do it?

here is the code which i used for my select query:


thnx,
Sahar.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to go through your ResultSet and assign its values to a Collection of objects.

(And you've probably already noticed, but that is a delete statement, not a select query)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!