Java - KFT1 Task 4 RegiStudent Diagrams IT Java Course Mentors : - Pubali Banerjee, PhD - Cynthia Lang, PE, MSChE Western Governors University IT Java.

Slides:



Advertisements
Similar presentations
Class Scope class Student { private: string id; string firstName, lastName; float gpa; public: void Read() { cin >> id >> firstName >> lastName >> gpa;
Advertisements

Student Data Score First Name Last Name ID GPA DOB Phone... How to store student data in our programs? 1.
Web Database Programming Connecting Database to Web.
Unit 011 Inheritance Recall What Inheritance is About The extends Keyword The Object Class Overriding versus Overloading What is Actually Inherited? Single.
Phonegap Bridge – File System CIS 136 Building Mobile Apps 1.
From VS C# 2010 Programming, John Allwork 1 VS2010 C# Programming - DB intro 1 Topics – Database Relational - linked tables SQL ADO.NET objects Referencing.
What is MySQL? MySQL is a database. The data in MySQL is stored in database objects called tables. A table is a collections of related data entries and.
PHP1-1 PHP & SQL Xingquan (Hill) Zhu
CSCI 6962: Server-side Design and Programming
MySQL in PHP – Page 1 of 17CSCI 2910 – Client/Server-Side Programming CSCI 2910 Client/Server-Side Programming Topic: MySQL in PHP Reading: Williams &
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor Ms. Arwa.
Software Engineering 2003 Jyrki Nummenmaa 1 CASE Tools CASE = Computer-Aided Software Engineering A set of tools to (optimally) assist in each.
Chapter 15: Using LINQ to Access Data in C# Programs.
Distributed Systems Lab Lecture -1-.  It is extremely simplified application will be realized with the aid of various middleware technologies.  It allows.
Chapter 11 Inheritance and Composition. Chapter Objectives Learn about inheritance Learn about subclasses and superclasses Explore how to override the.
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.
PHP meets MySQL.
Relational Database Management Systems. A set of programs to manage one or more databases Provides means for: Accessing the data Inserting, updating and.
Web Programming Assistant Professor Xiaozhong Liu
Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form.
ABC Insurance Co. Paul Barry Steve Randolph Jing Zhou CSC8490 Database Systems & File Management Dr. Goelman Villanova University August 2, 2004.
15/10/20151 PHP & MySQL 'Slide materials are based on W3Schools PHP tutorial, 'PHP website 'MySQL website.
Introduction to MySQL Lab no. 10 Advance Database Management System.
PHP MySQL Introduction. MySQL is the most popular open-source database system. What is MySQL? MySQL is a database. The data in MySQL is stored in database.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
SYST Web Technologies SYST Web Technologies Databases & MySQL.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Liang, Introduction to Java Programming, Fifth Edition, (c) 2005 Pearson Education, Inc. All rights reserved Chapter 33 Advanced Java.
Intro to DatabasesClass 4 SQL REVIEW To talk to the database, you have to use SQL SQL is used by many databases, not just MySQL. SQL stands for Structured.
Creating PHPs to Insert, Update, and Delete Data CS 320.
Chapter 25 Databases. Chapter Scope Database concepts Tables and queries SQL statements Managing data in a database Java Foundations, 3rd Edition, Lewis/DePasquale/Chase25.
Distributed Systems Lab.  It is extremely simplified application will be realized with the aid of various middleware technologies.  It allows the.
PHP Database connectivity Connecting with RDBMS and editing, adding, and deleting databases therein are all done through PHP functions.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Information Building and Retrieval Using MySQL Track 3 : Basic Course in Database.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Presentation On How To Create Connection To A Database.
DATABASE CONNECTIVITY TO MYSQL. Introduction =>A real life application needs to manipulate data stored in a Database. =>A database is a collection of.
Programming with Java © 2002 The McGraw-Hill Companies, Inc. All rights reserved. 1 McGraw-Hill/Irwin Chapter 5 Creating Classes.
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
CS 174: Web Programming October 14 Class Meeting Department of Computer Science San Jose State University Fall 2015 Instructor: Ron Mak
Task #1 Create a relational database on computers in computer classroom 308, using MySQL server and any client. Create the same database, using MS Access.
CP476 Internet Computing Perl CGI and MySql 1 Relational Databases –A database is a collection of data organized to allow relatively easy access for retrievals,
WEEK# 12 Haifa Abulaiha November 02,
Database: SQL, MySQL, LINQ and Java DB © by Pearson Education, Inc. All Rights Reserved.
# 1# 1 QueriesQueries How do we ask questions of the data? What is SELECT? What is FROM? What is WHERE? What is a calculated field? Spring 2010 CS105.
Form and Graphical User Interfaces. Lesson plan More about queries More about entering data into a table Form.
Understand Data Definition Language (DDL) Database Administration Fundamentals LESSON 1.4.
Introduction to Databases & SQL Ahmet Sacan. What you’ll need Firefox, SQLite plugin Mirdb and Targetscan databases.
Java - KFT1 Task 4 RegiStudent Diagrams
ABT1/GUT1/KFT1 Task 4 Prep Diagrams for MediaManager Cynthia Lang, PE, MSChE Pubali Banerjee, PhD IT Course Mentors-Java Assessments.
Web Database Programming Using PHP
CS320 Web and Internet Programming SQL and MySQL
Understand Data Manipulation Language (DML)
KFT1 Task 4 GETTING STARTED
Understand Data Manipulation Language (DML)
ISC440: Web Programming 2 Server-side Scripting PHP 3
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
CIS 136 Building Mobile Apps
Structured Query Language
Accessing Your MySQL Database from the Web with PHP (Ch 11)
CS3220 Web and Internet Programming SQL and MySQL
Databases and the MVC Model
CS3220 Web and Internet Programming SQL and MySQL
Updating Databases With Open SQL
DATABASE Purpose of database
JDBC II IS
Updating Databases With Open SQL
Presentation transcript:

Java - KFT1 Task 4 RegiStudent Diagrams IT Java Course Mentors : - Pubali Banerjee, PhD - Cynthia Lang, PE, MSChE Western Governors University IT Java Course Mentors : - Pubali Banerjee, PhD - Cynthia Lang, PE, MSChE Western Governors University by Bernard Nsabimana Student ID: BS - IT by Bernard Nsabimana Student ID: BS - IT

UML Required Diagrams ◦ UML Use Case Diagrams ◦ UML Class Diagrams ◦ UML Sequence Diagrams

RegiStudent RegiStudent is an application written using a Java program. The purpose of the application is to maintain registrar database, useful for managing students in school institutions. In this application, there are an abstract superclass called “Student”, and three concrete subclasses: “Graduate”, “UnderGraduate”, and “Part_Time”. MySQL database is the relational database management system (RDBMS) used. NetBeans is used as an integrated development environment (IDE). The application allows users to add new student in the database, update existing student, and delete student from the database. It also helps users to retrieve student’s information from the database. The application calculates also student tuition.

RegiStudent Functional Requirements RegiStudent 1) The database “registrar” has “student” table with 10 fields. 2) The script “registrar.sql” can be executed to create and populate the registrar database. 3) Database connections are handled by regiConnect class. 4) Student is the abstract super class with several abstract methods : ◦ The calculateTuition() method that calculates student tuition according to student ‘s status and credit hours  Graduate 300  Resident : CRHours x 300 ; 350  Non Resident Graduate : CRHours x 350  UnderGraduate 200  Resident : CRHours x 200 ; 400  Non Resident : CRHHours x 400 ;  Part_Time 250  Resident : CRHours x 250 ; 450  Non Resident : CRHours x 450 ; ◦ The update() method that updates existing student in the database ◦ The add() method that adds new student to the database. ◦ The delete() method that deletes existing student record from the database ◦ The query() method that retrieves student info from the database by student ID ◦ The toString() method that is overridden to display the data variables in student concatenated in a string. 5) Three subclasses inherited from student class are Graduate, UnderGraduate, and Part_Time; ◦ The Graduate subclass has two additional attributes : thesisTitle and thesisAdvisor; ◦ The UnderGradute subclass has one additional attribute : level; ◦ The Part_Time subclass has also one additional attribute : company. 6) The tester class is RegiStudent.

