コード例 #1
0
ファイル: DAOUtil.java プロジェクト: JacobsonMT/ndb
 /**
  * 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);
 }
コード例 #2
0
ファイル: DAOUtil.java プロジェクト: JacobsonMT/ndb
 /**
  * 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);
 }