net.esper.eql.spec
Class DBStatementStreamSpec

java.lang.Object
  extended by net.esper.eql.spec.StreamSpec
      extended by net.esper.eql.spec.DBStatementStreamSpec

public class DBStatementStreamSpec
extends StreamSpec

Specification object for historical data poll via database SQL statement.


Constructor Summary
DBStatementStreamSpec(String optionalStreamName, List<ViewSpec> viewSpecs, String databaseName, String sqlWithSubsParams)
          Ctor.
 
Method Summary
 String getDatabaseName()
          Returns the database name.
 String getSqlWithSubsParams()
          Returns the SQL with substitution parameters.
 
Methods inherited from class net.esper.eql.spec.StreamSpec
getOptionalStreamName, getViewSpecs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBStatementStreamSpec

public DBStatementStreamSpec(String optionalStreamName,
                             List<ViewSpec> viewSpecs,
                             String databaseName,
                             String sqlWithSubsParams)
Ctor.

Parameters:
optionalStreamName - is a stream name optionally given to stream
viewSpecs - is a list of views onto the stream
databaseName - is the database name to poll
sqlWithSubsParams - is the SQL with placeholder parameters
Method Detail

getDatabaseName

public String getDatabaseName()
Returns the database name.

Returns:
name of database.

getSqlWithSubsParams

public String getSqlWithSubsParams()
Returns the SQL with substitution parameters.

Returns:
SQL with parameters embedded as ${stream.param}