public class OracleUtils extends Object
Constructor and Description |
---|
OracleUtils() |
public static XAConnection OracleXAConnection(Connection oracleConnection) throws XAException
XAException
public static int getRowPrefetch(PreparedStatement stmt) throws SQLException
SQLException
public static void setRowPrefetch(PreparedStatement stmt, int value) throws SQLException
SQLException
public static void enterImplicitCache(PreparedStatement stmt) throws SQLException
SQLException
public static void exitImplicitCacheToClose(PreparedStatement stmt) throws SQLException
SQLException
public static void exitImplicitCacheToActive(PreparedStatement stmt) throws SQLException
SQLException
public static oracle.jdbc.internal.OraclePreparedStatement unwrapInternal(PreparedStatement stmt) throws SQLException
SQLException
public static short getVersionNumber(DruidPooledConnection conn) throws SQLException
SQLException
public static void setDefaultRowPrefetch(Connection conn, int value) throws SQLException
SQLException
public static int getDefaultRowPrefetch(Connection conn, int value) throws SQLException
SQLException
public static boolean getImplicitCachingEnabled(Connection conn) throws SQLException
SQLException
public static int getStatementCacheSize(Connection conn) throws SQLException
SQLException
public static void purgeImplicitCache(Connection conn) throws SQLException
SQLException
public static void setImplicitCachingEnabled(Connection conn, boolean cache) throws SQLException
SQLException
public static void setStatementCacheSize(Connection conn, int size) throws SQLException
SQLException
public static int pingDatabase(Connection conn) throws SQLException
SQLException
public static void openProxySession(Connection conn, int type, Properties prop) throws SQLException
SQLException
public static int getDefaultExecuteBatch(Connection conn) throws SQLException
SQLException
public static oracle.jdbc.OracleConnection unwrap(Connection conn) throws SQLException
SQLException
public static oracle.sql.ROWID getROWID(ResultSet rs, int columnIndex) throws SQLException
SQLException
public static boolean isBuiltinFunction(String function)
public static boolean isBuiltinTable(String table)
public static boolean isKeyword(String name)
public static List<String> showTables(Connection conn) throws SQLException
SQLException
public static List<String> getTableDDL(Connection conn, String... tables) throws SQLException
SQLException
public static List<String> getTableDDL(Connection conn, List<String> tables) throws SQLException
SQLException
public static String getCreateTableScript(Connection conn) throws SQLException
SQLException
public static String getCreateTableScript(Connection conn, boolean sorted, boolean simplify) throws SQLException
SQLException
Copyright © 2013–2017 Alibaba Group. All rights reserved.