Module eclipselink
Class OracleJDBC_10_1_0_2ProxyConnectionCustomizer
- java.lang.Object
-
- org.eclipse.persistence.internal.databaseaccess.ConnectionCustomizer
-
- org.eclipse.persistence.platform.database.oracle.OracleJDBC_10_1_0_2ProxyConnectionCustomizer
-
- All Implemented Interfaces:
Cloneable
public class OracleJDBC_10_1_0_2ProxyConnectionCustomizer extends org.eclipse.persistence.internal.databaseaccess.ConnectionCustomizerPUBLIC: This class allows connection to open proxy session.
-
-
Field Summary
Fields Modifier and Type Field Description protected oracle.jdbc.OracleConnectionoracleConnectionprotected PropertiesproxyPropertiesprotected intproxyType
-
Constructor Summary
Constructors Constructor Description OracleJDBC_10_1_0_2ProxyConnectionCustomizer(org.eclipse.persistence.internal.databaseaccess.Accessor accessor, Session session)INTERNAL: Should be instantiated only if session.getProperty(PersistenceUnitProperties.ORACLE_PROXY_TYPE) !
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildProxyProperties()INTERNAL: Precondition: session.getProperty(PersistenceUnitProperties.ORACLE_PROXY_TYPE) !voidclear()INTERNAL: Clears customization from connection.protected voidclearConnectionCache()INTERNAL: Clears connection's both implicit and explicit caches.Objectclone()INTERNAL: Normally called only when customizer is in inactive state (isActive()==false) and followed by setAccessor call on the clone.voidcustomize()INTERNAL: Applies customization to connection.booleanequals(Object obj)INTERNAL: Two customizers considered equal if they produce the sane customization.booleanequals(OracleJDBC_10_1_0_2ProxyConnectionCustomizer customizer)INTERNAL: Two customizers considered equal if they produce the sane customization.booleanisActive()INTERNAL: Indicated whether the connection is currently customized.
-
-
-
Field Detail
-
oracleConnection
protected oracle.jdbc.OracleConnection oracleConnection
-
proxyType
protected int proxyType
-
proxyProperties
protected Properties proxyProperties
-
-
Constructor Detail
-
OracleJDBC_10_1_0_2ProxyConnectionCustomizer
public OracleJDBC_10_1_0_2ProxyConnectionCustomizer(org.eclipse.persistence.internal.databaseaccess.Accessor accessor, Session session)INTERNAL: Should be instantiated only if session.getProperty(PersistenceUnitProperties.ORACLE_PROXY_TYPE) != null.
-
-
Method Detail
-
customize
public void customize()
INTERNAL: Applies customization to connection. Called only if connection is not already customized (isActive()==false). The method may throw SQLException wrapped into DatabaseException. isActive method called after this method should return true only in case the connection was actually customized.- Specified by:
customizein classorg.eclipse.persistence.internal.databaseaccess.ConnectionCustomizer
-
isActive
public boolean isActive()
INTERNAL: Indicated whether the connection is currently customized.- Specified by:
isActivein classorg.eclipse.persistence.internal.databaseaccess.ConnectionCustomizer
-
clear
public void clear()
INTERNAL: Clears customization from connection. Called only if connection is customized (isActive()==true). If the method fails due to SQLException it should "eat" it (just like DatasourceAccessor.closeConnection method). isActive method called after this method should always return false.- Specified by:
clearin classorg.eclipse.persistence.internal.databaseaccess.ConnectionCustomizer
-
clone
public Object clone()
INTERNAL: Normally called only when customizer is in inactive state (isActive()==false) and followed by setAccessor call on the clone.
-
equals
public boolean equals(Object obj)
INTERNAL: Two customizers considered equal if they produce the sane customization.
-
equals
public boolean equals(OracleJDBC_10_1_0_2ProxyConnectionCustomizer customizer)
INTERNAL: Two customizers considered equal if they produce the sane customization.
-
buildProxyProperties
protected void buildProxyProperties()
INTERNAL: Precondition: session.getProperty(PersistenceUnitProperties.ORACLE_PROXY_TYPE) != null
-
clearConnectionCache
protected void clearConnectionCache()
INTERNAL: Clears connection's both implicit and explicit caches.
-
-