Package com.atlassian.confluence.util
Class SQLUtils
- java.lang.Object
-
- com.atlassian.confluence.util.SQLUtils
-
public final class SQLUtils extends Object
Contains a variety of functions for handling SQL Connections and Queries.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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
-
-