Oracle Application Server TopLink API Reference
10g Release 2 (10.1.2)

B15903-01


oracle.toplink.sessions
Class DatabaseLogin

java.lang.Object
  extended byoracle.toplink.sessions.DatabaseLogin

All Implemented Interfaces:
java.lang.Cloneable, Login, java.io.Serializable
Direct Known Subclasses:
SDKLogin

public class DatabaseLogin
extends java.lang.Object
implements Login, java.io.Serializable, java.lang.Cloneable

Purpose: Hold the configuration information necessary to connect to a JDBC driver.

Description: A JDBCLogin is used by a TopLink database session to connect to a JDBC server.

Responsibilities:

See Also:
Serialized Form

Field Summary
static int CONCURRENT_READ_WRITE
Reads and unit of work merges can occur concurrently.
static java.lang.String licenseFile
Deprecated. since 4.6. No direct replacement API.
static java.lang.String licensePath
Deprecated. since 4.6. No direct replacement API.
static java.lang.String studioLicenseFile
Deprecated. since 4.6. No direct replacement API.
static int SYNCHRONIZED_READ_ON_WRITE
Reads and unit of work merges will be serialized.
static int SYNCHRONIZED_WRITE
Reads can occur concurrently but unit of work merges will be serialized.
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.
static java.lang.String versionString
static java.lang.String[] xmlParserJARFileNames
The names of the TopLink SDK XML Support JAR files

Constructor Summary
DatabaseLogin()
PUBLIC: Create a new login.
DatabaseLogin(DatabasePlatform databasePlatform)
ADVANCED: Create a new login for the given platform.

