public interface OracleDataSource extends OracleDataSource
Modifier and Type | Field and Description |
---|---|
static String |
CONNECTION_PROPERTIES |
static String |
DATA_SOURCE_NAME |
static String |
DATABASE_NAME |
static String |
DESCRIPTION |
static String |
EXPLICIT_CACHING_ENABLED |
static String |
IMPLICIT_CACHING_ENABLED |
static String |
MAX_STATEMENTS |
static String |
NETWORK_PROTOCOL |
static String |
PASSWORD |
static String |
PORT_NUMBER |
static String |
ROLE_NAME |
static String |
SERVER_NAME |
static String |
URL |
static String |
USER |
Modifier and Type | Method and Description |
---|---|
void |
clearReplayStatistics()
Clears replay statistics accumulated so far on all connection
created by this data source.
|
oracle.jdbc.replay.internal.ConnectionInitializationCallback |
getConnectionInitializationCallback()
Obtains the registered connection initialization callback, if any.
|
boolean |
getExplicitCachingEnabled()
Returns the current value of the explicitCachingEnabled property.
|
boolean |
getImplicitCachingEnabled()
getImplicitCachingEnabled
Returns the current value of the implicitCachingEnabled property.
|
int |
getMaxStatements()
Returns the current value of the maxStatements property.
|
ReplayStatistics |
getReplayStatistics()
Obtains replay statistics accumulated so far.
|
String |
getRoleName()
Gets the data source role name.
|
void |
registerConnectionInitializationCallback(oracle.jdbc.replay.internal.ConnectionInitializationCallback cbk)
Registers a connection initialization callback.
|
void |
setExplicitCachingEnabled(boolean cache)
Sets the value of the explicitCachingEnabled property, which
enables or disables the explicit cache.
|
void |
setImplicitCachingEnabled(boolean cache)
Sets the value of the implicitCachingEnabled property, which
enables or disables the implicit statement cache.
|
void |
setMaxStatements(int max)
Specifies the value of the maxStatements property.
|
void |
setRoleName(String roleName)
Sets the data source role name.
|
void |
unregisterConnectionInitializationCallback(oracle.jdbc.replay.internal.ConnectionInitializationCallback cbk)
Unregisters a specified connection initialization callback.
|
createConnectionBuilder, setExecutorService
getConnection, getConnection
isWrapperFor, unwrap
createShardingKeyBuilder, getConnectionProperties, getConnectionProperty, getDatabaseName, getDataSourceName, getDescription, getNetworkProtocol, getPortNumber, getServerName, getURL, getUser, setConnectionProperties, setConnectionProperty, setDatabaseName, setDataSourceName, setDescription, setNetworkProtocol, setPassword, setPortNumber, setServerName, setSingleShardTransactionSupport, setSSLContext, setURL, setUser
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
static final String USER
static final String URL
static final String PASSWORD
static final String SERVER_NAME
static final String PORT_NUMBER
static final String DATABASE_NAME
static final String DATA_SOURCE_NAME
static final String DESCRIPTION
static final String NETWORK_PROTOCOL
static final String ROLE_NAME
static final String CONNECTION_PROPERTIES
static final String MAX_STATEMENTS
static final String IMPLICIT_CACHING_ENABLED
static final String EXPLICIT_CACHING_ENABLED
void setRoleName(String roleName) throws SQLException
setRoleName
in interface OracleCommonDataSource
roleName
- data source role name to be set.SQLException
String getRoleName()
getRoleName
in interface OracleCommonDataSource
void registerConnectionInitializationCallback(oracle.jdbc.replay.internal.ConnectionInitializationCallback cbk) throws SQLException
cbk
- The ConnectionInitializationCallback
object to be registered.SQLException
- If there is a callback already
registered with the pool.void unregisterConnectionInitializationCallback(oracle.jdbc.replay.internal.ConnectionInitializationCallback cbk) throws SQLException
cbk
- The ConnectionInitializationCallback
object to be unregistered.SQLException
- If callback removal fails.oracle.jdbc.replay.internal.ConnectionInitializationCallback getConnectionInitializationCallback()
ConnectionInitializationCallback
,
or null if there is no callback registered.void setMaxStatements(int max) throws SQLException
setMaxStatements
in interface OracleCommonDataSource
max
- Requested size of the cache. If the existing cache size
is less than max, statements will be purged to reduce the
size.SQLException
- if max < 0int getMaxStatements() throws SQLException
getMaxStatements
in interface OracleCommonDataSource
SQLException
void setImplicitCachingEnabled(boolean cache) throws SQLException
setImplicitCachingEnabled
in interface OracleCommonDataSource
cache
- If true, then implicit caching is enabled. If false,
then any existing statement is purged and the implicit
caching is disabled.SQLException
boolean getImplicitCachingEnabled() throws SQLException
getImplicitCachingEnabled
in interface OracleCommonDataSource
SQLException
void setExplicitCachingEnabled(boolean cache) throws SQLException
setExplicitCachingEnabled
in interface OracleCommonDataSource
cache
- If true, then explicit caching is enabled. If false,
then any existing statement is purged and the explicit
caching is disabled.SQLException
- if called on a logical connection.boolean getExplicitCachingEnabled() throws SQLException
getExplicitCachingEnabled
in interface OracleCommonDataSource
SQLException
ReplayStatistics getReplayStatistics()
void clearReplayStatistics()