๐ Library Management System -Java
A Library Management System made using the concepts of Object Oriented Analysis and Design. Minimal Code is written in the GUI and the entities are decoupled as well. The interface is console based. This project was designed during the course "Object Oriented Analysis and Design CS309".
The Class Diagram of the project is also provided along with the Database Schema file. The class diagram file can be opened using Star UML.
Class Diagram
Note: After Refactoring, new Class "HoldRequestOperations" is added to the above structure which lies in between the HoldRequest class and Book class. This class removes the bidirectional dependency between HoldRequest and Book. More details mentioned here
Interface
Actors:
The actors include the following:
- Librarian
- Checkout Clerk
- Borrower
- Administrator
Use Cases:
After determining the actors, the second step in use case analysis is to determine the tasks that each actor will need to do with the system. Each task is called a use case because it represents one particular way the system will be used.
In other words, only those use cases are listed that actors will need to do when they are using the system to solve the customerโs problem.
Borrower:
- โ Search for items by title.
- โ ... by author.
- โ ... by subject.
- โ Place a book on hold if it is on loan to somebody else.
- โ Check the borrowerโs personal information and list of books currently borrowed.
Checkout Clerk:
- โ All the Borrower use cases, plus
- โ Check out an item for a borrower.
- โ Check in an item that has been returned.
- โ Renew an item.
- โ Record that a fine has been paid.
- โ Add a new borrower.
- โ Update a borrowerโs personal information (address, telephone number etc.).
Librarian:
- โ All of the Borrower and Checkout Clerk use cases, plus
- โ Add a new item to the collection.
- โ Delete an item from the collection.
- โ Change the information the system has recorded about an item.
Administrator:
- โ Add Clerk.
- โ Add Librarian.
- โ View Issued Books History.
- โ View All Books in Library.
How to Run
1- Install these:
- Java SE Development Kit 8 (JDK 8)
- After installing JDK 8, install NetBeans IDE
2- Open NetBeans IDE. Click on File -> Open Project and browse to the downloaded folder named "Project" and select it. It will load the NetBeans project.
3- Now everything is setup except the Java DB (Derby) Database of NetBeans. So, follow these steps to setup the database:
Step 1: In the Netbeans Window, there is a tab named "Services" on the left. Select it. Then right click on JavaDB > Properties and change database location to "Database" folder downloaded with this repository (its placed besides the "Project" folder).
Step 2: After that a database named LMS will show up under JavaDB tab. Now Right Click Databases > New Connection and select Java DB Network and click Next.
Step 3: Provide the following database crendentials in the next popup and click Next.
Host: localhost
Port: 1527
Database: LMS
User Name: haris
Password: 123
Step 4: Now just click Next for the rest of the windows. After all this the database connection is made. Make sure that you connect with the database before running the project by right clicking on the connection and selecting connect. Now you are ready to run the project!
Note
The password for Administrative Functions is lib. The admin adds new clerks and librarian, then they both do the rest of the functions.
Haris - Maker of Things
Hey there, I'mUltimate Facebook Scraper (one of the best software to collect Facebook data for research & analysis)
Creator of๐ Connect
๐ค Consulting / Coaching
Stuck with some problem? Need help in solution development, guidance, training or capacity building? I am a Full Stack Engineer turned Project Manager with years of technical and leadership experience in a diverse range of technologies and domains. Let me know what problem you are facing at [email protected] and we can schedule a consultation meeting to help you get through it.
๐จโ๐ป Technical Skills & Expertise
- Development of Web Applications, Mobile Applications, and Desktop Applications
- Development of Machine Learning/Deep Learning models, and deployment
- Web Scraping, Browser Automation, Python Scripting
โค๏ธ Support / Donations
If you or your company use any of my projects, like what Iโm doing or have benefited from my projects in any way then kindly consider backing my efforts.
For donations, you can follow these simple steps:
1) Free signup at TransferWise using this link: https://transferwise.com/invite/u/harism95. (Signing up through this link will save you from any transcation fee on the donation)
2) Select the amount e.g (15$) and choose the receiving/recipient's currency to be PKR. It supports multiple payment options (credit card, debit card, wire transfer etc)
3) Then it will show my info as the recipient, select it. If my name isn't shown, then type my email [email protected] in recipients.
4) Choose the reason for transfer to the one that suits you the most (in this case it could be 'General expenses') and in the reference section, you can mention 'Support'
If you face any issue in sending donation then feel free to get in touch with me at [email protected]
Thank you for your contribution!
๐
Authors You can get in touch with us on our LinkedIn Profiles:
Haris Muneer
You can also follow my GitHub Profile to stay updated about my latest projects:
Maham Amjad
You can also follow my GitHub Profile to stay updated about my latest projects:
If you liked the repo then kindly support it by giving it a star
Contributions Welcome
If you find any bug in the code or have any improvements in mind then feel free to generate a pull request.
Issues
If you face any issue, you can create a new issue in the Issues Tab and I will be glad to help you out.
License
Copyright (c) 2018-present, harismuneer, MahamAmjad