com.ning.metrics.goodwill.dao
Class DAOUtil

java.lang.Object
  extended by com.ning.metrics.goodwill.dao.DAOUtil

public final class DAOUtil
extends Object


Constructor Summary
DAOUtil()
           
 
Method Summary
static void close(Connection connection)
          Quietly close the Connection
static void close(Connection connection, Statement statement)
          Quietly close the Connection and Statement.
static void close(Connection connection, Statement statement, ResultSet resultSet)
          Quietly close the Connection, Statement and ResultSet
static void close(ResultSet resultSet)
          Quietly close the ResultSet.
static void close(Statement statement)
          Quietly close the Statement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAOUtil

public DAOUtil()
Method Detail

close

public static void close(Connection connection)
Quietly close the Connection

Parameters:
connection - The Connection to be closed quietly

close

public static void close(Statement statement)
Quietly close the Statement

Parameters:
statement - The Statement to be closed quietly

close

public static void close(ResultSet resultSet)
Quietly close the ResultSet.

Parameters:
resultSet - The ResultSet to be closed quietly

close

public static void close(Connection connection,
                         Statement statement)
Quietly close the Connection and Statement.

Parameters:
connection - The Connection to be closed quietly
statement - The Statement to be closed quietly

close

public static void close(Connection connection,
                         Statement statement,
                         ResultSet resultSet)
Quietly close the Connection, Statement and ResultSet

Parameters:
connection - The Connection to be closed quietly
statement - The Statement to be closed quietly
resultSet - The ResultSet to be closed quietly


Copyright © 2010-2011 Ning, Inc.. All Rights Reserved.