aspose file tools*
The moose likes Beginning Java and the fly likes What's the java equivalent of database rate tables? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What Watch "What New topic
Author

What's the java equivalent of database rate tables?

Lesley McKnight
Greenhorn

Joined: Jan 29, 2004
Posts: 2
Hi, I'm very much a beginner! I am a developer familiar with using database tables to store rates. The rate lookup depends on a number of variables. How would you do a similar sort of thing in Java? I'm just doing a startup java vourse and so far the only thing I can think of to do is to use a Hashtable with a combined key (of the variables I would use in the Oracle SQL) for the lookup. Am I completely on the wrong track here? I'd appreciate some advice. Thanks
eammon bannon
Ranch Hand

Joined: Mar 16, 2004
Posts: 140
I suppose you could do this - a Hashtable is a collection which can be used to store data, specifically key:value pairs (kind of like a DB table with 2 fields). However, there is one huge difference - using a DB will persist the data, putting the data in a Hashtable will not. So your java application stops, your data is lost.
If you need a way to do database operations in Java, have a look at JDBC on the Sun site.
Lesley McKnight
Greenhorn

Joined: Jan 29, 2004
Posts: 2
Thanks, I'll have a look.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What's the java equivalent of database rate tables?
 
Similar Threads
Netbeans doesn't show tables in SQLServer 2005
Connecting To Database
Building charts and graphs
Looking for a good tool for MYSQL
Getting started in LDAP