public class SqlProducer
extends org.apache.camel.support.DefaultProducer
| Constructor and Description |
|---|
SqlProducer(SqlEndpoint endpoint,
String query,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
SqlPrepareStatementStrategy sqlPrepareStatementStrategy,
boolean batch,
boolean alwaysPopulateStatement,
boolean useMessageBodyForSql) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInit() |
protected void |
doStart() |
SqlEndpoint |
getEndpoint() |
void |
process(org.apache.camel.Exchange exchange) |
protected Object |
processStreamList(org.apache.camel.Exchange exchange,
org.springframework.jdbc.core.PreparedStatementCreator statementCreator,
String sql,
String preparedQuery) |
void |
setParametersCount(int parametersCount) |
createExchange, doStop, isSingleton, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic SqlProducer(SqlEndpoint endpoint, String query, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, SqlPrepareStatementStrategy sqlPrepareStatementStrategy, boolean batch, boolean alwaysPopulateStatement, boolean useMessageBodyForSql)
public SqlEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.support.DefaultProducerprotected void doInit()
throws Exception
doInit in class org.apache.camel.support.service.BaseServiceExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultProducerExceptionprotected Object processStreamList(org.apache.camel.Exchange exchange, org.springframework.jdbc.core.PreparedStatementCreator statementCreator, String sql, String preparedQuery) throws Exception
Exceptionpublic void setParametersCount(int parametersCount)
Apache Camel