protected void close(Connection connection,Statement statement,ResultSet resultSet){
  try {
    if (resultSet != null) {
      resultSet.close();
    }
  }
 catch (  SQLException ex) {
    LOGGER.error("An error occurred on closing the result set.",ex);
  }
  try {
    if (statement != null) {
      statement.close();
    }
  }
 catch (  SQLException ex) {
    LOGGER.error("An error occurred on closing the statement.",ex);
  }
  try {
    if (connection != null) {
      connection.close();
    }
  }
 catch (  SQLException ex) {
    LOGGER.error("An error occurred on closing the connection.",ex);
  }
}

protected void close ( Connection connection , Statement statement , ResultSet resultSet ) { try { if ( resultSet != null ) { resultSet . close ( ) ; } } catch ( SQLException ex ) { LOGGER . error ( "An error occurred on closing the result set." , ex ) ; } try { if ( statement != null ) { statement . close ( ) ; } } catch ( SQLException ex ) { LOGGER . error ( "An error occurred on closing the statement." , ex ) ; } try { if ( connection != null ) { connection . close ( ) ; } } catch ( SQLException ex ) { LOGGER . error ( "An error occurred on closing the connection." , ex ) ; } }
close the specified database objects . avoid closing if null and hide any sqlexceptions that occur .
