English
Topic 14. Working with relational databases through JDBC
Goal: learn to use parameterized queries, map results to objects, and verify transactional changes.
Lecture contents
- The relational model and PostgreSQL — Persistent data and the relational model · Setting up PostgreSQL
- JDBC and queries — JDBC: API, driver, and connection · Example 1. The first connection · Query parameters and results · Example 2. A book catalog with JOIN
- Transactions and concurrency — Transactions and concurrency
- DAO, DataSource, and testing — DAO and batch changes · DataSource, metadata, and errors · Testing the DAO and transactions