public interface IDBDatasourceService
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED |
static String |
DEFAULT_AUTO_COMMIT |
static String |
DEFAULT_CATALOG |
static String |
DEFAULT_READ_ONLY |
static String |
DEFAULT_TRANSACTION_ISOLATION |
static String |
IDBDATASOURCE_SERVICE |
static String |
INITIAL_SIZE |
static String |
JDBC_DATASOURCE |
static String |
JDBC_POOL |
static String |
LOG_ABANDONED |
static String |
MAX_ACTIVE_KEY |
static String |
MAX_IDLE_KEY |
static String |
MAX_OPEN_PREPARED_STATEMENTS |
static String |
MAX_WAIT_KEY |
static String |
MIN_IDLE_KEY |
static String |
POOL_PREPARED_STATEMENTS |
static String |
QUERY_KEY |
static String |
REMOVE_ABANDONED |
static String |
REMOVE_ABANDONED_TIMEOUT |
static String |
TEST_ON_BORROW |
static String |
TEST_ON_RETURN |
static String |
TEST_WHILE_IDLE |
static String |
TIME_BETWEEN_EVICTION_RUNS_MILLIS |
static String |
TRANSACTION_ISOLATION_NONE_VALUE |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
This method clears the whole JNDI data source cache.
|
void |
clearDataSource(String dsName)
This method clears the specified JNDI data source from cache.
|
DataSource |
getDataSource(String dsName)
Since JNDI is supported in different ways by different application servers, it's nearly impossible to have a standard
way to look up a data source.
|
String |
getDSBoundName(String dsName)
Since JNDI is supported in different ways by different application servers, it's nearly impossible to have a standard
way to look up a data source.
|
String |
getDSUnboundName(String dsName)
Since JNDI is supported in different ways by different application servers, it's nearly impossible to have a standard
way to look up a data source.
|
static final String JDBC_POOL
static final String JDBC_DATASOURCE
static final String IDBDATASOURCE_SERVICE
static final String MAX_ACTIVE_KEY
static final String MAX_IDLE_KEY
static final String MIN_IDLE_KEY
static final String MAX_WAIT_KEY
static final String QUERY_KEY
static final String TEST_ON_BORROW
static final String TEST_WHILE_IDLE
static final String TEST_ON_RETURN
static final String DEFAULT_READ_ONLY
static final String DEFAULT_AUTO_COMMIT
static final String DEFAULT_TRANSACTION_ISOLATION
static final String TRANSACTION_ISOLATION_NONE_VALUE
static final String DEFAULT_CATALOG
static final String POOL_PREPARED_STATEMENTS
static final String MAX_OPEN_PREPARED_STATEMENTS
static final String ACCESS_TO_UNDERLYING_CONNECTION_ALLOWED
static final String TIME_BETWEEN_EVICTION_RUNS_MILLIS
static final String REMOVE_ABANDONED
static final String REMOVE_ABANDONED_TIMEOUT
static final String LOG_ABANDONED
static final String INITIAL_SIZE
void clearCache()
void clearDataSource(String dsName)
dsName
- The name of the data source to be removed from the cache.DataSource getDataSource(String dsName) throws DBDatasourceServiceException
dsName
- The data source name.DBDatasourceServiceException
String getDSBoundName(String dsName) throws DBDatasourceServiceException
dsName
- The Datasource name (e.g. SampleData).DBDatasourceServiceException
String getDSUnboundName(String dsName)
dsName
- The data source name (e.g. "jdbc/SampleData").Copyright © 2020 Hitachi Vantara. All rights reserved.