Exemplo n.º 1
0
 /**
  * Quietly close the Connection, Statement and ResultSet. Any errors will be printed to the
  * stderr.
  *
  * @param connection The Connection to be closed quietly.
  * @param statement The Statement to be closed quietly.
  * @param resultSet The ResultSet to be closed quietly.
  */
 public static void close(Connection connection, Statement statement, ResultSet resultSet) {
   close(resultSet);
   close(statement);
   close(connection);
 }
Exemplo n.º 2
0
 /**
  * Quietly close the Connection and Statement. Any errors will be printed to the stderr.
  *
  * @param connection The Connection to be closed quietly.
  * @param statement The Statement to be closed quietly.
  */
 public static void close(Connection connection, Statement statement) {
   close(statement);
   close(connection);
 }