public class PollExecStrategyDBQuery extends Object implements PollExecStrategy
Constructor and Description |
---|
PollExecStrategyDBQuery(EventAdapterService eventAdapterService,
EventType eventType,
ConnectionCache connectionCache,
String preparedStatementText,
Map<String,DBOutputTypeDesc> outputTypes,
SQLColumnTypeConversion columnTypeConversionHook,
SQLOutputRowConversion outputRowConversionHook,
boolean enableJDBCLogging)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Indicate we are no going to use this object again.
|
void |
done()
Indicate we are done polling and can release resources.
|
List<EventBean> |
poll(Object[] lookupValues,
ExprEvaluatorContext exprEvaluatorContext)
Poll events using the keys provided.
|
void |
start()
Start the poll, called before any poll operation.
|
public PollExecStrategyDBQuery(EventAdapterService eventAdapterService, EventType eventType, ConnectionCache connectionCache, String preparedStatementText, Map<String,DBOutputTypeDesc> outputTypes, SQLColumnTypeConversion columnTypeConversionHook, SQLOutputRowConversion outputRowConversionHook, boolean enableJDBCLogging)
eventAdapterService
- for generating event beanseventType
- is the event type that this poll generatesconnectionCache
- caches Connection and PreparedStatementpreparedStatementText
- is the SQL to use for pollingoutputTypes
- describe columns selected by the SQLoutputRowConversionHook
- hook to convert rows, if any hook is registeredcolumnTypeConversionHook
- hook to convert columns, if any hook is registeredenableJDBCLogging
- jdbc logging flagpublic void start()
PollExecStrategy
start
in interface PollExecStrategy
public void done()
PollExecStrategy
done
in interface PollExecStrategy
public void destroy()
PollExecStrategy
destroy
in interface PollExecStrategy
public List<EventBean> poll(Object[] lookupValues, ExprEvaluatorContext exprEvaluatorContext)
PollExecStrategy
poll
in interface PollExecStrategy
lookupValues
- is keys for exeuting a query or suchexprEvaluatorContext
- context