DPS904 - Java Database Connectivity

Outline info
Semester
School
Last revision date 2023-10-02 00:41:00.656
Last review date 2023-12-04 00:15:10.243


Subject Title
Java Database Connectivity

Subject Description
The student will be introduced to connectivity issues that business deals with in today's environment, in creating a GUI front end to a back-end database. In this course students will connect to Oracle database from various back-end environments and will manipulate the data by SQL or database objects. Issues of connectivity across a wide variety of platforms and also through the internet, will be discussed, practiced and implemented.

Credit Status
1 credit (3 units)
Professional Option for BSD -­ Bachelor of Technology (Software Development)

Learning Outcomes
Upon successful completion of this subject the student will be able to:

  • build multi-threaded JSP and Servlet application.
  • decide between various architectural models for developing JSP and Servlet applications.
  • explain the difference between Two-Tier and Three-Tier models as it relates to JDBC
  • understand the details of how and when the Servlet is loaded, methods to receive information and can generate HTML.
  • develop JavaBeans for use with JSP.
  • understand SQLJ and Java Stored Procedures of ORACLE database with internal connection and decide/apply one of those technologies to retrieve data in fasest manner in the J2EE web applications.
  • understand how Servlets can be used for database connectivity.
  • understand Java Web applications and their components: Servlets and JSPs, External classes , JavaBeans , Tag libraries, Configuration files
  • understand Java Web applications and their components:
  • recognize different driver implementations by different
  • analyze the multi-tier architecture of web-based enterprise applications containing JDBC, Servlets and JavaServer Pages (JSP) and design robust J2EE web application by using all these technologies.
  • handle SQL exceptions, perform database updates and handle transactions
  • use the JDBC API to access databases from a Java application or applet
  • understand SQLJ and Java Stored Procedures of ORACLE database with internal connection and decide/apply one of those technologies to retrieve data in fasest manner in the J2EE web applications.
  • utilize various interfaces such as Connection, Statement, ResultSet
  • design and develop J2EE web applications by using Oracle XML Developer's Kit for building dynamic XML pages from the output of SQL queries.

Academic Integrity
Seneca upholds a learning community that values academic integrity, honesty, fairness, trust, respect, responsibility and courage. These values enhance Seneca's commitment to deliver high-quality education and teaching excellence, while supporting a positive learning environment. Ensure that you are aware of Seneca's Academic Integrity Policy which can be found at: http://www.senecapolytechnic.ca/about/policies/academic-integrity-policy.html Review section 2 of the policy for details regarding approaches to supporting integrity. Section 2.3 and Appendix B of the policy describe various sanctions that can be applied, if there is suspected academic misconduct (e.g., contract cheating, cheating, falsification, impersonation or plagiarism).

Please visit the Academic Integrity website http://open2.senecac.on.ca/sites/academic-integrity/for-students to understand and learn more about how to prepare and submit work so that it supports academic integrity, and to avoid academic misconduct.

Discrimination/Harassment
All students and employees have the right to study and work in an environment that is free from discrimination and/or harassment. Language or activities that defeat this objective violate the College Policy on Discrimination/Harassment and shall not be tolerated. Information and assistance are available from the Student Conduct Office at student.conduct@senecapolytechnic.ca.

Accommodation for Students with Disabilities
The College will provide reasonable accommodation to students with disabilities in order to promote academic success. If you require accommodation, contact the Counselling and Accessibility Services Office at ext. 22900 to initiate the process for documenting, assessing and implementing your individual accommodation needs.

Camera Use and Recordings - Synchronous (Live) Classes
Synchronous (live) classes may be delivered in person, in a Flexible Learning space, or online through a Seneca web conferencing platform such as MS Teams or Zoom. Flexible Learning spaces are equipped with cameras, microphones, monitors and speakers that capture and stream instructor and student interactions, providing an in-person experience for students choosing to study online.

Students joining a live class online may be required to have a working camera in order to participate, or for certain activities (e.g. group work, assessments), and high-speed broadband access (e.g. Cable, DSL) is highly recommended. In the event students encounter circumstances that impact their ability to join the platform with their camera on, they should reach out to the professor to discuss. Live classes may be recorded and made available to students to support access to course content and promote student learning and success.