Use Case Diagram: RegiStudent User Add student Delete Student Query Student Update Student Database RegiStudent Part_Time UnderGraduate Graduate Part_time UnderGraduate Graduate Graduate UnderGraduate Part_Time

Use Case Diagram : RegiStudent - Add Student functional requirement User Add Student Database RegiStudent Add Part_Time Add UnderGraduate Number 1 Functional Requirement : Number 1 Title: Title: Add Student Description: Description: The user will add student Graduate, or student UnderGraduate or student Part_Time to the collection database. Input: Input: - Graduate: studentID, firstName, lastName, gpa, status, mentor, thesisTitle, thesisAdvisor will be entered ; - UnderGraduate: studentID, firstName, lastName, gpa, status, mentor, level will be entered; - Part_Time: studentID, firstName, lastName, gpa, status, mentor, company will be entered. Results of process or output: Successfully New Student Added to the Results of process or output: The student (Graduate, UnderGraduate or Part_Time) is added to the database, and the message : “Successfully New Student Added to the DB” is displayed. Error handling: Could not Add New Student to the DB Error handling: When the input fails, the message : “"Could not Add New Student to the DB“ is displayed. Add Graduate

Use Case Diagram : RegiStudent - Update Student functional requirement User Update Student Database RegiStudent UpdatePart_Time Update UnderGraduate Number 2 Functional Requirement : Number 2 Title: Title: Update Student Description: Description: The user will update a chosen field of an existing student (Graduate, UnderGraduate or Part_Time) in the collection database. Input: Input: - Graduate: studentID, and one of firstName, lastName, gpa, status, mentor, thesisTitle, thesisAdvisor fields will be entered ; - UnderGraduate: studentID, and one of firstName, lastName, gpa, status, mentor, level fields will be entered; - Part_Time: studentID, and one of firstName, lastName, gpa, status, mentor, company fields will be entered. Results of process or output: Successfully Existing Student Updated Results of process or output: The field chosen by the user from the existing student (Graduate, UnderGraduate or Part_Time) fiields is updated, and the message : “Successfully Existing Student Updated” is displayed. Error handling: Student could not be Updated Error handling: When the input fails, the message : ““Student could not be Updated“ is displayed. UpdateGraduate

