|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.db.DatabasePollingViewableFactory
public class DatabasePollingViewableFactory
Factory for a view onto historical data via SQL statement.
Field Summary | |
---|---|
static java.lang.String |
SAMPLE_WHERECLAUSE_PLACEHOLDER
Placeholder name for SQL-where clause substitution. |
Constructor Summary | |
---|---|
DatabasePollingViewableFactory()
|
Method Summary | |
---|---|
static HistoricalEventViewable |
createDBStatementView(int statementId,
int streamNumber,
DBStatementStreamSpec databaseStreamSpec,
DatabaseConfigService databaseConfigService,
EventAdapterService eventAdapterService,
EPStatementAgentInstanceHandle epStatementAgentInstanceHandle,
SQLColumnTypeConversion columnTypeConversionHook,
SQLOutputRowConversion outputRowConversionHook,
boolean enableJDBCLogging,
DataCacheFactory dataCacheFactory,
StatementContext statementContext)
Creates the viewable for polling via database SQL query. |
protected static java.lang.String |
lexSampleSQL(java.lang.String querySQL)
Lexes the sample SQL and inserts a "where 1=0" where-clause. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SAMPLE_WHERECLAUSE_PLACEHOLDER
Constructor Detail |
---|
public DatabasePollingViewableFactory()
Method Detail |
---|
public static HistoricalEventViewable createDBStatementView(int statementId, int streamNumber, DBStatementStreamSpec databaseStreamSpec, DatabaseConfigService databaseConfigService, EventAdapterService eventAdapterService, EPStatementAgentInstanceHandle epStatementAgentInstanceHandle, SQLColumnTypeConversion columnTypeConversionHook, SQLOutputRowConversion outputRowConversionHook, boolean enableJDBCLogging, DataCacheFactory dataCacheFactory, StatementContext statementContext) throws ExprValidationException
streamNumber
- is the stream number of the viewdatabaseStreamSpec
- provides the SQL statement, database name and additional infodatabaseConfigService
- for getting database connection and settingseventAdapterService
- for generating event beans from database informationepStatementAgentInstanceHandle
- is the statements-own handle for use in registering callbacks with servicescolumnTypeConversionHook
- hook for statement-specific column conversionoutputRowConversionHook
- hook for statement-specific row conversionenableJDBCLogging
- indicator to enable JDBC logging
ExprValidationException
- if the validation failedprotected static java.lang.String lexSampleSQL(java.lang.String querySQL) throws ExprValidationException
querySQL
- to inspect using lexer
ExprValidationException
- to indicate a lexer problem
|
© 2006-2016 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |