• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to convert from database to Java Collection?

 
ramanuja varun
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to persist data from a database to a java collection(eg list)

i have a table in oracle and want to do some processing on it in java. how to get it in collections

[Please UseAMeaningfulSubjectLine - Dave]
[ February 26, 2008: Message edited by: David O'Meara ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no "get results as collection" method in JDBC. You will need to iterate through a ResultSet adding each record to whichever Collection implementation you want.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic