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