| 
EclipseLink 2.1.2, build 'v20101206-r8635' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Login
Purpose: Define the information required to connect to an EclipseLink session.
Description: This interface represents a generic concept of a login to be used when connecting to a data-store. It is independent of JDBC so that the EclipseLink session interface can be used for JCA, XML, non-relational or three-tiered frameworks.
DatabaseLogin| Method Summary | |
|---|---|
 org.eclipse.persistence.internal.databaseaccess.Accessor | 
buildAccessor()
INTERNAL: Build the correct datasource Accessor for this login instance.  | 
 java.lang.Object | 
clone()
INTERNAL: Clone the login.  | 
 java.lang.Object | 
connectToDatasource(org.eclipse.persistence.internal.databaseaccess.Accessor accessor,
                    Session session)
INTERNAL: Connect to the datasource, and return the driver level connection object.  | 
 org.eclipse.persistence.internal.databaseaccess.Platform | 
getDatasourcePlatform()
PUBLIC: Return the datasource platform specific information.  | 
 java.lang.String | 
getPassword()
PUBLIC: All logins must take a user name and password.  | 
 DatabasePlatform | 
getPlatform()
INTERNAL: Return the database platform specific information.  | 
 java.lang.Object | 
getProperty(java.lang.String name)
PUBLIC: The properties are additional, driver-specific, connection information to be passed to the driver.  | 
 java.lang.String | 
getTableQualifier()
PUBLIC: Return the qualifier for the all of the tables.  | 
 java.lang.String | 
getUserName()
PUBLIC: All logins must take a user name and password.  | 
 boolean | 
isConnectionHealthValidatedOnError()
PUBLIC: This value defaults to false when not on a DatabaseLogin as the functionality has not been implemented for other datasource type.  | 
 void | 
setDatasourcePlatform(org.eclipse.persistence.internal.databaseaccess.Platform platform)
PUBLIC: Set the database platform specific information.  | 
 void | 
setPassword(java.lang.String password)
PUBLIC: All logins must take a user name and password.  | 
 void | 
setPlatform(org.eclipse.persistence.internal.databaseaccess.Platform platform)
INTERNAL: Set the database platform specific information.  | 
 void | 
setProperties(java.util.Properties properties)
PUBLIC: The properties are additional, driver-specific, connection information to be passed to the JDBC driver.  | 
 void | 
setProperty(java.lang.String propertyName,
            java.lang.Object propertyValue)
PUBLIC: Some JDBC drivers require additional, driver-specific, properties.  | 
 void | 
setUserName(java.lang.String userName)
PUBLIC: All logins must take a user name and password.  | 
 boolean | 
shouldAllowConcurrentReadWrite()
INTERNAL: Used for cache isolation.  | 
 boolean | 
shouldSynchronizedReadOnWrite()
INTERNAL: Used for cache isolation.  | 
 boolean | 
shouldSynchronizeObjectLevelReadWrite()
INTERNAL: Used for Cache Isolation.  | 
 boolean | 
shouldSynchronizeObjectLevelReadWriteDatabase()
INTERNAL: Used for Cache Isolation.  | 
 boolean | 
shouldSynchronizeWrites()
INTERNAL: Used for Cache Isolation.  | 
 boolean | 
shouldUseExternalConnectionPooling()
PUBLIC: Return whether EclipseLink uses some externally managed connection pooling.  | 
 boolean | 
shouldUseExternalTransactionController()
PUBLIC: Return whether EclipseLink uses some externally managed transaction service such as JTS.  | 
| Method Detail | 
|---|
java.lang.String getPassword()
java.lang.String getUserName()
boolean isConnectionHealthValidatedOnError()
void setPassword(java.lang.String password)
void setUserName(java.lang.String userName)
boolean shouldUseExternalConnectionPooling()
boolean shouldUseExternalTransactionController()
DatabasePlatform getPlatform()
org.eclipse.persistence.internal.databaseaccess.Platform getDatasourcePlatform()
void setPlatform(org.eclipse.persistence.internal.databaseaccess.Platform platform)
void setDatasourcePlatform(org.eclipse.persistence.internal.databaseaccess.Platform platform)
java.lang.Object connectToDatasource(org.eclipse.persistence.internal.databaseaccess.Accessor accessor,
                                     Session session)
                                     throws DatabaseException
DatabaseExceptionorg.eclipse.persistence.internal.databaseaccess.Accessor buildAccessor()
java.lang.Object clone()
java.lang.String getTableQualifier()
boolean shouldAllowConcurrentReadWrite()
boolean shouldSynchronizeWrites()
boolean shouldSynchronizeObjectLevelReadWrite()
boolean shouldSynchronizeObjectLevelReadWriteDatabase()
boolean shouldSynchronizedReadOnWrite()
java.lang.Object getProperty(java.lang.String name)
NOTE: Do not set the password directly by getting the properties and setting the "password" property directly. Use the method DatabaseLogin.setPassword(String).
void setProperties(java.util.Properties properties)
void setProperty(java.lang.String propertyName,
                 java.lang.Object propertyValue)
  | 
EclipseLink 2.1.2, build 'v20101206-r8635' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||