Package oracle.jdbc.datasource
Interface OracleDataSource
- All Superinterfaces:
CommonDataSource,DataSource,OracleCommonDataSource,Wrapper
- All Known Subinterfaces:
OracleConnectionPoolDataSource,OracleDataSource,OracleXADataSource
- All Known Implementing Classes:
OracleConnectionPoolDataSource,OracleConnectionPoolDataSource,OracleConnectionPoolDataSourceImpl,OracleDataSource,OracleDataSource,OracleDataSourceImpl,OracleOCIConnectionPool,OracleXADataSource,OracleXADataSource,OracleXADataSourceImpl
This interface defines the Oracle extensions to the standard JDBC interface
DataSource.- Since:
- 12.2
-
Method Summary
Modifier and TypeMethodDescriptionCreate a newOracleConnectionBuilderinstancestatic voidsetExecutorService(ExecutorService threadPool) Sets the thread pool for general use inside the Oracle JDBC driver.Methods inherited from interface javax.sql.CommonDataSource
getParentLoggerMethods inherited from interface javax.sql.DataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriterMethods inherited from interface oracle.jdbc.datasource.OracleCommonDataSource
createShardingKeyBuilder, getConnectionProperties, getConnectionProperty, getDatabaseName, getDataSourceName, getDescription, getExplicitCachingEnabled, getImplicitCachingEnabled, getMaxStatements, getNetworkProtocol, getPortNumber, getRoleName, getServerName, getURL, getUser, setConnectionProperties, setConnectionProperty, setDatabaseName, setDataSourceName, setDescription, setExplicitCachingEnabled, setHostnameResolver, setImplicitCachingEnabled, setMaxStatements, setNetworkProtocol, setPassword, setPortNumber, setRoleName, setServerName, setSingleShardTransactionSupport, setSSLContext, setTokenSupplier, setURL, setUserMethods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
-
Method Details
-
createConnectionBuilder
Create a newOracleConnectionBuilderinstance- Specified by:
createConnectionBuilderin interfaceDataSource- Returns:
- The
OracleConnectionBuilderinstance that was created - Throws:
SQLException- if an error occurs while creating the builder
-
setExecutorService
Sets the thread pool for general use inside the Oracle JDBC driver. The thread pool set is used across all data source instances. Setting this has global effect. The existing thread pool will be shut down immediately. The thread pool set should in general be aThreadPoolExecutor. Do not useForkJoinPool.- Throws:
SQLException- if an error occurs while setting the thread pool.
-