コード例 #1
0
 /**
  * Closes the database connection.
  *
  * @throws SQLException if an error occurs
  */
 public synchronized void close() throws SQLException {
   connection.close();
   connection = null; // Garbage collect the connection
 }
コード例 #2
0
 /**
  * Closes the database connection.
  *
  * @throws SQLException if an error occurs
  */
 public synchronized void close() throws SQLException {
   _connection.close();
   _connection = null; // Garbage collect the connection
   fireConnectionEvent(false, null);
 }