Solved

Java Employee Database

Posted on 2002-07-21
3
305 Views
Last Modified: 2008-01-09
Dear Java Specialists,

I need your expertise to help me on a Java program that i'm developing.
Its based on an Employee Records database that allows a person to
1. Add a new Employee Record
2. Delete an existing Employee Record
3. Modifying an existing Employee Record
4. Display of an Employee Record

The Employee class would have:
1. Name
2. Address
3. Employee ID(key)
4. Salary
5. Designation
6. Grade

A Manager class would extends from Employee with
1. Department
2. A group of Employees under his charge

I'm working towards having it developed with an GUI using packages from Awt/Swing.
The most challenging issues pertaining to coding was getting all the data from the file that was stored to be loaded into a data structure when the program starts.
(i.e. an Array of records of Vectors)
So, when the program terminates, the contents of the data structure should re-write the original.

Hence,I'm looking to the guidance and source examples that someone could provide through this channel.
Appreciate your time and have a nice day.
James.

0
Comment
Question by:jedi-ai
3 Comments
 
LVL 3

Accepted Solution

by:
gandalf94305 earned 60 total points
Comment Utility
Have a look at Smyle at http://www.drjava.de/smyle/ (a pure Java database implementing persistence for Java objects, no need to go through SQL) or MySQL at http://www.mysql.org (relational database with many code examples, there is also a JDBC driver).

If you are just interested in loading data, then using the application to manipulate that data in memory, and writing it back to persistent storage when the program terminates, consider using an XML representation. An XML parser with code examples can be found under http://xml.apache.org .

Cheers,
--gandalf.
0
 
LVL 35

Expert Comment

by:girionis
Comment Utility
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- points to gandalf94305

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now