Top Description Fields Constructors Methods
org.eclipse.persistence.eis

public Class EISLogin

extends DatasourceLogin
Class Inheritance
Imports
jakarta.resource.cci.*, org.eclipse.persistence.internal.databaseaccess.Accessor, .Platform, org.eclipse.persistence.sessions.DatasourceLogin, .Session

An EISLogin defines connection information and datasource properties. There are three ways to connect to an EIS datasource through EclipseLink 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 behavior such as InteractionSpec and Record conversion.

Author
James
Since
OracleAS TopLink 10g (10.0.3)
See Also
EISConnectionSpec

Field Summary

Inherited from org.eclipse.persistence.sessions.DatasourceLogin:
cacheTransactionIsolationCONCURRENT_READ_WRITEconnectorplatformpropertiesSYNCHRONIZED_READ_ON_WRITESYNCHRONIZED_WRITESYNCRONIZED_OBJECT_LEVEL_READ_WRITESYNCRONIZED_OBJECT_LEVEL_READ_WRITE_DATABASEusesExternalConnectionPoolingusesExternalTransactionControllerversionString

Constructor Summary

AccessConstructor and Description
public
EISLogin()

Default constructor.

public
EISLogin(Platform platform)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public Accessor
buildAccessor()

Implements org.eclipse.persistence.sessions.Login.buildAccessor.

Build and return the EIS accessorr.
public void
configureConnectionSpec(String jndiName)

PUBLIC: Configure the login to connect through a JDNI managed connection factory and the default getConnection().

public void
configureConnectionSpec(ConnectionFactory connectionFactory)

PUBLIC: Configure the login to connect through a non-managed connection factory and the default getConnection().

public void
configureConnectionSpec(String jndiName, ConnectionSpec connectionSpec)

PUBLIC: Configure the login to connect through a JDNI managed connection factory and adapter connection spec.

public void
configureConnectionSpec(ConnectionFactory connectionFactory, ConnectionSpec connectionSpec)

PUBLIC: Configure the login to connect through a non-managed connection factory and adapter connection spec.

public Object
public String
getConnectionFactoryURL()

PUBLIC: Return the JNDI URL for the managed connection factory for the JCA adapter connecting to.

public EISConnectionSpec
getConnectionSpec()

Return the connector.

public void
setConnectionFactoryURL(String url)

PUBLIC: Set the JNDI URL for the managed connection factory for the JCA adapter connecting to.

public void
setConnectionSpec(EISConnectionSpec connectionSpec)

PUBLIC: Set the EclipseLink connection spec.

public void
Inherited from org.eclipse.persistence.sessions.DatasourceLogin:
addSequenceclonedontUseExternalConnectionPoolingdontUseExternalTransactionControllergetCacheTransactionIsolationgetConnectorgetDatasourcePlatformgetDefaultSequencegetDefaultSequenceToWritegetPasswordgetPlatformgetPlatformClassNamegetPropertiesgetPropertygetSecurableObjectHoldergetSequencegetSequencesgetSequencesToWritegetTableQualifiergetUserNamegetVersionisConnectionHealthValidatedOnErrorremoveAllSequencesremovePropertyremoveSequencesetCacheTransactionIsolationsetConnectorsetDatasourcePlatformsetDefaultNullValuesetDefaultSequencesetEncryptedPasswordsetEncryptionClassNamesetPlatformsetPlatformClassNamesetPlatformClassNamesetPropertiessetPropertysetSequencessetTableQualifiersetTimestampQuerysetUserNamesetUsesExternalConnectionPoolingsetUsesExternalTransactionControllershouldAllowConcurrentReadWriteshouldSynchronizedReadOnWriteshouldSynchronizeObjectLevelReadWriteshouldSynchronizeObjectLevelReadWriteDatabaseshouldSynchronizeWritesshouldUseExternalConnectionPoolingshouldUseExternalTransactionControllertoStringuseExternalConnectionPoolinguseExternalTransactionControllerusePlatform

Constructor Detail

EISLoginback to summary
public EISLogin()

Default constructor.

EISLoginback to summary
public EISLogin(Platform platform)

Constructor.

Method Detail

buildAccessorback to summary
public Accessor buildAccessor()

Implements org.eclipse.persistence.sessions.Login.buildAccessor.

Build and return the EIS accessorr.

Annotations
@Override
configureConnectionSpecback to summary
public void configureConnectionSpec(String jndiName)

PUBLIC: Configure the login to connect through a JDNI managed connection factory and the default getConnection().

configureConnectionSpecback to summary
public void configureConnectionSpec(ConnectionFactory connectionFactory)

PUBLIC: Configure the login to connect through a non-managed connection factory and the default getConnection().

configureConnectionSpecback to summary
public void configureConnectionSpec(String jndiName, ConnectionSpec connectionSpec)

PUBLIC: Configure the login to connect through a JDNI managed connection factory and adapter connection spec.

configureConnectionSpecback to summary
public void configureConnectionSpec(ConnectionFactory connectionFactory, ConnectionSpec connectionSpec)

PUBLIC: Configure the login to connect through a non-managed connection factory and adapter connection spec.

connectToDatasourceback to summary
public Object connectToDatasource(Accessor accessor, Session session)

Overrides org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource.

Implements org.eclipse.persistence.sessions.Login.connectToDatasource.

Connect to the EIS adapter and return the Connection.

Annotations
@Override
getConnectionFactoryURLback to summary
public String getConnectionFactoryURL()

PUBLIC: Return the JNDI URL for the managed connection factory for the JCA adapter connecting to.

getConnectionSpecback to summary
public EISConnectionSpec getConnectionSpec()

Return the connector. The connector defines how the connection is created.

setConnectionFactoryURLback to summary
public void setConnectionFactoryURL(String url)

PUBLIC: Set the JNDI URL for the managed connection factory for the JCA adapter connecting to.

setConnectionSpecback to summary
public void setConnectionSpec(EISConnectionSpec connectionSpec)

PUBLIC: Set the EclipseLink connection spec. The connection spec defines how to connect to the EIS adapter.

setPasswordback to summary
public void setPassword(String password)

Overrides org.eclipse.persistence.sessions.DatasourceLogin.setPassword.

Implements org.eclipse.persistence.sessions.Login.setPassword.

PUBLIC: Set the password.

Annotations
@Override