Class OracleOCIProxyConnector
java.lang.Object
org.eclipse.persistence.sessions.JNDIConnector
org.eclipse.persistence.platform.database.oracle.OracleOCIProxyConnector
- All Implemented Interfaces:
Serializable
,Cloneable
,Connector
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.sessions.JNDIConnector
COMPOSITE_NAME_LOOKUP, COMPOUND_NAME_LOOKUP, context, dataSource, isCallbackRegistered, lookupType, name, STRING_LOOKUP, UNDEFINED_LOOKUP
-
Constructor Summary
ConstructorDescriptionPUBLIC: Construct a Connector with no settings.PUBLIC: Construct a Connector with the datasource name.OracleOCIProxyConnector
(Context context, String name) PUBLIC: Construct a Connector with the datasource name.OracleOCIProxyConnector
(oracle.jdbc.pool.OracleOCIConnectionPool oracleOCIConnectionPool) PUBLIC: Construct a Connector with OracleOCIConnectionPool. -
Method Summary
Modifier and TypeMethodDescriptionconnect
(Properties properties, Session session) INTERNAL: In case "proxytype" property is specified connects using proxy connection, otherwise calls its superclass.Methods inherited from class org.eclipse.persistence.sessions.JNDIConnector
clone, getConnectionDetails, getContext, getDataSource, getLookupType, getName, setContext, setDataSource, setLookupType, setName, toString, toString
-
Constructor Details
-
OracleOCIProxyConnector
public OracleOCIProxyConnector()PUBLIC: Construct a Connector with no settings. The datasource name will still need to be set. -
OracleOCIProxyConnector
PUBLIC: Construct a Connector with the datasource name.- Throws:
ValidationException
-
OracleOCIProxyConnector
PUBLIC: Construct a Connector with the datasource name. -
OracleOCIProxyConnector
public OracleOCIProxyConnector(oracle.jdbc.pool.OracleOCIConnectionPool oracleOCIConnectionPool) PUBLIC: Construct a Connector with OracleOCIConnectionPool.
-
-
Method Details
-
connect
public Connection connect(Properties properties, Session session) throws DatabaseException, ValidationException INTERNAL: In case "proxytype" property is specified connects using proxy connection, otherwise calls its superclass.- Specified by:
connect
in interfaceConnector
- Overrides:
connect
in classJNDIConnector
- Returns:
- java.sql.Connection
- Throws:
DatabaseException
ValidationException
-