A DB Connection Object

Assignment #7
Due: 3/11/2002
Points: 10

Create a Java Component that manages communication to the database.

The constructor should open the Connection.

There should be at least two other methods:

  1. Executes a SELECT query and returns a ResultSet
  2. Executes an UPDATE, INSERT, or DELETE query and returns an int (number of rows affected)

All exceptions should be thrown instead of being caught.