0% found this document useful (0 votes)
10 views

LIBRARYREPORT

The document is a seminar report submitted by S Karthikeyan for the project titled 'Library Database Management System' as part of the requirements for a Master's degree in Computer Applications at Visvesvaraya Technological University. It outlines the project's purpose, which is to automate library management tasks such as tracking books, managing user information, and facilitating borrowing and returning processes. The report includes sections on system design, feasibility studies, tools and technologies used, and a detailed description of the proposed system's functionalities.

Uploaded by

karthikeyan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

LIBRARYREPORT

The document is a seminar report submitted by S Karthikeyan for the project titled 'Library Database Management System' as part of the requirements for a Master's degree in Computer Applications at Visvesvaraya Technological University. It outlines the project's purpose, which is to automate library management tasks such as tracking books, managing user information, and facilitating borrowing and returning processes. The report includes sections on system design, feasibility studies, tools and technologies used, and a detailed description of the proposed system's functionalities.

Uploaded by

karthikeyan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 55

Library Database Management System

A Seminar submitted in partial fulfillment of the requirement for the award of


degree of
MASTER OF COMPUTER APPLICATIONS

Of

Visvesvaraya Technological University


Submitted to

by

S KARTHIKEYAN

(1BO22MC042)
Under the guidance of

Prof R.Y NAIDU

HOD-MCA

Department of Master Of Computer Applications

Brindavan College Of Engineering


Dwarakanagar, Bagalur Main Road, Yelahanka, Bangalore – 560063
September-2023
DECLARATION

S Karthikeyan student of 2nd Semester MCA (VTU), Brindavan College Of


Engineering, Bangalore, bearing (USN NO 1BO22MC042) hereby declare that
the project entitled “Library Database Management System” has been carried
out by me under the supervision of Internal project Guide Prof R.Y Naidu ,
Professor , Dept. of MCA at Brindavan College of Engineering and and submitted
in partial fulfillment of the requirements for the award of the degree of Master of
Computer Application by Visvesvaraya Technological University during the
academic year 2022-2023. This report has not been submitted to any Organization/
University for any award of degree or Certificate.

Name : S Karthikeyan

SIGNATURE:
ACKNOWLEDGEMENT

