Package com.appslandia.common.jdbc
Class JdbcUtils
- java.lang.Object
-
- com.appslandia.common.jdbc.JdbcUtils
-
-
Constructor Summary
Constructors Constructor Description JdbcUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseQuietly(AutoCloseable closeable)static longfixIdSeq(String tableName, String idColumn, boolean idInt, String idPkSeq, String idNotNull, String idPk, String idSeq, Connection conn)static String[]getColumnLabels(ResultSet rs)static voidrollback(Connection conn)static voidsetAutoCommit(Connection conn)
-
-
-
Method Detail
-
rollback
public static void rollback(Connection conn) throws SQLException
- Throws:
SQLException
-
setAutoCommit
public static void setAutoCommit(Connection conn) throws SQLException
- Throws:
SQLException
-
closeQuietly
public static void closeQuietly(AutoCloseable closeable)
-
getColumnLabels
public static String[] getColumnLabels(ResultSet rs) throws SQLException
- Throws:
SQLException
-
fixIdSeq
public static long fixIdSeq(String tableName, String idColumn, boolean idInt, String idPkSeq, String idNotNull, String idPk, String idSeq, Connection conn) throws SQLException
- Throws:
SQLException
-
-