Student Database Management System
Student Database Management System
ABSTRACT
Student Database Management System is software which is helpful for
students as well as the faculties of a school. In several schools and collages all
the activities are done manually. It is very time consuming and needs to keep
Only authentic users will be provided access to view and add student
details. This app uses M VC design pattern to make the application scalable.
Going ahead several other modules like classes, projects, attendance, etc. can be
incorporated in this application. Using MVC allows multiple developers to work
simultaneously on different modules and increase the pace of app development.
This application can be used by many schools and colleges vålich has limited
infrastructure.
System Requirements:
• Operating System: Win7 and above
Java: JDKl.8
• DB Server: SQL Server 5/8
• IDE: Eclipse/NetBeans/IntelliJ
JDBC Connector: Connector-J 5/8
UI: JavaFXSl)K 15, Scene Builder 15
INTRODUCTION
Java
Java is a class-based, object-oriented programming language that is
designed to have as few i Illplementation dependencies as possible. It is a
general-purpose programming language intended to let application
developers write once, run anywhere (WC)RA), meaning that cotnpiled
Java code can run on all platforms that support Java without the need for
Recompilation Java applications are typically compiled to bytecode that can
run on any Java virtual machine (J V M) regardless of the underlying
computer architecture. The syntax of Java is similar to C and C++, but has
fewer low-level facilities than either of them. The Java runtime provides
dynamic capabilities (such as reflection and runtime code modification) that
are typically not available in traditional compiled languages. As of 2019,
Java was one of the most popular programming languages in use according
to GitHub, particularly for clientserver web applications, with a reported 9
million developers.
configurations were built to suit various types of platforms. ForScanned with OKEN Scanner
example:
sTtJDF,NT DATABASE, MANAGEMENT SYSTEM
Only authentic users will be provided access to view and add student
details. Ihis app N IVC design pattern to make the application scalable.
Going ahead several other modules like classes. projects, attendance, etc. can be
incorporated in this application. Using NI'S'C' allov,s multiple des,ælopers to
simultaneously on different modules and increase the pace of app development.
This application can be used by many schools and colleges has limited
infrastructure.
Ssstem Requirements:
• ()perating S) stem: Win 7 and abosc
• Jl)Kl .8
• Lclipse/NetBean.s/lntclliJ
• tT 1 5. Scene Builder
intended to let applicat ion suite once. run anywhere nwaning that cotnpiled
Java code can run on plat that suppolt Java without the need for Iecon)
pilation. Java applications are typically cotnpiled to bytecode that can run on
any .Java virtual Inachine (.JVM) regardless ol' the undetlying cotnptlter
Java is sitnilar to C and C I V. but has fewer low-level facilities than either of
them. The Java provides dynatnic capabilities (such as re Ilection and
runtitne code Inodi lication) that are typically not available in traditional
cornpiled languages. As of 2019, Java was one of the
has since been acquired by ()racle) and released in 1995 as a core component
conipliance with the specifications of the Java Community Process, Sun had
relicensed most of its Java technologies under the GNU General Public
License. Oracle offers its own I lotSpot Java Virtual Machine, however the
encryption.
is a POSIX subset.
:
Scannedby
Robust, • -- Java makes an effort to eliminate error prone situations with OKEN Scanner
High Performance — With the use of Just-In-Time compilers, Java
enables h performance.
applications written using this library can run consistently across multiple
JavaFX provides a rich set of graphics and media API's and it leverages the
modern Graphical Processing Unit through hardware accelerated graphics.
JavaFX also provides interfaces using which developers can combine
graphics animation and UI control.
One can use JavaFX with JVM based technologies such as Java, Groovy and
JRuby. If developers opt for JavaFX, there is no need to learn additional
technologies, as prior knowledge of any of the above-mentioned technologies
:
Scanned with OKEN Scanner
will be good enough to develop RIA's using JavaFX.
FXML -- JavaFX features a larjzuapc known a ML
Rich set of API's JavaFX library provides a rich set of API's to develop
GUI applications, 2D and 3D graphics, etc. "IT)is set of API's also
includes capabilities of Java platform. Therefore, u.sing this API, you can
access the features of Java languages such a.s Generics, Annotations,
Multithreading, and Lambda Expressions. The traditional Java Collections
library was enhanced and concepts like observable lists and maps were
included in it. Using these, the users can observe the changes in the data
SQL is the standard language for Relational Database System. All the Relational
Database Management Systems (RDMS) like MySQL, MS Access, Oracle, Sybase,
Informix.
postgres and SQL Server use SQL as their standard database language.
Also, they are using different dialects, such
as — MS SQL Server using T-SQL,
Oracle using PL/SQL,
MS Access version of SQL is called JET SQL (native format) etc.
Process
When Y'ou are executing an SQL command for any RDBMS, the system
determines the best to carry out your request and SQL engine figures
out how to interpret the task.
These
There are various components included in this process.
components are —
Query Dispatcher
Optimization
Engines
CREATE
Creates a new table, a view of a table, or other object in the
database.
ALTER
2
Modifies an existing database object, such as a table.
DROP
Deletes an entire table, a view of a table or other objects in the
database.
SELECT
Retrieves certain records from one or more tables.
INSERT
Creates a record.
UPDATE
3
Modifies records.
DELETE
4
Deletes records.
GRANT
Gives a privilege to user.
REVOKE
Takes back privileges granted from user.
different objects.
Figure 2: MVC
The Model contains only the pure application data, it contains no logic
describing how to present the data to a user.
The View presents the model's data to the user. The view knows how to access
the moders data, but it does not know what this data means or what the user
can do to manipulate it.
The Controller exists between the view and the model. It listens to events
triggered by the view (or another external source) and executes the
appropriate reaction to these events. In most cases, the reaction is to call a
method on the model. Since the view and the model
are connected through a notification mechanism, the
result of this action is then automatically reflected in
the view.
implementation.
difficult and
expensive. is
costly and required more time, in addition to detailed plan.
V-Sha ed Model
It is an extension for waterfall model, Instead of moving down in a linear
way, the process steps are bent upwards after the coding phase, to form the
shaped model.
software requirements clearly defined and known software development
technologies and tools is well known
Advantages simple and easy to use. • Each phase
has specific deliverables. •
Hioher chance of success over the waterfall model due to the
development of test plans
Disadvantages
. Very inflexible, like the waterfall model: Little flexibility and adjusting
D i s a d v a n t a g e s
· 0m0…ent (J-0;0:fu-…0:0 ro~0 00fin 0=
~00 ,
·De0~0P0 misunderstandingof=-0 00…00m 0-
·E 00~000~opment~…meof~ 0p 0~otype
·E0m0ofimplementingprototyping
which built in small phases or
SiralMethodSI)M
ini
username is
import
javafx.event.ActionEvent;
import
javafx.fxml.FXML;
import
jav'afx.scene.control.La
bel; import
javafx.scene.control.Te
xtField; import
javafx.scene.layout.Anc
horPane; import
model.StudentAccess;
public class
AddStudentDetail
.sController
{ fi)FXML public
AnchorPane
basepane; public
'I'extField
Scanned with OKEN Scanner
NAME'[F•, public
Student s new
CONTACTIF.getTcxt());
saved cxt()
successfully");
-jqudentAccess.java:
package model;
import
Student
s=null; try {
ResultSet
* from studentdetails
where
while(rs.next())
s=new
I ),rs.getString(2),rs.getString(3),rs.get
String(4)); return s;
} catch (Exception e) {
e.printStackTrace();
return list;
lestrlll,public
publicstatic String
static void closeDB() {
Values.conn.close();
public static String public string getNAME() {
System.out.println("DB
username; public static String disconnected");
return NAME.get();)
userpassword; public static public string getBRANCH()
catch(SQLException e) {
Connection conn=null; public { return BRANCH.get();
e.printStackTrace();
static Statement stmt—null;
return ROLLNO.get();
string getCONTACT()
StudentDetails.java:
java.util.ResourceBundle;
import javafx.event.ActionEvent;
javafx.fxml.FXMLLoader; impon
javafx.fxml.lnitializable;
javafx.scene.layout.AnchorPane;
import
catch(IOException e) {
loader.setLocation(getClass().getResource("Delet
hasepane.getChildren().add(loader.load());
catch(IOException e) {
e.printStackTrace();
initialize(URL location,
ResourceBundle resources) I
// TODO Auto-generated method stub
FXMLLoader loader—new FXMLLoader();
@FXML public
AnchorPane basepane;
public Label optLabel;
Delete.java
javafx.event.ActionEvent; import
javafx.fxml.FXML•, import
javafx.scene.control.Label; import
javafx.scene.control.TextField; impon
model.StudentAccess;
31
: Scanned
Scanned with
with OKEN
OKENScanner
Scanne
StudentAccess.deleteSingleStudentData(ROLLNO);
optLabel.setText("Deleted Successfully");
Scant
z?'tmport javafx.scene.control.Button?>
d?ifllport javafx.scene.control.Label?>
javafx.scene.control.PasswordField?>
aimport
javafx.scene.control.TextField?>
dimport
javafx.scene.layout.AnchorPane?>
(AnchorPane
fx:id="root" smlns="http://javafx.com/javafx/8.0.171"
xmlns:fx="http://javafx.com/fxml/l "
(children>
<TextField fx:id="usernameTF" layoutX="307.0" layoutY="105.0"
promptText="username" />
promptText="password"
<Button layoutX="368.0"
mnemonicParsing="false"
onAction="#loginCheck" text="login" />
<Label fx:id="optLabel" layoutX="378.0" layoutY="377.0"
encoding¯
"UT
Scanned with OKEN Scanner
ort javafx.scene.control.Label?>
ort
javafx.scene.control.TextField?>
ort
javafx.scene.layout.AnchorPane
?>
Ltxochorpane
"http•.// javafx.com/javafx/8.0.171 "
xmlns•.fx="http•.//javafx.com/fxml/l "
children>
<TextFie1d
promptText="NAME" />
<TextField
<TextField
<TextField
</children>
</AnchorPane>
GetStudentDetails
<iont>
<Font size="24.0" />
</font>
</font>
layout
text="2.lnsert"
z/AnchorPane>
Delete
z'?import javafx.scene.control.Button?> (?
import javafx.scene.control.TextField?>
javafx.scene.layout.AnchorPane?>
<AnchorPane prefWidth="800.0"
xmlns="http://javafx.com/j avafx/8.0.171 "
xmlns:fx="http://javafx.com/fxml/l " fx:controller="application.Delete">
<children>
<TextField
layoutY="147.0"
</children>
</AnchorPane>
11--03-2021
: Scanned with OKEN Scanner
A boutUs
system.
Refere«ed LJbr.nes
Delete 11-03-2021
.eetO'TÆTC
connecting to