public class NullDBDataSource extends AbstractDBDataSource<NullDBDataSource>
DataSource.Parameter<T>
Modifier and Type | Field and Description |
---|---|
static NullDBDataSource |
instance |
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 |
---|
NullDBDataSource() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExport()
Determines if this data source is able to create or alter tables in the
database.
|
void |
clearCaches()
Clears all caches of this data source.
|
void |
closeAllOpenConnections()
Close all open connections.
|
DataSource.Parameter[] |
getDefaultParameters() |
DBMetaData |
getMetaData() |
protected DBConnection |
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
getDefaultParameter, getName, getParameter, getParameters, getParameterValue, getParameterValue, putParameter
public static final NullDBDataSource instance
public DataSource.Parameter[] getDefaultParameters()
public DBMetaData getMetaData() throws DBException
DBDataSource
DBException
protected DBConnection openConnectionImpl() throws DBException
openConnectionImpl
in class AbstractDBDataSource<NullDBDataSource>
DBException
public void closeAllOpenConnections() throws DBException
DBDataSource
DBException
- if a database access error occurspublic boolean canExport()
DBDataSource
public void clearCaches()
DataSource
This method should be called after a parameter's value is changed if the data source has been used before.
Copyright © 2003–2021 XDEV Software. All rights reserved.