Professional Documents
Culture Documents
BANKER DATABASE SYSTEM
BANKER DATABASE SYSTEM
A PROJECT REPORT
Of
BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE
www.hclinfosystems.in
Arpit kumar
Acknowledgement
ARPIT KUMAR
Preface
For me, it is very knowledgeable and interesting as well. I have chosen Java SE as
front end because it provides very good graphical user interface and Microsoft
Office Access as back end tool.
www.hclinfosystems.in
HCL Infosystems Ltd is India’s premier hardware, services and ICT systems
Integration Company offering a wide spectrum of ICT products that includes
Computing, Storage, Networking, Security, Telecom, Imaging and Retail. HCL is
a one-stop-shop for all the ICT requirements of an organization. India's leading
System Integration and Infrastructure Management Services Organization, HCL
has specialized expertise across verticals including Telecom, BFSI, eGovernance
& Power. HCL has India's largest distribution and retail network, taking to market
a range of Digital Lifestyle products in partnership with leading global ICT brands,
including Apple, Cisco, Ericsson, Kingston, Kodak, Konica Minolta, Microsoft,
Nokia, Toshiba, and many more.
Technology Leadership:
HCL strive to understand the technology from the view of supporting it post
installation as well. This is one of the key ingredients that go into its strategic
advantage.
Contents
1. INTRODUCTION
2. METHODOLOGY
3. ADVANTAGES & GOALS OF CURRENT SYSTEM
4. TOOLS & TECHNOLOGY
5. DESCRIPTION OF FRONT END & BACK END
6. DATA FLOW DIAGRAM
7. SNAP SHOTS OF FRAMES
8. DATABASE STRUCTURE FOR BDS
9. SOURCE CODE
10. LIMITATIONS
11. FUTURE ASPECTS
12. CONCLUSION
INTRODUCTION
The objective of the project is to develop a GUI based automated system, which
will cover all the information related to the Account holder. For example: creating
new account, deposit or withdrawal, balance information.
Features:
Banker database system enables creating new accounts along with their
initial balance, withdrawing or depositing to an account and also displaying the
account information. The entire database is stored in Microsoft Office Access
which is familiar to everyone and anyone can access it easily. So, the banker
database system is user friendly.
METHODOLOGY
The methodology used in banker database system includes four steps:
6. Reliability: The reliability of the proposed system would be high due to the
above stated reasons.
We have used Java SE as front end tool & Microsoft Office Access as back end tool
described as follows:
Java SE:
Java Platform, Standard Edition or Java SE is a widely used platform
for programming in the Java language. It is the Java Platform used to deploy
portable applications for general use. In practical terms, Java SE consists of a
virtual machine, which must be used to run Java programs, together with a
set of libraries (or "packages") needed to allow the use of file systems,
networks, graphical interfaces, and so on, from within those programs.
Access stores data in its own format based on the Access Jet
Database Engine. It can also import or link directly to data stored in other
applications and databases.
Software developers and data architects can use Microsoft Access to develop
application software, and "power users" can use it to build simple applications.
Like other Office applications, Access is supported by Visual Basic for
Applications, an object-oriented programming language that can reference a
variety of objects including DAO (Data Access Objects), ActiveX Data Objects,
and many other ActiveX components. Visual objects used in forms and reports
expose their methods and properties in the VBA programming environment, and
VBA code modules may declare and call Windows operating-system functions.
INFORMATION
SUBMIT
DATABASE
INFORMATION
SHOW
SNAP SHOTS OF FRAMES
1. About Banker
2. Main Menu
3. Accounts Master
6. Display Balance
DATABASE STRUCTURE FOR BDS
1. Master
2. Transaction
SOURCE CODE
/**Banker.java*/
package bank;
/**
* <p>Title: Banker</p>
* <p>Description: Application which uses a database to perform
bank transactions</p>
* <p>College: Baldevram Mirdha Institute of Technology,
Jaipur</p>
* @Ritesh Kumar, Priyanka
* @2008-2012
*/
import java.awt.*;
import java.sql.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.*;
import bank.MainMenu;
public Banker() {
super ("Banker");
try {
String output;
outputTextArea = new JTextArea(); // Instantiate
outputTextArea
JOptionPane.showMessageDialog(Banker.this,outputTextArea,
"About Banker",JOptionPane.PLAIN_MESSAGE);
}
}
);
////////////////////////////////
setSize(400,400);
setVisible(true);
setLocation(500,200);
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName(
));
}
catch(Exception e) {
System.out.println("Error is " + e.getMessage());
}
Banker application = new Banker();
application.setResizable(false);
application.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
}
}
/**AccMaster.java*/
package bank;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
import javax.swing.*;
/////////////////////////////////
setSize(250,200);
setVisible(true);
setLocation(575,320);
}
// If YES
if(choice == JOptionPane.YES_OPTION)
{
try {
// connect to database
Connection connection =
DriverManager.getConnection("jdbc:odbc:Bank");
} // end try
System.exit( 1 );
}
System.exit( 1 );
}
catch(Exception e)
{
}
}
// If NO
else{
opnBalTxt.setText(" ");
accNoTxt.setText(" ");
setVisible(false); // Hide Frame
}
}
}
/**depositDraw.java*/
package bank;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
import javax.swing.*;
super("Deposits / Withdrawals");
// Assign trasactionType1 to global variable transactionType
transactionType = transactionType1;
transaction_amount =
Double.parseDouble(transAmountTxt.getText());
double current_balance;
///////////////////////////////////////////////////////////
////////////////
try {
// connect to database
Connection connection =
DriverManager.getConnection("jdbc:odbc:Bank" );
ResultSet resultSet =
stmt.executeQuery(
"SELECT Current_Balance FROM Master WHERE Account_No = '" +
accNoTxt.getText() + "'");
// process query results
while ( resultSet.next() ) {
}
}
stmt.close();
connection.close();
// connect to database
Connection connection1 =
DriverManager.getConnection("jdbc:odbc:Bank" );
stmt1.executeUpdate(updateString);
stmt1.close();
connection1.close();
JOptionPane.showMessageDialog(null,"Data Entered
into Database Successfully");
accNoTxt.setText(" ");
transAmountTxt.setText(" ");
setVisible(false);
}
catch ( SQLException sqlException ) {
JOptionPane.showMessageDialog( null,
sqlException.getMessage(), "Database Error",
JOptionPane.ERROR_MESSAGE );
System.exit( 1 );
}
System.exit( 1 );
}
}
else{
JOptionPane.showMessageDialog(null,"You Cannot
Draw more than you have.");
accNoTxt.setText(" ");
transAmountTxt.setText(" ");
setVisible(false);
}
}
else{
JOptionPane.showMessageDialog(null,"You cannot
withdraw more than $15,000.");
accNoTxt.setText(" ");
transAmountTxt.setText(" ");
setVisible(false);
}
}
else
if (transactionType == 1){ // Deposit
try {
// connect to database
Connection connection2 =
DriverManager.getConnection("jdbc:odbc:Bank" );
stmt2.executeUpdate(
"INSERT INTO Transaction " +
"VALUES ('" + accNoTxt.getText() + "', " +
String.valueOf(transAmountTxt.getText())+ ","+
transactionType + ")");
stmt2.executeUpdate(updateString);
stmt2.close();
connection2.close();
setVisible(false);
}
System.exit( 1 );
}
System.exit( 1 );
}
}
} // end try
System.exit( 1 );
}
System.exit( 1 );
}
}
else{
accNoTxt.setText(" ");
transAmountTxt.setText(" ");
setVisible(false);
}
}
}
} }
}
/**DispBal.java*/
package bank;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
import javax.swing.*;
setSize(220,200);
setVisible(true);
setLocation(590,320);
}
private class EventHandler implements ActionListener{
public void actionPerformed(ActionEvent event)
{
if (event.getSource() == btn)
////////////////////////////////////////////////////////
///////////////////
if (accNoTxt.getText() != null && accNoTxt.getText() !
= " "){
try {
// connect to database
Connection connection =
DriverManager.getConnection("jdbc:odbc:Bank");
// query database
ResultSet resultSet =
statement.executeQuery(
"SELECT Current_Balance FROM Master WHERE Account_No
= '" + accNoTxt.getText() + "'");
while ( resultSet.next() ) {
}
}
statement.close();
connection.close();
balanceTxt.setText(results.toString());
} // end try
System.exit( 1 );
}
catch ( ClassNotFoundException classNotFound ) {
JOptionPane.showMessageDialog( null,
classNotFound.getMessage(), "Driver Not Found",
JOptionPane.ERROR_MESSAGE );
System.exit( 1 );
}
}}}}
/**MainMenu.java*/
package bank;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import bank.*;
public MainMenu() {
super("Main Menu");
panel1.setLayout(new GridLayout(5,1,10,10));
container.add(panel1,BorderLayout.CENTER); // Add panel1 to
container
setSize(300,230);
setVisible(true);
setLocation(550,280);
}
}
else if(event.getSource() == withDrawalsBtn)
{ depositDraw dep = new depositDraw(2); /// Call AccMaster
Frame
dep.setResizable(false);
}
else if(event.getSource() == dispBalBtn)
{ DispBal bal = new DispBal(); /// Call AccMaster Frame
bal.setResizable(false);
}
}}}
LIMITATIONS
Although I have tried to do the best & tried to do all the things that are possible in
the system, but still the system contains some of the limitations because of time
constraints.
I am still working on this application and my next goal is to remove these
limitations and develop a more efficient and elegant system.
FUTURE ASPECTS
Banker database system doesn’t end here; it is just a starting, we will look forward
for its future development through more and more challenging projects and also
foraying into related areas in with innovative ideas.
CONCLUSION
Banker database system provides a graphical user interface to the end user so that
he/she can easily interact with the system and perform all the transactions provided
by the system with comfort and it’s our main goal to provide ease to the end user,
customer’s comfort is the main priority of this system.