Class PersonQueries
Class PersonQueries
(Fig. 24.31) manages the address book application’s database connection and creates the PreparedStatement
s that the application uses to interact with the database. Lines 18–20 declare three PreparedStatement
variables. The constructor (lines 23–49) connects to the database at lines 27–28.
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.