aspose file tools*
The moose likes JDBC and the fly likes how to retrieve each row by make each columns as objects ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to retrieve each row by make each columns as objects ?" Watch "how to retrieve each row by make each columns as objects ?" New topic
Author

how to retrieve each row by make each columns as objects ?

Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 439
hi, good day, say for example if the resultSet return 2 rows of records

row 1 : name1, age1
row 2 : name2, age2

is it possible we can make it save to object for each columns ?
for example , name1 in one object, age1 as another object also for other as well and each row columns then save into List

can we do that ? thank you for your guidance
Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
Yes.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to retrieve each row by make each columns as objects ?