Search |
||
A Read-only database in a jar?Posted by bernt on October 3, 2005 at 2:26 PM PDT
In Norway, all wines and liquors and beers stronger than 4.75 volume percent are sold at Vinmonopolet a state monopoly (Literally "The Wine Monopoly").
What has this to do with a read only database? Well, I once had an application on my Palm which contained Vinmonopolet's complete catalogue. Every now and then I updated the catalogue and was the able to search for information about their products (they carry a very impressive selection of good wines). The querying possibilities was somewhat limited. E.g. I could only search for wines within certain fixed price ranges, search for wines from only one country/district/area etc. What I really wanted was an application with poweful searching possibilities: E.g. Show all Pinotage wines from South Africa and all Shiraz wines from Australia where the price is between NOK 130 and 150. Since I'm a programmer this power could be given me by the means of SQL. Yes, I admit that it would not be very user-friendly for the average wine-consumer, but one could imagine SQL queries as an "advanced option". Ok. To the point. This application could be implemented as a small Java application on top of a SQL database. And yes, it's easy to make such an application with Apache Derby. The follwing list shows roughly the steps needed to implement my favourite wine application:
2005-10-04 11:20:00 CEST: jwenting's comment is kind of right, so I changed from "read only database" to "read only database in a jar" in title and blurb to make the blog entry more precise. »
Related Topics >>
Databases Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|