dcsimg
Which collection should be used for Extract from database
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Madhav_Yadav
Posted On:   Monday, July 16, 2007 05:41 AM

If my database have more then 1000 rows and i want to extract these rows and display on a jsp page. Then Which collection will be use and why will be use.

Re: Which collection should be used for Extract from database

Posted By:   Anonymous  
Posted On:   Monday, July 16, 2007 08:45 AM

it depends on the type of the data you receive from the database.
If all rows are unique (in the sense not the primari key i mean the hashcode), then you can got for HashSet or ArrayList.

I think any way you want to display all of them in the form of a table. go for Arraylist.
About | Sitemap | Contact