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:
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.
EISConnectionSpec,
Serialized FormcacheTransactionIsolation, 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 and Description |
|---|
EISLogin()
Default constructor.
|
EISLogin(org.eclipse.persistence.internal.databaseaccess.Platform platform)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.persistence.internal.databaseaccess.Accessor |
buildAccessor()
Build and return the EIS accessorr.
|
void |
configureConnectionSpec(javax.resource.cci.ConnectionFactory connectionFactory)
PUBLIC:
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)
PUBLIC:
Configure the login to connect through a non-managed connection factory and adapter connection spec.
|
void |
configureConnectionSpec(java.lang.String jndiName)
PUBLIC:
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)
PUBLIC:
Configure the login to connect through a JDNI managed connection factory and adapter connection spec.
|
java.lang.Object |
connectToDatasource(org.eclipse.persistence.internal.databaseaccess.Accessor accessor,
Session session)
Connect to the EIS adapter and return the Connection.
|
java.lang.String |
getConnectionFactoryURL()
PUBLIC:
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)
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(java.lang.String password)
PUBLIC:
Set the password.
|
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, usePlatformpublic EISLogin()
public EISLogin(org.eclipse.persistence.internal.databaseaccess.Platform platform)
public org.eclipse.persistence.internal.databaseaccess.Accessor buildAccessor()
public java.lang.Object connectToDatasource(org.eclipse.persistence.internal.databaseaccess.Accessor accessor,
Session session)
connectToDatasource in interface LoginconnectToDatasource in class DatasourceLoginpublic void setPassword(java.lang.String password)
setPassword in interface LoginsetPassword in class DatasourceLoginpublic java.lang.String getConnectionFactoryURL()
public void setConnectionFactoryURL(java.lang.String url)
public EISConnectionSpec getConnectionSpec()
public void setConnectionSpec(EISConnectionSpec connectionSpec)
public void configureConnectionSpec(java.lang.String jndiName)
public void configureConnectionSpec(javax.resource.cci.ConnectionFactory connectionFactory)
public void configureConnectionSpec(java.lang.String jndiName,
javax.resource.cci.ConnectionSpec connectionSpec)
public void configureConnectionSpec(javax.resource.cci.ConnectionFactory connectionFactory,
javax.resource.cci.ConnectionSpec connectionSpec)