Use Case Diagram : RegiStudent - Query Student functional requirement User Delete Student Database RegiStudent Qelete Part_Time Delete UnderGraduate Number 3 Functional Requirement : Number 3 Title Title : Delete Student Description Description : The user will delete student (Graduate, UnderGraduate, or Part_Time) from the collection database. Inpu Inpu t: To delete Graduate, UnderGraduate, or Part_Time student from the database, the student collector will only enter studentID. Results of process or output Successfully Existing Student deleted from the DB Results of process or output : The student (Graduate, UnderGraduate, or Part_Time) is deleted from the database, and the message: “ Successfully Existing Student deleted from the DB ” is displayed. Error handlingCould not delete Existing Student from the DB Error handling : The message: " Could not delete Existing Student from the DB “ is displayed. Delete Graduate

Use Case Diagram : RegiStudent - Query Student functional requirement User Query Student Database RegiStudent Query Part_Time Query UnderGraduate Number 4 Functional Requirement : Number 4 Title: Title: Query Student Description: Description: The user will retrieve student (Graduate, UnderGraduate, or Part_Time) informations from the collection database. Input: Input: - Graduate: studentID will be entered to retrieve firstName, lastName, gpa, status, mentor, thesisTitle, thesisAdvisor from the collection database, and displayed ; - UnderGraduate: Also studentID will be entered to retrieve firstName, lastName, gpa, status, mentor, level from the collection database, and displayed; - Part_Time: studentID is entered to retrieve firstName, lastName, gpa, status, mentor, company from the collection database, and displayed. Results of process or output: Results of process or output: The student (Graduate, UnderGraduate or Part_Time) informations are retrieved from the collection database and displayed. Error handling: Could not retrieve any information : SQL ERROR Error handling: When the iquery fails, the message : “Could not retrieve any information : SQL ERROR“ is displayed. Query Graduate

