Can I Cast a ResultSet to an ArrayList/DTO?

2010-01-12 Thread Russ
Is there any way to cast a JDBC ReultSet to an ArrayList of Strings (or another type of DTO) with a single assignment statement? Otherwise I end up iterating through the ResultSet twice - once on the server to assign its values to an ArrayList of DTOs - and once after its returned to the client

Re: Can I Cast a ResultSet to an ArrayList/DTO?

2010-01-12 Thread Lothar Kimmeringer
Russ schrieb: Is there any way to cast a JDBC ReultSet to an ArrayList of Strings [...] Is this (or something similar) possible? No Regards, Lothar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Can I Cast a ResultSet to an ArrayList/DTO?

2010-01-12 Thread Sean
No, there isn't a way to do that. In the great scheme of things, cycling through hundreds of items twice, isn't that big of a time sink. If it's taking too long from request to display, think about cutting up your query to only get say, 50 items. Display those and only grab the next 50 when