Package com.alibaba.druid.util
Class OracleUtils
java.lang.Object
com.alibaba.druid.util.OracleUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic Stringstatic StringgetCreateTableScript(Connection conn, boolean sorted, boolean simplify) static intstatic intgetDefaultRowPrefetch(Connection conn, int value) static booleanstatic oracle.sql.ROWIDstatic intstatic intgetTableDDL(Connection conn, String... tables) getTableDDL(Connection conn, List<String> tables) static shortstatic booleanisBuiltinFunction(String function) static booleanisBuiltinTable(String table) static booleanstatic voidopenProxySession(Connection conn, int type, Properties prop) static XAConnectionOracleXAConnection(Connection oracleConnection) static intpingDatabase(Connection conn) static voidpurgeImplicitCache(Connection conn) static voidsetDefaultRowPrefetch(Connection conn, int value) static voidsetImplicitCachingEnabled(Connection conn, boolean cache) static voidsetRowPrefetch(PreparedStatement stmt, int value) static voidsetStatementCacheSize(Connection conn, int size) showTables(Connection conn) static oracle.jdbc.OracleConnectionunwrap(Connection conn) static oracle.jdbc.internal.OraclePreparedStatement
-
Constructor Details
-
OracleUtils
public OracleUtils()
-
-
Method Details
-
OracleXAConnection
- Throws:
XAException
-
getRowPrefetch
- Throws:
SQLException
-
setRowPrefetch
- Throws:
SQLException
-
enterImplicitCache
- Throws:
SQLException
-
exitImplicitCacheToClose
- Throws:
SQLException
-
exitImplicitCacheToActive
- Throws:
SQLException
-
unwrapInternal
public static oracle.jdbc.internal.OraclePreparedStatement unwrapInternal(PreparedStatement stmt) throws SQLException - Throws:
SQLException
-
getVersionNumber
- Throws:
SQLException
-
setDefaultRowPrefetch
- Throws:
SQLException
-
getDefaultRowPrefetch
- Throws:
SQLException
-
getImplicitCachingEnabled
- Throws:
SQLException
-
getStatementCacheSize
- Throws:
SQLException
-
purgeImplicitCache
- Throws:
SQLException
-
setImplicitCachingEnabled
- Throws:
SQLException
-
setStatementCacheSize
- Throws:
SQLException
-
pingDatabase
- Throws:
SQLException
-
openProxySession
- Throws:
SQLException
-
getDefaultExecuteBatch
- Throws:
SQLException
-
unwrap
- Throws:
SQLException
-
getROWID
- Throws:
SQLException
-
isBuiltinFunction
-
isBuiltinTable
-
isKeyword
-
showTables
- Throws:
SQLException
-
getTableDDL
- Throws:
SQLException
-
getTableDDL
- Throws:
SQLException
-
getCreateTableScript
- Throws:
SQLException
-
getCreateTableScript
public static String getCreateTableScript(Connection conn, boolean sorted, boolean simplify) throws SQLException - Throws:
SQLException
-