filmov
tv
Employee Payroll Management System Using Java Netbeans-Part 11- Insert Data Into Sqlite Database

Показать описание
In this tutorial you will learn how to insert data into a database using java.
Project Scope
This is an introduction of a simple Java Employee Payroll Management System (Payroll System) using SQLITE database that was developed using Java Netbeans. Furthermore the use of GUI components to achieve this project are as follows:
JButton,JTable,IText,JComboBox, JLabel,JRadioButton, JFrame,JPanel,Image Icons, JTextField.
Functions used
Add Record
Deleted Record
Update Record
Clear Fields
Login
Logout
Date & Time
PDF
Objective of Java Payroll Project Employee Management System.
The main objective of the Java Project on Payroll Management System is to manage the details of Employees, Payments, Salary. It also manages all information about the Employee, Payroll and Salary Slips. The project is totally built at administrator end of things. Only the administrator is guaranteed the access. The purpose of the project is to build an application that reduces the manual work and it can be used as a school project.
Code & Imports
Connection conn=null;
ResultSet rs=null;
PreparedStatement pst=null;
Toolkit toolkit = getToolkit();
try {
String sql ="insert into Staff_information "
+ "(first_name,surname,Dob,Email,"
+ "Telephone,Address,Department,"
+ "Image,Salary,Gender,Address2,"
+ "Post_code, Designation,Status,job_title,Apartment,Date_hired) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ";
}
catch (Exception e)
{
}
finally {
try{
}
catch(Exception e){
}
}
CREATE TABLE "Staff_information" ("id" INTEGER PRIMARY KEY NOT NULL ,"first_name" VARCHAR,"surname" VARCHAR,"Dob" INTEGER DEFAULT (null) ,"Email" VARCHAR,"Telephone" VARCHAR,"Address" VARCHAR,"Department" VARCHAR,"Image" BLOB,"Gender" CHAR,"Salary" VARCHAR,"Address2" VARCHAR,"Apartment" VARCHAR,"Post_code" VARCHAR DEFAULT (null) ,"Designation" VARCHAR,"Status" VARCHAR,"Date_hired" VARCHAR,"job_title" VARCHAR)
#java tutorial for beginners
#java tutorial
Thanks for watching.
Project Scope
This is an introduction of a simple Java Employee Payroll Management System (Payroll System) using SQLITE database that was developed using Java Netbeans. Furthermore the use of GUI components to achieve this project are as follows:
JButton,JTable,IText,JComboBox, JLabel,JRadioButton, JFrame,JPanel,Image Icons, JTextField.
Functions used
Add Record
Deleted Record
Update Record
Clear Fields
Login
Logout
Date & Time
Objective of Java Payroll Project Employee Management System.
The main objective of the Java Project on Payroll Management System is to manage the details of Employees, Payments, Salary. It also manages all information about the Employee, Payroll and Salary Slips. The project is totally built at administrator end of things. Only the administrator is guaranteed the access. The purpose of the project is to build an application that reduces the manual work and it can be used as a school project.
Code & Imports
Connection conn=null;
ResultSet rs=null;
PreparedStatement pst=null;
Toolkit toolkit = getToolkit();
try {
String sql ="insert into Staff_information "
+ "(first_name,surname,Dob,Email,"
+ "Telephone,Address,Department,"
+ "Image,Salary,Gender,Address2,"
+ "Post_code, Designation,Status,job_title,Apartment,Date_hired) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ";
}
catch (Exception e)
{
}
finally {
try{
}
catch(Exception e){
}
}
CREATE TABLE "Staff_information" ("id" INTEGER PRIMARY KEY NOT NULL ,"first_name" VARCHAR,"surname" VARCHAR,"Dob" INTEGER DEFAULT (null) ,"Email" VARCHAR,"Telephone" VARCHAR,"Address" VARCHAR,"Department" VARCHAR,"Image" BLOB,"Gender" CHAR,"Salary" VARCHAR,"Address2" VARCHAR,"Apartment" VARCHAR,"Post_code" VARCHAR DEFAULT (null) ,"Designation" VARCHAR,"Status" VARCHAR,"Date_hired" VARCHAR,"job_title" VARCHAR)
#java tutorial for beginners
#java tutorial
Thanks for watching.
Комментарии