Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HashMap Into MySQL Database

807580Dec 30 2009 — edited Dec 31 2009
Hello, I was looking for some direction of what the best way to get a hashmap into a MySQL DB would be. The HashMap is dynamic and is generated on the fly so I never know the exact size / how big the index is.

I think the best way would be to iterate through the hashmap and insert each key and value into the MySQL database but the problem is the key value is random, between 000 and 999. So would just iterating through the hashmap be the most affective way to do this?

Any help is greatly appreciated!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 28 2010
Added on Dec 30 2009
3 comments
2,473 views