Solved

Java Employee Database

Posted on 2002-07-21
3
307 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
ID: 7167581
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
ID: 8951593
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 108
micro services vs rest web services 16 106
starter POM and spring-boot-starter,  spring-boot-web 2 56
java jdbc batch example 8 35
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)
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

809 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