com.taobao.metamorphosis.client.consumer.storage
类 JDBCUtils
java.lang.Object
com.taobao.metamorphosis.client.consumer.storage.JDBCUtils
public class JDBCUtils
- extends Object
JDBC工具类
- 作者:
- boyan
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCUtils
public JDBCUtils()
getConnection
public static Connection getConnection(DataSource ds)
execute
public static Object execute(Connection conn,
JDBCUtils.ConnectionCallback connectionCallBack)
execute
public static Object execute(PreparedStatement pstmt,
JDBCUtils.PreparedStatementCallback pstmtCallBack)
execute
public static Object execute(ResultSet rs,
JDBCUtils.ResultSetCallback rsCallback)
close
public static void close(PreparedStatement preparedStatement)
close
public static void close(ResultSet rs)
close
public static void close(Connection conn)
Copyright © 2010–2013. All rights reserved.