Managing information means performing operations such as storing, modifying, removing, sorting, arranging, linking, and matching data in a data store. Database management systems provide the means to perform these operations and relational databases are the most common type of data store used with web applications.
This chapter starts by briefly discussing the fundamental Java technology for persistence, Java Database Connectivity (JDBC). We will learn how to connect and how to consume data from a relational database using connection pools and SQL queries. We will also describe the concept of a data repository, a way of encapsulating persistence implementation details.
We will develop a very simple web UI that lists data from a database. The purpose of the example is to show you the very fundamentals of database connectivity. Chapter 6, Connecting...