Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated)
11g Release 1 (11.1.1)

B32476-04

oracle.toplink.eis
Class EISLogin

java.lang.Object
  extended by oracle.toplink.sessions.DatasourceLogin
      extended by oracle.toplink.eis.EISLogin
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Login

public class EISLogin
extends DatasourceLogin

An EISLogin defines connection information and datasource properties. There are three ways to connect to an EIS datasource through TopLink EIS:

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 behavoir such as InteractionSpec and Record conversion.

Since:
OracleAS TopLink 10g (10.0.3)
See Also:
EISConnectionSpec, Serialized Form

Field Summary
 
Fields inherited from class oracle.toplink.sessions.DatasourceLogin
CONCURRENT_READ_WRITE, SYNCHRONIZED_READ_ON_WRITE, SYNCHRONIZED_WRITE, SYNCRONIZED_OBJECT_LEVEL_READ_WRITE, SYNCRONIZED_OBJECT_LEVEL_READ_WRITE_DATABASE, versionString
 
Constructor Summary
EISLogin()
          Default constructor.
EISLogin(oracle.toplink.internal.databaseaccess.Platform platform)
          Constructor.
 
Method Summary
 Accessor buildAccessor()
          Build and return the EIS accessorr.
 void configureConnectionSpec(javax.resource.cci.ConnectionFactory connectionFactory)
          Configure the login to connect through a non-managed connection factory and the default getConnection().
 void configureConnectionSpec(javax.resource.cci.ConnectionFactory connectionFactory, javax.resource.cci.ConnectionSpec connectionSpec)
          Configure the login to connect through a non-managed connection factory and adapter connection spec.
 void configureConnectionSpec(java.lang.String jndiName)
          Configure the login to connect through a JDNI managed connection factory and the default getConnection().
 void configureConnectionSpec(java.lang.String jndiName, javax.resource.cci.ConnectionSpec connectionSpec)
          Configure the login to connect through a JDNI managed connection factory and adapter connection spec.
 java.lang.Object connectToDatasource(Accessor accessor, Session session)
          Connect to the EIS adapter and return the Connection.
 java.lang.String getConnectionFactoryURL()
          Return the JNDI URL for the managed connection factory for the JCA adapter connecting to.
 EISConnectionSpec getConnectionSpec()
          Return the connector.
 void setConnectionFactoryURL(java.lang.String url)
          Set the JNDI URL for the managed connection factory for the JCA adapter connecting to.
 void setConnectionSpec(EISConnectionSpec connectionSpec)
          Set the TopLink connection spec.
 void setPassword(java.lang.String password)
          Set the password.
 
Methods inherited from class oracle.toplink.sessions.DatasourceLogin
addSequence, dontUseExternalConnectionPooling, dontUseExternalTransactionController, getCacheTransactionIsolation, getConnector, getDatasourcePlatform, getDefaultSequence, getPassword, getProperty, getSequence, getSequencePreallocationSize, getSequences, getTableQualifier, getUserName, getVersion, isConnectionHealthValidatedOnError, removeAllSequences, removeProperty, removeSequence, setCacheTransactionIsolation, setConnector, setDatasourcePlatform, setDefaultNullValue, setDefaultSequence, setEncryptedPassword, setEncryptionClassName, setProperties, setProperty, setSelectSequenceNumberQuery, setSequencePreallocationSize, setTableQualifier, setTimestampQuery, setUpdateSequenceQuery, setUserName, setUsesExternalConnectionPooling, setUsesExternalTransactionController, shouldUseExternalConnectionPooling, shouldUseExternalTransactionController, toString, useExternalConnectionPooling, useExternalTransactionController, usePlatform
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EISLogin

public EISLogin()
Default constructor.


EISLogin

public EISLogin(oracle.toplink.internal.databaseaccess.Platform platform)
Constructor.

Method Detail

buildAccessor

public Accessor buildAccessor()
Build and return the EIS accessorr.


connectToDatasource

public java.lang.Object connectToDatasource(Accessor accessor,
                                            Session session)
Connect to the EIS adapter and return the Connection.

Specified by:
connectToDatasource in interface Login
Overrides:
connectToDatasource in class DatasourceLogin

setPassword

public void setPassword(java.lang.String password)
Set the password.

Specified by:
setPassword in interface Login
Overrides:
setPassword in class DatasourceLogin

getConnectionFactoryURL

public java.lang.String getConnectionFactoryURL()
Return the JNDI URL for the managed connection factory for the JCA adapter connecting to.


setConnectionFactoryURL

public void setConnectionFactoryURL(java.lang.String url)
Set the JNDI URL for the managed connection factory for the JCA adapter connecting to.


getConnectionSpec

public EISConnectionSpec getConnectionSpec()
Return the connector. The connector defines how the connection is created.


setConnectionSpec

public void setConnectionSpec(EISConnectionSpec connectionSpec)
Set the TopLink connection spec. The connection spec defines how to connect to the EIS adapter.


configureConnectionSpec

public void configureConnectionSpec(java.lang.String jndiName)
Configure the login to connect through a JDNI managed connection factory and the default getConnection().


configureConnectionSpec

public void configureConnectionSpec(javax.resource.cci.ConnectionFactory connectionFactory)
Configure the login to connect through a non-managed connection factory and the default getConnection().


configureConnectionSpec

public void configureConnectionSpec(java.lang.String jndiName,
                                    javax.resource.cci.ConnectionSpec connectionSpec)
Configure the login to connect through a JDNI managed connection factory and adapter connection spec.


configureConnectionSpec

public void configureConnectionSpec(javax.resource.cci.ConnectionFactory connectionFactory,
                                    javax.resource.cci.ConnectionSpec connectionSpec)
Configure the login to connect through a non-managed connection factory and adapter connection spec.


Copyright © 1998, 2012, Oracle. All Rights Reserved.