Package org.eclipse.persistence.eis
Class EISLogin
- java.lang.Object
- 
- org.eclipse.persistence.sessions.DatasourceLogin
- 
- org.eclipse.persistence.eis.EISLogin
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- CoreLogin<org.eclipse.persistence.internal.databaseaccess.Platform>,- Login
 
 public class EISLogin extends DatasourceLogin An EISLogindefines 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 EISConnectionSpecmust 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:
- EISConnectionSpec, Serialized Form
- Author:
- James
- Since:
- OracleAS TopLink 10g (10.0.3)
 
- 
- 
Field Summary- 
Fields inherited from class org.eclipse.persistence.sessions.DatasourceLogincacheTransactionIsolation, 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
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.persistence.internal.databaseaccess.AccessorbuildAccessor()Build and return the EIS accessorr.voidconfigureConnectionSpec(java.lang.String jndiName)PUBLIC: Configure the login to connect through a JDNI managed connection factory and the default getConnection().voidconfigureConnectionSpec(java.lang.String jndiName, javax.resource.cci.ConnectionSpec connectionSpec)PUBLIC: Configure the login to connect through a JDNI managed connection factory and adapter connection spec.voidconfigureConnectionSpec(javax.resource.cci.ConnectionFactory connectionFactory)PUBLIC: Configure the login to connect through a non-managed connection factory and the default getConnection().voidconfigureConnectionSpec(javax.resource.cci.ConnectionFactory connectionFactory, javax.resource.cci.ConnectionSpec connectionSpec)PUBLIC: Configure the login to connect through a non-managed connection factory and adapter connection spec.java.lang.ObjectconnectToDatasource(org.eclipse.persistence.internal.databaseaccess.Accessor accessor, Session session)Connect to the EIS adapter and return the Connection.java.lang.StringgetConnectionFactoryURL()PUBLIC: Return the JNDI URL for the managed connection factory for the JCA adapter connecting to.EISConnectionSpecgetConnectionSpec()Return the connector.voidsetConnectionFactoryURL(java.lang.String url)PUBLIC: Set the JNDI URL for the managed connection factory for the JCA adapter connecting to.voidsetConnectionSpec(EISConnectionSpec connectionSpec)PUBLIC: Set the EclipseLink connection spec.voidsetPassword(java.lang.String password)PUBLIC: Set the password.- 
Methods inherited from class org.eclipse.persistence.sessions.DatasourceLoginaddSequence, 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
 
- 
 
- 
- 
- 
Method Detail- 
buildAccessorpublic org.eclipse.persistence.internal.databaseaccess.Accessor buildAccessor() Build and return the EIS accessorr.
 - 
connectToDatasourcepublic java.lang.Object connectToDatasource(org.eclipse.persistence.internal.databaseaccess.Accessor accessor, Session session)Connect to the EIS adapter and return the Connection.- Specified by:
- connectToDatasourcein interface- Login
- Overrides:
- connectToDatasourcein class- DatasourceLogin
 
 - 
setPasswordpublic void setPassword(java.lang.String password) PUBLIC: Set the password.- Specified by:
- setPasswordin interface- Login
- Overrides:
- setPasswordin class- DatasourceLogin
 
 - 
getConnectionFactoryURLpublic java.lang.String getConnectionFactoryURL() PUBLIC: Return the JNDI URL for the managed connection factory for the JCA adapter connecting to.
 - 
setConnectionFactoryURLpublic void setConnectionFactoryURL(java.lang.String url) PUBLIC: Set the JNDI URL for the managed connection factory for the JCA adapter connecting to.
 - 
getConnectionSpecpublic EISConnectionSpec getConnectionSpec() Return the connector. The connector defines how the connection is created.
 - 
setConnectionSpecpublic void setConnectionSpec(EISConnectionSpec connectionSpec) PUBLIC: Set the EclipseLink connection spec. The connection spec defines how to connect to the EIS adapter.
 - 
configureConnectionSpecpublic void configureConnectionSpec(java.lang.String jndiName) PUBLIC: Configure the login to connect through a JDNI managed connection factory and the default getConnection().
 - 
configureConnectionSpecpublic void configureConnectionSpec(javax.resource.cci.ConnectionFactory connectionFactory) PUBLIC: Configure the login to connect through a non-managed connection factory and the default getConnection().
 - 
configureConnectionSpecpublic void configureConnectionSpec(java.lang.String jndiName, javax.resource.cci.ConnectionSpec connectionSpec)PUBLIC: Configure the login to connect through a JDNI managed connection factory and adapter connection spec.
 - 
configureConnectionSpecpublic void configureConnectionSpec(javax.resource.cci.ConnectionFactory connectionFactory, javax.resource.cci.ConnectionSpec connectionSpec)PUBLIC: Configure the login to connect through a non-managed connection factory and adapter connection spec.
 
- 
 
-