If you are not sure of number of columns, you cannot create a collection of objects becuase the object need to be changed every time a DB change occurs, instead you can store them as ArrayList of ArrayList. But this works only if you are not applying any logic to the data.
HTH