public interface DatabaseConfigService
Modifier and Type | Method and Description |
---|---|
ConnectionCache |
getConnectionCache(String databaseName,
String preparedStatementText)
Returns true to indicate a setting to retain connections between lookups.
|
DatabaseConnectionFactory |
getConnectionFactory(String databaseName)
Returns a connection factory for a configured database.
|
DataCache |
getDataCache(String databaseName,
StatementContext statementContext,
EPStatementAgentInstanceHandle epStatementAgentInstanceHandle,
DataCacheFactory dataCacheFactory,
int streamNumber)
Returns a new cache implementation for this database.
|
ColumnSettings |
getQuerySetting(String databaseName)
Returns the column metadata settings for the database.
|
DatabaseConnectionFactory getConnectionFactory(String databaseName) throws DatabaseConfigException
databaseName
- is the name of the databaseDatabaseConfigException
- is thrown to indicate database configuration errorsColumnSettings getQuerySetting(String databaseName) throws DatabaseConfigException
databaseName
- is the database nameDatabaseConfigException
- if the name was not configuredConnectionCache getConnectionCache(String databaseName, String preparedStatementText) throws DatabaseConfigException
databaseName
- is the name of the databasepreparedStatementText
- is the sql textDatabaseConfigException
- is thrown to indicate database configuration errorsDataCache getDataCache(String databaseName, StatementContext statementContext, EPStatementAgentInstanceHandle epStatementAgentInstanceHandle, DataCacheFactory dataCacheFactory, int streamNumber) throws DatabaseConfigException
databaseName
- is the name of the database to return a new cache implementation for forstatementContext
- statement contextepStatementAgentInstanceHandle
- is the statements-own handle for use in registering callbacks with servicesdataCacheFactory
- factory for cachestreamNumber
- stream numberDatabaseConfigException
- is thrown to indicate database configuration errors