org.araneaframework.backend.list.helper
Class DbUtil

java.lang.Object
  extended byorg.araneaframework.backend.list.helper.DbUtil

public class DbUtil
extends Object

Utility class providing some general methods for manipulating connection to the database. NB! Every and one class and/or method that utilizes database connection, statement and/or result set should use this class.

Author:
Jevgeni Kabanov (ekabanov at araneaframework dot org)

Method Summary
static void closeDbObjects(Connection con, Statement stmt, ResultSet rs)
          Closes connection to the database along with current statement and result set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

closeDbObjects

public static void closeDbObjects(Connection con,
                                  Statement stmt,
                                  ResultSet rs)
Closes connection to the database along with current statement and result set.

Parameters:
con - connection to be closed.
stmt - statement to be closed.
rs - result set to be closed.