Chapter 17
Using Java Database Connectivity
IN THIS CHAPTER
Connecting to a database
Inserting values into a database
Making queries to a database
The year is 1998. I'm scheduled to introduce Java Database Connectivity to a group of computer science professors at the ITiCSE conference in Ireland. Every day, for six days, I spend all afternoon driving from one town to another. Every evening, my family members visit the town's sites while I sit in our hotel room, pounding away at my laptop. The demo I have planned for the conference presentation isn't working, and nothing I do makes the error messages go away.
On the day of the conference, my demo still isn't working. I do a scaled-down presentation — one that should be called “Simulating Java Database Connectivity.” Like any experienced instructor, I make up an excuse for the presentation's wimpy results. “JDBC is still in beta,” I say. Fortunately, the conference attendees seem to believe me.
A month later, back home in New Jersey, I discover the flaw in the demo I had planned. Rather than type database customers, I should have typed databasecustomers. The thing that kept me from touring towns in Ireland and reduced my conference ...