public abstract class JDBCDataSource<T extends JDBCDataSource<T,A>,A extends DbmsAdaptor<A>> extends AbstractDBDataSource<T>
DataSource.Parameter<T>
AUTH_KEY, CATALOG, CONNECTION_POOL_SIZE, EMBEDDED, HOST, IS_SERVER_DATASOURCE, KEEP_CONNECTIONS_ALIVE, listeners, PASSWORD, PORT, SCHEMA, SERVER_URL, URL_EXTENSION, USERNAME, VERBOSE
connConfig, params
Constructor and Description |
---|
JDBCDataSource(A adaptor) |
Modifier and Type | Method and Description |
---|---|
void |
clearCaches()
Clears all caches of this data source.
|
void |
closeAllOpenConnections()
Close all open connections.
|
protected ConnectionProvider |
createConnectionProvider() |
protected DatabaseGateway<A> |
createGateway() |
protected abstract ConnectionInformation |
getConnectionInformation() |
ConnectionProvider<A> |
getConnectionProvider() |
A |
getDbmsAdaptor() |
DatabaseGateway<A> |
getGateway() |
abstract JDBCConnection |
openConnectionImpl() |
addDBDataSourceListener, getAuthKey, getCatalog, getConnectionPoolSize, getDBDataSourceListeners, getHost, getPassword, getPort, getSchema, getServerURL, getUrlExtension, getUserName, isEmbedded, isParameterRequired, isServerDataSource, keepConnectionsAlive, openConnection, removeDBDataSourceListener, setAuthKey, setUrlExtension
getDefaultParameter, getName, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, init, init, putParameter, putParameter, putParameterValue, putParameterValue, rankParams, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canExport, getMetaData
getDefaultParameter, getDefaultParameters, getName, getParameter, getParameters, getParameterValue, getParameterValue, putParameter
public JDBCDataSource(A adaptor)
public abstract JDBCConnection openConnectionImpl() throws DBException
openConnectionImpl
in class AbstractDBDataSource<T extends JDBCDataSource<T,A>>
DBException
public A getDbmsAdaptor()
public void closeAllOpenConnections() throws DBException
DBDataSource
DBException
- if a database access error occurspublic void clearCaches()
DataSource
This method should be called after a parameter's value is changed if the data source has been used before.
public DatabaseGateway<A> getGateway()
protected DatabaseGateway<A> createGateway()
public ConnectionProvider<A> getConnectionProvider()
protected ConnectionProvider createConnectionProvider()
protected abstract ConnectionInformation getConnectionInformation()
Copyright © 2003–2021 XDEV Software. All rights reserved.