I am thankful to the Principal of Brindavan College of Engineering- Dr. Bhagappa Sir, for
extending his support and encouraging us to take up this challenging Seminar [Mini Project
I extend my gratitude to the guide Prof. R Y Naidu, HOD of MCA Department, for his
constant support and encouragement. Sir has been helping me out in every aspect of my
project. I am grateful to you for all your help. I immensely thank my family for their
continuous support. My parents and brother have been the backbone to me and without
their suggestions; I would not have completed the project in the stipulated time. I am
thankful to and fortunate enough to get constant encouragement, support and guidance
from all Teaching staffs of MCA which helped us in successfully completing our project
work.

S KARTHIKEYAN

(1BO22MC042)
Brindavan College Of Engineering
Dwarakanagar, Bagalur Main Road, Yelahanka, Bengaluru-560063

Department of Master Of Computer Applications

CERTIFICATE
This is to certify that S KARTHIKEYAN (1BO22MC042) has completed his II
Semester Seminar[22MCA29] entitled “Library Database Management System
” as a partial fulfillment for the award of Master of Computer Applications degree,
during the academic year 2022-23 our supervision.

Guide HOD-MCA Principal

Examiners:

1.

2.
CONTENT

Chapter TITLE PAGE NO


Number

1. INTRODUCTION
1.1 About the Project 1

2. LITERATURE SURVEY

2.1 EXISTING AND PROPOSED SYSTEM 2

2.2 FEASIBILITY STUDY 5

2.3 TOOLS AND TECHNOLOGIES USED 7

2.4 HARDWARE AND SOFTWARE 10


REQUIREMENTS
3. SOFTWARE REQUIREMENTS SPECIFICATION

3.1 USERS 11

3.2 FUNCTIONAL REQUIREMENTS 12

3.3 NON-FUNCTIONALREQUIREMENTS 13
4. SYSTEM DESIGN 14

4.1 SYSTEM ARCHETUCUR AND DESCRIPTION 15

4.2 DATA-FLOW DIAGRAM 16

5. DETAILED DESIGN

5.1 USE CASE DIAGRAM 17

5.2 SEQUENCE DIAGRAM 18


5.3 ACTIVITY DIAGRAMS 19

5.4 DATABASE DESIGN 20

5.5 ENTITY-RELATIONSHIP 21

6. IMPLEMENTATION

6.1 SCREENSHORTS 22

6.2 SAMPLE CODE 24

7. SOFTWARE TESTING 29

7.1 TESTING CONCEPTS 30

7.2 TEST CASE 31

8. FUTURE ENHANCECEMENTS 32

9. CONCLUSION 33

10 BIBLIOGRAPHY 34
INTRODUCTION
PAGE -1
LIBRARY DATABASE MANAGEMENT SYSTEM

CHAPTER 1

INTRODUCTION

INTRODUCTION
The Library Management System is one of the many system that have been made to meet the
needs of modern libraries. Library management system are a great way to keep track of books,
add them, update information about them, look for the right book, lend it out, and get it back
when its time .the library management project is designed to organize and store information
about books based on what students need. The system helps both the students and the person in
charge of the library keep track of all the books that are there. It lets both the administrator and
the student look for the book they want to read and borrow.

library management is a project that manages and stores books information electronically
according to students needs. The system helps both students and library manager to keep a
constant track of all the books available in the library. It allows both the admin and the student to
search for the desired book. It becomes necessary for colleges to keep a continuous check on the
books issued and returned and even calculate fine. This task if carried out manually will be
tedious and includes chances of mistakes. These errors are avoided by allowing the system to
keep track of information such as issue date, last date to return the book and even fine
information and thus there is no need to keep manual track of this information which thereby
avoids chances of mistakes.

Thus this system reduces manual work to a great extent allows smooth flow of library activities
by removing chances of errors in the details.
LITERATURE SURVEY
PAGE -2
LIBRARY DATABASE MANAGEMENT SYSTEM

CHAPTER - 2

LITERATURE SURVEY
2.1 EXISTING SYSTEM AND PROPOSED SYSTEM

EXISTING SYSTEM : System Analysis is a details study of the various operations


performed by a system and their relationships within and outside of the system. Here the key
Question is:

What all problems exist in the present system? What must be done to solve the problem?
Analysis begins when a user or manager begins a study of the program using existing system.

In our Exiting system all the transaction of books are done manually. So taking more time for a
transaction like borrowing a book or returning book and also for searching of members and
books. Another major disadvantage is that to preparing the list of books borrowed and the
available books in the library will take more time, currently it is doing as a one day process for
verifying all records. So we can say,

 Fast report generation is not possible


 Tracing a book is difficult
 Information about issue/return of the books is not properly maintained
 No central database can be created as information is not available in database
 So after conducting the feasibility study we decided to make the manual library
management system to be computerized.

PROPOSED SYSTEM : Proposed system is an automated Library Management


System .Through our software user can add members, add books, search member, search books ,
update information, edit information, borrow and return books in quick time. our proposed
system has the following advantages.

 User friendly interface


 Fast access to database
 Less error
 More storage capacity
 Search facility
 Quick transaction
 Look and Feel Environment
PAGE -3
LIBRARY DATABASE MANAGEMENT SYSTEM

All the manual difficulties in managing the library have been rectified by implementing
computerization.

The various module of this system area:


 User login :
The name tells you exactly what this function does. It lets the user and the admin login.
The first login is always the administrator login, and the password is always admin.
 User menu :
The user menu shows all of the books that the user has checked out or borrowed.
 Admin menu :
The Administrator has access to everything in the system and can do things like add
books and users, delete and edit books, return books, get information about users and
books, and create and reset the database.
 Output menu :
The answers to all your queries will be shown on the output menu. When you first log
in, your ID and password would be for admin, and your username and password would
also be admin.
 View books :
By choosing this option, you’ll see information about the books in the table, such as the
title, genre, price, subject, author, copyright, publisher, edition pages, ISBN, and other
information that may be in the database.
 View Members, Students, and Users :
 The system displays the users along with their information, including who would
receive the books, their current status (issued, returned, pending).
 Add user :
 To add a new user system, click “Add User” and choose whether the new user will be
an administrator or a regular user. Under “view users,” you can see information about all
of the users.
 Issue a book :

To issue a student, member, or user a book, you must click the “issue book” button and
enter the book’s details, such as the book’s id, the user’s id, the number of days the book can
be used, the date it must be returned, etc. After putting in the necessary information, you
click “submit,” which finishes the process.

 View issued books: After you issue the book using the steps in the previous paragraph,
you can use this feature to see all the books that have been issued along with their details.
 Return books: After you choose the option to return books, you will need to enter the
book’s ID and choose a date from the calendar.
 Add books :

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -4
LIBRARY DATABASE MANAGEMENT SYSTEM

All the information about the book, like its name, price, and genre, can be added to the system
here. After that, you can see it in the “view books” section.

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -5
LIBRARY DATABASE MANAGEMENT SYSTEM

2.2 FEASIBILITY STUDY


Technical Feasibility:

Hardware Requirements: Assess the hardware needed to run the LMS. This includes servers,
computers, networking equipment, and any specialized hardware like barcode scanners or RFID
readers.

Software Requirements: List the software components required for the LMS. This may
include the database management system, programming languages, web servers, and any third-
party libraries or frameworks.

Technical Expertise: Evaluate whether your team possesses the required technical skills to
develop and maintain the LMS or if you need to hire external expertise.

Integration with Existing Systems: Determine if the LMS needs to integrate with other
existing systems like student information systems, financial systems, or authentication systems.

Operational Feasibility:

User Requirements: Identify the needs of the library staff and patrons. Conduct surveys or
interviews to gather their input on the features and functionality they require.

Workflow Analysis: Analyze the current library operations and workflows to understand how
the LMS will fit into these processes and potentially improve them.

Change Management: Assess how well the library staff can adapt to the new system and
whether additional training or support will be needed.

Economic Feasibility:

Cost Estimation: Calculate the total cost of developing and implementing the LMS. This
includes hardware, software, development costs, and ongoing maintenance expenses.

ROI Analysis: Estimate the return on investment (ROI) by comparing the expected benefits,
such as improved efficiency and reduced operational costs, against the total project cost.

Funding Sources: Determine where the funds will come from to finance the project. This
could include budget allocations, grants, or loans.

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -6
LIBRARY DATABASE MANAGEMENT SYSTEM

Scheduling Feasibility: Project Timeline: Develop a detailed project schedule that includes
milestones and deadlines for each phase of development.

Resource Availability: Ensure that the necessary resources, including human resources, are
available to meet the project timeline.

Risks and Contingency Plans: Identify potential risks that could delay the project and create
contingency plans to mitigate them.

Legal and Ethical Feasibility: Compliance: Ensure that the LMS complies with all legal and
regulatory requirements, such as data privacy laws and copyright regulations.

Ethical Considerations: Consider ethical aspects, such as data security and user privacy, to
build a system that respects user rights and expectations.

Environmental Feasibility: Consider the environmental impact of the LMS, such as energy
consumption, hardware disposal, and paper reduction if it's intended to promote digitalization.

Alternative Solutions: Evaluate alternative solutions, such as purchasing a commercial off-


the-shelf (COTS) library management system or using open-source software, and compare them
with the proposed custom development.

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE --7
LIBRARY DATABASE MANAGEMENT SYSTEM

2.3 TOOLS AND TECHNOLOGIES USED


Apache Server :
XAMPP (cross-platform Apache, MySQL, PHP, and Perl): A Developer's Swiss Army Knife X
AMPP is a versatile and user-friendly software package that provides a local development
environment for web developers and designers. It bundles several essential components for web
development, making it easier to create, test, and debug websites and web applications. Here are
some key points to note about XAMPP:

 Cross-Platform Compatibility: XAMPP is available for Windows, macOS, and Linux,


making it a cross-platform solution for developers on different operating systems. Web
Server (Apache): Apache is a robust and widely used web server that's included in
XAMPP. It allows you to simulate a web server environment on your local machine,
enabling you to test your web applications without the need for an internet connection.
Database Server (MySQL): XAMPP includes MySQL, a popular open-source relational
database management system. You can create and manage databases locally, which is
crucial for web application development.
 Server-Side Scripting (PHP): PHP is a server-side scripting language commonly used for
web development. XAMPP incorporates PHP, allowing you to run PHP scripts and
develop dynamic web applications.
 phpMyAdmin: This web-based tool is included for managing MySQL databases. It offers
a graphical interface for creating, editing, and querying databases, making database
management more accessible.

NetBeans IDE: A Versatile Open-Source Development Environment NetBeans is a popular


open-source Integrated Development Environment primarily used for Java development but also
supports other languages like PHP, C++, HTML, and more. Here are some key points to note
about NetBeans IDE:

 Java Development: It has robust features for Java development, including code templates,
project management, and a graphical UI builder (formerly known as Matisse) for Swing
applications.
 Smart Code Editing: Features like code completion, syntax highlighting, and code
templates enhance productivity and reduce coding errors.
 Easy-to-Use GUI Builder: The GUI builder simplifies the creation of user interfaces for
desktop and web applications with drag-and-drop functionality.
 Debugger: NetBeans includes a powerful debugger with features like breakpoints,
watches, and step-by-step execution for efficient debugging.

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE --8
LIBRARY DATABASE MANAGEMENT SYSTEM

 Version Control Integration: It integrates with popular version control systems like Git,
SVN, and Mercurial to manage and track code changes.
 Apache NetBeans: The Apache Software Foundation has taken over the development and
maintenance of NetBeans, ensuring its continued growth as an open-source project.
 Cross-Platform: NetBeans is available for Windows, macOS, Linux, and other platforms,
making it accessible to developers using various operating systems.
 Web Development: It offers tools for web development, including HTML, CSS,
JavaScript, and support for popular web frameworks.
 Enterprise Development: NetBeans supports enterprise technologies like Java EE,
providing tools for building scalable and robust enterprise applications.
 Mobile Development: While it was particularly popular for Java ME (Mobile Edition)
development in the past, the focus has shifted to other IDEs for mobile app development.
 Java is a versatile and widely-used programming language known for its platform
independence, robustness, and extensive ecosystem. Here's a concise note on Java:

Java:
A High-Level, Object-Oriented Programming Language Platform Independence: Java is
platform-independent, meaning you can write code once and run it on multiple platforms
without modification. This is achieved through the use of the Java Virtual Machine
(JVM), which executes Java bytecode.
 Object-Oriented: Java is an object-oriented programming language, which promotes the
organization of code into reusable objects with attributes and behaviors. It follows the
principles of encapsulation, inheritance, and polymorphism.
 Robust and Secure: Java is designed with a focus on reliability and security. It includes
features like automatic memory management (garbage collection) to prevent memory
leaks and a strong type system to catch errors at compile time.
 Rich Standard Library: Java comes with a comprehensive standard library (Java Standard
Library) that provides pre-built classes and packages for tasks like I/O, networking, data
structures, and GUI development.
 Multi-Threaded: Java supports multithreading, allowing you to create concurrent and
parallel programs easily. This is crucial for developing responsive and efficient
applications.
 Write Once, Run Anywhere (WORA): Java's WORA philosophy allows developers to
create applications that can run on various platforms without modification, provided a
compatible JVM is available for each platform

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE --9
LIBRARY DATABASE MANAGEMENT SYSTEM

 Popular for Web and Enterprise: Java is widely used for building web applications,
enterprise-level software, and backend services. Technologies like Java EE (Enterprise
Edition) provide tools and APIs for enterprise application development.
 Community and Ecosystem: Java has a large and active developer community. It benefits
from a vast ecosystem of libraries, frameworks, and tools, such as Spring, Hibernate, and
Apache Maven.

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -10
LIBRARY DATABASE MANAGEMENT SYSTEM

2.4 HARDWARE AND SOFTWARE REQUIREMENTS

Hardware requirements:
 Processor: Intel core i3 -3320M
 Processor speed: 1.0GHz or above
 RAM: 1 GB RAM or above
 Hard disk Capacity : 20 GB hard disk or above
 Monitor Make : Color monitor

Software requirements :
 Operating System : Windows 10
 Web Server : Apache Web Server
 Language: java
 Database : Mysql
 Additional tools : Netbean

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


SOFTWARE REQUIREMENTS SPECIFICATION
PAGE -11
LIBRARY DATABASE MANAGEMENT SYSTEM

CHAPTER – 3

SOFTWARE REQUIREMENTS SPECIFICATION


3.1 USERS

User Authentication and Access Control:


The system shall provide user authentication to ensure secure access to the LMS. Users should
be categorized based on roles (e.g., librarian, student, faculty) with different access privileges.
Password policies, including complexity and expiration, should be enforced. User Registration
and Profile Management: Users should be able to register for an LMS account with required
personal information. Users can edit and update their profiles, including contact details, profile
pictures, and notification preferences. Password recovery and reset functionality should be
available.

Search and Discovery:


Users should be able to search for library resources (books, journals, multimedia) using various
criteria (e.g., title, author, ISBN). The system shall provide advanced search options, including
filters and sorting. Users should receive search results with detailed information about available
resources.

Borrowing and Returning: Registered users can borrow library items, specifying the due
date. The system should provide a process for renewing borrowed items and handling return
transactions. Users will receive notifications about upcoming due dates and overdue items.

Reservation and Hold Requests: Users should be able to reserve and place holds on items
that are currently checked out. The system will notify users when reserved items become
available. Check-in and Check-out: Library staff (librarians) will have the ability to check items
in and out on behalf of users. The system should generate receipts for checked-out items.

User History and Recommendations: Users can view their borrowing history and
request recommendations based on their reading preferences. The LMS may provide
personalized recommendations for books and resource

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -12
LIBRARY DATABASE MANAGEMENT SYSTEM

3.2 FUNCTIONAL REQUIREMENTS

NORMAL USER
1. USER LOGIN
Description Of Feature
This feature used by the user to login into system. They are required to enter user id and
password before they are allowed to enter the system .The user id and password will be verified
and if invalid id is there user is allowed to not enter the system.
Functional requirements
-user id is provided when they register
-The system must only allow user with valid id and password to enter the system
-The system performs authorization process which decides what user level can acess to.
-The user must be able to logout after they finished using system.

2 .REGISTER NEW USER


Description Of Feature
This feature can be performed by all users to register new user to create account.
Functional requirements
-System must be able to verify information
-System must be able to delete information if information is wrong

3. REGISTER NEW BOOK


Description Of Feature
This feature allows to add new books to the library
Functional requirements
-System must be able to verify information
-System must be able to enter number of copies into table.
- System must be able to not allow two books having same book id.

4.SEARCH BOOK
Description Of Feature
This feature is found in book maintenance part . we can search book based on book id ,
book name , publication or by author name.
Functional requirements
- System must be able to search the database based on select search type
- System must be able to filter book based on keyword enterd
- System must be able to show the filtered book in table view
Functional requirements
-System should be able to add detailed information about events .
-System should be able to display information on notice board available in the homepage.

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -13
LIBRARY DATABASE MANAGEMENT SYSTEM

3.3 NON-FUNCTIONALREQUIREMENTS

NON FUNCTIONAL REQUIREMENTS


 Product Requirements
EFFICIENCY REQUIREMENT
When a library management system will be implemented librarian and user will
easily access library as searching and book transaction will be very faster .
RELIABILITY REQUIREMENT
The system should accurately performs member registration ,member validation ,
report generation, book transaction and search
USABILITY REQUIREMENT
The system is designed for a user friendly environment so that student and staff of
library can perform the various tasks easily and in an effective way.
ORGANIZATIONAL REQUIREMENT
IMPLEMENTATION REQUIREMNTS
In implementing whole system it uses html in front end with php as server side
scripting language which will be used for database connectivity and the backend ie
the database part is developed using mysql.
DELIVERY REQUIREMENTS
The whole system is expected to be delivered in six months of time with a weekly
evaluation by the project guide.

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


SYSTEM DESIGN
PAGE -14
LIBRARY DATABASE MANAGEMENT SYSTEM

CHAPTER – 4

SYSTEM DESIGN
4.1 SYSTEM ARCHITECTURE AND DESCRIPTION

Table Design:
Various Tables To Maintain Information

 Library Table From Database

 Book Table From Database

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -15
LIBRARY DATABASE MANAGEMENT SYSTEM

 Issue Book Details Table

 Student Details Table

 Admin Table from Database

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -16
LIBRARY DATABASE MANAGEMENT SYSTEM

4.2 DATA-FLOW DIAGRAM

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


DETAILED DESIGN
PAGE -17
LIBRARY DATABASE MANAGEMENT SYSTEM

CHAPTER – 5

DETAILED DESIGN

5.1 USE CASE DIAGRAM

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -18
LIBRARY DATABASE MANAGEMENT SYSTEM

5.2 SEQUENCE DIAGRAM

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -19
LIBRARY DATABASE MANAGEMENT SYSTEM

5.3 ACTIVITY DIAGRAM

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -20
LIBRARY DATABASE MANAGEMENT SYSTEM

5.4 DATABASE DESIGN

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -21
LIBRARY DATABASE MANAGEMENT SYSTEM

5.5 ENTITY-RELATIONSHIP

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


IMPLEMENTATION
PAGE -22
LIBRARY DATABASE MANAGEMENT SYSTEM

CHAPTER – 6

IMPLEMENTATION

6.1 SCREENSHORTS

Login: Signup:

HomePage:

ManageBook: ManageStudent:

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -22
LIBRARY DATABASE MANAGEMENT SYSTEM

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -23
LIBRARY DATABASE MANAGEMENT SYSTEM

IssueBook: ReturnBook:

ViewRecords: ViewIssuedBook:

Defaulter:

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -24
LIBRARY DATABASE MANAGEMENT SYSTEM

6.2 SAMPLE CODE

 Issue Book :
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Date;
import javax.swing.JOptionPane;

public class IssueBook extends javax.swing.JFrame {


public IssueBook() {
initComponents();
}
public void getBookDetails(){
int bookId = Integer.parseInt(txt_bookId.getText());
try{
Connection con = DBConnection.getConnection();
PreparedStatement pst = con.prepareStatement("select * from book_details where book_id = ?
");
pst.setInt(1, bookId);
ResultSet rs = pst.executeQuery();
if(rs.next()){
lbl_bookId.setText(rs.getString("book_id"));
lbl_bookName.setText(rs.getString("book_name"));
lbl_author.setText(rs.getString("author"));
lbl_quantity.setText(rs.getString("quantity"));
}else{
lbl_bookError.setText("invalid book id");
}
}catch (Exception e){
e.printStackTrace();
}

}
public void getStudentDetails(){
int studentId = Integer.parseInt(txt_studentId.getText());
try{
Connection con = DBConnection.getConnection();
PreparedStatement pst = con.prepareStatement("select * from student_details where
student_id = ? ");
pst.setInt(1, studentId);
ResultSet rs = pst.executeQuery();
lbl_studentName.setText(rs.getString("name"))

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -25
LIBRARY DATABASE MANAGEMENT SYSTEM

lbl_course.setText(rs.getString("course"));
lbl_branch.setText(rs.getString("branch"));
}else{
lbl_studentError.setText("invalid student id");
}
}catch (Exception e){
e.printStackTrace();
}
}
public boolean IssueBook(){
boolean isIssued = false;
int bookId = Integer.parseInt(txt_bookId.getText());
int studentId = Integer.parseInt(txt_studentId.getText());
String bookName = lbl_bookName.getText();
String studentName = lbl_studentName.getText();
Date uIssueDate = date_issueDate.getDatoFecha();
Date uDueDate = date_dueDate.getDatoFecha();
Long l1 = uIssueDate.getTime();
Long l2 = uDueDate.getTime();
java.sql.Date sIssueDate = new java.sql.Date(l1);
java.sql.Date sDueDate = new java.sql.Date(l2);
try{
Connection con = DBConnection.getConnection();
String sql = "insert into issue_book_details(book_id,book_name,student_id,student_name,"
+ " issue_date,due_date,status) values(?,?,?,?,?,?,?)";
PreparedStatement pst = con.prepareStatement(sql);
pst.setInt(1, bookId);
pst.setString(2, bookName);
pst.setInt(3, studentId);
pst.setString(4, studentName);
pst.setDate(5, sIssueDate);
pst.setDate(6, sDueDate);
pst.setString(7, "pending");
int rowCount = pst.executeUpdate();
if (rowCount > 0){
isIssued = true;
}else{
isIssued = false;
}
}catch (Exception e){
e.printStackTrace();
}
int bookId = Integer.parseInt(txt_bookId.getText())

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -26
LIBRARY DATABASE MANAGEMENT SYSTEM

try{
Connection con = DBConnection.getConnection();
String sql = "update book_details set quantity = quantity - 1 where book_id = ? ";
PreparedStatement pst = con.prepareStatement(sql);
pst.setInt(1, bookId);
int rowCount = pst.executeUpdate();
if (rowCount > 0){
JOptionPane.showMessageDialog(this, "book count updated");
int initialCount = Integer.parseInt(lbl_quantity.getText());
lbl_quantity.setText(Integer.toString(initialCount - 1));
}else{
JOptionPane.showMessageDialog(this, "can't update the count");
}
}catch (Exception e){
e.printStackTrace();
}
}
public boolean isAlreadyIssued(){
boolean isAlreadyIssued = false;
int bookId = Integer.parseInt(txt_bookId.getText());
int studentId = Integer.parseInt(txt_studentId.getText())
try{
Connection con = DBConnection.getConnection();
String sql = "select * from issue_book_details where book_id = ? and student_id = ? and status =
? ";
PreparedStatement pst = con.prepareStatement(sql);
pst.setInt(1, bookId);
pst.setInt(2, studentId);
pst.setString(3, "pending");
ResultSet rs = pst.executeQuery();
if (rs.next()){
isAlreadyIssued = true;
}else{
isAlreadyIssued = false;
}
}catch (Exception e){
e.printStackTrace();
}
return isAlreadyIssued;}
} catch (InstantiationException ex) {

 Return Book :

public ReturnBook() {

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -27
LIBRARY DATABASE MANAGEMENT SYSTEM

initComponents();
}
public void getIssueBookDetails(){
int bookId = Integer.parseInt(txt_bookId.getText());
int studentId = Integer.parseInt(txt_studentId.getText());
try{
Connection con = DBConnection.getConnection();
String sql = "select * from issue_book_details where book_id = ? and student_id = ? and status =
? ";
PreparedStatement pst = con.prepareStatement(sql);
pst.setInt(1, bookId);
pst.setInt(2, studentId);
pst.setString(3, "pending");
ResultSet rs = pst.executeQuery();
if (rs.next()){
lbl_isueId.setText(rs.getString("id"));
lbl_bookName.setText(rs.getString("book_name"));
lbl_studentName.setText(rs.getString("student_name"));
lbl_issueDate.setText(rs.getString("issue_date"));
lbl_dueDate.setText(rs.getString("due_date"));
lbl_bookError.setText("");
}else{
lbl_bookError.setText("No Record Found");
lbl_isueId.setText("");
lbl_bookName.setText("");
lbl_studentName.setText("");
lbl_issueDate.setText("");
lbl_dueDate.setText("");
}
}catch (Exception e){
e.printStackTrace();
}}
public boolean returnBook(){
boolean isReturned = false;
int bookId = Integer.parseInt(txt_bookId.getText());
int studentId = Integer.parseInt(txt_studentId.getText());
try{
Connection con = DBConnection.getConnection();
String sql = "update issue_book_details set status = ? where student_id = ? and book_id = ? and
status = ? ";
PreparedStatement pst = con.prepareStatement(sql);
pst.setString(1, "returned");
int rowCount = pst.executeUpdate()

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -28
LIBRARY DATABASE MANAGEMENT SYSTEM

if(rowCount > 0){


isReturned = true;
}else{
isReturned = false;
}
}catch (Exception e){
e.printStackTrace();
}
return isReturned;
}
public void updateBookCount(){
int bookId = Integer.parseInt(txt_bookId.getText());
try{
Connection con = DBConnection.getConnection();
String sql = "update book_details set quantity = quantity + 1 where book_id = ? ";
PreparedStatement pst = con.prepareStatement(sql);
pst.setInt(1, bookId);
int rowCount = pst.executeUpdate();
if (rowCount > 0){
JOptionPane.showMessageDialog(this, "book count updated");
}else{
JOptionPane.showMessageDialog(this, "can't update the count");
}
}catch (Exception e){
e.printStackTrace();
}
}

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


SOFTWARE TESTING
PAGE -29
LIBRARY DATABASE MANAGEMENT SYSTEM

CHAPTER – 7

SOFTWARE TESTING
Is the menu bar displayed in the appropriate contested some system related features included
either in menus or tools? Do pull -Down menu operation and Tool-bars work properly? Is all
menu function and pull down sub function properly listed? Is it possible to invoke each menu
function using logical assumptions that if all parts of the system are correct, the goal will be
successfully achieved? In adequate testing or non-testing will leads to errors that may appear few
months later.
This create two problem

1. Time delay between the cause and appearance of the problem.


2. The effect of the system errors on files and records within the system.
The purpose of the system testing is to consider all the likely variations to which it will be
suggested and push the systems to limits.

The testing process focuses on the logical intervals of the software ensuring that all statements
have been tested and on functional interval is conducting tests to uncover errors and ensure that
defined input will produce actual results that agree with the required results. Program level
testing, modules level testing integrated and carried out.
There are two major type of testing they are

1) White Box Testing.


2) Black Box Testing.

White Box Testing


White box sometimes called "Glass box testing" is a test case design uses the control structure of
the procedural design to drive test case.
Using white box testing methods, the following tests were made on the system.
A) All independent paths within a module have been exercised once. In our system, ensuring that
case was selected and executed checked all case structures The bugs that were prevailing in some
part of the code where fixed
b) All logical decisions were checked for the truth and falsity of the values.

