Forums Register Login

Convert List to ResultSet?

+Pie Number of slices to send: Send
Hi
I need to convert List to ResultSet, how can I do that?

Thank you..
+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
This is because I need the meta data from the result set.
+Pie Number of slices to send: Send
 

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 ]
+Pie Number of slices to send: Send
Because I use Oracle TopLink to connect to database.
[ July 26, 2007: Message edited by: abu alfouz ]
+Pie Number of slices to send: Send
 

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 ?
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 8045 times.
Similar Threads
Result set / Arraylist
Convert List to ResultSet?
returning a ResultSet?
Convert List to ResultSet?
Iterate through a ResultSet
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 20:37:52.