public class DatabaseConfigServiceImpl extends Object implements DatabaseConfigService
Constructor and Description |
---|
DatabaseConfigServiceImpl(Map<String,ConfigurationDBRef> mapDatabaseRef,
SchedulingService schedulingService,
ScheduleBucket scheduleBucket,
EngineImportService engineImportService)
Ctor.
|
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.
|
public DatabaseConfigServiceImpl(Map<String,ConfigurationDBRef> mapDatabaseRef, SchedulingService schedulingService, ScheduleBucket scheduleBucket, EngineImportService engineImportService)
mapDatabaseRef
- is a map of database name and database configuration entriesschedulingService
- is for scheduling callbacks for a cachescheduleBucket
- is a system bucket for all scheduling callbacks for cachesengineImportService
- engine importspublic ConnectionCache getConnectionCache(String databaseName, String preparedStatementText) throws DatabaseConfigException
DatabaseConfigService
getConnectionCache
in interface DatabaseConfigService
databaseName
- is the name of the databasepreparedStatementText
- is the sql textDatabaseConfigException
- is thrown to indicate database configuration errorspublic DatabaseConnectionFactory getConnectionFactory(String databaseName) throws DatabaseConfigException
DatabaseConfigService
getConnectionFactory
in interface DatabaseConfigService
databaseName
- is the name of the databaseDatabaseConfigException
- is thrown to indicate database configuration errorspublic DataCache getDataCache(String databaseName, StatementContext statementContext, EPStatementAgentInstanceHandle epStatementAgentInstanceHandle, DataCacheFactory dataCacheFactory, int streamNumber) throws DatabaseConfigException
DatabaseConfigService
getDataCache
in interface DatabaseConfigService
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 errorspublic ColumnSettings getQuerySetting(String databaseName) throws DatabaseConfigException
DatabaseConfigService
getQuerySetting
in interface DatabaseConfigService
databaseName
- is the database nameDatabaseConfigException
- if the name was not configured