Search in sources :

Example 1 with DefaultSqlPrepareStatementStrategy

use of org.apache.camel.component.sql.DefaultSqlPrepareStatementStrategy in project camel by apache.

the class ElsqlEndpoint method createProducer.

@Override
public Producer createProducer() throws Exception {
    final SqlPrepareStatementStrategy prepareStrategy = getPrepareStatementStrategy() != null ? getPrepareStatementStrategy() : new DefaultSqlPrepareStatementStrategy(getSeparator());
    final ElsqlProducer result = new ElsqlProducer(this, elSql, elsqlName, namedJdbcTemplate, dataSource, prepareStrategy, isBatch());
    return result;
}
Also used : DefaultSqlPrepareStatementStrategy(org.apache.camel.component.sql.DefaultSqlPrepareStatementStrategy) SqlPrepareStatementStrategy(org.apache.camel.component.sql.SqlPrepareStatementStrategy) DefaultSqlPrepareStatementStrategy(org.apache.camel.component.sql.DefaultSqlPrepareStatementStrategy)

Aggregations

DefaultSqlPrepareStatementStrategy (org.apache.camel.component.sql.DefaultSqlPrepareStatementStrategy)1 SqlPrepareStatementStrategy (org.apache.camel.component.sql.SqlPrepareStatementStrategy)1