Package oracle.sql
Class ConcreteProxyUtil
java.lang.Object
oracle.sql.ConcreteProxyUtil
This class has helper methods for all concrete class needs proxification.
- Since:
- release specific (what release of product did this appear in)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectCheck whether connection object from proxified or not.static <T> TgetProxyObject(OracleConnection conn, T delegate, Class proxyBaseClass, Object creator) static <T> TgetProxyObject(T delegate, Class proxyBaseClass, Object creator) Get the proxy object.static OracleConnectionstatic oracle.jdbc.replay.driver.TxnReplayableBasestatic booleanisThinDriverConnection(Object conn) Check for connection is from Thin driver or not.static booleanstatic OracleConnection
-
Constructor Details
-
ConcreteProxyUtil
public ConcreteProxyUtil()
-
-
Method Details
-
isThinDriverConnection
Check for connection is from Thin driver or not.- Parameters:
conn-- Returns:
- true if Thin connection false otherwise.
-
getTxnReplayableBaseOfConnection
public static oracle.jdbc.replay.driver.TxnReplayableBase getTxnReplayableBaseOfConnection(OracleConnection conn) -
isThinDriverReplayableConnection
-
getThinDriverReplayableConnectionDelegate
-
checkAndGetACProxyConnection
Check whether connection object from proxified or not.- Parameters:
conn-- Returns:
- Proxified connection object
-
getProxyObject
public static <T> T getProxyObject(OracleConnection conn, T delegate, Class proxyBaseClass, Object creator) throws SQLException - Throws:
SQLException
-
getProxyObject
Get the proxy object.- Parameters:
delegate-proxyBaseClass-creator-- Returns:
-
unwrapConnectionProxy
-