• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Convert List to ResultSet?

 
abu alfouz
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I need to convert List to ResultSet, how can I do that?

Thank you..
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain why? Understanding this would help us provide an answer.

The problem here is that there is no direct mapping from a List to a ResultSet. Even if the List contained all of the same object and you wanted to map each of these to a row in the ResultSet, this still isn't straight forward. There are, however tools like ORM (object-relational mapping) tools that can do some of the work for you. Does this help?
 
abu alfouz
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is because I need the meta data from the result set.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by abu alfouz:
This is because I need the meta data from the result set.


It's not possible.You can get metadata information from ResultSets obtained as a result of execution.

If you have all the database credentials then why do not you follow the standard procedure to connect to the database and get the metadata information using JDBC.
;)
[ July 26, 2007: Message edited by: Rahul Bhattacharjee ]
 
abu alfouz
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because I use Oracle TopLink to connect to database.
[ July 26, 2007: Message edited by: abu alfouz ]
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by abu alfouz:
Because I use Oracle TopLink to connect to database.


TopLink is an ORM that David was talking about.
I have not used it , but I am sure that it has some way to give you the metadata information.
If there is nothing in Toplink then whether TopLink allows simple JDBC query ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic