net.esper.eql.db
Class PollingViewableFactory

java.lang.Object
  extended by net.esper.eql.db.PollingViewableFactory

public class PollingViewableFactory
extends Object

Factory for a view onto historical data via SQL statement.


Constructor Summary
PollingViewableFactory()
           
 
Method Summary
static HistoricalEventViewable createDBStatementView(int streamNumber, DBStatementStreamSpec databaseStreamSpec, DatabaseConfigService databaseConfigService, EventAdapterService eventAdapterService)
          Creates the viewable for polling via database SQL query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollingViewableFactory

public PollingViewableFactory()
Method Detail

createDBStatementView

public static HistoricalEventViewable createDBStatementView(int streamNumber,
                                                            DBStatementStreamSpec databaseStreamSpec,
                                                            DatabaseConfigService databaseConfigService,
                                                            EventAdapterService eventAdapterService)
                                                     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
Returns:
viewable providing poll functionality
Throws:
ExprValidationException - if the validation failed