By attending live classes, students are consenting to the collection and use of their personal information for the purposes of administering the class and associated coursework. To learn more about Seneca's privacy practices, visit Privacy Notice.

Prerequisite(s)
BTP400 and BTD310

Topic Outline

  • Accessing the Database with JDBC - 10%
    • Steps for using JDBC to execute a SQL statement. Connecting to different databases.
    • Registering the driver
    • Getting a database connection
    • Executing a SQL statement
    • Handling exceptions
  • Advanced JDBC features - 5%
    • Managing JDBC transactions.
    • Java in the Database, the Oracle JVM and java stored procedures.
    • Transactions by SQLJ.
  • Architecting J2EE Applications - 5%
    • Overall review of J2EE Applications
    • J2EE design patterns
    • MVC Architecture
    • The Model
    • The View
    • The Controller
    • Tomcat Structure and running first simple Tomcat Application
  • Creating the web tier: Servlets - 10%
    • Servlet Lifecycle
    • Handling Input using forms
    • Exception handling
    • Debugging a servlet
    • Creating a servlet in JDeveloper
    • Servlet Mapping
    • Deploying a servlet
  • Access the database with Servlets - 10%
    • Review of JDBC
    • Servlet Connection Types
    • Registering a driver
    • Connection pooling
  • Utilizing additional Servlet techniques - 15%
    • Sending and Retrieving HTTP headers
    • Creating cookies on the client
    • Preserving State in Servlets
    • Servlet filters
    • Event Listeners
    • ServletContext events
    • HttpSession events
  • Maintaining state within J2EE Applications - 10%
    • Sessions in Servlets
    • URL Rewriting
    • HttpSession
    • HttpSessionBindingListener interface
    • Session objects
    • Sessions and events
    • Multi-threading aspects
  • Creating the web tier: JavaServer Pages - 10%
    • JSP Lifecycle
    • Directives
    • Scriptlets
    • Expressions
    • Implicit objects
    • JSP and JavaBeans
    • Creating and reusing a bean
    • JSP XML Documents
  • Modularizing JavaServer Pages Development with Tags - 15%
    • Creating custom tags
    • Creating custom tag libraries
    • The JSP Standard Tag Library (JSTL)
    • Expression Language in JSTL
    • Introduction to Java Server Faces (JSF)
  • Introduction to Oracle and XML - 10%
    • XML essentials.
    • The basic structure in DOM and SAX .
    • Transform XML to XHTML.
    • Extracting data from database

Mode of Instruction
Three hours interactive lecture per week, and one hour activity-based earning per week (four hours total)

Prescribed Texts

  • JavaServer Pages Developer's Handbook by Todd, Szolkowski; ISBN 0-672-32438-5 published by Sams

Reference Material

  • JDBC API Tutorial and Reference, Second Edition, Java Series ISBN: 0-201-43328-1
  • Core Servlets and JavaServer Pages by Marty Hall (Prentice Hall), ISBN: 0-13-009229-0
  • Java Programming with Oracle JDBC by Donald Bales published by O'Reilly; ISBN: 0-596-00088-X

Required Supplies

  • None

Student Progression and Promotion Policy

  • Satisfactorily complete all assignments
  • Pass the final exam
  • Complete ALL assignments and labs
  • Note that 60% is the minimum passing grade.
  • Pass the weighted average of the tests

http://www.senecapolytechnic.ca/about/policies/student-progression-and-promotion-policy.html

Grading Policyhttp://www.senecapolytechnic.ca/about/policies/grading-policy.html

A+ 90%  to  100%
A 80%  to  89%
B+ 75%  to  79%
B 70%  to  74%
C+ 65%  to  69%
C 60%  to  64%
D+ 55%  to  59%
D 50%  to  54%
F 0%    to  49% (Not a Pass)
OR
EXC Excellent
SAT Satisfactory
UNSAT Unsatisfactory

For further information, see a copy of the Academic Policy, available online (http://www.senecapolytechnic.ca/about/policies/academics-and-student-services.html) or at Seneca's Registrar's Offices. (https://www.senecapolytechnic.ca/registrar.html).


Modes of Evaluation

Assignments (Minimum 3) 30%
Lab Assignments 10%
Mid-term test 20%
Final Exam 40%

Approved by: Mary-Lynn Manton