/** * INTERNAL: * Clears statement cache of the wrapper connection. * Required by Oracle proxy authentication: currently connection statement cache * becomes invalid on switching to/from proxy session. * This method is called by OracleJDBC_10_1_0_2ProxyConnectionCustomizer * before opening proxy session and before closing it. */ public void clearStatementCache(java.sql.Connection connection) { Platform platform = getDatabaseSession().getDatasourceLogin().getDatasourcePlatform(); if(platform.isOracle()) { ((OraclePlatform)platform).clearOracleConnectionCache(connection); } } }
/** * INTERNAL: * Clears statement cache of the wrapper connection. * Required by Oracle proxy authentication: currently connection statement cache * becomes invalid on switching to/from proxy session. * This method is called by OracleJDBC_10_1_0_2ProxyConnectionCustomizer * before opening proxy session and before closing it. */ public void clearStatementCache(java.sql.Connection connection) { Platform platform = getDatabaseSession().getDatasourceLogin().getDatasourcePlatform(); if(platform.isOracle()) { ((OraclePlatform)platform).clearOracleConnectionCache(connection); } } }
/** * INTERNAL: * Clears statement cache of the wrapper connection. * Required by Oracle proxy authentication: currently connection statement cache * becomes invalid on switching to/from proxy session. * This method is called by OracleJDBC_10_1_0_2ProxyConnectionCustomizer * before opening proxy session and before closing it. */ public void clearStatementCache(java.sql.Connection connection) { Platform platform = getDatabaseSession().getDatasourceLogin().getDatasourcePlatform(); if(platform.isOracle()) { ((OraclePlatform)platform).clearOracleConnectionCache(connection); } } }
/** * INTERNAL: This method is used to unwrap the oracle connection wrapped by * the application server. TopLink needs this unwrapped connection for certain * Oracle Specific support. (ie TIMESTAMPTZ) */ public java.sql.Connection unwrapConnection(java.sql.Connection connection){ Platform platform = getDatabaseSession().getDatasourceLogin().getDatasourcePlatform(); if(platform.isOracle() && ((OraclePlatform)platform).canUnwrapOracleConnection()) { return ((OraclePlatform)platform).unwrapOracleConnection(connection); } else { return super.unwrapConnection(connection); } }
/** * INTERNAL: This method is used to unwrap the oracle connection wrapped by * the application server. TopLink needs this unwrapped connection for certain * Oracle Specific support. (ie TIMESTAMPTZ) */ public java.sql.Connection unwrapConnection(java.sql.Connection connection){ Platform platform = getDatabaseSession().getDatasourceLogin().getDatasourcePlatform(); if(platform.isOracle() && ((OraclePlatform)platform).canUnwrapOracleConnection()) { return ((OraclePlatform)platform).unwrapOracleConnection(connection); } else { return super.unwrapConnection(connection); } }
/** * INTERNAL: This method is used to unwrap the oracle connection wrapped by * the application server. TopLink needs this unwrapped connection for certain * Oracle Specific support. (ie TIMESTAMPTZ) */ public java.sql.Connection unwrapConnection(java.sql.Connection connection){ Platform platform = getDatabaseSession().getDatasourceLogin().getDatasourcePlatform(); if(platform.isOracle() && ((OraclePlatform)platform).canUnwrapOracleConnection()) { return ((OraclePlatform)platform).unwrapOracleConnection(connection); } else { return super.unwrapConnection(connection); } }