AntiEarnie
Technical User
I am at a bit of a loss on this. How the heck do you write a generic class/function/whatever that will convert a ResultSet with an arbitratry number of Rows and Columns into some sort of container for data manipulation?
In VB I just use the GetRows method on the recordset and it generates a 2d array that I can manipulate to my hearts desire. I am fairly sure java has something similiar but darn if I can find it. ArrayLists seem like a close match but it appears that the colums have to be known at compile time (at least in every working example I have found thats the case). I suppose I could do something along the lines of a list of lists but I am unsure how to get to the items in the nested list.
In VB I just use the GetRows method on the recordset and it generates a 2d array that I can manipulate to my hearts desire. I am fairly sure java has something similiar but darn if I can find it. ArrayLists seem like a close match but it appears that the colums have to be known at compile time (at least in every working example I have found thats the case). I suppose I could do something along the lines of a list of lists but I am unsure how to get to the items in the nested list.