/** * Closes the database connection. * * @throws SQLException if an error occurs */ public synchronized void close() throws SQLException { connection.close(); connection = null; // Garbage collect the connection }
/** * 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); }