public interface OracleDataSource extends OracleDataSource
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONNECTION_PROPERTIES |
static java.lang.String |
DATA_SOURCE_NAME |
static java.lang.String |
DATABASE_NAME |
static java.lang.String |
DESCRIPTION |
static java.lang.String |
EXPLICIT_CACHING_ENABLED |
static java.lang.String |
IMPLICIT_CACHING_ENABLED |
static java.lang.String |
MAX_STATEMENTS |
static java.lang.String |
NETWORK_PROTOCOL |
static java.lang.String |
PASSWORD |
static java.lang.String |
PORT_NUMBER |
static java.lang.String |
ROLE_NAME |
static java.lang.String |
SERVER_NAME |
static java.lang.String |
URL |
static java.lang.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.
|
java.lang.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(java.lang.String roleName)
Sets the data source role name.
|
void |
unregisterConnectionInitializationCallback(oracle.jdbc.replay.internal.ConnectionInitializationCallback cbk)
Unregisters a specified connection initialization callback.
|
createConnectionBuilder, setExecutorServicecreateShardingKeyBuilder, getConnectionProperties, getConnectionProperty, getDatabaseName, getDataSourceName, getDescription, getNetworkProtocol, getPortNumber, getServerName, getURL, getUser, setConnectionProperties, setConnectionProperty, setDatabaseName, setDataSourceName, setDescription, setHostnameResolver, setNetworkProtocol, setPassword, setPortNumber, setServerName, setSingleShardTransactionSupport, setSSLContext, setTokenSupplier, setURL, setUserstatic final java.lang.String USER
static final java.lang.String URL
static final java.lang.String PASSWORD
static final java.lang.String SERVER_NAME
static final java.lang.String PORT_NUMBER
static final java.lang.String DATABASE_NAME
static final java.lang.String DATA_SOURCE_NAME
static final java.lang.String DESCRIPTION
static final java.lang.String NETWORK_PROTOCOL
static final java.lang.String ROLE_NAME
static final java.lang.String CONNECTION_PROPERTIES
static final java.lang.String MAX_STATEMENTS
static final java.lang.String IMPLICIT_CACHING_ENABLED
static final java.lang.String EXPLICIT_CACHING_ENABLED
void setRoleName(java.lang.String roleName)
throws java.sql.SQLException
setRoleName in interface OracleCommonDataSourceroleName - data source role name to be set.java.sql.SQLExceptionjava.lang.String getRoleName()
getRoleName in interface OracleCommonDataSourcevoid registerConnectionInitializationCallback(oracle.jdbc.replay.internal.ConnectionInitializationCallback cbk)
throws java.sql.SQLException
cbk - The ConnectionInitializationCallback
object to be registered.java.sql.SQLException - If there is a callback already
registered with the pool.void unregisterConnectionInitializationCallback(oracle.jdbc.replay.internal.ConnectionInitializationCallback cbk)
throws java.sql.SQLException
cbk - The ConnectionInitializationCallback
object to be unregistered.java.sql.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 java.sql.SQLException
setMaxStatements in interface OracleCommonDataSourcemax - Requested size of the cache. If the existing cache size
is less than max, statements will be purged to reduce the
size.java.sql.SQLException - if max < 0int getMaxStatements()
throws java.sql.SQLException
getMaxStatements in interface OracleCommonDataSourcejava.sql.SQLExceptionvoid setImplicitCachingEnabled(boolean cache)
throws java.sql.SQLException
setImplicitCachingEnabled in interface OracleCommonDataSourcecache - If true, then implicit caching is enabled. If false,
then any existing statement is purged and the implicit
caching is disabled.java.sql.SQLExceptionboolean getImplicitCachingEnabled()
throws java.sql.SQLException
getImplicitCachingEnabled in interface OracleCommonDataSourcejava.sql.SQLExceptionvoid setExplicitCachingEnabled(boolean cache)
throws java.sql.SQLException
setExplicitCachingEnabled in interface OracleCommonDataSourcecache - If true, then explicit caching is enabled. If false,
then any existing statement is purged and the explicit
caching is disabled.java.sql.SQLException - if called on a logical connection.boolean getExplicitCachingEnabled()
throws java.sql.SQLException
getExplicitCachingEnabled in interface OracleCommonDataSourcejava.sql.SQLExceptionReplayStatistics getReplayStatistics()
void clearReplayStatistics()