Instructor-led training
JDBC - Java Database Connectivity Training in Tuskegee, Alabama
DBC is a Java technology for accessing SQL databases.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Tuskegee, Alabama 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 TrainingPrerequisites
Course Outline
What makes JDBC harder than its API size suggests
The JDBC API is small. The difficulty is that a working data layer depends on several things at once: the driver, the database's SQL dialect, transaction state, and how connections are obtained and released. The syllabus builds these up in order.
- Connecting. It starts with the JDBC architecture, DriverManager, driver types, JDBC URLs and the Connection interface. DatabaseMetaData and database exception handling follow.
- Talking to the data. Plain statements, precompiled statements and stored procedure calls come next. Then comes ResultSet processing, including null data, and inserting, updating and retrieving rows.
- Controlling consistency. Transactions come before DataSource, JNDI and connection pooling (including statement pooling), because pooled connections are shared and their transaction state matters.
- Structuring code. Data Access Objects, value objects and object-relational mapping show how to keep SQL out of business logic. The course then compares JDBC with SQLJ, mapping tools, JDO and EJB entity beans.
Common misconceptions: that JDBC makes code database-independent (the API is portable, but SQL dialects, type mappings and driver behavior are not), and that a ResultSet value can be used without checking for null. Another is that moving from DriverManager to a pooled DataSource only changes how the connection is obtained, when it also changes how connections are managed and shared.
Who it suits and what to take around it
This is a one-day, general-level course, split about evenly between lecture and hands-on work. It assumes working experience with Java and object-oriented programming. It suits developers and maintainers who need to read, write or troubleshoot JDBC code. The syllabus names Java SE 7 and earlier, which is out of support and no longer on Oracle's support roadmap. The course therefore fits teams that build, maintain or migrate existing applications on those versions.
If your Java or OO background is thin, the 3-day Fast Track to Java for OO Developers covers the language fundamentals this course takes for granted. For the web tier that usually sits on top of JDBC, Fast Track to Java EE 5 with Servlets, JSP & JDBC places database access in a full application. For broader enterprise Java after the basics, see Advanced Java Programming (3 days).
Organizations working on newer Java releases can ask about private training tailored to the versions they run through a training proposal request.
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.
- Replacing hard-coded connections. A team might maintain an application that opens connections through DriverManager with URLs embedded in code. The syllabus topics on DataSource, JNDI lookup and connection pooling describe the move to container-managed, pooled access.
- A bulk nightly load. A team might need to insert many rows quickly and reliably. Precompiled statements, batch updates and explicit transaction control (commit and rollback) are the relevant topics. Exception handling decides what happens when one row fails.
- Tooling that inspects a schema. A team might write a utility that discovers tables and columns at runtime. DatabaseMetaData supplies that information. The same team might store documents or images and need BLOB and CLOB handling.
AI coding assistants and JDBC
AI coding assistants are useful for repetitive JDBC work: drafting a DAO class, mapping ResultSet columns to a value object, or outlining a batch insert. Their weaknesses show up where correctness depends on runtime state rather than syntax.
- Resource handling. Generated code may leak connections, statements or result sets on error paths. A leaked connection from a pool fails only under load.
- Transaction boundaries. Assistants often leave auto-commit on or place commit and rollback in the wrong spot.
- SQL construction. Generated code may concatenate values into SQL strings instead of using precompiled, parameterized statements.
- Nulls and types. Primitive getters hide SQL nulls, and BLOB, CLOB and user-defined type mappings vary by driver and database.
- Target version. Suggestions may use language features or driver APIs newer than the runtime your system actually uses.
To verify, run the code against a real database of the type you deploy on. Force failures midway through a transaction and confirm that rollback leaves the data consistent. Watch the open connection count under repeated calls, and review every statement for parameter binding.
Frequently asked questions
What level is this course and what should I know first?
It is a general-level, one-day course. You should have working experience with Java and object-oriented programming. Prior JDBC experience is not assumed, though familiarity with relational databases and SQL helps in the hands-on work.
What does the course cover?
It covers the JDBC architecture and API, drivers and JDBC URLs, connections, executing statements, precompiled statements and stored procedures, ResultSets, transactions, DatabaseMetaData, DataSource with JNDI, connection pooling, and DAO and object-relational mapping concepts. It also covers batch updates, scrollable result sets, rowsets, user-defined types and BLOB/CLOB handling, and it compares JDBC with SQLJ, JDO and EJB entity beans.
Which Java version does it use?
The syllabus names Java SE 7 and earlier, which is out of support and no longer on Oracle's support roadmap. The course suits teams maintaining or migrating existing systems on those versions.
Can it be delivered privately, onsite or online?
Yes. HSG delivers private training for organizations at the client's location or live online.
Can the content be customized?
Private training can be customized, including to the Java and database versions your organization uses, including current releases. You can describe your environment in a training proposal request.
Training locations
JDBC - Java Database Connectivity training across the U.S. and beyond.
We provide private JDBC - Java Database Connectivity training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all JDBC - Java Database Connectivity 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
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.