com.atlassian.confluence.util
Class SQLUtils

java.lang.Object
  extended by com.atlassian.confluence.util.SQLUtils

public final class SQLUtils
extends Object

Contains a variety of functions for handling SQL Connections and Queries.


Method Summary
static void closeConnectionQuietly(Connection c)
          Closes a connection without logging an error.
static void closeResultSetQuietly(ResultSet s)
          Closes a ResultSet, ignoring errors.
static void closeStatementQuietly(Statement s)
          Closes a Statement, ignoring errors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

closeConnectionQuietly

public static void closeConnectionQuietly(Connection c)
Closes a connection without logging an error.

Parameters:
c - connection to close

closeStatementQuietly

public static void closeStatementQuietly(Statement s)
Closes a Statement, ignoring errors.

Parameters:
s - Statement to close

closeResultSetQuietly

public static void closeResultSetQuietly(ResultSet s)
Closes a ResultSet, ignoring errors.

Parameters:
s - ResultSet to close


Copyright © 2003-2013 Atlassian. All Rights Reserved.