com.alibaba.druid.util
类 OracleUtils

java.lang.Object
  继承者 com.alibaba.druid.util.OracleUtils

public class OracleUtils
extends Object


构造方法摘要
OracleUtils()
           
 
方法摘要
static void enterImplicitCache(PreparedStatement stmt)
           
static void exitImplicitCacheToActive(PreparedStatement stmt)
           
static void exitImplicitCacheToClose(PreparedStatement stmt)
           
static int getDefaultExecuteBatch(Connection conn)
           
static int getDefaultRowPrefetch(Connection conn, int value)
           
static boolean getImplicitCachingEnabled(Connection conn)
           
static oracle.sql.ROWID getROWID(ResultSet rs, int columnIndex)
           
static int getRowPrefetch(PreparedStatement stmt)
           
static int getStatementCacheSize(Connection conn)
           
static short getVersionNumber(DruidPooledConnection conn)
           
static void openProxySession(Connection conn, int type, Properties prop)
           
static XAConnection OracleXAConnection(Connection oracleConnection)
           
static int pingDatabase(Connection conn)
           
static void purgeImplicitCache(Connection conn)
           
static void setDefaultRowPrefetch(Connection conn, int value)
           
static void setImplicitCachingEnabled(Connection conn, boolean cache)
           
static void setRowPrefetch(PreparedStatement stmt, int value)
           
static void setStatementCacheSize(Connection conn, int size)
           
static oracle.jdbc.OracleConnection unwrap(Connection conn)
           
static oracle.jdbc.internal.OraclePreparedStatement unwrapInternal(PreparedStatement stmt)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

OracleUtils

public OracleUtils()
方法详细信息

OracleXAConnection

public static XAConnection OracleXAConnection(Connection oracleConnection)
                                       throws XAException
抛出:
XAException

getRowPrefetch

public static int getRowPrefetch(PreparedStatement stmt)
                          throws SQLException
抛出:
SQLException

setRowPrefetch

public static void setRowPrefetch(PreparedStatement stmt,
                                  int value)
                           throws SQLException
抛出:
SQLException

enterImplicitCache

public static void enterImplicitCache(PreparedStatement stmt)
                               throws SQLException
抛出:
SQLException

exitImplicitCacheToClose

public static void exitImplicitCacheToClose(PreparedStatement stmt)
                                     throws SQLException
抛出:
SQLException

exitImplicitCacheToActive

public static void exitImplicitCacheToActive(PreparedStatement stmt)
                                      throws SQLException
抛出:
SQLException

unwrapInternal

public static oracle.jdbc.internal.OraclePreparedStatement unwrapInternal(PreparedStatement stmt)
                                                                   throws SQLException
抛出:
SQLException

getVersionNumber

public static short getVersionNumber(DruidPooledConnection conn)
                              throws SQLException
抛出:
SQLException

setDefaultRowPrefetch

public static void setDefaultRowPrefetch(Connection conn,
                                         int value)
                                  throws SQLException
抛出:
SQLException

getDefaultRowPrefetch

public static int getDefaultRowPrefetch(Connection conn,
                                        int value)
                                 throws SQLException
抛出:
SQLException

getImplicitCachingEnabled

public static boolean getImplicitCachingEnabled(Connection conn)
                                         throws SQLException
抛出:
SQLException

getStatementCacheSize

public static int getStatementCacheSize(Connection conn)
                                 throws SQLException
抛出:
SQLException

purgeImplicitCache

public static void purgeImplicitCache(Connection conn)
                               throws SQLException
抛出:
SQLException

setImplicitCachingEnabled

public static void setImplicitCachingEnabled(Connection conn,
                                             boolean cache)
                                      throws SQLException
抛出:
SQLException

setStatementCacheSize

public static void setStatementCacheSize(Connection conn,
                                         int size)
                                  throws SQLException
抛出:
SQLException

pingDatabase

public static int pingDatabase(Connection conn)
                        throws SQLException
抛出:
SQLException

openProxySession

public static void openProxySession(Connection conn,
                                    int type,
                                    Properties prop)
                             throws SQLException
抛出:
SQLException

getDefaultExecuteBatch

public static int getDefaultExecuteBatch(Connection conn)
                                  throws SQLException
抛出:
SQLException

unwrap

public static oracle.jdbc.OracleConnection unwrap(Connection conn)
                                           throws SQLException
抛出:
SQLException

getROWID

public static oracle.sql.ROWID getROWID(ResultSet rs,
                                        int columnIndex)
                                 throws SQLException
抛出:
SQLException


Copyright © 2013 Alibaba Group. All Rights Reserved.