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.
|
String |
getConnectionProperty(String propertyName)
Gets the specified connection property that are set on this data source.
|
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 |
setConnectionProperty(String name, String value)
Sets a connection property on the connection factory.
|
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.
|
createConnectionBuildergetConnection, getConnectionisWrapperFor, unwrapcreateShardingKeyBuilder, getConnectionProperties, getDatabaseName, getDataSourceName, getDescription, getNetworkProtocol, getPortNumber, getServerName, getURL, getUser, setConnectionProperties, setDatabaseName, setDataSourceName, setDescription, setNetworkProtocol, setPassword, setPortNumber, setServerName, setURL, setUsergetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterstatic 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 OracleCommonDataSourceroleName - data source role name to be set.SQLExceptionString getRoleName()
getRoleName in interface OracleCommonDataSourcevoid 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.String getConnectionProperty(String propertyName)
propertyName - The name of the specified property.void setConnectionProperty(String name, String value) throws SQLException
oracle.jdbc.pool.OracleDataSource in the Oracle JDBC driver.name - The name of the connection property to be set on the connection factory class.value - The value of the connection property to be set on the connection factory class.SQLException - If any exception occurred while setting the connection property.setConnectionFactoryPropertiesvoid setMaxStatements(int max)
throws 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.SQLException - if max < 0int getMaxStatements()
throws SQLException
getMaxStatements in interface OracleCommonDataSourceSQLExceptionvoid setImplicitCachingEnabled(boolean cache)
throws 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.SQLExceptionboolean getImplicitCachingEnabled()
throws SQLException
getImplicitCachingEnabled in interface OracleCommonDataSourceSQLExceptionvoid setExplicitCachingEnabled(boolean cache)
throws 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.SQLException - if called on a logical connection.boolean getExplicitCachingEnabled()
throws SQLException
getExplicitCachingEnabled in interface OracleCommonDataSourceSQLExceptionReplayStatistics getReplayStatistics()
void clearReplayStatistics()