Class Diagram : RegiStudent Student > Student - studentID : Integer - firstName : String - lastName : String - gpa : Float - status : String - mentor : String + Student() + setStudentID(stuID : Integer) : void + setFirstName(stuFirst : String) : void + setLastName(stuLast : String) : void + setGpa(stuGpa : Float) : void + setStatus(stuStatus : String) : void + setMentor(stuMentor : String) : void + getStudentID() : Integer + getFirst() : String + getLast() : String + getGpa() : Float + getStatus() : String + getMentor() : String + add() : void + update() : void + delete() : void + query() : void + calculateTuition() : double + toString() : String UnderGraduate - level : String + UnderGraduate() +setLevel(stuLevel : String) : void + getLevel() : String + add() : void + update() : void + delete() : void + query() : void + calculateTuition() : double + toString() : StringGraduate - thesisTitle : String - thesisAdvisor : String + Graduate() + setThesis(stuThesis : String) : void + setAdvisor(stuAdvisor : String) : void + getThesis() : String + getAdvisor() : String + add() : void + update() : void + delete() : void + query() : void + calculateTuition() : double + toString() : String RegiStudent - stuOption : Integer - menuint : Scanner + main() + AddStudent() : void + UpdateStudent() : void + DeleteStudent() : void + QueryStudent() : void + Tuitionstudent() : void 1 1..* 0..* 0..*regiConnect - stuConn : Connection + regiConnect() + makeConnection() : Connection + makeStatement() : Statement + close() : int Part_Time - company : String + Part_Time() +setCompany(stuCompany : String) : void + getCompany() : String + add() : void + update() : void + delete() : void + query() : void + calculateTuition() : double + toString() : String 0..*

Sequence Diagram : Add Student RegistudentStudentGraduateUnderGrauatePart_Time Database User Start program. Show Maijn Menu. Select Add Student Request Student Category (Graduate, UnderGraguate, Part_Time) Graduate Select Graduate UnderGraduate Select UnderGraduate Part_Time Select Part_Time Part_Time Create Part_Time Object Insert Student in database Call Student Constructor Constructor info Return success message Request studentID, firstName, lastName, gpa, status, mentor, thesisTitle, thesisAdvisor Enter studentID, firstName, lastName, gpa, status, mentor, thesisTitle, thesisAdvisor UnderGraduate Create UnderGraduate Object Graduate Create a Graduate Object Enter studentID, firstName, lastName, gpa, status, mentor, level Enter studentID, firstName, lastName, gpa, status, mentor, company Enter studentID, firstName, lastName, gpa, status, mentor, level Enter studentID, firstName, lastName, gpa, status, mentor, company

Sequence Diagram : Update Student RegistudentStudentGraduateUnderGrauatePart_Time Database User Start program. Show Maijn Menu. Select Update Student Request Student Category (Graduate, UnderGraguate, Part_Time) Graduate Select Graduate UnderGraduate Select UnderGraduate Part_Time Select Part_Time Part_Time Update Part_Time Object Update existing Student in database Call Student Constructor Constructor info Return success message Select a Field to update ( firstName, lastName, gpa, status, mentor, thesisTitle, thesisAdvisor ) Enter New (firstName, lastName, gpa, status, mentor, thesisTitle, thesisAdvisor) UnderGraduate Update UnderGraduate Object Graduate Update Graduate Object Enter New ( firstName, lastName, gpa, status, mentor, level ) Enter New ( firstName, lastName, gpa, status, mentor, company ) Select a Field to update ( firstName, lastName, gpa, status, mentor, level ) Select a Field to update ( firstName, lastName, gpa, status, mentor, company ) Request Student ID Enter Student ID

Sequence Diagram : Delete Student RegistudentStudentGraduateUnderGrauatePart_Time Database User Start program. Show Maijn Menu. Select Delete Student Request Student Category (Graduate, UnderGraguate, Part_Time) Graduate Select Graduate UnderGraduate Select UnderGraduate Part_Time Select Part_Time Part_Time Delete Part_Time Object Delete Student From the database Call Student Constructor Constructor info Return success message UnderGraduate Delete UnderGraduate Object Graduate Delete Graduate Object Request Student ID Enter Student ID

Sequence Diagram : Query Student RegistudentStudentGraduateUnderGrauatePart_Time Database User Start program. Show Maijn Menu. Select Query Student Request Student Category (Graduate, UnderGraguate, Part_Time) Graduate Select Graduate UnderGraduate Select UnderGraduate Part_Time Select Part_Time Part_Time Retrieve Part_Time Object Retrieve Student info From the database Call Student Constructor Constructor info Return success message UnderGraduate Retrieve UnderGraduate Object Graduate Retrieve Graduate Object Request Student ID Enter Student ID