Black box Testing


Black box testing focuses on the functional requirements of the software. This is black box
testing enables the software engineering to derive a set of input conditions that will fully exercise
all functional requirements for a program. Black box testing is not an alternative to white box
testing rather it is complementary approach that is likely to uncover a different class of errors
that white box methods like.

1) Interface errors
2) Performance in data structure
3) Performance errors

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -30
LIBRARY DATABASE MANAGEMENT SYSTEM

7.1 TESTING CONCEPTS


7.1 Testing Concepts:
7.1.1 System Testing:
System testing is the stage of implementation, which is aimed at ensuring that the system
works accurately and efficiently before live operation commences. Testing is the process
of executing the program with the intent of finding errors and missing operations and also
a complete verification to determine whether the objectives are met and the user
requirements are satisfied. The ultimate aim is quality assurance.
Tests are carried out and the results are compared with the expected document. In the case
of erroneous results, debugging is done. Using detailed testing strategies a test plan is
carried out on each module. The various tests performed in “Network Backup System”
are unit testing, integration testing and user acceptance testing.
7.1.2 Unit Testing :
The software units in a system are modules and routines that are assembled and integrated
to perform a specific function. Unit testing focuses first on modules, independently of one
another, to locate errors. This enables, to detect errors in coding and logic that are
contained within each module. This testing includes entering data and ascertaining if the
value matches to the type and size supported by java. The various controls are tested to
ensure that each performs its action as required.
7.1.3 Integration Testing:
Data can be lost across any interface, one module can have an adverse effect on another,
sub functions when combined, may not produce the desired major functions. Integration
testing is a systematic testing to discover errors associated within the interface. The objective
is to take unit tested modules and build a program structure. All the modules are combined
and tested as a whole. Here the Server module and Client module options are integrated and
tested. This testing provides the assurance that the application is well integrated functional
unit with smooth transition of data.
7.1.4 User Acceptance Testing:
User acceptance of a system is the key factor for the success of any system. The system
under consideration is tested for user acceptance by constantly keeping in touch with the
system users at time of developing and making changes whenever required.

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


