java.lang.Object
org.eclipse.persistence.sessions.DatasourceLogin
org.eclipse.persistence.eis.EISLogin
- All Implemented Interfaces:
Serializable
,Cloneable
,CoreLogin<Platform>
,Login
An EISLogin
defines connection information and datasource
properties. There are three ways to connect to an EIS datasource through
EclipseLink EIS:
- Provide a JNDI name to the ConnectionFactory and use the default getConnection
- Provide a JNDI name to the ConnectionFactory and a driver specific ConnectionSpec to pass to the getConnection
- Connect in a non-managed way directly to the driver specific ConnectionFactory
A EISConnectionSpec
must be provided to define how to
connect to the EIS adapter.
The EIS platform can be used to provide datasource/driver specific behavior such as InteractionSpec and Record conversion.
- Since:
- OracleAS TopLink 10g (10.0.3)
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.sessions.DatasourceLogin
cacheTransactionIsolation, CONCURRENT_READ_WRITE, connector, platform, properties, SYNCHRONIZED_READ_ON_WRITE, SYNCHRONIZED_WRITE, SYNCRONIZED_OBJECT_LEVEL_READ_WRITE, SYNCRONIZED_OBJECT_LEVEL_READ_WRITE_DATABASE, usesExternalConnectionPooling, usesExternalTransactionController, versionString
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionBuild and return the EIS accessorr.void
configureConnectionSpec
(ConnectionFactory connectionFactory) PUBLIC: Configure the login to connect through a non-managed connection factory and the default getConnection().void
configureConnectionSpec
(ConnectionFactory connectionFactory, ConnectionSpec connectionSpec) PUBLIC: Configure the login to connect through a non-managed connection factory and adapter connection spec.void
configureConnectionSpec
(String jndiName) PUBLIC: Configure the login to connect through a JDNI managed connection factory and the default getConnection().void
configureConnectionSpec
(String jndiName, ConnectionSpec connectionSpec) PUBLIC: Configure the login to connect through a JDNI managed connection factory and adapter connection spec.connectToDatasource
(Accessor accessor, Session session) Connect to the EIS adapter and return the Connection.PUBLIC: Return the JNDI URL for the managed connection factory for the JCA adapter connecting to.Return the connector.void
PUBLIC: Set the JNDI URL for the managed connection factory for the JCA adapter connecting to.void
setConnectionSpec
(EISConnectionSpec connectionSpec) PUBLIC: Set the EclipseLink connection spec.void
setPassword
(String password) PUBLIC: Set the password.Methods inherited from class org.eclipse.persistence.sessions.DatasourceLogin
addSequence, clone, dontUseExternalConnectionPooling, dontUseExternalTransactionController, getCacheTransactionIsolation, getConnector, getDatasourcePlatform, getDefaultSequence, getDefaultSequenceToWrite, getPassword, getPlatform, getPlatformClassName, getProperties, getProperty, getSecurableObjectHolder, getSequence, getSequences, getSequencesToWrite, getTableQualifier, getUserName, getVersion, isConnectionHealthValidatedOnError, removeAllSequences, removeProperty, removeSequence, setCacheTransactionIsolation, setConnector, setDatasourcePlatform, setDefaultNullValue, setDefaultSequence, setEncryptedPassword, setEncryptionClassName, setPlatform, setPlatformClassName, setPlatformClassName, setProperties, setProperty, setSequences, setTableQualifier, setTimestampQuery, setUserName, setUsesExternalConnectionPooling, setUsesExternalTransactionController, shouldAllowConcurrentReadWrite, shouldSynchronizedReadOnWrite, shouldSynchronizeObjectLevelReadWrite, shouldSynchronizeObjectLevelReadWriteDatabase, shouldSynchronizeWrites, shouldUseExternalConnectionPooling, shouldUseExternalTransactionController, toString, useExternalConnectionPooling, useExternalTransactionController, usePlatform
-
Constructor Details
-
EISLogin
public EISLogin()Default constructor. -
EISLogin
Constructor.
-
-
Method Details
-
buildAccessor
Build and return the EIS accessorr. -
connectToDatasource
Connect to the EIS adapter and return the Connection.- Specified by:
connectToDatasource
in interfaceLogin
- Overrides:
connectToDatasource
in classDatasourceLogin
-
setPassword
PUBLIC: Set the password.- Specified by:
setPassword
in interfaceLogin
- Overrides:
setPassword
in classDatasourceLogin
-
getConnectionFactoryURL
PUBLIC: Return the JNDI URL for the managed connection factory for the JCA adapter connecting to. -
setConnectionFactoryURL
PUBLIC: Set the JNDI URL for the managed connection factory for the JCA adapter connecting to. -
getConnectionSpec
Return the connector. The connector defines how the connection is created. -
setConnectionSpec
PUBLIC: Set the EclipseLink connection spec. The connection spec defines how to connect to the EIS adapter. -
configureConnectionSpec
PUBLIC: Configure the login to connect through a JDNI managed connection factory and the default getConnection(). -
configureConnectionSpec
PUBLIC: Configure the login to connect through a non-managed connection factory and the default getConnection(). -
configureConnectionSpec
PUBLIC: Configure the login to connect through a JDNI managed connection factory and adapter connection spec. -
configureConnectionSpec
public void configureConnectionSpec(ConnectionFactory connectionFactory, ConnectionSpec connectionSpec) PUBLIC: Configure the login to connect through a non-managed connection factory and adapter connection spec.
-