|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.db.DatabasePollingViewableFactory
public class DatabasePollingViewableFactory
Factory for a view onto historical data via SQL statement.
Constructor Summary | |
---|---|
DatabasePollingViewableFactory()
|
Method Summary | |
---|---|
static HistoricalEventViewable |
createDBStatementView(int streamNumber,
DBStatementStreamSpec databaseStreamSpec,
DatabaseConfigService databaseConfigService,
EventAdapterService eventAdapterService,
EPStatementHandle epStatementHandle)
Creates the viewable for polling via database SQL query. |
protected static String |
lexSampleSQL(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 |
Constructor Detail |
---|
public DatabasePollingViewableFactory()
Method Detail |
---|
public static HistoricalEventViewable createDBStatementView(int streamNumber, DBStatementStreamSpec databaseStreamSpec, DatabaseConfigService databaseConfigService, EventAdapterService eventAdapterService, EPStatementHandle epStatementHandle) 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 informationepStatementHandle
- is the statements-own handle for use in registering callbacks with services
ExprValidationException
- if the validation failedprotected static String lexSampleSQL(String querySQL) throws ExprValidationException
querySQL
- to inspect using lexer
ExprValidationException
- to indicate a lexer problem
|
© 2007 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 |