public class ServletDBDataSource extends AbstractDBDataSource<ServletDBDataSource>
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 |
---|
ServletDBDataSource(JDBCDataSource original) |
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.
|
protected xdev.db.servlet.SessionInfo |
createSessionInfo(String url) |
DataSource.Parameter[] |
getDefaultParameters() |
DBMetaData |
getMetaData() |
ServletDBConnection |
openConnectionImpl() |
void |
setAuthKey(String authKey)
Sets the key which is used to authentificate this client to communicate
with the servlet-part of this data source.
|
addDBDataSourceListener, getAuthKey, getCatalog, getConnectionPoolSize, getDBDataSourceListeners, getHost, getPassword, getPort, getSchema, getServerURL, getUrlExtension, getUserName, isEmbedded, isParameterRequired, isServerDataSource, keepConnectionsAlive, openConnection, removeDBDataSourceListener, 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 byte[] HANDSHAKE
public static final String SESSIONID_PARAM
public static final String KEY_PARAM
public static final String KEY_FROM_CERT
public static final String SECRET_KEY_ALGORITHM
public static final String KEY_EXCHANGE_ALGORITHM
public static final String MAC_ALGORITHM
public static final byte REQUEST_TEST_CONNECTION
public static final byte REQUEST_METADATA
public static final byte REQUEST_METADATA_TABLE_INFOS
public static final byte REQUEST_METADATA_TABLE_METADATA
public static final byte REQUEST_METADATA_STORED_PROCEDURES
public static final byte REQUEST_METADATA_ERS
public static final byte REQUEST_METADATA_SYNC
public static final byte REQUEST_QUERY_SQL
public static final byte REQUEST_GET_QUERY_ROW_COUNT
public static final byte REQUEST_WRITE_SQL_RGK
public static final byte REQUEST_WRITE_SQL_COLS
public static final byte REQUEST_WRITE_SQL
public static final byte REQUEST_STORED_PROCEDURE
public static final byte REQUEST_BEGIN_TRANSACTION
public static final byte REQUEST_SET_SAVEPOINT
public static final byte REQUEST_SET_SAVEPOINT_NAME
public static final byte REQUEST_RELEASE_SAVEPOINT
public static final byte REQUEST_COMMIT
public static final byte REQUEST_ROLLBACK
public static final byte REQUEST_ROLLBACK_SAVEPOINT
public static final byte REQUEST_PAGING_START
public static final byte REQUEST_PAGING_RESULT
public static final byte REQUEST_PAGING_CLOSE
public static final byte RESPONSE_TYPE_0
public static final byte RESPONSE_TYPE_1
public static final byte RESPONSE_OK
public static final byte RESPONSE_EXCEPTION
public static final byte RESPONSE_STORED_PROCEDURE_VOID
public static final byte RESPONSE_STORED_PROCEDURE_RESULT
public static final byte RESPONSE_STORED_PROCEDURE_OBJECT
public ServletDBDataSource(JDBCDataSource original)
public void setAuthKey(String authKey)
AbstractDBDataSource
setAuthKey
in class AbstractDBDataSource<ServletDBDataSource>
authKey
- the new authorization keypublic ServletDBConnection openConnectionImpl() throws DBException
openConnectionImpl
in class AbstractDBDataSource<ServletDBDataSource>
DBException
protected xdev.db.servlet.SessionInfo createSessionInfo(String url) throws Exception
Exception
public void closeAllOpenConnections() throws DBException
DBDataSource
closeAllOpenConnections
in interface DBDataSource<ServletDBDataSource>
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.
clearCaches
in interface DataSource<ServletDBDataSource>
public DataSource.Parameter[] getDefaultParameters()
getDefaultParameters
in interface DataSource<ServletDBDataSource>
public DBMetaData getMetaData() throws DBException
DBDataSource
getMetaData
in interface DBDataSource<ServletDBDataSource>
getMetaData
in interface DataSource<ServletDBDataSource>
DBException
public boolean canExport()
DBDataSource
canExport
in interface DBDataSource<ServletDBDataSource>
Copyright © 2003–2021 XDEV Software. All rights reserved.