public class ElsqlSqlProcessingStrategy extends Object implements SqlNamedProcessingStrategy
Constructor and Description |
---|
ElsqlSqlProcessingStrategy(com.opengamma.elsql.ElSql elSql) |
Modifier and Type | Method and Description |
---|---|
int |
commit(DefaultSqlEndpoint defaultSqlEndpoint,
Exchange exchange,
Object data,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
String query)
Commit callback if there are a query to be run after processing.
|
int |
commit(DefaultSqlEndpoint defaultSqlEndpoint,
Exchange exchange,
Object data,
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate jdbcTemplate,
org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource,
String query)
Commit callback if there are a query to be run after processing.
|
int |
commitBatchComplete(DefaultSqlEndpoint defaultSqlEndpoint,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
String query)
Commit callback when the batch is complete.
|
int |
commitBatchComplete(DefaultSqlEndpoint endpoint,
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate namedJdbcTemplate,
org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource,
String query)
Commit callback when the batch is complete.
|
public ElsqlSqlProcessingStrategy(com.opengamma.elsql.ElSql elSql)
public int commit(DefaultSqlEndpoint defaultSqlEndpoint, Exchange exchange, Object data, org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate jdbcTemplate, org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource, String query) throws Exception
SqlNamedProcessingStrategy
commit
in interface SqlNamedProcessingStrategy
defaultSqlEndpoint
- the endpointexchange
- The exchange after it has been processeddata
- The original data delivered to the routejdbcTemplate
- The JDBC templateparameterSource
- Parameter sources for the named JDBC templatequery
- The SQL query to executeException
- can be thrown in case of errorpublic int commitBatchComplete(DefaultSqlEndpoint endpoint, org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate namedJdbcTemplate, org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource, String query) throws Exception
SqlNamedProcessingStrategy
commitBatchComplete
in interface SqlNamedProcessingStrategy
endpoint
- the endpointnamedJdbcTemplate
- The JDBC templateparameterSource
- Parameter sources for the named JDBC templatequery
- The SQL query to executeException
- can be thrown in case of errorpublic int commit(DefaultSqlEndpoint defaultSqlEndpoint, Exchange exchange, Object data, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String query) throws Exception
SqlProcessingStrategy
commit
in interface SqlProcessingStrategy
defaultSqlEndpoint
- the endpointexchange
- The exchange after it has been processeddata
- The original data delivered to the routejdbcTemplate
- The JDBC templatequery
- The SQL query to executeException
- can be thrown in case of errorpublic int commitBatchComplete(DefaultSqlEndpoint defaultSqlEndpoint, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String query) throws Exception
SqlProcessingStrategy
commitBatchComplete
in interface SqlProcessingStrategy
defaultSqlEndpoint
- the endpointjdbcTemplate
- The JDBC templatequery
- The SQL query to executeException
- can be thrown in case of errorCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.