Two Laptop Bag
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: What's the java equivalent of database rate tables?
 
Similar Threads
Connecting To Database
Building charts and graphs
Getting started in LDAP
Looking for a good tool for MYSQL
Netbeans doesn't show tables in SQLServer 2005