| Constructor and Description |
|---|
JdbcUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(AutoCloseable closeable) |
static <T> List<T> |
executeList(ResultSetImpl rs,
ResultSetMapper<T> mapper,
List<T> list) |
static <T> List<T> |
executeList(StatementImpl stat,
ResultSetMapper<T> mapper,
List<T> list) |
static <K,V> Map<K,V> |
executeMap(ResultSetImpl rs,
ResultSetMapper<K> keyMapper,
ResultSetMapper<V> valueMapper,
Map<K,V> map) |
static <K,V> Map<K,V> |
executeMap(ResultSet rs,
String keyColumn,
String valueColumn,
Map<K,V> map) |
static <K,V> Map<K,V> |
executeMap(StatementImpl stat,
ResultSetMapper<K> keyMapper,
ResultSetMapper<V> valueMapper,
Map<K,V> map) |
static <K,V> Map<K,V> |
executeMap(StatementImpl stat,
String keyColumn,
String valueColumn,
Map<K,V> map) |
static <T> T |
executeSingle(ResultSetImpl rs,
ResultSetMapper<T> mapper) |
static <T> T |
executeSingle(StatementImpl stat,
ResultSetMapper<T> mapper) |
static String[] |
getColumnLabels(ResultSet rs) |
static void |
rollback(Connection conn) |
static void |
setAutoCommit(Connection conn) |
public static void rollback(Connection conn) throws SQLException
SQLExceptionpublic static void setAutoCommit(Connection conn) throws SQLException
SQLExceptionpublic static void closeQuietly(AutoCloseable closeable)
public static <T> T executeSingle(StatementImpl stat, ResultSetMapper<T> mapper) throws SQLException
SQLExceptionpublic static <T> T executeSingle(ResultSetImpl rs, ResultSetMapper<T> mapper) throws SQLException
SQLExceptionpublic static <T> List<T> executeList(StatementImpl stat, ResultSetMapper<T> mapper, List<T> list) throws SQLException
SQLExceptionpublic static <T> List<T> executeList(ResultSetImpl rs, ResultSetMapper<T> mapper, List<T> list) throws SQLException
SQLExceptionpublic static <K,V> Map<K,V> executeMap(StatementImpl stat, String keyColumn, String valueColumn, Map<K,V> map) throws SQLException
SQLExceptionpublic static <K,V> Map<K,V> executeMap(ResultSet rs, String keyColumn, String valueColumn, Map<K,V> map) throws SQLException
SQLExceptionpublic static <K,V> Map<K,V> executeMap(StatementImpl stat, ResultSetMapper<K> keyMapper, ResultSetMapper<V> valueMapper, Map<K,V> map) throws SQLException
SQLExceptionpublic static <K,V> Map<K,V> executeMap(ResultSetImpl rs, ResultSetMapper<K> keyMapper, ResultSetMapper<V> valueMapper, Map<K,V> map) throws SQLException
SQLExceptionpublic static String[] getColumnLabels(ResultSet rs) throws SQLException
SQLExceptionCopyright © 2021. All rights reserved.