|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.sessions.DatasourceLogin org.eclipse.persistence.sessions.DatabaseLogin
public class DatabaseLogin
Purpose: Hold the configuration information necessary to connect to a JDBC driver.
Description: A DatabaseLogin is used by an EclipseLink database session to connect to a JDBC server.
Responsibilities:
Field Summary | |
---|---|
protected boolean |
connectionHealthValidatedOnError
This value defaults to true and on an SQL Exception EclipseLink will ping the database to determine if the connection used can continue to be used for queries. |
protected int |
delayBetweenConnectionAttempts
Stores the number of milliseconds that EclipseLink will wait between attempts to reconnect a DatabaseConnection in the case EclipseLink is attempting to retry a query. |
protected int |
queryRetryAttemptCount
Stores the value for the number of time EclipseLink will attempt to reconnect the connection on a comm failure in the case EclipseLink is attempting to retry a query. |
static int |
TRANSACTION_NONE
Transactions are not supported. |
static int |
TRANSACTION_READ_COMMITTED
Dirty reads are prevented; non-repeatable reads and phantom reads can occur. |
static int |
TRANSACTION_READ_UNCOMMITTED
Dirty reads, non-repeatable reads and phantom reads can occur. |
static int |
TRANSACTION_REPEATABLE_READ
Dirty reads and non-repeatable reads are prevented; phantom reads can occur. |
static int |
TRANSACTION_SERIALIZABLE
Dirty reads, non-repeatable reads and phantom reads are prevented. |
Fields inherited from class org.eclipse.persistence.sessions.DatasourceLogin |
---|
cacheTransactionIsolation, 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 Summary | |
---|---|
DatabaseLogin()
PUBLIC: Create a new login. |
|
DatabaseLogin(DatabasePlatform databasePlatform)
ADVANCED: Create a new login for the given platform. |
Method Summary | |
---|---|
void |
addStructConverter(StructConverter converter)
ADVANCED: Add a StructConverter |
void |
bindAllParameters()
PUBLIC: Bind all arguments to any SQL statement. |
org.eclipse.persistence.internal.databaseaccess.Accessor |
buildAccessor()
INTERNAL: Build and return an appropriate Accessor. |
void |
cacheAllStatements()
PUBLIC: Cache all prepared statements, this requires full parameter binding as well. |
void |
dontBindAllParameters()
PUBLIC: Do not bind all arguments to any SQL statement. |
void |
dontCacheAllStatements()
PUBLIC: Do not cache all prepared statements. |
void |
dontOptimizeDataConversion()
PUBLIC: Disable driver level data conversion optimization. |
void |
dontUseBatchWriting()
PUBLIC: EclipseLink can be configured to use batch writing. |
void |
dontUseByteArrayBinding()
PUBLIC: EclipseLink can be configured to use parameter binding for large binary data. |
void |
dontUseJDBCBatchWriting()
PUBLIC: Indicate to EclipseLink that the JDBC driver does not support batch writing. |
void |
dontUseNativeSQL()
PUBLIC: EclipseLink can be configured to use database-specific SQL grammar, as opposed to the JDBC standard grammar. |
void |
dontUseStreamsForBinding()
PUBLIC: EclipseLink can be configured to use streams to store large binary data. |
void |
dontUseStringBinding()
PUBLIC: Do not bind strings of any size. |
protected boolean |
driverIs(java.lang.String driverName)
INTERNAL: Return whether the specified driver is being used. |
java.lang.String |
getConnectionString()
PUBLIC: Return the JDBC connection string. |
int |
getCursorCode()
ADVANCED: Return the code for preparing cursored output parameters in a stored procedure |
java.lang.String |
getDatabaseName()
PUBLIC: The database name is required when connecting to databases that support multiple databases within a single server instance (e.g. |
java.lang.String |
getDatabaseURL()
PUBLIC: The database URL is the JDBC URL for the database server. |
java.lang.String |
getDataSourceName()
PUBLIC: The data source name is required if connecting through ODBC (JDBC-ODBC, etc.). |
org.eclipse.persistence.internal.databaseaccess.Platform |
getDatasourcePlatform()
PUBLIC: Return the datasource platform specific information. |
protected DefaultConnector |
getDefaultConnector()
INTERNAL: Return the connector that will instantiate the java.sql.Connection. |
int |
getDelayBetweenConnectionAttempts()
PUBLIC: Returns the number of milliseconds that EclipseLink will wait between attempts to reconnect a DatabaseConnection in the case EclipseLink is attempting to retry a query, the default is 5000. |
java.lang.String |
getDriverClassName()
PUBLIC: The driver class is the name of the Java class for the JDBC driver being used (e.g. |
java.lang.String |
getDriverURLHeader()
PUBLIC: The driver URL header is the string predetermined by the JDBC driver to be part of the URL connection string, (e.g. |
int |
getMaxBatchWritingSize()
PUBLIC: Allow for the max batch writing size to be set. |
java.lang.String |
getPingSQL()
PUBLIC: EclipseLink will attempt to test a connection if it encounters an exception on the connection when executing SQL. |
int |
getQueryRetryAttemptCount()
PUBLIC: Return the number of attempts EclipseLink should make to re-connect to a database and re-execute a query after a query has failed because of a communication issue. |
java.lang.String |
getServerName()
PUBLIC: The server name is the name of the database instance. |
boolean |
getShouldBindAllParameters()
PUBLIC: Used to help bean introspection. |
boolean |
getShouldCacheAllStatements()
PUBLIC: Used to help bean introspection. |
boolean |
getShouldOptimizeDataConversion()
PUBLIC: Used to help bean introspection. |
boolean |
getShouldTrimStrings()
PUBLIC: Used to help bean introspection. |
int |
getStatementCacheSize()
PUBLIC: If prepared statement caching is used, return the cache size. |
int |
getStringBindingSize()
PUBLIC: Used to help bean introspection. |
int |
getTransactionIsolation()
PUBLIC: Return the transaction isolation setting for the connection. |
boolean |
getUsesBinding()
PUBLIC: Used to help bean introspection. |
boolean |
getUsesNativeSequencing()
PUBLIC: Used to help bean introspection. |
boolean |
getUsesNativeSQL()
PUBLIC: Used to help bean introspection. |
boolean |
getUsesStreamsForBinding()
PUBLIC: Used to help bean introspection. |
boolean |
getUsesStringBinding()
PUBLIC: Used to help bean introspection. |
void |
handleTransactionsManuallyForSybaseJConnect()
PUBLIC: Force EclipseLink to manually begin transactions instead of using autoCommit. |
boolean |
isAnyOracleJDBCDriver()
PUBLIC: Return whether an Oracle JDBC driver is being used. |
boolean |
isCloudscapeJDBCDriver()
PUBLIC: Return whether a Cloudscape JDBC driver is being used. |
boolean |
isConnectionHealthValidatedOnError()
PUBLIC: This value defaults to true if 'ping SQL' is available on the platform. |
boolean |
isDB2JDBCDriver()
PUBLIC: Return whether an IBM DB2 native client JDBC driver is being used. |
boolean |
isIntersolvSequeLinkDriver()
PUBLIC: Return whether an Intersolv SeqeLink JDBC driver is being used. |
boolean |
isJConnectDriver()
PUBLIC: Return whether a Sybase JConnect JDBC driver is being used. |
boolean |
isJDBCConnectDriver()
PUBLIC: Return whether a Borland JDBCConnect JDBC driver is being used. |
boolean |
isJDBCConnectRemoteDriver()
PUBLIC: Return whether a Borland JDBCConnect JDBC driver is being used. |
boolean |
isJDBCODBCBridge()
PUBLIC: Return whether a Sun/Merant JDBC-ODBC bridge driver is being used. |
boolean |
isOracle7JDBCDriver()
PUBLIC: Return whether an Oracle native 7.x OCI JDBC driver is being used. |
boolean |
isOracleJDBCDriver()
PUBLIC: Return whether an Oracle 8.x native OCI JDBC driver is being used. |
boolean |
isOracleServerJDBCDriver()
PUBLIC: Return whether an Oracle thin JDBC driver is being used. |
boolean |
isOracleThinJDBCDriver()
PUBLIC: Return whether an Oracle thin JDBC driver is being used. |
boolean |
isWebLogicOracleOCIDriver()
PUBLIC: Return whether a WebLogic Oracle OCI JDBC driver is being used. |
boolean |
isWebLogicSQLServerDBLibDriver()
PUBLIC: Return whether a WebLogic SQL Server dblib JDBC driver is being used. |
boolean |
isWebLogicSQLServerDriver()
PUBLIC: Return whether a WebLogic SQL Server JDBC driver is being used. |
boolean |
isWebLogicSybaseDBLibDriver()
PUBLIC: Return whether a WebLogic Sybase dblib JDBC driver is being used. |
boolean |
isWebLogicThinClientDriver()
PUBLIC: Return whether a WebLogic thin client JDBC driver is being used. |
boolean |
isWebLogicThinDriver()
PUBLIC: Return whether a WebLogic thin JDBC driver is being used. |
void |
optimizeDataConversion()
PUBLIC: Enable driver level data conversion optimization. |
protected boolean |
oracleDriverIs(java.lang.String urlPrefix)
INTERNAL: Return whether the specified Oracle JDBC driver is being used. |
void |
setConnectionHealthValidatedOnError(boolean isConnectionHealthValidatedOnError)
PUBLIC: This value defaults to true and on an SQL Exception EclipseLink will ping the database to determine if the connection used can continue to be used for queries. |
void |
setConnectionString(java.lang.String url)
PUBLIC: Set the JDBC connection string. |
void |
setCursorCode(int cursorCode)
ADVANCED: Set the code for preparing cursored output parameters in a stored procedure |
void |
setDatabaseName(java.lang.String databaseName)
PUBLIC: The database name is required when connecting to databases that support multiple databases within a single server instance (e.g. |
void |
setDatabaseURL(java.lang.String databaseURL)
PUBLIC: The database URL is the JDBC URL for the database server. |
void |
setDefaultNullValue(java.lang.Class type,
java.lang.Object value)
PUBLIC: The default value to substitute for database NULLs can be configured on a per-class basis. |
void |
setDelayBetweenConnectionAttempts(int delayBetweenConnectionAttempts)
PUBLIC: Stores the number of milliseconds that EclipseLink will wait between attempts to reconnect a DatabaseConnection in the case EclipseLink is attempting to retry a query. |
void |
setDriverClass(java.lang.Class driverClass)
PUBLIC: The driver class is the Java class for the JDBC driver to be used (e.g. sun.jdbc.odbc.JdbcOdbcDriver.class). |
void |
setDriverClassName(java.lang.String driverClassName)
PUBLIC: The name of the JDBC driver class to be used (e.g. |
void |
setDriverURLHeader(java.lang.String driverURLHeader)
PUBLIC: The driver URL header is the string predetermined by the JDBC driver to be part of the URL connection string, (e.g. |
void |
setMaxBatchWritingSize(int maxBatchWritingSize)
PUBLIC: Allow for the max batch writing size to be set. |
void |
setODBCDataSourceName(java.lang.String dataSourceName)
PUBLIC: The data source name is required if connecting through ODBC (JDBC-ODBC, etc.). |
void |
setPingSQL(java.lang.String pingSQL)
PUBLIC: EclipseLink will attempt to test a connection if it encounters an exception on the connection when executing SQL. |
void |
setQueryRetryAttemptCount(int queryRetryAttemptCount)
PUBLIC: Set the number of attempts EclipseLink should make to re-connect to a database and re-execute a query after a query has failed because of a communication issue. |
void |
setServerName(java.lang.String name)
PUBLIC: The server name is the name of the database instance. |
void |
setShouldBindAllParameters(boolean shouldBindAllParameters)
PUBLIC: Set whether to bind all arguments to any SQL statement. |
void |
setShouldCacheAllStatements(boolean shouldCacheAllStatements)
PUBLIC: Set whether prepared statements should be cached. |
void |
setShouldForceFieldNamesToUpperCase(boolean shouldForceFieldNamesToUpperCase)
ADVANCED: This setting can be used if the application expects upper case but the database does not return consistent case (e.g. different databases). |
static void |
setShouldIgnoreCaseOnFieldComparisons(boolean shouldIgnoreCaseOnFieldComparisons)
ADVANCED: Allow for case in field names to be ignored as some databases are not case sensitive. |
void |
setShouldOptimizeDataConversion(boolean value)
PUBLIC: Set whether driver level data conversion optimization is enabled. |
void |
setShouldTrimStrings(boolean shouldTrimStrings)
PUBLIC: By default CHAR field values have trailing blanks trimmed, this can be configured. |
void |
setStatementCacheSize(int size)
PUBLIC: If prepared statement caching is used this configures the cache size. |
void |
setStringBindingSize(int stringBindingSize)
PUBLIC: Used to help bean introspection. |
void |
setTableQualifier(java.lang.String qualifier)
PUBLIC: Set the default qualifier for all tables. |
void |
setTransactionIsolation(int isolationLevel)
PUBLIC: Set the transaction isolation setting for the connection. |
void |
setUsesBatchWriting(boolean value)
PUBLIC: EclipseLink can be configured to use batch writing. |
void |
setUsesByteArrayBinding(boolean value)
PUBLIC: EclipseLink can be configured to use parameter binding for large binary data. |
void |
setUsesJDBCBatchWriting(boolean usesJDBCBatchWriting)
PUBLIC: Calling this method with an argument of true indicates to EclipseLink that the JDBC driver supports batch writing. |
void |
setUsesNativeSQL(boolean value)
PUBLIC: EclipseLink can be configured to use database specific sql grammar not JDBC specific. |
void |
setUsesStreamsForBinding(boolean value)
PUBLIC: EclipseLink can be configured to use streams to store large binary data. |
void |
setUsesStringBinding(boolean usesStringBindingSize)
PUBLIC: Used to help bean introspection. |
boolean |
shouldBindAllParameters()
PUBLIC: Bind all arguments to any SQL statement. |
boolean |
shouldCacheAllStatements()
PUBLIC: Cache all prepared statements, this requires full parameter binding as well. |
boolean |
shouldForceFieldNamesToUpperCase()
ADVANCED: Can be used if the app expects upper case but the database is not return consistent case, i.e. different databases. |
static boolean |
shouldIgnoreCaseOnFieldComparisons()
ADVANCED: Allow for case in field names to be ignored as some databases are not case sensitive. |
boolean |
shouldOptimizeDataConversion()
PUBLIC: Return if our driver level data conversion optimization is enabled. |
boolean |
shouldTrimStrings()
PUBLIC: By default CHAR field values have trailing blanks trimmed, this can be configured. |
boolean |
shouldUseBatchWriting()
PUBLIC: EclipseLink can be configured to use batch writing. |
boolean |
shouldUseByteArrayBinding()
PUBLIC: EclipseLink can be configured to use parameter binding for large binary data. |
boolean |
shouldUseJDBCBatchWriting()
PUBLIC: Answers true if EclipseLink has JDBC batch writing enabled. |
boolean |
shouldUseNativeSequencing()
PUBLIC: EclipseLink can be configured to use a sequence table or native sequencing to generate unique object IDs. |
boolean |
shouldUseNativeSQL()
PUBLIC: EclipseLink can be configured to use database-specific SQL grammar, as opposed to the JDBC standard grammar. |
boolean |
shouldUseStreamsForBinding()
PUBLIC: EclipseLink can be configured to use streams to store large binary data. |
boolean |
shouldUseStringBinding()
PUBLIC: EclipseLink can be configured to bind large strings. |
java.lang.String |
toString()
PUBLIC: Print all of the connection information. |
void |
useAccess()
PUBLIC: Set the database platform to be Access. |
void |
useBatchWriting()
PUBLIC: EclipseLink can be configured to use batch writing. |
void |
useByteArrayBinding()
PUBLIC: EclipseLink can be configured to use parameter binding for large binary data. |
void |
useCloudscape()
PUBLIC: Set the database platform to be Cloudscape. |
void |
useCloudscapeDriver()
PUBLIC: Use the Cloudscape JDBC driver. |
void |
useDataSource(java.lang.String dataSource)
PUBLIC: Specify the J2EE DataSource name to connect to. |
void |
useDB2()
PUBLIC: Set the database platform to be DB2. |
void |
useDB2JDBCDriver()
PUBLIC: Use the IBM DB2 native client interface. |
void |
useDB2NetJDBCDriver()
PUBLIC: Use the IBM DB2 thin JDBC driver. |
void |
useDBase()
PUBLIC: Set the database platform to be DBase. |
void |
useDefaultDriverConnect()
PUBLIC: Connect to the JDBC driver via DriverManager. |
void |
useDefaultDriverConnect(java.lang.String driverClassName,
java.lang.String driverURLHeader,
java.lang.String databaseURL)
PUBLIC: Connect to the JDBC driver via DriverManager. |
void |
useDerby()
|
void |
useDirectDriverConnect()
PUBLIC: Some JDBC drivers don't support connecting correctly (via DriverManager), but do support connecting incorrectly (e.g. |
void |
useDirectDriverConnect(java.lang.String driverClassName,
java.lang.String driverURLHeader,
java.lang.String databaseURL)
PUBLIC: Some JDBC drivers don't support connecting correctly (via DriverManager), but do support connecting incorrectly (e.g. |
void |
useExternalConnectionPooling()
PUBLIC: Use external connection pooling, such as WebLogic's JTS driver. |
void |
useExternalTransactionController()
PUBLIC: Use an external transaction controller such as a JTS service |
void |
useHSQL()
PUBLIC: Use the HSQL JDBC driver. |
void |
useHSQLDriver()
PUBLIC: Use the HSQL JDBC driver. |
void |
useINetSQLServerDriver()
PUBLIC: Use the i-net SQL Server JDBC driver. |
void |
useInformix()
PUBLIC: Set the database platform to be Informix. |
void |
useIntersolvSequeLinkDriver()
PUBLIC: Use the Intersolv/Merant SequeLink JDBC driver. |
void |
useJConnect50Driver()
PUBLIC: Use the Sybase JConnect JDBC driver. |
void |
useJConnectDriver()
PUBLIC: Use the Sybase JConnect JDBC driver. |
void |
useJDBC()
PUBLIC: Set the database platform to be JDBC. |
void |
useJDBCBatchWriting()
PUBLIC: EclipseLink support batch writing in both JDK 1.1 abd JDK 1.2. |
void |
useJDBCConnectDriver()
PUBLIC: Use the Borland JDBCConnect JDBC driver. |
void |
useJDBCConnectRemoteDriver()
PUBLIC: Use the Borland JDBCConnect JDBC driver. |
void |
useJDBCODBCBridge()
PUBLIC: User the Sun/Merant JDBC-ODBC bridge driver. |
void |
useJTADataSource(java.lang.String dataSource)
PUBLIC: Specify the J2EE JTA enabled DataSource name to connect to. |
void |
useMySQL()
PUBLIC: Set the database platform to be MySQL. |
void |
useNativeSequencing()
PUBLIC: EclipseLink can be configured to use a sequence table or native sequencing to generate unique object IDs. |
void |
useNativeSQL()
PUBLIC: EclipseLink can be configured to use database-specific SQL grammar, as opposed to the JDBC standard grammar. |
void |
useOracle()
PUBLIC: Set the database platform to be Oracle. |
void |
useOracle7JDBCDriver()
PUBLIC: Use the Oracle 7.x native OCI JDBC driver. |
void |
useOracleJDBCDriver()
PUBLIC: Use the Oracle 8.x native OCI JDBC driver. |
void |
useOracleServerJDBCDriver()
PUBLIC: Use the Oracle server JDBC driver. |
void |
useOracleThinJDBCDriver()
PUBLIC: Use the Oracle thin JDBC driver. |
void |
usePlatform(DatabasePlatform platform)
ADVANCED: Set the database platform to be custom platform. |
void |
usePointBase()
PUBLIC: Set the database platform to be PointBase. |
void |
usePointBaseDriver()
PUBLIC: Use the PointBase JDBC driver. |
void |
useSQLServer()
PUBLIC: Set the database platform to be SQL Server. |
void |
useStreamsForBinding()
PUBLIC: EclipseLink can be configured to use streams to store large binary data. |
void |
useStringBinding()
PUBLIC: Bind strings larger than 255 characters. |
void |
useStringBinding(int size)
PUBLIC: Bind strings that are larger than the specified size. |
void |
useSybase()
PUBLIC: Set the database platform to be Sybase. |
void |
useWebLogicDriverCursoredOutputCode()
PUBLIC: Set the prepare cursor code to what the WebLogic Oracle OCI JDBC driver expects. |
void |
useWebLogicJDBCConnectionPool(java.lang.String poolName)
PUBLIC: Set a WebLogic JDBC connection pool (a pool must be defined for the entity beans that are to be deployed) |
void |
useWebLogicOracleOCIDriver()
PUBLIC: Use the WebLogic Oracle OCI JDBC driver. |
void |
useWebLogicSQLServerDBLibDriver()
PUBLIC: Use the WebLogic SQL Server dblib JDBC driver. |
void |
useWebLogicSQLServerDriver()
PUBLIC: Use the WebLogic SQL Server JDBC driver. |
void |
useWebLogicSybaseDBLibDriver()
PUBLIC: Use the WebLogic Sybase dblib JDBC driver. |
void |
useWebLogicThinClientDriver()
PUBLIC: Use the WebLogic thin client JDBC driver. |
void |
useWebLogicThinDriver()
PUBLIC: Use the WebLogic thin JDBC driver. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TRANSACTION_NONE
public static final int TRANSACTION_READ_UNCOMMITTED
public static final int TRANSACTION_READ_COMMITTED
public static final int TRANSACTION_REPEATABLE_READ
public static final int TRANSACTION_SERIALIZABLE
protected int queryRetryAttemptCount
protected int delayBetweenConnectionAttempts
protected boolean connectionHealthValidatedOnError
Constructor Detail |
---|
public DatabaseLogin()
public DatabaseLogin(DatabasePlatform databasePlatform)
Method Detail |
---|
public void usePlatform(DatabasePlatform platform)
public void addStructConverter(StructConverter converter)
converter
- StructConverter
public void bindAllParameters()
public org.eclipse.persistence.internal.databaseaccess.Accessor buildAccessor()
public void cacheAllStatements()
bindAllParameters()
public void dontBindAllParameters()
public void dontCacheAllStatements()
public void dontOptimizeDataConversion()
public void dontUseBatchWriting()
public void dontUseByteArrayBinding()
public void dontUseJDBCBatchWriting()
useJDBCBatchWriting()
,
setUsesJDBCBatchWriting(boolean usesJDBCBatchWriting)
public void dontUseNativeSQL()
public void dontUseStreamsForBinding()
public void dontUseStringBinding()
protected boolean driverIs(java.lang.String driverName)
public java.lang.String getConnectionString() throws ValidationException
ValidationException
public int getCursorCode()
public java.lang.String getDatabaseName()
public java.lang.String getDatabaseURL()
public java.lang.String getDataSourceName() throws ValidationException
ValidationException
public org.eclipse.persistence.internal.databaseaccess.Platform getDatasourcePlatform()
getDatasourcePlatform
in interface Login
getDatasourcePlatform
in class DatasourceLogin
protected DefaultConnector getDefaultConnector() throws ValidationException
ValidationException
public java.lang.String getDriverClassName()
public java.lang.String getDriverURLHeader()
public int getMaxBatchWritingSize()
public java.lang.String getPingSQL()
public int getQueryRetryAttemptCount()
public java.lang.String getServerName()
public boolean getShouldBindAllParameters()
public boolean getShouldCacheAllStatements()
public boolean getShouldOptimizeDataConversion()
public boolean getShouldTrimStrings()
public int getStatementCacheSize()
public int getStringBindingSize()
public int getTransactionIsolation()
public boolean getUsesBinding()
public boolean getUsesNativeSequencing()
public boolean getUsesNativeSQL()
public boolean getUsesStreamsForBinding()
public boolean getUsesStringBinding()
public void handleTransactionsManuallyForSybaseJConnect()
public boolean isAnyOracleJDBCDriver()
public boolean isCloudscapeJDBCDriver()
public boolean isDB2JDBCDriver()
public boolean isIntersolvSequeLinkDriver()
public boolean isJConnectDriver()
public boolean isJDBCConnectDriver()
public boolean isJDBCConnectRemoteDriver()
public boolean isJDBCODBCBridge()
public boolean isOracle7JDBCDriver()
public boolean isOracleJDBCDriver()
public boolean isOracleServerJDBCDriver()
public boolean isOracleThinJDBCDriver()
public boolean isWebLogicOracleOCIDriver()
public boolean isWebLogicSQLServerDBLibDriver()
public boolean isWebLogicSQLServerDriver()
public boolean isWebLogicSybaseDBLibDriver()
public boolean isWebLogicThinClientDriver()
public boolean isWebLogicThinDriver()
public void optimizeDataConversion()
protected boolean oracleDriverIs(java.lang.String urlPrefix)
public void setConnectionString(java.lang.String url) throws ValidationException
ValidationException
public void setCursorCode(int cursorCode)
public void setDatabaseName(java.lang.String databaseName)
public void setDatabaseURL(java.lang.String databaseURL) throws ValidationException
ValidationException
public void setODBCDataSourceName(java.lang.String dataSourceName)
public void setPingSQL(java.lang.String pingSQL)
public void setQueryRetryAttemptCount(int queryRetryAttemptCount)
public void setDefaultNullValue(java.lang.Class type, java.lang.Object value)
setDefaultNullValue
in class DatasourceLogin
public void setDriverClass(java.lang.Class driverClass)
public void setDriverClassName(java.lang.String driverClassName) throws ValidationException
ValidationException
public void setDriverURLHeader(java.lang.String driverURLHeader) throws ValidationException
ValidationException
public void setMaxBatchWritingSize(int maxBatchWritingSize)
public void setServerName(java.lang.String name)
public void setShouldBindAllParameters(boolean shouldBindAllParameters)
public void setShouldCacheAllStatements(boolean shouldCacheAllStatements)
public void setShouldForceFieldNamesToUpperCase(boolean shouldForceFieldNamesToUpperCase)
public static void setShouldIgnoreCaseOnFieldComparisons(boolean shouldIgnoreCaseOnFieldComparisons)
public void setShouldOptimizeDataConversion(boolean value)
public void setShouldTrimStrings(boolean shouldTrimStrings)
public void setStatementCacheSize(int size)
public void setStringBindingSize(int stringBindingSize)
public void setTableQualifier(java.lang.String qualifier)
setTableQualifier
in class DatasourceLogin
public void setTransactionIsolation(int isolationLevel)
public void setUsesBatchWriting(boolean value)
public void setUsesByteArrayBinding(boolean value)
public void setUsesJDBCBatchWriting(boolean usesJDBCBatchWriting)
usesJDBCBatchWriting
- boolean true delegates batch writing to the
JDBC driver and false delegates batch writing to EclipseLink.public void setUsesNativeSQL(boolean value)
public void setUsesStreamsForBinding(boolean value)
public void setUsesStringBinding(boolean usesStringBindingSize)
public boolean shouldBindAllParameters()
public boolean shouldCacheAllStatements()
public boolean shouldForceFieldNamesToUpperCase()
public static boolean shouldIgnoreCaseOnFieldComparisons()
public boolean shouldOptimizeDataConversion()
public boolean shouldTrimStrings()
public boolean shouldUseBatchWriting()
public boolean shouldUseByteArrayBinding()
public boolean shouldUseJDBCBatchWriting()
useJDBCBatchWriting()
,
dontUseJDBCBatchWriting()
,
setUsesJDBCBatchWriting(boolean usesJDBCBatchWriting)
public boolean shouldUseNativeSequencing()
public boolean shouldUseNativeSQL()
public boolean shouldUseStreamsForBinding()
public boolean shouldUseStringBinding()
public java.lang.String toString()
toString
in class DatasourceLogin
public void useAccess()
public void useBatchWriting()
public void useByteArrayBinding()
public void useCloudscape()
public void useDerby()
public void useCloudscapeDriver()
public void useDB2()
public void useDB2JDBCDriver()
public void useDB2NetJDBCDriver()
public void useDBase()
public void useDefaultDriverConnect()
useDirectDriverConnect()
public void useDefaultDriverConnect(java.lang.String driverClassName, java.lang.String driverURLHeader, java.lang.String databaseURL)
useDirectDriverConnect(String, String, String)
public void useDirectDriverConnect()
useDirectDriverConnect()
public void useDataSource(java.lang.String dataSource)
JNDIConnector
public void useJTADataSource(java.lang.String dataSource)
JNDIConnector
public void useDirectDriverConnect(java.lang.String driverClassName, java.lang.String driverURLHeader, java.lang.String databaseURL)
useDefaultDriverConnect(String, String, String)
public void useExternalConnectionPooling()
useExternalConnectionPooling
in class DatasourceLogin
DatasourceLogin.dontUseExternalConnectionPooling()
,
DatasourceLogin.shouldUseExternalConnectionPooling()
public void useExternalTransactionController()
useExternalTransactionController
in class DatasourceLogin
DatasourceLogin.dontUseExternalTransactionController()
,
DatasourceLogin.shouldUseExternalTransactionController()
public void useHSQL()
public void useHSQLDriver()
public void useINetSQLServerDriver()
public void useInformix()
public void useIntersolvSequeLinkDriver()
public void useJConnect50Driver()
public void useJConnectDriver()
public void useJDBC()
public void useJDBCBatchWriting()
public void useJDBCConnectDriver()
public void useJDBCConnectRemoteDriver()
public void useJDBCODBCBridge()
public void useMySQL()
public void useNativeSequencing()
public void useNativeSQL()
public void useOracle()
public void useOracle7JDBCDriver()
public void useOracleJDBCDriver()
public void useOracleServerJDBCDriver()
public void useOracleThinJDBCDriver()
public void usePointBase()
public void usePointBaseDriver()
public void useSQLServer()
public void useStreamsForBinding()
public void useStringBinding()
public void useStringBinding(int size)
public void useSybase()
public void useWebLogicDriverCursoredOutputCode()
public void useWebLogicJDBCConnectionPool(java.lang.String poolName)
public void useWebLogicOracleOCIDriver()
public void useWebLogicSQLServerDBLibDriver()
public void useWebLogicSQLServerDriver()
public void useWebLogicSybaseDBLibDriver()
public void useWebLogicThinClientDriver()
public void useWebLogicThinDriver()
public int getDelayBetweenConnectionAttempts()
public void setDelayBetweenConnectionAttempts(int delayBetweenConnectionAttempts)
public boolean isConnectionHealthValidatedOnError()
isConnectionHealthValidatedOnError
in interface Login
isConnectionHealthValidatedOnError
in class DatasourceLogin
public void setConnectionHealthValidatedOnError(boolean isConnectionHealthValidatedOnError)
|
EclipseLink1.0 - 20080707 API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |