[prev] [index] [next]

Making a Statement

Each database operation has to be done via a Statement.

Each Statement is attached to a Connection.

   Statement s = conn.createStatement();

Multiple Statements can be handled by a Connection.

Transactions are also handled by the Connection.

   conn.commit();

All transactions are committed and all Statements are closed when a Connection closes.