com.taobao.metamorphosis.client.consumer.storage
类 JDBCUtils

java.lang.Object
  继承者 com.taobao.metamorphosis.client.consumer.storage.JDBCUtils

public class JDBCUtils
extends Object

JDBC工具类

作者:
boyan

嵌套类摘要
static class JDBCUtils.CannotGetConnectionException
           
static interface JDBCUtils.ConnectionCallback
           
static interface JDBCUtils.PreparedStatementCallback
           
static interface JDBCUtils.ResultSetCallback
           
 
构造方法摘要
JDBCUtils()
           
 
方法摘要
static void close(Connection conn)
           
static void close(PreparedStatement preparedStatement)
           
static void close(ResultSet rs)
           
static Object execute(Connection conn, JDBCUtils.ConnectionCallback connectionCallBack)
           
static Object execute(PreparedStatement pstmt, JDBCUtils.PreparedStatementCallback pstmtCallBack)
           
static Object execute(ResultSet rs, JDBCUtils.ResultSetCallback rsCallback)
           
static Connection getConnection(DataSource ds)
           
 
从类 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.