public class JDBCUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(AutoCloseable obj) |
static void |
closeQuietly(Connection obj) |
static void |
closeQuietly(ResultSet obj) |
static void |
closeQuietly(Statement obj) |
static void |
execute(PreparedStatement st,
String sql) |
static void |
execute(Statement st,
String sql) |
static ResultSet |
executeQuery(PreparedStatement st,
String sql) |
static ResultSet |
executeQuery(Statement st,
String sql) |
static int |
executeUpdate(PreparedStatement st,
String sql) |
static void |
setObjects(PreparedStatement st,
List values,
ExpressionBuilder.GeometrySupportType geometrySupportType) |
public static ResultSet executeQuery(Statement st, String sql) throws SQLException
SQLException
public static void execute(Statement st, String sql) throws SQLException
SQLException
public static ResultSet executeQuery(PreparedStatement st, String sql) throws SQLException
SQLException
public static void execute(PreparedStatement st, String sql) throws SQLException
SQLException
public static int executeUpdate(PreparedStatement st, String sql) throws SQLException
SQLException
public static void closeQuietly(Statement obj)
public static void closeQuietly(ResultSet obj)
public static void closeQuietly(Connection obj)
public static void closeQuietly(AutoCloseable obj)
public static void setObjects(PreparedStatement st, List values, ExpressionBuilder.GeometrySupportType geometrySupportType) throws SQLException
SQLException