PAGE -31
LIBRARY DATABASE MANAGEMENT SYSTEM

7.2 TEST CASE


 Verify whether the username field accepts a valid username and if the password field
accepts a valid password.
 Verify whether the wrong username and valid password allow access to any specific
account.
 Verify whether the valid username and wrong password allow access to any specific
account.
 Verify whether the forgotten username link leads to a username recovery page.
 Verify whether the forgot password link leads to the password recovery page.
 Verify whether the invalid username and password trigger any warning.
 Verify whether the invalid credentials open the random account.
 Verify whether the user is logged in, allows you to log out by using the link at the bottom
of the application.
 Verify whether the logout link functions as expected.
 Book borrow/return interface test cases for the library management system
 Verify whether add, delete, update, search and exit button is seen.
 Verify whether the book gets added to the user’s borrow list when the user clicks on add
button.
 Verify whether the book gets deleted from the list when clicking on the delete button.
 Verify whether the modification is applied to the page when the user updates the details
and clicks on the update button.
 Verify whether the book details are displayed when the search button is clicked.
 Verify whether the appropriate error message is seen when the book is not available in
the system.
 Verify whether the appropriate error message is seen when an invalid book title is entered
in the search bar.
 Verify whether other books of the same author are displayed when the requested book is
unavailable in the system.
 Search functionality : is one of the crucial features of a library management
