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

public abstract Class DatasourceLogin

extends Object
implements Login, Serializable, Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable, java.io.Serializable, org.eclipse.persistence.sessions.Login, org.eclipse.persistence.core.sessions.CoreLogin
Known Direct Subclasses
org.eclipse.persistence.eis.EISLogin, org.eclipse.persistence.oxm.XMLLogin, org.eclipse.persistence.sessions.DatabaseLogin
Imports
java.io.PrintWriter, .Serializable, .StringWriter, java.security.AccessController, .PrivilegedActionException, java.text.MessageFormat, java.util.Map, .Properties, org.eclipse.persistence.Version, org.eclipse.persistence.exceptions.DatabaseException, .ValidationException, org.eclipse.persistence.internal.databaseaccess.Accessor, .DatasourcePlatform, .Platform, org.eclipse.persistence.internal.helper.ConversionManager, .Helper, .NonSynchronizedProperties, org.eclipse.persistence.internal.localization.ToStringLocalization, org.eclipse.persistence.internal.security.PrivilegedAccessHelper, .PrivilegedNewInstanceFromClass, .SecurableObjectHolder, org.eclipse.persistence.logging.SessionLog, org.eclipse.persistence.platform.database.DatabasePlatform, org.eclipse.persistence.queries.ValueReadQuery, org.eclipse.persistence.sequencing.Sequence

Purpose: Hold the configuration information necessary to connect to a datasource.

Description: This is an abstract class that defines the common datasource independent connection configuration. It is extended to support specific datasources such as JDBC, JCA, XML, etc.

Field Summary

Modifier and TypeField and Description
protected int
cacheTransactionIsolation

By default concurrency is optimized and the cache is not locked during reads or writes, This allows for concurrent reading and writing and should never cause any problems.

public static final int
CONCURRENT_READ_WRITE

Reads and unit of work merges can occur concurrently.

protected Connector
connector

Provide a little flexibility for connecting to a database

private boolean
isEncryptedPasswordSet

The securable object holder and flag

protected Platform
platform

Implementation of platform-specific behaviors.

protected Properties
properties

Connection properties (e.g. user, password, and driver-specific settings)

private transient SecurableObjectHolder
public static final int
SYNCHRONIZED_READ_ON_WRITE

Reads and unit of work merges will be serialized.

public static final int
SYNCHRONIZED_WRITE

Reads can occur concurrently but unit of work merges will be serialized.

public static final int
SYNCRONIZED_OBJECT_LEVEL_READ_WRITE

