Course code Title Language Price # Unit Startdate Hour Enddate Location Signup
JVN048 JDBC Programming on your request on your request Contact Us

JDBC Programming

JDBC Programming

Overview

Course code: 
JVN048
Duration: 
1
Time Unit: 
Day(s)
Overview: 

This one-day course covers the fundamentals of database programming in Java using JDBC (Java Database connectivity) in an incremental fashion, to get the programmer up to speed quickly and then to layer a deeper understanding of JDBC upon that foundation.

Lab exercises use SQL99 constructs whenever possible in order to be relevant to databases from all vendors.

Learning Objectives :
- Briefly review relational database fundamentals with an awareness of the differences between SQL99 and SQL implementations by database vendors.
- Connect to a database using JDBC and perform a simple query.
- Update relational data using JDBC to execute updates, inserts and deletes.
- Use prepared statements to produce reusable database queries and optimize execution time.
- Use callable statements to access database procedures.
- Use scrollable and updatable results sets for more robust solutions.
- Use commit, rollback, and savepoint to build transactional systems.
- Use batch processing for efficient handling of large datasets.
- Understand the use of RowSets and the improved techniques and portability that they bring to JDBC.

Topics

Topics: 

Database and SQL Fundamentals
- Relational Databases and SQL
- SQL Versions and Code Portability
- Database, Schema, Tables, Columns and Rows
- DDL -- Creating and Managing Database Objects
- DML -- Retrieving and Managing Data
- Sequences
- Stored Procedures
- Result Sets and Cursors
- Using SQL Terminals

JDBC Fundamentals
- What is the JDBC API?
- JDBC Drivers
- Making a Connection
- Creating and Executing a Statement
- Retrieving Values from a ResultSet
- SQL and Java Datatypes
- SQL NULL Versus Java null
- Creating and Updating Tables
- Handling SQL Exceptions and Proper Cleanup
- Handling SQLWarning
- The JDBC 4.0 Cause Facility

Advanced JDBC
- SQL Escape Syntax
- Using Prepared Statements
- Using Callable Statements
- Scrollable Result Sets
- Updatable Result Sets
- Transactions
- Commits, Rollbacks, and Savepoints
- Batch Processing
- Alternatives to JDBC

Introduction to Row Sets
- Row Sets in GUI and J2EE programming
- Advantages of RowSets
- RowSet Specializations
- Using CachedRowSets

Prerequisites

Prerequisites: 

- Experience in Java Programming is essential. The student must be comfortable with object-oriented Java, interfaces and abstract classes. Course "Java Programming Language" is excellent preparation.
- Understanding of basic SQL usage or other work with relational databases will be helpful, but is not required.