I need a ResultSet for quick database export with openCSV.
What I have is a List that is retrieved from a named hibernate query.
How can I convert this list to resultset, in order to save it?
ty
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ResultSet is an interface. So, the only thing you have to do is create your own implementation, using your list values.
Then, you create an instance of MyResulSet with your list, and give it to the OpenCSV API.