Class EISLogin

All Implemented Interfaces:
Serializable, Cloneable, CoreLogin<org.eclipse.persistence.internal.databaseaccess.Platform>, 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 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.

See Also:
Author:
James
  • Constructor Details

    • EISLogin

      public EISLogin()
      Default constructor.
    • EISLogin

      public EISLogin(org.eclipse.persistence.internal.databaseaccess.Platform platform)
      Constructor.
  • Method Details

    • buildAccessor

      public org.eclipse.persistence.internal.databaseaccess.Accessor buildAccessor()
      Build and return the EIS accessorr.
    • connectToDatasource

      public Object connectToDatasource(org.eclipse.persistence.internal.databaseaccess.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(String password)
      PUBLIC: Set the password.
      Specified by:
      setPassword in interface Login
      Overrides:
      setPassword in class DatasourceLogin
    • getConnectionFactoryURL

      public String getConnectionFactoryURL()
      PUBLIC: Return the JNDI URL for the managed connection factory for the JCA adapter connecting to.
    • setConnectionFactoryURL

      public void setConnectionFactoryURL(String url)
      PUBLIC: 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)
      PUBLIC: Set the EclipseLink connection spec. The connection spec defines how to connect to the EIS adapter.
    • configureConnectionSpec

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

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

      public void configureConnectionSpec(String jndiName, jakarta.resource.cci.ConnectionSpec connectionSpec)
      PUBLIC: Configure the login to connect through a JDNI managed connection factory and adapter connection spec.
    • configureConnectionSpec

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