Super Market Management

Slides:



Advertisements
Similar presentations
CE203 - Application Programming Autumn 2013CE203 Part 51 Part 5.
Advertisements

Basic JDBC Celsina Bignoli What is JDBC Industry standard for database- connectivity between the Java language and a wide range of.
Distributed Application Development B. Ramamurthy.
JDBC Overview Autumn 2001 Lecturer: C. DeJong. Relational Databases widespread use used via SQL (Structured Query Language) freely available powerful.
Java MS Access database connectivity Follow these steps: 1)Go to the start->Control Panel->Administrative Tools- > data sources. 2)Click Add button and.
Web Proxy Server. Proxy Server Introduction Returns status and error messages. Handles http CGI requests. –For more information about CGI please refer.
1 CSC 440 Database Management Systems JDBC This presentation uses slides and lecture notes available from
1 Java Database Connection (JDBC) There are many industrial-strength DBMS's commercially available in the market. Oracle, DB2, and Sybase are just a few.
Helena Pomezná, ciz034 St. skupina: L392 FEI, VŠB-TUO Ak. rok. 2002/2003 Download:
CSCI 6962: Server-side Design and Programming JDBC Database Programming.
CS178 Database Management “JDBC”. What is JDBC ? JDBC stands for “Java DataBase Connectivity” The standard interface for communication between a Java.
JDBC. What is JDBC JDBC is an acronym for –Java Data Base Connectivity. It allows java/jsp program to connect to any database.
© Wang Bin 2004 JDBC ----Java Database Connectivity.
Beginning Databases with JDBC Mike Bradley Adapted from and notes by Kevin Parker, Ph.D.
Database Programming in Java Corresponds with Chapter 32, 33.
JDBC and Hibernate Joshua Scotton. Connecting to Relational DBs.
Distributed Systems Lab Lecture -1-.  It is extremely simplified application will be realized with the aid of various middleware technologies.  It allows.
Active Server Pages ASP is Microsoft’s server-side script engine for dynamically-generated web pages. Most common language used is VBScript. If you use.
Dr. Magdi AMER Unit 2 Introduction to Database. Intro Many programs need to save information on disk. The role of DB system is to provide a layer of abstraction.
Georgia Institute of Technology Making Text for the Web part 5 Barb Ericson Georgia Institute of Technology March 2006.
MySQL, Java, and JDBC CSE 3330 Southern Methodist University.
JDBC Tutorial MIE456 - Information Systems Infrastructure II Vinod Muthusamy November 4, 2004.
JAVA Database Access. JDBC The Java Database Connectivity (JDBC) API is the industry standard for database- independent connectivity between the Java.
Object-Oriented Software How does it differ from procedural? How is it similar to procedural? Why has it become so popular? Does it replace or supplement.
JDBC Java and Databases, including Postgress. JDBC l Developed by Industry leaders l Three main goals: –JDBC should be an SQL-level API –JDBC should capitalize.
JDBC  The JDBC (Java Database Connectivity) API helps a Java program to access a database in a standard way  JDBC is a specification that tells the.
Accessing Database using JDBC. JDBC Objectives Gain basic knowledge of Java JDBC Become familiar with the basics of interacting with a database using.
WEB/DB1 DATABASE PROGRAMMING 3JDBC by the ASU Scholars.
Distributed Systems Lab.  It is extremely simplified application will be realized with the aid of various middleware technologies.  It allows the.
JDBC Database Programming in Java Prepared by., Mrs.S.Amudha AP/SWE.
JDBC. Java.sql.package The java.sql package contains various interfaces and classes used by the JDBC API. This collection of interfaces and classes enable.
JDBC CS 124. JDBC Java Database Connectivity Database Access Interface provides access to a relational database (by allowing SQL statements to be sent.
Li Tak Sing COMPS311F. Database programming JDBC (Java Database Connectivity) Java version of ODBC (Open Database Connectivity) ODBC provides a standard.
Java and Databases. JDBC Architecture Java Application JDBC API Data Base Drivers AccessSQL Server DB2InformixMySQLSybase.
16 Java Database Connectivity. 2 Understand the JDBC Understand the steps of the JDBC: 1.) Importing packages 2.) Opening a connection to a database 3.)
Tasks Needed for MissionMapEditor Martin Q. Zhao September 18, 2010.
Vakgroep Informatietechnologie – Onderzoeksgroep (naam) Web Centric Design of Distributed Software.
CSI 3125, Preliminaries, page 1 JDBC. CSI 3125, Preliminaries, page 2 JDBC JDBC stands for Java Database Connectivity, which is a standard Java API (application.
Access Databases from Java Programs via JDBC Tessema M. Mengistu Department of Computer Science Southern Illinois University Carbondale
Basics of JDBC.
Advanced Java Session 5 New York University School of Continuing and Professional Studies.
1 Principles of Database Systems With Internet and Java Applications Today’s Topic Chapter 8: Applications Programming for Relational Databases Instructor’s.
SQL and Java The vision for Java is to be the concrete and nails that people use to build this incredible network system that is happening all around us.
Umair Javed©2005 Enterprise Application Development Java Database Connectivity (JDBC) JDBC1.
Introduction to JDBC Instructor: Mohamed Eltabakh 1.
Intro to JDBC Joseph Sant Applied Computing and Engineering Sciences Sheridan ITAL.
SQL pepper. Why SQL File I/O is a great deal of code Optimal file organization and indexing is critical and a great deal of code and theory implementation.
JSP/Database Connectivity Instructor: Dr. M. Anwar Hossain.
Java and database. 3 Relational Databases A relational Database consists of a set of simple rectangular tables or relations The column headings are.
CS320 Web and Internet Programming Database Access with JDBC Chengyu Sun California State University, Los Angeles.
Fundamental of Databases
CS3220 Web and Internet Programming Database Access with JDBC
Lec - 14.
Java swings.
JDBC Database Management Database connectivity
CS320 Web and Internet Programming Database Access with JDBC
How to connect natively?
Advanced Web Automation Using Selenium
HW#4 Making Simple BBS Using JDBC
Prof: Dr. Shu-Ching Chen TA: Sheng Guan
Introduction to Server-Side Web Development using JSP and Databases
Interacting with Database
MSIS 655 Advanced Business Applications Programming
Java Database Connectivity
Bolat Azamat, Kim Dongmin
Using a Database with JDBC
COP 4610L: Applications in the Enterprise Spring 2005
JDBC Example.
CS3220 Web and Internet Programming Database Access with JDBC
CS3220 Web and Internet Programming Database Access with JDBC
Presentation transcript:

Super Market Management Mini Java project Super Market Management Presented by: Mushrif Ali Siyamoi Freshta

INTRODUCTION What is POS Point Of Sale. How Supermarket Management is Related to POS Hardware/Software MySQL v5.7.14 NetBeans IDE 8.2 JDK 8

Database MySQL in WAMP server is used. Database name as supermarket with 5 tables Login Employee Item_details Sales audit

Connection with MySQL and Query Execution Import JDBC packages. Load and register the JDBC driver. Open a connection to the database. Create a statement object to perform a query. Execute the statement object and return a query resultset. Process the resultset. Close the resultset and statement objects. Close the connection.

Connection Module Coding import splash.*; import javax.swing.*; import java.sql.*; public class Connect extends JFrame { Connection Conn = null; PreparedStatement pst = null; ResultSet rs = null; public static Connection connectDB() { Connection con = null; String url = "jdbc:mysql://localhost:3306/"; String db = "supermarket"; String driver = "com.mysql.jdbc.Driver"; String user = "root"; String pass = "123"; try { Class.forName(driver); con = DriverManager.getConnection(url + db, user, pass); if (con == null) { System.out.println("Connection cannot be established"); } // JOptionPane.showMessageDialog(null,"Welcome User"); return con; } catch (ClassNotFoundException | SQLException e) { //System.out.println(e); JOptionPane.showMessageDialog(null, "Connection failed"); JOptionPane.showMessageDialog(null, "Exiting"); System.exit(0); return null;

FRONT END Splash screen-represents the logo and version of the program Threading concept used in the progress bar percentage and label name changing for (int i = 0; i <= 100; i++) { try { Thread.sleep(50); } catch (InterruptedException ex) { } Splash.loadingnum.setText(Integer.toString(i) + "%"); Splash.loadingbar.setValue(i); switch (i) { case 10: Splash.process.setText("loading dll..."); break; case 20: Splash.process.setText("connecting database..."); case 30: Splash.process.setText("Finalizing..."); case 80: Splash.process.setText("Opening Main Page..."); if (i == 100) { Login lg = new Login(); Splash.setVisible(false); lg.setVisible(true);

LOGIN FORM Gives Access to software based on two levels Admin-Full access to all the resources Sales-Only to sales modules Interacts with login table and audit table Connect to database and check if the username, password and type matches with the login If login is success full then user id with timestamp will be entered in audit table Successful login opens the main form with username

MAIN FORM Main interface where user can perform various tasks MDI form is used in order to contain the jinternal forms Stock-Manage Inventory Sale-Interface to sale items Settings-Employee management Admin-Full access to all the resources Sales-Only to sales modules

Stock (Item Details) jInternal form used. jTable is populated with data from item_details table when the for loads Items saved to items_details when pressed saved after filling all text boxes

Sale Form jInternal form used. jTable is populated with data from item_details table when selected in combo box Total calculated in total text box Saved in sale table after pressing cash button

Employee Management jForm used. Employee added to employee table once Insert Button is pressed All the fields should be filled before inserting

Limitations Limited knowledge in Advance Java Time constrain

Future Plans Validation modules Report generation Tax implementation module Accounting module HR Module Encryption Module

THANK YOU…