public class JDBCUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addBatch(java.sql.PreparedStatement st,
java.lang.String sql) |
static void |
close(java.sql.Connection conn) |
static void |
closeQuietly(java.lang.AutoCloseable obj) |
static void |
closeQuietly(java.sql.Connection conn) |
static void |
closeQuietly(java.sql.ResultSet resulSet) |
static void |
closeQuietly(java.sql.Statement st) |
static void |
execute(java.sql.Connection connection,
java.util.List<java.lang.String> sqls) |
static void |
execute(java.sql.Connection connection,
java.lang.String sql) |
static void |
execute(java.sql.PreparedStatement st,
java.lang.String sql) |
static void |
execute(java.sql.Statement st,
java.lang.String sql) |
static int[] |
executeBatch(java.sql.PreparedStatement st,
java.lang.String sql) |
static java.sql.ResultSet |
executeQuery(java.sql.PreparedStatement st,
java.lang.String sql) |
static java.sql.ResultSet |
executeQuery(java.sql.Statement st,
java.lang.String sql) |
static int |
executeUpdate(java.sql.PreparedStatement st,
java.lang.String sql) |
static int |
executeUpdate(java.sql.Statement st,
java.lang.String sql) |
static java.lang.String |
getConnId(java.sql.Connection conn) |
static java.lang.String |
getConnId(java.sql.ResultSet resulSet) |
static java.lang.String |
getConnId(java.sql.Statement st) |
static java.lang.String |
getHexId(java.lang.Object obj) |
public static java.lang.String getConnId(java.sql.Statement st)
public static java.lang.String getConnId(java.sql.ResultSet resulSet)
public static java.lang.String getConnId(java.sql.Connection conn)
public static java.lang.String getHexId(java.lang.Object obj)
public static java.sql.ResultSet executeQuery(java.sql.Statement st, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public static void execute(java.sql.Statement st, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public static void execute(java.sql.Connection connection, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public static void execute(java.sql.Connection connection, java.util.List<java.lang.String> sqls) throws java.sql.SQLException
java.sql.SQLException
public static java.sql.ResultSet executeQuery(java.sql.PreparedStatement st, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public static void execute(java.sql.PreparedStatement st, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public static int executeUpdate(java.sql.PreparedStatement st, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public static int executeUpdate(java.sql.Statement st, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public static int[] executeBatch(java.sql.PreparedStatement st, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public static void addBatch(java.sql.PreparedStatement st, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
public static void closeQuietly(java.sql.Statement st)
public static void closeQuietly(java.sql.ResultSet resulSet)
public static void closeQuietly(java.sql.Connection conn)
public static void close(java.sql.Connection conn)
public static void closeQuietly(java.lang.AutoCloseable obj)