public class JdbcUtils extends Object
Constructor and Description |
---|
JdbcUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(Connection c)
Close a database connection quietly without throwing any exceptions.
|
static void |
closeQuietly(NamedCallableStatement s)
Close a database statement quietly without throwing any exceptions.
|
static void |
closeQuietly(NamedPreparedStatement s)
Close a database statement quietly without throwing any exceptions.
|
static void |
closeQuietly(ResultSet r)
Close a database statement quietly without throwing any exceptions.
|
static void |
closeQuietly(Statement s)
Close a database statement quietly without throwing any exceptions.
|
static TableModel |
createTableModelFromResultSet(ResultSet result) |
static void |
debugResult(ResultSet result) |
static String |
writeQuestionMarkList(int number)
Writes a list of question marks, separated by ','.
|
public static void closeQuietly(ResultSet r)
r
- result setpublic static void closeQuietly(Statement s)
s
- statementpublic static void closeQuietly(NamedCallableStatement s)
s
- statementpublic static void closeQuietly(NamedPreparedStatement s)
s
- statementpublic static void closeQuietly(Connection c)
c
- database connectionpublic static TableModel createTableModelFromResultSet(ResultSet result) throws SQLException
SQLException
public static void debugResult(ResultSet result) throws SQLException
SQLException
public static String writeQuestionMarkList(int number)
number
- Number of question marksCopyright © 2019 OpenEstate. All rights reserved.