system. It should allow the user to search for either other member profiles or books.
There should be tabs that act as filters to let you choose between the user and the book.
 Verify whether the search function allows the user for search books as per title, ISBN,
author, genre, or all of the criteria.
 Verify whether the search filter has a categories feature.
 Check whether sort and filter features are available on the search page.

 Check whether the sort functionality works as expected using ascending and descending
sort. Check filter functionality works as expected.
 Verify whether the search system has a table for listing the search results.

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


FUTURE ENHANCECEMENTS
PAGE -32
LIBRARY DATABASE MANAGEMENT SYSTEM

CHAPTER – 8

FUTURE ENHANCECEMENTS

 In any system there is always chance for its enhancement and extension.
 This can also be enhanced with the change facilities also with the progress of the fashion
Design system can also be enhance in future.
 Move facilities can be added to the system for its growth.
 There is always scope for enhancements in any system especially in the ever changing
world of computer.
 The fashion design system can also be modified according to the feature requirements the
achievement of the technology.

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


CONCLUSION
PAGE -33
LIBRARY DATABASE MANAGEMENT SYSTEM

CHAPTER – 9

CONCLUSION
Our project is only a humble venture to satisfy the needs in a library. Several user friendly
coding have also adopted. This package shall prove to be a powerful package in satisfying all the
requirements of the organization. The objective of software planning is to provide a frame work
that enable the manager to make reasonable estimates made with in a limited time frame at the
software project and should be updated regularly as the project progress.

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023


BIBILOGRAPHY
PAGE -34
LIBRARY DATABASE MANAGEMENT SYSTEM

CHAPTER – 10

BIBILOGRAPHY

List of reference I have used:

Website
. https://www.mysirg.com

. https://www.freecodecamp.org

. https://www.w3schools.com

. https://www.codinggame.com/start

. https://www.codeacedemy.com/

. https://www.sololearn.com

BRINDAVAN COLLEGE OF ENGINEERING MASTER OF COMPUTER APPLICATION 2022-2023

You might also like