- java.lang.Object
-
- com.appslandia.common.jdbc.JdbcUtils
-
-
Constructor Summary
Constructors Constructor Description JdbcUtils()
-
Method Summary
-
-
-
Method Detail
-
isAutoCommit
public static boolean isAutoCommit(Connection conn) throws UncheckedSQLException
- Throws:
UncheckedSQLException
-
getColumnLabels
public static String[] getColumnLabels(ResultSet rs) throws SQLException
- Throws:
SQLException
-
setParameters
public static void setParameters(StatementImpl stat, JdbcSql sql, Map<String,Object> params) throws SQLException
- Throws:
SQLException
-
executeMap
public static <K,V> Map<K,V> executeMap(ResultSet rs, String keyColumn, String valueColumn, Map<K,V> map) throws SQLException
- Throws:
SQLException
-
executeMap
public static <K,V> Map<K,V> executeMap(ResultSetImpl rs, ResultSetMapper<K> keyMapper, ResultSetMapper<V> valueMapper, Map<K,V> map) throws SQLException
- Throws:
SQLException
-
executeList
public static <T> List<T> executeList(ResultSetImpl rs, ResultSetMapper<T> mapper, List<T> list) throws SQLException
- Throws:
SQLException
-
executeSingle
public static <T> T executeSingle(ResultSetImpl rs, ResultSetMapper<T> mapper) throws SQLException
- Throws:
SQLException
-
executeExists
public static boolean executeExists(ResultSet rs) throws SQLException
- Throws:
SQLException
-
executeStream
public static void executeStream(ResultSetImpl rs, String streamLabel, OutputStream out, ResultSetHandler handler) throws Exception
- Throws:
Exception
-
executeStream
public static void executeStream(ResultSetImpl rs, String streamLabel, Writer out, ResultSetHandler handler) throws Exception
- Throws:
Exception
-
executeNStream
public static void executeNStream(ResultSetImpl rs, String streamLabel, Writer out, ResultSetHandler handler) throws Exception
- Throws:
Exception
-
-