|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.sessions.DatabaseLogin
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:
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 |
public static java.lang.String versionString
public static java.lang.String licensePath
public static java.lang.String studioLicenseFile
public static java.lang.String licenseFile
public static final int CONCURRENT_READ_WRITE
public static final int SYNCHRONIZED_WRITE
public static final int SYNCHRONIZED_READ_ON_WRITE
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
public static java.lang.String[] xmlParserJARFileNames
Constructor Detail |
public DatabaseLogin()
public DatabaseLogin(DatabasePlatform databasePlatform)
Method Detail |
public void addProperty(java.lang.String propertyName, java.lang.Object propertyValue)
public void bindAllParameters()
public void cacheAllStatements()
#bindAllStatements()
public void dontBindAllParameters()
public void dontCacheAllStatements()
public void dontOptimizeDataConversion()
public void dontUseBatchWriting()
public void dontUseBinding()
dontUseByteArrayBinding()
public void dontUseByteArrayBinding()
public void dontUseExternalConnectionPooling()
useExternalConnectionPooling()
public void dontUseExternalTransactionController()
useExternalTransactionController()
public void dontUseJDBCBatchWriting()
useJDBCBatchWriting()
, setUsesJDBCBatchWriting(boolean usesJDBCBatchWriting)
public void dontUseNativeSequencing()
public void dontUseNativeSQL()
public void dontUseStreamsForBinding()
public void dontUseStringBinding()
public static DatabaseLogin forAccess()
DatabaseLogin
, oracle.toplink.sessions.DatabaseLogin#useAccess();
public static DatabaseLogin forDB2()
DatabaseLogin
, oracle.toplink.sessions.DatabaseLogin#useDB2();
public static DatabaseLogin forDBase()
DatabaseLogin
, oracle.toplink.sessions.DatabaseLogin#useDBase();
public static DatabaseLogin forInformix()
DatabaseLogin
, oracle.toplink.sessions.DatabaseLogin#useInformix();
public static DatabaseLogin forJDBC()
DatabaseLogin
, oracle.toplink.sessions.DatabaseLogin#useJDBC();
public static DatabaseLogin forOracle()
DatabaseLogin
, oracle.toplink.sessions.DatabaseLogin#useOracle();
public static DatabaseLogin forSQLServer()
DatabaseLogin
, oracle.toplink.sessions.DatabaseLogin#useSQLServer();
public static DatabaseLogin forSybase()
DatabaseLogin
, oracle.toplink.sessions.DatabaseLogin#useSybase();
public int getCacheTransactionIsolation()
Setting are:
public java.lang.String getConnectionString() throws ValidationException
ValidationException
public Connector getConnector()
public int getCursorCode()
public java.lang.String getDatabaseName()
public java.lang.String getDatabaseURL() throws ValidationException
ValidationException
public java.lang.String getDataSourceName() throws ValidationException
ValidationException
public java.lang.String getDriverClassName() throws ValidationException
ValidationException
public java.lang.String getDriverURLHeader() throws ValidationException
ValidationException
public static java.lang.String getKey()
public static java.lang.String getLicensePath()
public int getMaxBatchWritingSize()
public 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).
public java.lang.String getSequenceCounterFieldName()
public java.lang.String getSequenceCounterName()
getSequenceCounterFieldName()
public java.lang.String getSequenceFieldName()
getSequenceNameFieldName()
public java.lang.String getSequenceNameFieldName()
public int getSequencePreallocationSize()
public java.lang.String getQualifiedSequenceTableName()
public java.lang.String getSequenceTableName()
public java.lang.String getServerName()
public boolean getShouldBindAllParameters()
public boolean getShouldCacheAllStatements()
public boolean getShouldOptimizeDataConversion()
public boolean getShouldTrimStrings()
public int getStatementCacheSize()
public int getStringBindingSize()
public static java.lang.String getStudioLicenseFile()
public java.lang.String getTableQualifier()
public static java.lang.String getLicenseFile()
public int getTransactionIsolation()
public java.lang.String getUserName()
getUserName
in interface Login
public boolean getUsesBinding()
public boolean getUsesNativeSequencing()
public boolean getUsesNativeSQL()
public boolean getUsesStreamsForBinding()
public boolean getUsesStringBinding()
public static java.lang.String getVersion()
public static java.lang.String[] getXMLParserJARFileNames()
public void handleTransactionsManuallyForSybaseJConnect()
public boolean isAnyOracleJDBCBridge()
isAnyOracleJDBCDriver()
public boolean isAnyOracleJDBCDriver()
public boolean isCloudscapeJDBCDriver()
public boolean isDB2JDBCBridge()
isDB2JDBCDriver()
public boolean isDB2JDBCDriver()
public boolean isIntersolvSequeLinkBridge()
isIntersolvSequeLinkDriver()
public boolean isIntersolvSequeLinkDriver()
public boolean isJConnectBridge()
isJConnectDriver()
public boolean isJConnectDriver()
public boolean isJDBCConnectBridge()
isJDBCConnectDriver()
public boolean isJDBCConnectDriver()
public boolean isJDBCConnectRemoteBridge()
isJDBCConnectRemoteDriver()
public boolean isJDBCConnectRemoteDriver()
public boolean isJDBCODBCBridge()
public boolean isOracle7JDBCBridge()
isOracle7JDBCDriver()
public boolean isOracle7JDBCDriver()
public boolean isOracleJDBCBridge()
isOracleJDBCDriver()
public boolean isOracleJDBCDriver()
public boolean isOracleServerJDBCBridge()
isOracleServerJDBCDriver()
public boolean isOracleServerJDBCDriver()
public boolean isOracleThinJDBCBridge()
isOracleThinJDBCDriver()
public boolean isOracleThinJDBCDriver()
public boolean isWebLogicOracleOCIBridge()
isWebLogicOracleOCIDriver()
public boolean isWebLogicOracleOCIDriver()
public boolean isWebLogicSQLServerBridge()
isWebLogicSQLServerDriver()
public boolean isWebLogicSQLServerDBLibBridge()
isWebLogicSQLServerDBLibDriver()
public boolean isWebLogicSQLServerDBLibDriver()
public boolean isWebLogicSQLServerDriver()
public boolean isWebLogicSybaseDBLibBridge()
isWebLogicSybaseDBLibDriver()
public boolean isWebLogicSybaseDBLibDriver()
public boolean isWebLogicThinBridge()
isWebLogicThinDriver()
public boolean isWebLogicThinClientBridge()
isWebLogicThinClientDriver()
public boolean isWebLogicThinClientDriver()
public boolean isWebLogicThinDriver()
public void optimizeDataConversion()
public void removeProperty(java.lang.String propertyName)
public void setCacheTransactionIsolation(int cacheTransactionIsolation)
Setting are:
public void setConnectionString(java.lang.String url) throws ValidationException
ValidationException
public void setConnector(Connector connector)
java.sql.Connection
. This allows the developer to use a non-JDBC 1.0 compliant connection technique.
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.public void setCursorCode(int cursorCode)
public void setDatabaseName(java.lang.String databaseName)
public void setDatabaseURL(java.lang.String databaseURL) throws ValidationException
ValidationException
public void setDataSourceName(java.lang.String dataSourceName)
public void setDefaultNullValue(java.lang.Class type, java.lang.Object value)
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 static void setKey(java.lang.String key)
public static void setKey(java.lang.String resourceName, java.lang.String keyName) throws java.util.MissingResourceException
java.util.MissingResourceException
public static void setLicensePath(java.lang.String path)
public void setMaxBatchWritingSize(int maxBatchWritingSize)
public void setPassword(java.lang.String password)
setPassword
in interface Login
public java.lang.String getPassword()
getPassword
in interface Login
public void setEncryptedPassword(java.lang.String password)
public void setEncryptionClassName(java.lang.String encryptionClassName)
public void setProperties(java.util.Properties properties)
public void setProperty(java.lang.String propertyName, java.lang.Object propertyValue)
public void setSelectSequenceNumberQuery(ValueReadQuery selectSequenceNumberQuery)
public void setSequenceCounterFieldName(java.lang.String name)
public void setSequenceCounterName(java.lang.String name)
#setSequenceCounterFieldName()
public void setSequenceFieldName(java.lang.String name)
#setSequenceNameFieldName()
public void setSequenceNameFieldName(java.lang.String name)
public void setSequencePreallocationSize(int size)
public void setSequenceTableName(java.lang.String name)
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)
public void setTimestampQuery(ValueReadQuery timestampQuery)
public void setTransactionIsolation(int isolationLevel)
public void setUpdateSequenceQuery(DataModifyQuery updateSequenceNumberQuery)
public void setUserName(java.lang.String name)
setUserName
in interface Login
public void setUsesBatchWriting(boolean value)
public void setUsesBinding(boolean value)
setUsesByteArrayBinding(boolean)
public void setUsesByteArrayBinding(boolean value)
public void setUsesDirectDriverConnect(boolean usesDirectDriverConnect)
public void setUsesExternalConnectionPooling(boolean usesExternalConnectionPooling)
public void setUsesExternalTransactionController(boolean usesExternalTransactionController)
public void setUsesJDBCBatchWriting(boolean usesJDBCBatchWriting)
Calling this method with an argument of false indicates 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.
usesJDBCBatchWriting
- boolean true delegates batch writing to the JDBC driver and false delegates batch writing to TopLink.public void setUsesNativeSequencing(boolean value)
public void setUsesNativeSQL(boolean value)
public void setUsesStreamsForBinding(boolean value)
public void setUsesStringBinding(boolean usesStringBindingSize)
public static void setXMLParserJARFileNames(java.lang.String[] jarFileNames)
public boolean shouldBindAllParameters()
public boolean shouldCacheAllStatements()
public boolean shouldForceFieldNamesToUpperCase()
public static boolean shouldIgnoreCaseOnFieldComparisons()
public boolean shouldOptimizeDataConversion()
public boolean shouldTrimStrings()
public boolean shouldUseBatchWriting()
public boolean shouldUseBinding()
usesByteArrayBinding()
public boolean shouldUseByteArrayBinding()
public boolean shouldUseExternalConnectionPooling()
public boolean shouldUseExternalTransactionController()
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()
public void useAccess()
public void useBatchWriting()
public void useBinding()
useByteArrayBinding()
public void useByteArrayBinding()
public void useCloudscape()
public void useCloudscapeDriver()
public void useDB2()
public void useDB2JDBCBridge()
useDB2JDBCDriver()
public void useDB2JDBCDriver()
public void useDB2NetJDBCBridge()
useDB2NetJDBCDriver()
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)
public void useDirectDriverConnect()
useDirectDriverConnect()
public void useDirectDriverConnect(java.lang.String driverClassName, java.lang.String driverURLHeader, java.lang.String databaseURL)
public void useExternalConnectionPooling()
public void useExternalTransactionController()
public void useHSQL()
public void useHSQLDriver()
public void useINetSQLServerDriver()
public void useInformix()
public void useIntersolvSequeLinkBridge()
useIntersolvSequeLinkDriver()
public void useIntersolvSequeLinkDriver()
public void useJConnect50Bridge()
useJConnect50Driver()
public void useJConnect50Driver()
public void useJConnectBridge()
useJConnectDriver()
public void useJConnectDriver()
public void useJDBC()
public void useJDBCBatchWriting()
public void useJDBCConnectBridge()
useJDBCConnectDriver()
public void useJDBCConnectDriver()
public void useJDBCConnectRemoteBridge()
useJDBCConnectRemoteDriver()
public void useJDBCConnectRemoteDriver()
public void useJDBCODBCBridge()
public void useNativeSequencing()
public void useNativeSQL()
public void useOracle()
public void useOracle7JDBCBridge()
useOracle7JDBCDriver()
public void useOracle7JDBCDriver()
public void useOracleJDBCBridge()
useOracleJDBCDriver()
public void useOracleJDBCDriver()
public void useOracleServerJDBCBridge()
useOracleServerJDBCDriver()
public void useOracleServerJDBCDriver()
public void useOracleThinJDBCBridge()
useOracleThinJDBCDriver()
public void useOracleThinJDBCDriver()
public void usePlatform(DatabasePlatform platform)
public void usePointBase()
public void usePointBaseDriver()
public boolean usesBatchWriting()
shouldUseBatchWriting()
public boolean usesBinding()
usesByteArrayBinding()
public boolean usesByteArrayBinding()
shouldUseByteArrayBinding()
public boolean usesDirectDriverConnect()
getConnector()
public boolean usesExternalConnectionPooling()
shouldUseExternalConnectionPooling()
public boolean usesExternalTransactionController()
shouldUseExternalTransactionController()
public boolean usesJDBCBatchWriting()
shouldUseJDBCBatchWriting()
public boolean usesNativeSequencing()
shouldUseNativeSequencing()
public boolean usesNativeSQL()
shouldUseNativeSQL()
public void useSQLServer()
public boolean usesStreamsForBinding()
shouldUseStreamsForBinding()
public boolean usesStringBinding()
shouldUseStringBinding()
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 useWebLogicOracleOCIBridge()
useWebLogicOracleOCIDriver()
public void useWebLogicOracleOCIDriver()
public void useWebLogicSQLServerBridge()
useWebLogicSQLServerDriver()
public void useWebLogicSQLServerDBLibBridge()
useWebLogicSQLServerDBLibDriver()
public void useWebLogicSQLServerDBLibDriver()
public void useWebLogicSQLServerDriver()
public void useWebLogicSybaseDBLibBridge()
useWebLogicSybaseDBLibDriver()
public void useWebLogicSybaseDBLibDriver()
public void useWebLogicThinBridge()
useWebLogicThinDriver()
public void useWebLogicThinClientBridge()
useWebLogicThinClientDriver()
public void useWebLogicThinClientDriver()
public void useWebLogicThinDriver()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |