Skip to main content

Instructor-led training

JDBC - Java Database Connectivity Using Rational Application Developer (RAD) Training in Rome, New York

JDBC is a Java technology for accessing SQL databases.

What you'll learn

JDBC is a Java technology for accessing SQL databases. It is a core part of J2EE, and it works with every major database product. This hands-on course covers all the details that you will need to use JDBC to access the information in your databases using Java. It also talks about real world issues in using JDBC. All labs are done using the RAD Development Environment, and the lab instructions include detailed directions on using RAD and the RAD wizards and tools.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Rome, New York or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

Suitable for programmers with some previous experience in working with Java and Object-Oriented (OO) programming.

Course Outline

Introduction
Relational Database and JDBC Overview
Overview, Table Relationships, Web Based Data Access, JDBC Characteristics
JDBC Architecture, JDBC API Overview
DriverManager, JDBC Drivers
Naming databases with JDBC URLs
Connecting to a database
Connection interface, Establishing a connection
DataBaseMetaData
Handling Database Exceptions
 
Data Access
DAO – Data Access Objects, O-R Mapping, Value Objects
Processing Database Data
Executing statements, precompiled statements and stored procedures
Processing ResultSets,
Dealing with Null data
Updating, inserting, retrieving data
Controlling Transactions
JDBC Driver Types
 
DataSource
J2EE and DataSource
Using JNDI
 
Connection Pooling
Overview, Usage, Advantages, Statement Pooling
 
Advanced Topics
Other Database Access Technologies
SQLJ, O-R Mapping Tools, JDO (Java Data Objects), EJB Entity Beans
Advanced JDBC Features
Batch Updates, Srollable Result Sets, Rowsets, User Defined Types, BLOBS, CLOB

What makes JDBC harder than it looks

The JDBC calls are few. The difficulty is in the details around them: resource handling, transactions, null values and where connections come from. The syllabus builds in layers.

  • Connecting. It starts with the architecture and API overview, DriverManager, JDBC drivers, JDBC URLs, the Connection interface and DatabaseMetaData. Handling database exceptions is taught here too, because most failures show up at connection time.
  • Processing data. Statements, precompiled statements and stored procedures come next, then ResultSet processing, dealing with null data, and updating, inserting and retrieving rows. Controlling transactions follows. A common misconception is that a query that runs is a query that is correct. A SQL NULL read through a primitive getter can silently become 0 unless you check for it, and a transaction that is never committed or rolled back cleanly can leave a database inconsistent.
  • Structure. Data Access Objects, O-R mapping and value objects show how to keep SQL out of business logic.
  • Production concerns. Driver types, DataSource, JNDI and connection pooling (including statement pooling) change how connections are obtained. Code that works with DriverManager on a desktop often needs rethinking under a container-managed pool, where closing a connection means something different.

The final block surveys SQLJ, O-R mapping tools, JDO and EJB entity beans. It also covers batch updates, scrollable result sets, rowsets, user-defined types and BLOB/CLOB handling. These topics matter because each one changes what a connection can do and what it costs.

Who it suits and what to take around it

The course is for programmers who already have some Java and object-oriented experience and need to read and write database access code in one day. Labs run in Rational Application Developer (RAD), and the lab instructions walk through its wizards and tools. The course lists Java SE 7 and earlier as its platform, which is out of support. It therefore fits organizations that build, maintain or migrate existing systems on that platform.

If your Java is thin, Fast Track to Java 7 and OO Development, Rational Application Developer (RAD) covers the language in the same RAD environment. After this course, Fast Track to Java EE 5 with Servlets, JSP & JDBC puts JDBC inside a web application.

Organizations working on newer Java releases can ask about private training tailored to the versions they use. Request a training proposal to start that conversation. More options are listed in the Java Programming courses and learning guide.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • Isolating SQL. A team might have SQL scattered through servlet code. The DAO and value-object material shows how to move it behind one data access layer, so a schema change touches one class instead of many.
  • Safer, faster writes. For example, a nightly load that builds SQL strings and issues one insert at a time could move to precompiled statements with bound parameters and batch updates. The syllabus covers both, plus transaction control for committing or rolling back the whole load.
  • Moving to managed connections. A team might migrate an application from direct DriverManager connections to a container-managed DataSource looked up through JNDI with connection pooling. The syllabus's coverage of the DataSource interface, J2EE and JNDI is the relevant background.

AI coding assistants and JDBC

AI coding assistants are good at boilerplate: a DAO skeleton, a value object that mirrors a table, or a loop that maps a ResultSet to objects. They can also explain an unfamiliar SQLException or draft unit tests.

They tend to fail on the details this course stresses:

  • Building SQL by string concatenation instead of precompiled statements with bound parameters, which invites injection.
  • Leaving statements, result sets or connections open on error paths.
  • Mishandling NULL columns.
  • Getting transaction boundaries wrong, such as leaving auto-commit on when several statements must succeed together.
  • Opening a connection directly where an application should use a pooled DataSource.
  • Suggesting APIs or driver behavior that does not match the project's Java version or database.

To verify, check every query for parameter binding, and trace every code path to confirm resources are closed. Test commit and rollback against a real database, including a forced failure halfway through. Compare generated code with the JDBC level your driver and runtime actually support.

Frequently asked questions

What level is this course?

It is a general-level, one-day course for programmers who already know Java and object-oriented programming. It is not an introduction to Java.

What do I need to know beforehand?

Some previous experience with Java and object-oriented programming. Familiarity with relational databases and SQL helps, since the course focuses on accessing a database from Java.

What does the course cover?

It covers the JDBC architecture, drivers and URLs, connections, statements and result sets, transactions, DAOs, DataSource with JNDI, and connection pooling. It also surveys SQLJ, JDO and EJB entity beans, and covers batch updates, rowsets and BLOB/CLOB handling. Labs use RAD and its wizards.

Can this be delivered privately for our team?

Yes. HSG provides private training for organizations, delivered onsite at your location or live online.

Can the content be customized to our Java version or database?

Private courses can be tailored to the technology versions an organization uses, including current releases. Request a training proposal to discuss your environment.

Training locations

JDBC - Java Database Connectivity Using Rational Application Developer (RAD) training across the U.S. and beyond.

We provide private JDBC - Java Database Connectivity Using Rational Application Developer (RAD) training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all JDBC - Java Database Connectivity Using Rational Application Developer (RAD) training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.