Writes to the cache (merge, object build/refresh will be synchronized as will cache access (cloning) based on when access is required.

public static final int
SYNCRONIZED_OBJECT_LEVEL_READ_WRITE_DATABASE

Writes to the cache (merge, object build/refresh will be synchronized as will cache access (cloning) based on database transaction.

protected boolean
usesExternalConnectionPooling

True if we use an external connection pool such as WebLogic's JTS driver

protected boolean
usesExternalTransactionController

True if we should use some external transaction service such as JTS.

public static String
private static final String

Constructor Summary

AccessConstructor and Description
protected
DatasourceLogin()

PUBLIC: Create a new login.

protected
DatasourceLogin(Platform databasePlatform)

ADVANCED: Create a new login for the given platform.

Method Summary

Modifier and TypeMethod and Description
public void
addSequence(Sequence sequence)

Add sequence corresponding to the name Don't use if the session is connected.

public DatasourceLogin
clone()

Overrides java.lang.Object.clone.

Implements org.eclipse.persistence.sessions.Login.clone.

INTERNAL: Clone the login.
public Object
connectToDatasource(Accessor accessor, Session session)

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

INTERNAL: Connect to the datasource, and return the driver level connection object.
public void
dontUseExternalConnectionPooling()

PUBLIC: Do not use external connection pooling.

public void
dontUseExternalTransactionController()

PUBLIC: Let EclipseLink control transactions instead of some external transaction service such as JTS.

public int
getCacheTransactionIsolation()

ADVANCED: By default concurrency is optimized and the cache is not locked more than required during reads or writes, This allows for virtual concurrent reading and writing and should never cause any problems.

public Connector
getConnector()

ADVANCED: Return the connector that will instantiate the connection.

public Platform
getDatasourcePlatform()

Implements org.eclipse.persistence.sessions.Login.getDatasourcePlatform.

PUBLIC: Return the datasource platform specific information.
public Sequence
getDefaultSequence()

Get default sequence

public Sequence
getDefaultSequenceToWrite()

INTERNAL: Used only for writing the login into XML or Java.

public String
public DatabasePlatform
getPlatform()

Implements org.eclipse.persistence.sessions.Login.getPlatform.

INTERNAL: Return the database platform specific information.
public String
getPlatformClassName()

INTERNAL: Return the name of the database platform class.

public Properties
getProperties()

INTERNAL: The properties are additional, driver-specific, connection information to be passed to the driver.

public Object
getProperty(String name)

Implements org.eclipse.persistence.sessions.Login.getProperty.

PUBLIC: The properties are additional, driver-specific, connection information to be passed to the driver.
protected SecurableObjectHolder
getSecurableObjectHolder()

INTERNAL: Return the encryption securable holder.

public Sequence
getSequence(String seqName)

Get sequence corresponding to the name

public Map<String, Sequence>
getSequences()

Returns a map of sequence names to Sequences (may be null).

public Map<String, Sequence>
getSequencesToWrite()

INTERNAL: Used only for writing the login into XML or Java.

public String
getTableQualifier()

Implements org.eclipse.persistence.sessions.Login.getTableQualifier.

PUBLIC: Return the qualifier for the all of the tables referenced by EclipseLink.
public String
getUserName()

Implements org.eclipse.persistence.sessions.Login.getUserName.

PUBLIC: The user name is the database login name.
public static String

Returns:

version of EclipseLink
getVersion
()

PUBLIC: Return the EclipseLink version.

public boolean
isConnectionHealthValidatedOnError()

Implements org.eclipse.persistence.sessions.Login.isConnectionHealthValidatedOnError.

PUBLIC: This value defaults to false when not on a DatabaseLogin as the functionality has not been implemented for other datasource type.
private Properties
prepareProperties(Session
current session used for logging
session
)

SECURE: The password in the login properties is encrypted.

public void
removeAllSequences()

Remove all sequences but the default one.

public void
removeProperty(String propertyName)

PUBLIC: Some drivers don't like the "user" and "password" properties.

public Sequence
removeSequence(String seqName)

Remove sequence corresponding to name.

public void
setCacheTransactionIsolation(int cacheTransactionIsolation)

ADVANCED: By default concurrency is optimized and the cache is not locked more than required during reads or writes, This allows for virtual concurrent reading and writing and should never cause any problems.

public void
setConnector(Connector connector)

PUBLIC: Set the connector that will instantiate the connection.

public void
setDatasourcePlatform(Platform platform)

Implements org.eclipse.persistence.sessions.Login.setDatasourcePlatform.

PUBLIC: Set the database platform specific information.
public void
setDefaultNullValue(Class<?> type, Object value)

PUBLIC: The default value to substitute for database NULLs can be configured on a per-class basis.

public void
setDefaultSequence(Sequence sequence)

Set default sequence

public void
setEncryptedPassword(String password)

Set the encrypted password.

public void
setEncryptionClassName(String encryptionClassName)

Sets the encryption class name

public void
public void
setPlatform(Platform platform)

Implements org.eclipse.persistence.sessions.Login.setPlatform.

INTERNAL: Set the database platform specific information.
public void
setPlatformClassName(String platformClassName)

INTERNAL: Set the name of the Platform to be used.

public void
setPlatformClassName(String platformClassName, ClassLoader loader)

INTERNAL: Set the name of the Platform to be created using the passed in class loader.

public void
setProperties(Properties properties)

Implements org.eclipse.persistence.sessions.Login.setProperties.

PUBLIC: The properties are additional, driver-specific, connection information to be passed to the JDBC driver.
public void
setProperty(String propertyName, Object propertyValue)

Implements org.eclipse.persistence.sessions.Login.setProperty.

PUBLIC: Some JDBC drivers require additional, driver-specific, properties.
public void
setSequences(Map<String, Sequence> sequences)

INTERNAL: Used only for reading the login from XML.

public void
setTableQualifier(String qualifier)

PUBLIC: Set the default qualifier for all tables.

public void
setTimestampQuery(ValueReadQuery timestampQuery)

PUBLIC: Override the default query for returning a timestamp from the server.

public void
setUserName(String name)

Implements org.eclipse.persistence.sessions.Login.setUserName.

PUBLIC: The user name is the database login name.
public void
setUsesExternalConnectionPooling(boolean usesExternalConnectionPooling)

PUBLIC: Return whether EclipseLink uses some external connection pooling service such as a JDBC 2.0 driver.

public void
setUsesExternalTransactionController(boolean usesExternalTransactionController)

PUBLIC: Return whether EclipseLink uses some external transaction service such as JTS.

public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
shouldUseExternalConnectionPooling()

Implements org.eclipse.persistence.sessions.Login.shouldUseExternalConnectionPooling.

PUBLIC: Return whether EclipseLink uses some external connection pooling (e.g. WebLogic's JTS driver).
public boolean
shouldUseExternalTransactionController()

Implements org.eclipse.persistence.sessions.Login.shouldUseExternalTransactionController.

PUBLIC: Return whether EclipseLink uses some external transaction service such as JTS.
public String
toString()

Overrides java.lang.Object.toString.

PUBLIC: Print all of the connection information.
public void
useExternalConnectionPooling()

PUBLIC: Use external connection pooling.

public void
useExternalTransactionController()

PUBLIC: Use an external transaction controller such as a JTS service

public void
usePlatform(Platform platform)

ADVANCED: Set the database platform to be custom platform.

Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

cacheTransactionIsolationback to summary
protected int cacheTransactionIsolation

By default concurrency is optimized and the cache is not locked during reads or writes, This allows for concurrent reading and writing and should never cause any problems. If the application uses no form of locking the last unit of work to merge changes will win, with no locking it is possible only under this scenario for two unit of works to merge changes different than the database although highly unlikely and if occurred is the entire purpose of locking. This property allows for the isolation level of changes to the cache to be configured for sever situation and it is not suggest that this be changed.

CONCURRENT_READ_WRITEback to summary
public static final int CONCURRENT_READ_WRITE

Reads and unit of work merges can occur concurrently.

connectorback to summary
protected Connector connector

Provide a little flexibility for connecting to a database

isEncryptedPasswordSetback to summary
private boolean isEncryptedPasswordSet

The securable object holder and flag

platformback to summary
protected Platform platform

Implementation of platform-specific behaviors.

propertiesback to summary
protected Properties properties

Connection properties (e.g. user, password, and driver-specific settings)

securableObjectHolderback to summary
private transient SecurableObjectHolder securableObjectHolder
SYNCHRONIZED_READ_ON_WRITEback to summary
public static final int SYNCHRONIZED_READ_ON_WRITE

Reads and unit of work merges will be serialized.

SYNCHRONIZED_WRITEback to summary
public static final int SYNCHRONIZED_WRITE

Reads can occur concurrently but unit of work merges will be serialized.

SYNCRONIZED_OBJECT_LEVEL_READ_WRITEback to summary
public static final int SYNCRONIZED_OBJECT_LEVEL_READ_WRITE

Writes to the cache (merge, object build/refresh will be synchronized as will cache access (cloning) based on when access is required.

SYNCRONIZED_OBJECT_LEVEL_READ_WRITE_DATABASEback to summary
public static final int SYNCRONIZED_OBJECT_LEVEL_READ_WRITE_DATABASE

Writes to the cache (merge, object build/refresh will be synchronized as will cache access (cloning) based on database transaction.

usesExternalConnectionPoolingback to summary
protected boolean usesExternalConnectionPooling

True if we use an external connection pool such as WebLogic's JTS driver

usesExternalTransactionControllerback to summary
protected boolean usesExternalTransactionController

True if we should use some external transaction service such as JTS.

versionStringback to summary
public static String versionString
versionStringTemplateback to summary
private static final String versionStringTemplate

Version info

Constructor Detail

DatasourceLoginback to summary
protected DatasourceLogin()

PUBLIC: Create a new login.

DatasourceLoginback to summary
protected DatasourceLogin(Platform databasePlatform)

ADVANCED: Create a new login for the given platform.

Method Detail

addSequenceback to summary
public void addSequence(Sequence sequence)

Add sequence corresponding to the name Don't use if the session is connected.

cloneback to summary
public DatasourceLogin clone()

Overrides java.lang.Object.clone.

Implements org.eclipse.persistence.sessions.Login.clone.

INTERNAL: Clone the login. This also clones the platform as it is internal to the login.

Returns:DatasourceLogin

Doc from java.lang.Object.clone.

a clone of this instance.

Annotations
@Override
connectToDatasourceback to summary
public Object connectToDatasource(Accessor accessor, Session session) throws DatabaseException

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

INTERNAL: Connect to the datasource, and return the driver level connection object.

Annotations
@Override
dontUseExternalConnectionPoolingback to summary
public void dontUseExternalConnectionPooling()

PUBLIC: Do not use external connection pooling. This is appropriate if using regular EclipseLink connection pooling and regular JDBC drivers.

See Also
useExternalConnectionPooling()
dontUseExternalTransactionControllerback to summary
public void dontUseExternalTransactionController()

PUBLIC: Let EclipseLink control transactions instead of some external transaction service such as JTS.

See Also
useExternalTransactionController()
getCacheTransactionIsolationback to summary
public int getCacheTransactionIsolation()

ADVANCED: By default concurrency is optimized and the cache is not locked more than required during reads or writes, This allows for virtual concurrent reading and writing and should never cause any problems. If the application uses no form of locking the last unit of work to merge changes will win, with no locking it is possible only under this scenario for two unit of works to merge changes different than the database although highly unlikely and if occurred is the entire purpose of locking and locking is the suggested solution if this is a problem. This property allows for the isolation level of changes to the cache to be configured for sever situations and it is not suggest that this be changed.

Setting are:

  • ConcurrentReadWrite - default
  • SynchronizedWrite - only allow a single writer (i.e. unit of work merge) to the cache at once
  • SynchronizedReadOnWrite - do not allow reading or other unit of work merge while a unit of work is in merge
getConnectorback to summary
public Connector getConnector()

ADVANCED: Return the connector that will instantiate the connection.

getDatasourcePlatformback to summary
public Platform getDatasourcePlatform()

Implements org.eclipse.persistence.sessions.Login.getDatasourcePlatform.

PUBLIC: Return the datasource platform specific information. This allows EclipseLink to configure certain advanced features for the datasource desired.

Annotations
@Override
getDefaultSequenceback to summary
public Sequence getDefaultSequence()

Get default sequence

getDefaultSequenceToWriteback to summary
public Sequence getDefaultSequenceToWrite()

INTERNAL: Used only for writing the login into XML or Java.

getPasswordback to summary
public String getPassword()

Implements org.eclipse.persistence.sessions.Login.getPassword.

Return the password. It will be encrypted.

Annotations
@Override
getPlatformback to summary
public DatabasePlatform getPlatform()

Implements org.eclipse.persistence.sessions.Login.getPlatform.

INTERNAL: Return the database platform specific information. This allows EclipseLink to configure certain advanced features for the database desired.

Note

this must only be used for relational specific usage and will not work for non-relational datasources.

Annotations
@Override
getPlatformClassNameback to summary
public String getPlatformClassName()

INTERNAL: Return the name of the database platform class.

getPropertiesback to summary
public Properties getProperties()

INTERNAL: The properties are additional, driver-specific, connection information to be passed to the driver.

Note

Do not set the password directly by getting the properties and setting the "password" property directly. Use the method DatabaseLogin.setPassword(String).

getPropertyback to summary
public Object getProperty(String name)

Implements org.eclipse.persistence.sessions.Login.getProperty.

PUBLIC: The properties are additional, driver-specific, connection information to be passed to the driver.

Note

Do not set the password directly by getting the properties and setting the "password" property directly. Use the method DatabaseLogin.setPassword(String).

Annotations
@Override
getSecurableObjectHolderback to summary
protected SecurableObjectHolder getSecurableObjectHolder()

INTERNAL: Return the encryption securable holder. Lazy initialize to handle serialization.

getSequenceback to summary
public Sequence getSequence(String seqName)

Get sequence corresponding to the name

getSequencesback to summary
public Map<String, Sequence> getSequences()

Returns a map of sequence names to Sequences (may be null).

getSequencesToWriteback to summary
public Map<String, Sequence> getSequencesToWrite()

INTERNAL: Used only for writing the login into XML or Java.

getTableQualifierback to summary
public String getTableQualifier()

Implements org.eclipse.persistence.sessions.Login.getTableQualifier.

PUBLIC: Return the qualifier for the all of the tables referenced by EclipseLink. This can be the creator of the table or database name the table exists on. This is required by some databases such as Oracle and DB2. This should only be used if all of the tables have the same qualifier. It can also be set on each descriptor when the table name is specified.

Annotations
@Override
getUserNameback to summary
public String getUserName()

Implements org.eclipse.persistence.sessions.Login.getUserName.

PUBLIC: The user name is the database login name. Some databases do not require a user name or the user is obtained from the OS, in this case the user name not be specified.

Annotations
@Override
getVersionback to summary
public static String getVersion()

PUBLIC: Return the EclipseLink version.

Returns:String

version of EclipseLink

isConnectionHealthValidatedOnErrorback to summary
public boolean isConnectionHealthValidatedOnError()

Implements org.eclipse.persistence.sessions.Login.isConnectionHealthValidatedOnError.

PUBLIC: This value defaults to false when not on a DatabaseLogin as the functionality has not been implemented for other datasource type. On an SQL Exception EclipseLink will ping the database to determine if the connection used can continue to be used for queries. This should have no impact on applications unless the user is using pessimistic locking queries with 'no wait' or are using a query timeout feature. If that is the case and the application is experiencing a performance impact from the health check then this feature can be turned off. Turning this feature off will prevent EclipseLink from being able to retry queries in the case of database failure.

Annotations
@Override
preparePropertiesback to summary
private Properties prepareProperties(Session session)

SECURE: The password in the login properties is encrypted. Return a clone of the properties with the password decrypted. Also adds platform-specific properties needed for proper functioning.

Parameters
session:Session

current session used for logging

removeAllSequencesback to summary
public void removeAllSequences()

Remove all sequences but the default one.

removePropertyback to summary
public void removeProperty(String propertyName)

PUBLIC: Some drivers don't like the "user" and "password" properties. They can be removed with this method, or by using setUserName(null) / setPassword(null)

removeSequenceback to summary
public Sequence removeSequence(String seqName)

Remove sequence corresponding to name. Doesn't remove default sequence. Don't use if the session is connected.

setCacheTransactionIsolationback to summary
public void setCacheTransactionIsolation(int cacheTransactionIsolation)

ADVANCED: By default concurrency is optimized and the cache is not locked more than required during reads or writes, This allows for virtual concurrent reading and writing and should never cause any problems. If the application uses no form of locking the last unit of work to merge changes will win, with no locking it is possible only under this scenario for two unit of works to merge changes different than the database although highly unlikely and if occurred is the entire purpose of locking and locking is the suggested solution if this is a problem. This property allows for the isolation level of changes to the cache to be configured for sever situations and it is not suggest that this be changed.

Setting are:

  • ConcurrentReadWrite - default
  • SynchronizedWrite - only allow a single writer (i.e. unit of work merge) to the cache at once
  • SynchronizedReadOnWrite - do not allow reading or other unit of work merge while a unit of work is in merge
setConnectorback to summary
public void setConnector(Connector connector)

PUBLIC: Set the connector that will instantiate the connection. As an example, to use a JNDI-supplied DataSource, use code something like the following:

session.getLogin().setConnector(new JNDIConnector(context, dataSourceName));
session.login();
where the context is an instance of a javax.naming.Context and the dataSourceName refers to the name of the DataSource within the context.
setDatasourcePlatformback to summary
public void setDatasourcePlatform(Platform platform)

Implements org.eclipse.persistence.sessions.Login.setDatasourcePlatform.

PUBLIC: Set the database platform specific information. This allows EclipseLink to configure certain advanced features for the database desired.

Annotations
@Override
setDefaultNullValueback to summary
public void setDefaultNullValue(Class<?> type, Object value)

PUBLIC: The default value to substitute for database NULLs can be configured on a per-class basis. Example: login.setDefaultNullValue(long.class, Long.valueOf(0))

setDefaultSequenceback to summary
public void setDefaultSequence(Sequence sequence)

Set default sequence

setEncryptedPasswordback to summary
public void setEncryptedPassword(String password)

Set the encrypted password.

setEncryptionClassNameback to summary
public void setEncryptionClassName(String encryptionClassName)

Sets the encryption class name

setPasswordback to summary
public void setPassword(String password)

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

Set the password.

Annotations
@Override
setPlatformback to summary
public void setPlatform(Platform platform)

Implements org.eclipse.persistence.sessions.Login.setPlatform.

INTERNAL: Set the database platform specific information. This allows EclipseLink to configure certain advanced features for the database desired.

Annotations
@Override
setPlatformClassNameback to summary
public void setPlatformClassName(String platformClassName) throws ValidationException

INTERNAL: Set the name of the Platform to be used. Creates a new instance of the specified Class.

setPlatformClassNameback to summary
public void setPlatformClassName(String platformClassName, ClassLoader loader) throws ValidationException

INTERNAL: Set the name of the Platform to be created using the passed in class loader. If no class loader is passed in, of if an exception is thrown, call the setPlatformClassName method with no classloader.

See Also
setPlatformClassName(String platformClassName)
setPropertiesback to summary
public void setProperties(Properties properties)

Implements org.eclipse.persistence.sessions.Login.setProperties.

PUBLIC: The properties are additional, driver-specific, connection information to be passed to the JDBC driver.

Annotations
@Override
setPropertyback to summary
public void setProperty(String propertyName, Object propertyValue)

Implements org.eclipse.persistence.sessions.Login.setProperty.

PUBLIC: Some JDBC drivers require additional, driver-specific, properties. Add the specified property to those to be passed to the JDBC driver.

Annotations
@Override
setSequencesback to summary
public void setSequences(Map<String, Sequence> sequences)

INTERNAL: Used only for reading the login from XML.

setTableQualifierback to summary
public void setTableQualifier(String qualifier)

PUBLIC: Set the default qualifier for all tables. This can be the creator of the table or database name the table exists on. This is required by some databases such as Oracle and DB2.

setTimestampQueryback to summary
public void setTimestampQuery(ValueReadQuery timestampQuery)

PUBLIC: Override the default query for returning a timestamp from the server.

setUserNameback to summary
public void setUserName(String name)

Implements org.eclipse.persistence.sessions.Login.setUserName.

PUBLIC: The user name is the database login name. Some databases do not require a user name or the user is obtained from the OS, in this case this should not be specified.

Annotations
@Override
setUsesExternalConnectionPoolingback to summary
public void setUsesExternalConnectionPooling(boolean usesExternalConnectionPooling)

PUBLIC: Return whether EclipseLink uses some external connection pooling service such as a JDBC 2.0 driver.

setUsesExternalTransactionControllerback to summary
public void setUsesExternalTransactionController(boolean usesExternalTransactionController)

PUBLIC: Return whether EclipseLink uses some external transaction service such as JTS.

shouldAllowConcurrentReadWriteback to summary
public boolean shouldAllowConcurrentReadWrite()

Implements org.eclipse.persistence.sessions.Login.shouldAllowConcurrentReadWrite.

INTERNAL: Used for cache isolation.

Annotations
@Override
shouldSynchronizedReadOnWriteback to summary
public boolean shouldSynchronizedReadOnWrite()

Implements org.eclipse.persistence.sessions.Login.shouldSynchronizedReadOnWrite.

INTERNAL: Used for cache isolation.

Annotations
@Override
shouldSynchronizeObjectLevelReadWriteback to summary
public boolean shouldSynchronizeObjectLevelReadWrite()

Implements org.eclipse.persistence.sessions.Login.shouldSynchronizeObjectLevelReadWrite.

INTERNAL: Used for Cache Isolation. Causes EclipseLink to lock at the object level on cache updates and cache access.

Annotations
@Override
shouldSynchronizeObjectLevelReadWriteDatabaseback to summary
public boolean shouldSynchronizeObjectLevelReadWriteDatabase()

Implements org.eclipse.persistence.sessions.Login.shouldSynchronizeObjectLevelReadWriteDatabase.

INTERNAL: Used for Cache Isolation. Causes EclipseLink to lock at the object level on cache updates and cache access, based on database transaction.

Annotations
@Override
shouldSynchronizeWritesback to summary
public boolean shouldSynchronizeWrites()

Implements org.eclipse.persistence.sessions.Login.shouldSynchronizeWrites.

INTERNAL: Used for Cache Isolation. Causes EclipseLink to lock at the class level on cache updates.

Annotations
@Override
shouldUseExternalConnectionPoolingback to summary
public boolean shouldUseExternalConnectionPooling()

Implements org.eclipse.persistence.sessions.Login.shouldUseExternalConnectionPooling.

PUBLIC: Return whether EclipseLink uses some external connection pooling (e.g. WebLogic's JTS driver).

Annotations
@Override
See Also
useExternalConnectionPooling(), dontUseExternalConnectionPooling()
shouldUseExternalTransactionControllerback to summary
public boolean shouldUseExternalTransactionController()

Implements org.eclipse.persistence.sessions.Login.shouldUseExternalTransactionController.

PUBLIC: Return whether EclipseLink uses some external transaction service such as JTS.

Annotations
@Override
See Also
useExternalTransactionController(), dontUseExternalTransactionController()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

PUBLIC: Print all of the connection information.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.

Annotations
@Override
useExternalConnectionPoolingback to summary
public void useExternalConnectionPooling()

PUBLIC: Use external connection pooling.

See Also
dontUseExternalConnectionPooling(), shouldUseExternalConnectionPooling()
useExternalTransactionControllerback to summary
public void useExternalTransactionController()

PUBLIC: Use an external transaction controller such as a JTS service

See Also
dontUseExternalTransactionController(), shouldUseExternalTransactionController()
usePlatformback to summary
public void usePlatform(Platform platform)

ADVANCED: Set the database platform to be custom platform.