dcsimg
Storing and retrieving records from a collection
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, August 28, 2003 09:12 PM

how do i store records from a database into a collection and
how do i use an iterator to retrieve them?

Re: Storing and retrieving records from a collection

Posted By:   Anonymous  
Posted On:   Friday, August 29, 2003 05:12 AM



Storing:
You can store records of a table using HashMap where each instance of HashMap would represent a row in that table.
HashMap stores data in key-value fashion : meaning coulumn-value in your case.After storing you add in a list.


Retrieving:
Next you iterate List to retrieive records which you have stored in HashMap.Pl see here.
About | Sitemap | Contact