Method Summary
void addProperty(java.lang.String propertyName, java.lang.Object propertyValue)
Deprecated. - replaced by setProperty
void bindAllParameters()
PUBLIC: Bind all arguments to any SQL statement.
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: TopLink can be configured to use batch writing.
void dontUseBinding()
Deprecated. replaced by dontUseByteArrayBinding()
void dontUseByteArrayBinding()
PUBLIC: TopLink can be configured to use parameter binding for large binary data.
void dontUseExternalConnectionPooling()
PUBLIC: Do not use external connection pooling.
void dontUseExternalTransactionController()
PUBLIC: Let TopLink control transactions instead of some external transaction service such as JTS.
void dontUseJDBCBatchWriting()
PUBLIC: Indicate to TopLink that the JDBC driver does not support batch writing.
void dontUseNativeSequencing()
PUBLIC: TopLink can be configured to use a sequence table or native sequencing to generate unique object IDs.
void dontUseNativeSQL()
PUBLIC: TopLink can be configured to use database-specific SQL grammar, as opposed to the JDBC standard grammar.
void dontUseStreamsForBinding()
PUBLIC: TopLink can be configured to use streams to store large binary data.
void dontUseStringBinding()
PUBLIC: Do not bind strings of any size.
static DatabaseLogin forAccess()
Deprecated.
static DatabaseLogin forDB2()
Deprecated.
static DatabaseLogin forDBase()
Deprecated.
static DatabaseLogin forInformix()
Deprecated.
static DatabaseLogin forJDBC()
Deprecated.
static DatabaseLogin forOracle()
Deprecated.
static DatabaseLogin forSQLServer()
Deprecated.
static DatabaseLogin forSybase()
Deprecated.
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.
java.lang.String getConnectionString()
PUBLIC: Return the JDBC connection string.
Connector getConnector()
PUBLIC: Return the connector that will instantiate the java.sql.Connection.
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.).
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.
static java.lang.String getKey()
Deprecated. replaced by getLicensePath License keys are no longer used and have been replaced with license files.
static java.lang.String getLicenseFile()
Deprecated. since 4.6. No direct replacement API.
static java.lang.String getLicensePath()
Deprecated. since 4.6. No direct replacement API.
int getMaxBatchWritingSize()
PUBLIC: Allow for the max batch writing size to be set.
java.lang.String getPassword()
Return the password.
java.lang.Object getProperty(java.lang.String name)
PUBLIC: The properties are additional, driver-specific, connection information to be passed to the JDBC driver.
java.lang.String getQualifiedSequenceTableName()
PUBLIC: Return the the qualified name of the TOPLink sequence table.
java.lang.String getSequenceCounterFieldName()
PUBLIC: Return the name of the column in the TopLink sequence table that holds the current value for a given sequence (e.g.
java.lang.String getSequenceCounterName()
Deprecated. replaced by getSequenceCounterFieldName()
java.lang.String getSequenceFieldName()
Deprecated. replaced by getSequenceNameFieldName()
java.lang.String getSequenceNameFieldName()
PUBLIC: Return the name of the column in the TopLink sequence table that holds the name for a given sequence (e.g.
int getSequencePreallocationSize()
PUBLIC: TopLink supports sequence number preallocation.
java.lang.String getSequenceTableName()
PUBLIC: Return the name of the TopLink sequence table.
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.
static java.lang.String getStudioLicenseFile()
Deprecated. since 4.6. No direct replacement API.
java.lang.String getTableQualifier()
PUBLIC: Return the qualifier for the all of the tables referenced by TopLink.
int getTransactionIsolation()
PUBLIC: Return the transaction isolation setting for the connection.
java.lang.String getUserName()
PUBLIC: The user name is the database login name.
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.
static java.lang.String getVersion()
PUBLIC: Return the TopLink version.
static java.lang.String[] getXMLParserJARFileNames()
ADVANCED: Return the names of the TopLink SDK XML Support JAR files
void handleTransactionsManuallyForSybaseJConnect()
PUBLIC: Force TopLink to manually begin transactions instead of using autoCommit.
boolean isAnyOracleJDBCBridge()
Deprecated.
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 isDB2JDBCBridge()
Deprecated.
boolean isDB2JDBCDriver()
PUBLIC: Return whether an IBM DB2 native client JDBC driver is being used.
boolean isIntersolvSequeLinkBridge()
Deprecated.
boolean isIntersolvSequeLinkDriver()
PUBLIC: Return whether an Intersolv SeqeLink JDBC driver is being used.
boolean isJConnectBridge()
Deprecated.
boolean isJConnectDriver()
PUBLIC: Return whether a Sybase JConnect JDBC driver is being used.
boolean isJDBCConnectBridge()
Deprecated.
boolean isJDBCConnectDriver()
PUBLIC: Return whether a Borland JDBCConnect JDBC driver is being used.
boolean isJDBCConnectRemoteBridge()
Deprecated.
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 isOracle7JDBCBridge()
Deprecated.
boolean isOracle7JDBCDriver()
PUBLIC: Return whether an Oracle native 7.x OCI JDBC driver is being used.
boolean isOracleJDBCBridge()
Deprecated.
boolean isOracleJDBCDriver()
PUBLIC: Return whether an Oracle 8.x native OCI JDBC driver is being used.
boolean isOracleServerJDBCBridge()
Deprecated.
boolean isOracleServerJDBCDriver()
PUBLIC: Return whether an Oracle thin JDBC driver is being used.
boolean isOracleThinJDBCBridge()
Deprecated.
boolean isOracleThinJDBCDriver()
PUBLIC: Return whether an Oracle thin JDBC driver is being used.
boolean isWebLogicOracleOCIBridge()
Deprecated.
boolean isWebLogicOracleOCIDriver()
PUBLIC: Return whether a WebLogic Oracle OCI JDBC driver is being used.
boolean isWebLogicSQLServerBridge()
Deprecated.
boolean isWebLogicSQLServerDBLibBridge()
Deprecated.
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 isWebLogicSybaseDBLibBridge()
Deprecated.
boolean isWebLogicSybaseDBLibDriver()
PUBLIC: Return whether a WebLogic Sybase dblib JDBC driver is being used.
boolean isWebLogicThinBridge()
Deprecated.
boolean isWebLogicThinClientBridge()
Deprecated.
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.
void removeProperty(java.lang.String propertyName)
PUBLIC: Some JDBC drivers don't like the "user" and "password" properties.
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.
void setConnectionString(java.lang.String url)
PUBLIC: Set the JDBC connection string.
void setConnector(Connector connector)
PUBLIC: Set the connector that will instantiate the java.sql.Connection.
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 setDataSourceName(java.lang.String dataSourceName)
PUBLIC: The data source name is required if connecting through ODBC (JDBC-ODBC, etc.).
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 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 setEncryptedPassword(java.lang.String password)
Set the encrypted password.
void setEncryptionClassName(java.lang.String encryptionClassName)
Sets the encryption class name
static void setKey(java.lang.String key)
Deprecated. replaced by setLicensePath License keys are no longer used and have been replaced with license files.
static void setKey(java.lang.String resourceName, java.lang.String keyName)
Deprecated. replaced by setLicensePath License keys are no longer used and have been replaced with license files.
static void setLicensePath(java.lang.String path)
Deprecated. since 4.6. No direct replacement API.
void setMaxBatchWritingSize(int maxBatchWritingSize)
PUBLIC: Allow for the max batch writing size to be set.
void setPassword(java.lang.String password)
Set the password.
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 setSelectSequenceNumberQuery(ValueReadQuery selectSequenceNumberQuery)
PUBLIC: Override the default query for reading the sequence numbers.
void setSequenceCounterFieldName(java.lang.String name)
PUBLIC: Set the name of the column in the TopLink sequence table that holds the current value for a given sequence (e.g.
void setSequenceCounterName(java.lang.String name)
Deprecated. replaced by setSequenceCounterFieldName()
void setSequenceFieldName(java.lang.String name)
Deprecated. replaced by setSequenceNameFieldName()
void setSequenceNameFieldName(java.lang.String name)
PUBLIC: Set the name of the column in the TopLink sequence table that holds the name for a given sequence (e.g.
void setSequencePreallocationSize(int size)
PUBLIC: TopLink supports sequence number preallocation.
void setSequenceTableName(java.lang.String name)
PUBLIC: Set the name of the TopLink sequence table.
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 setTimestampQuery(ValueReadQuery timestampQuery)
PUBLIC: Override the default query for returning a timestamp from the server.
void setTransactionIsolation(int isolationLevel)
PUBLIC: Set the transaction isolation setting for the connection.
void setUpdateSequenceQuery(DataModifyQuery updateSequenceNumberQuery)
PUBLIC: Override the default query for updating sequence numbers.
void setUserName(java.lang.String name)
PUBLIC: The user name is the database login name.
void setUsesBatchWriting(boolean value)
PUBLIC: TopLink can be configured to use batch writing.
void setUsesBinding(boolean value)
Deprecated. replaced by setUsesByteArrayBinding(boolean)
void setUsesByteArrayBinding(boolean value)
PUBLIC: TopLink can be configured to use parameter binding for large binary data.
void setUsesDirectDriverConnect(boolean usesDirectDriverConnect)
Deprecated.
void setUsesExternalConnectionPooling(boolean usesExternalConnectionPooling)
PUBLIC: Return whether TopLink uses some external connection pooling service such as a JDBC 2.0 driver.
void setUsesExternalTransactionController(boolean usesExternalTransactionController)
PUBLIC: Return whether TopLink uses some external transaction service such as JTS.
void setUsesJDBCBatchWriting(boolean usesJDBCBatchWriting)
PUBLIC: Calling this method with an argument of true indicates to TopLink that the JDBC driver supports batch writing.
void setUsesNativeSequencing(boolean value)
PUBLIC: TopLink can be configured to use a sequence table, or native sequencing to generate unique object ids.
void setUsesNativeSQL(boolean value)
PUBLIC: TopLink can be configured to use database specific sql grammar not JDBC specific.
void setUsesStreamsForBinding(boolean value)
PUBLIC: TopLink can be configured to use streams to store large binary data.
void setUsesStringBinding(boolean usesStringBindingSize)
PUBLIC: Used to help bean introspection.
static void setXMLParserJARFileNames(java.lang.String[] jarFileNames)
ADVANCED: Specify the names of the TopLink SDK XML Support JAR files.
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: TopLink can be configured to use batch writing.
boolean shouldUseBinding()
Deprecated. replaced by usesByteArrayBinding()
boolean shouldUseByteArrayBinding()
PUBLIC: TopLink can be configured to use parameter binding for large binary data.
boolean shouldUseExternalConnectionPooling()
PUBLIC: Return whether TopLink uses some external connection pooling (e.g.
boolean shouldUseExternalTransactionController()
PUBLIC: Return whether TopLink uses some external transaction service such as JTS.
boolean shouldUseJDBCBatchWriting()
PUBLIC: Answers true if TopLink has JDBC batch writing enabled.
boolean shouldUseNativeSequencing()
PUBLIC: TopLink can be configured to use a sequence table or native sequencing to generate unique object IDs.
boolean shouldUseNativeSQL()
PUBLIC: TopLink can be configured to use database-specific SQL grammar, as opposed to the JDBC standard grammar.
boolean shouldUseStreamsForBinding()
PUBLIC: TopLink can be configured to use streams to store large binary data.
boolean shouldUseStringBinding()
PUBLIC: TopLink 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: TopLink can be configured to use batch writing.
void useBinding()
Deprecated. replaced by useByteArrayBinding()
void useByteArrayBinding()
PUBLIC: TopLink 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 useDB2()
PUBLIC: Set the database platform to be DB2.
void useDB2JDBCBridge()
Deprecated.
void useDB2JDBCDriver()
PUBLIC: Use the IBM DB2 native client interface.
void useDB2NetJDBCBridge()
Deprecated.
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 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 useIntersolvSequeLinkBridge()
Deprecated.
void useIntersolvSequeLinkDriver()
PUBLIC: Use the Intersolv/Merant SequeLink JDBC driver.
void useJConnect50Bridge()
Deprecated.
void useJConnect50Driver()
PUBLIC: Use the Sybase JConnect JDBC driver.
void useJConnectBridge()
Deprecated.
void useJConnectDriver()
PUBLIC: Use the Sybase JConnect JDBC driver.
void useJDBC()
PUBLIC: Set the database platform to be JDBC.
void useJDBCBatchWriting()
PUBLIC: TopLink support batch writing in both JDK 1.1 abd JDK 1.2.
void useJDBCConnectBridge()
Deprecated.
void useJDBCConnectDriver()
PUBLIC: Use the Borland JDBCConnect JDBC driver.
void useJDBCConnectRemoteBridge()
Deprecated.
void useJDBCConnectRemoteDriver()
PUBLIC: Use the Borland JDBCConnect JDBC driver.
void useJDBCODBCBridge()
PUBLIC: User the Sun/Merant JDBC-ODBC bridge driver.
void useNativeSequencing()
PUBLIC: TopLink can be configured to use a sequence table or native sequencing to generate unique object IDs.
void useNativeSQL()
PUBLIC: TopLink 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 useOracle7JDBCBridge()
Deprecated.
void useOracle7JDBCDriver()
PUBLIC: Use the Oracle 7.x native OCI JDBC driver.
void useOracleJDBCBridge()
Deprecated.
void useOracleJDBCDriver()
PUBLIC: Use the Oracle 8.x native OCI JDBC driver.
void useOracleServerJDBCBridge()
Deprecated.
void useOracleServerJDBCDriver()
PUBLIC: Use the Oracle server JDBC driver.
void useOracleThinJDBCBridge()
Deprecated.
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.
boolean usesBatchWriting()
Deprecated. replaced by shouldUseBatchWriting to avoid confusion with modifier.
boolean usesBinding()
Deprecated. replaced by usesByteArrayBinding()
boolean usesByteArrayBinding()
Deprecated. replaced by shouldUseByteArrayBinding to avoid confusion with modifier.
boolean usesDirectDriverConnect()
Deprecated.
boolean usesExternalConnectionPooling()
Deprecated. replaced by shouldUseExternalConnectionPooling to avoid confusion with modifier.
boolean usesExternalTransactionController()
Deprecated. replaced by shouldUseExternalTransactionController to avoid confusion with modifier.
boolean usesJDBCBatchWriting()
Deprecated. replaced by shouldUseJDBCBatchWriting to avoid confusion with modifier.
boolean usesNativeSequencing()
Deprecated. replaced by shouldUseNativeSequencing to avoid confusion with modifier.
boolean usesNativeSQL()
Deprecated. replaced by shouldUseNativeSQL to avoid confusion with modifier.
void useSQLServer()
PUBLIC: Set the database platform to be SQL Server.
boolean usesStreamsForBinding()
Deprecated. replaced by shouldUseStreamsForBinding to avoid confusion with modifier.
boolean usesStringBinding()
Deprecated. replaced by shouldUseStringBinding to avoid confusion with modifier.
void useStreamsForBinding()
PUBLIC: TopLink 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 useWebLogicOracleOCIBridge()
Deprecated.
void useWebLogicOracleOCIDriver()
PUBLIC: Use the WebLogic Oracle OCI JDBC driver.
void useWebLogicSQLServerBridge()
Deprecated.
void useWebLogicSQLServerDBLibBridge()
Deprecated.
void useWebLogicSQLServerDBLibDriver()
PUBLIC: Use the WebLogic SQL Server dblib JDBC driver.
void useWebLogicSQLServerDriver()
PUBLIC: Use the WebLogic SQL Server JDBC driver.
void useWebLogicSybaseDBLibBridge()
Deprecated.
void useWebLogicSybaseDBLibDriver()
PUBLIC: Use the WebLogic Sybase dblib JDBC driver.
void useWebLogicThinBridge()
Deprecated.
void useWebLogicThinClientBridge()
Deprecated.
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, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

versionString

public static java.lang.String versionString

licensePath

public static java.lang.String licensePath
Deprecated. since 4.6. No direct replacement API.
The String path for locating the license file by default.

studioLicenseFile

public static java.lang.String studioLicenseFile
Deprecated. since 4.6. No direct replacement API.
The license file name for StudioPro4. This should not be changed by user - deprecated since 4.6

licenseFile

public static java.lang.String licenseFile
Deprecated. since 4.6. No direct replacement API.
The license file name for other TopLink products. Should not be changed by user.

CONCURRENT_READ_WRITE

public static final int CONCURRENT_READ_WRITE
Reads and unit of work merges can occur concurrently.
See Also:
Constant Field Values

SYNCHRONIZED_WRITE

public static final int SYNCHRONIZED_WRITE
Reads can occur concurrently but unit of work merges will be serialized.
See Also:
Constant Field Values

SYNCHRONIZED_READ_ON_WRITE

public static final int SYNCHRONIZED_READ_ON_WRITE
Reads and unit of work merges will be serialized.
See Also:
Constant Field Values

TRANSACTION_NONE

public static final int TRANSACTION_NONE
Transactions are not supported.
See Also:
Constant Field Values

TRANSACTION_READ_UNCOMMITTED

public static final int TRANSACTION_READ_UNCOMMITTED
Dirty reads, non-repeatable reads and phantom reads can occur.
See Also:
Constant Field Values

TRANSACTION_READ_COMMITTED

public static final int TRANSACTION_READ_COMMITTED
Dirty reads are prevented; non-repeatable reads and phantom reads can occur.
See Also:
Constant Field Values

TRANSACTION_REPEATABLE_READ

public static final int TRANSACTION_REPEATABLE_READ
Dirty reads and non-repeatable reads are prevented; phantom reads can occur.
See Also:
Constant Field Values

TRANSACTION_SERIALIZABLE

public static final int TRANSACTION_SERIALIZABLE
Dirty reads, non-repeatable reads and phantom reads are prevented.
See Also:
Constant Field Values

xmlParserJARFileNames

public static java.lang.String[] xmlParserJARFileNames
The names of the TopLink SDK XML Support JAR files

Constructor Detail

DatabaseLogin

public DatabaseLogin()
PUBLIC: Create a new login.

DatabaseLogin

public DatabaseLogin(DatabasePlatform databasePlatform)
ADVANCED: Create a new login for the given platform.

Method Detail

addProperty

public void addProperty(java.lang.String propertyName,
                        java.lang.Object propertyValue)
Deprecated. - replaced by setProperty
OBSOLETE:

bindAllParameters

public void bindAllParameters()
PUBLIC: Bind all arguments to any SQL statement.

cacheAllStatements

public void cacheAllStatements()
PUBLIC: Cache all prepared statements, this requires full parameter binding as well.
See Also:
#bindAllStatements()

dontBindAllParameters

public void dontBindAllParameters()
PUBLIC: Do not bind all arguments to any SQL statement.

dontCacheAllStatements

public void dontCacheAllStatements()
PUBLIC: Do not cache all prepared statements.

dontOptimizeDataConversion

public void dontOptimizeDataConversion()
PUBLIC: Disable driver level data conversion optimization. This can be disabled as some drivers perform data conversion themselves incorrectly.

dontUseBatchWriting

public void dontUseBatchWriting()
PUBLIC: TopLink can be configured to use batch writing. This facility allows multiple write operations to be submitted to a database for processing at once. Submitting multiple updates together, instead of individually, can greatly improve performance in some situations.

dontUseBinding

public void dontUseBinding()
Deprecated. replaced by dontUseByteArrayBinding()
OBSOLETE:
See Also:
dontUseByteArrayBinding()

dontUseByteArrayBinding

public void dontUseByteArrayBinding()
PUBLIC: TopLink can be configured to use parameter binding for large binary data. By default TopLink will print this data as hex through the JDBC binary excape clause. Both binding and printing have various limits on all databases (e.g. 5k - 32k).

dontUseExternalConnectionPooling

public void dontUseExternalConnectionPooling()
PUBLIC: Do not use external connection pooling. This is appropriate if using regular TopLink connection pooling and regular JDBC drivers.
See Also:
useExternalConnectionPooling()

dontUseExternalTransactionController

public void dontUseExternalTransactionController()
PUBLIC: Let TopLink control transactions instead of some external transaction service such as JTS.
See Also:
useExternalTransactionController()

dontUseJDBCBatchWriting

public void dontUseJDBCBatchWriting()
PUBLIC: Indicate to TopLink that the JDBC driver does not support batch writing. This will revert to the default behaviour which is to delegate to TopLink's internal batch writing.
See Also:
useJDBCBatchWriting(), setUsesJDBCBatchWriting(boolean usesJDBCBatchWriting)

dontUseNativeSequencing

public void dontUseNativeSequencing()
PUBLIC: TopLink can be configured to use a sequence table or native sequencing to generate unique object IDs. Native sequencing uses the ID generation service provided by the database (e.g. SEQUENCE objects on Oracle and IDENTITY columns on Sybase). By default a sequence table is used. Using a sequence table is recommended as it supports preallocation. (Native sequencing on Sybase/SQL Server/Informix does not support preallocation. Preallocation can be supported on Oracle by setting the increment size of the SEQUENCE object to match the preallocation size.)

dontUseNativeSQL

public void dontUseNativeSQL()
PUBLIC: TopLink can be configured to use database-specific SQL grammar, as opposed to the JDBC standard grammar. This is because, unfortunately, some drivers to not support the full JDBC standard. By default TopLink uses the JDBC SQL grammar.

dontUseStreamsForBinding

public void dontUseStreamsForBinding()
PUBLIC: TopLink can be configured to use streams to store large binary data.

dontUseStringBinding

public void dontUseStringBinding()
PUBLIC: Do not bind strings of any size.

forAccess

public static DatabaseLogin forAccess()
Deprecated.
OBSOLETE: Use oracle.toplink.sessionsDatabaseLogin instead.
See Also:
DatabaseLogin, oracle.toplink.sessions.DatabaseLogin#useAccess();

forDB2

public static DatabaseLogin forDB2()
Deprecated.
OBSOLETE: Use oracle.toplink.sessionsDatabaseLogin instead.
See Also:
DatabaseLogin, oracle.toplink.sessions.DatabaseLogin#useDB2();

forDBase

public static DatabaseLogin forDBase()
Deprecated.
OBSOLETE: Use oracle.toplink.sessionsDatabaseLogin instead.
See Also:
DatabaseLogin, oracle.toplink.sessions.DatabaseLogin#useDBase();

forInformix

public static DatabaseLogin forInformix()
Deprecated.
OBSOLETE: Use oracle.toplink.sessionsDatabaseLogin instead.
See Also:
DatabaseLogin, oracle.toplink.sessions.DatabaseLogin#useInformix();

forJDBC

public static DatabaseLogin forJDBC()
Deprecated.
OBSOLETE: Use oracle.toplink.sessionsDatabaseLogin instead.
See Also:
DatabaseLogin, oracle.toplink.sessions.DatabaseLogin#useJDBC();

forOracle

public static DatabaseLogin forOracle()
Deprecated.
OBSOLETE: Use oracle.toplink.sessionsDatabaseLogin instead.
See Also:
DatabaseLogin, oracle.toplink.sessions.DatabaseLogin#useOracle();

forSQLServer

public static DatabaseLogin forSQLServer()
Deprecated.
OBSOLETE: Use oracle.toplink.sessionsDatabaseLogin instead.
See Also:
DatabaseLogin, oracle.toplink.sessions.DatabaseLogin#useSQLServer();

forSybase

public static DatabaseLogin forSybase()
Deprecated.
OBSOLETE: Use oracle.toplink.sessionsDatabaseLogin instead.
See Also:
DatabaseLogin, oracle.toplink.sessions.DatabaseLogin#useSybase();

getCacheTransactionIsolation

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 senerio for two unit of works to merge changes different than the database although highly unlikely and if occured 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: