Its better you will use RDBMS.I don't think flat files will helps..it may create problems.
when you have to access the large data.You have to write a program to sort the elements while retrieving them from files.which is possible by simple Oracle command.
Have you considered that -for reminders to work- this application would need to be running and internet-connected at all times?
Also, being a single-user application with a limited dataset, a database would be overkill in my opinion. Structured files (maybe properties files or XML) would work just fine. There's nothing wrong with using a proper database if you want to learn about them, but since you admit to being a beginner, it's a complication you should avoid for the time being.
It's possible to use SQLite into an application. There is available a Firefox extension called SQLite Manager, this extension is very useful to create and edit SQLite databases. It's mandatory to add sqlitejdbc jar into the project. The following code will display the records:
JavaDB I believe comes with the Sun....errrr Oracle...JDK version 6. It is a nice compact (about 2MB footprint) but powerful 100% Java and 100% FREE database system based on Apache Derby (Ok well it probably really mostly IS Derby rebranded by Sun/Oracle). It is another alternative you can consider in addition to the previously mentioned SQLLite. If a database driven application is what you want to start on and you feel you're up to it, don't let nay-sayers stop you. As long as you're learning and having fun at the same time, that's what it's all about.
Suhrid Karthik wrote:You don't always need a database to store data. Why not just use flat files for your app ?
A DB makes things simple in terms of retrieving the data. Flat files might require some processing, parsing to be done by the programmer.
Best I can suggest is to install Netbeans and then follow the tutorial to create a DB application from Netbeans. When you download the complete Netbeans version- It comes bundled with an App server, DB as well.
As you are a beginner, I would say you keep your application as simple as it can be. Once you are able to run that application, then may be you can add up the database or Hibernate (ORM) and other things as per your requirement.
So any of the below solutions would be enough to start of:
You don't always need a database to store data. Why not just use flat files for your app ?
Technically speaking, you could even just use serialized objects.
By the way, its a nice idea. Surely you will have learning if you take it seriously..
I came to this world on a Learner's License
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop