Package oracle.jdbc.datasource
Interface OracleDataSource
-
- All Superinterfaces:
javax.sql.CommonDataSource
,javax.sql.DataSource
,OracleCommonDataSource
,java.sql.Wrapper
- All Known Subinterfaces:
OracleConnectionPoolDataSource
,OracleDataSource
,OracleXADataSource
- All Known Implementing Classes:
OracleConnectionPoolDataSource
,OracleConnectionPoolDataSource
,OracleConnectionPoolDataSourceImpl
,OracleDataSource
,OracleDataSource
,OracleDataSourceImpl
,OracleOCIConnectionPool
,OracleXADataSource
,OracleXADataSource
,OracleXADataSourceImpl
public interface OracleDataSource extends javax.sql.DataSource, OracleCommonDataSource
This interface defines the Oracle extensions to the standard JDBC interfaceDataSource
.- Since:
- 12.2
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description OracleConnectionBuilder
createConnectionBuilder()
Create a newOracleConnectionBuilder
instancestatic void
setExecutorService(java.util.concurrent.ExecutorService threadPool)
Sets the thread pool for general use inside the Oracle JDBC driver.-
Methods inherited from interface javax.sql.DataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
-
Methods 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, setUser
-
-
-
-
Method Detail
-
createConnectionBuilder
OracleConnectionBuilder createConnectionBuilder() throws java.sql.SQLException
Create a newOracleConnectionBuilder
instance- Specified by:
createConnectionBuilder
in interfacejavax.sql.DataSource
- Returns:
- The
OracleConnectionBuilder
instance that was created - Throws:
java.sql.SQLException
- if an error occurs while creating the builder
-
setExecutorService
static void setExecutorService(java.util.concurrent.ExecutorService threadPool) throws java.sql.SQLException
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:
java.sql.SQLException
- if an error occurs while setting the thread pool.
-
-