createDBStatementView
public static HistoricalEventViewable createDBStatementView(java.lang.String statementId,
int streamNumber,
DBStatementStreamSpec databaseStreamSpec,
DatabaseConfigService databaseConfigService,
EventAdapterService eventAdapterService,
EPStatementAgentInstanceHandle epStatementAgentInstanceHandle,
SQLColumnTypeConversion columnTypeConversionHook,
SQLOutputRowConversion outputRowConversionHook,
boolean enableJDBCLogging)
throws ExprValidationException
Creates the viewable for polling via database SQL query.
- Parameters:
streamNumber
- is the stream number of the view
databaseStreamSpec
- provides the SQL statement, database name and additional info
databaseConfigService
- for getting database connection and settings
eventAdapterService
- for generating event beans from database information
epStatementAgentInstanceHandle
- is the statements-own handle for use in registering callbacks with services
columnTypeConversionHook
- hook for statement-specific column conversion
outputRowConversionHook
- hook for statement-specific row conversion
enableJDBCLogging
- indicator to enable JDBC logging
- Returns:
- viewable providing poll functionality
- Throws:
ExprValidationException
- if the validation failed