Interface ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder
-
- All Superinterfaces:
ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder,ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder,org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
- ElsqlEndpointBuilderFactory
public static interface ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder extends ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder, ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder
Advanced builder for endpoint for the ElSQL component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilderalwaysPopulateStatement(boolean alwaysPopulateStatement)If enabled then the populateStatement method from org.apache.camel.component.sql.SqlPrepareStatementStrategy is always invoked, also if there is no expected parameters to be prepared.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilderalwaysPopulateStatement(String alwaysPopulateStatement)If enabled then the populateStatement method from org.apache.camel.component.sql.SqlPrepareStatementStrategy is always invoked, also if there is no expected parameters to be prepared.default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilderbasic()default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilderelSqlConfig(com.opengamma.elsql.ElSqlConfig elSqlConfig)To use a specific configured ElSqlConfig.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilderelSqlConfig(String elSqlConfig)To use a specific configured ElSqlConfig.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilderparametersCount(int parametersCount)If set greater than zero, then Camel will use this count value of parameters to replace instead of querying via JDBC metadata API.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilderparametersCount(String parametersCount)If set greater than zero, then Camel will use this count value of parameters to replace instead of querying via JDBC metadata API.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilderplaceholder(String placeholder)Specifies a character that will be replaced to in SQL query.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilderprepareStatementStrategy(String prepareStatementStrategy)Allows to plugin to use a custom org.apache.camel.component.sql.SqlPrepareStatementStrategy to control preparation of the query and prepared statement.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilderprepareStatementStrategy(org.apache.camel.component.sql.SqlPrepareStatementStrategy prepareStatementStrategy)Allows to plugin to use a custom org.apache.camel.component.sql.SqlPrepareStatementStrategy to control preparation of the query and prepared statement.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuildertemplateOptions(String key, Object value)Configures the Spring JdbcTemplate with the key/values from the Map.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuildertemplateOptions(Map values)Configures the Spring JdbcTemplate with the key/values from the Map.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilderusePlaceholder(boolean usePlaceholder)Sets whether to use placeholder and replace all placeholder characters with sign in the SQL queries.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilderusePlaceholder(String usePlaceholder)Sets whether to use placeholder and replace all placeholder characters with sign in the SQL queries.-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
exceptionHandler, exceptionHandler, exchangePattern, exchangePattern, pollStrategy, pollStrategy, processingStrategy, processingStrategy
-
Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getUri
-
-
-
-
Method Detail
-
basic
default ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder basic()
- Specified by:
basicin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
basicin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder
-
alwaysPopulateStatement
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder alwaysPopulateStatement(boolean alwaysPopulateStatement)
If enabled then the populateStatement method from org.apache.camel.component.sql.SqlPrepareStatementStrategy is always invoked, also if there is no expected parameters to be prepared. When this is false then the populateStatement is only invoked if there is 1 or more expected parameters to be set; for example this avoids reading the message body/headers for SQL queries with no parameters. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
alwaysPopulateStatementin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
alwaysPopulateStatementin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
alwaysPopulateStatement- the value to set- Returns:
- the dsl builder
-
alwaysPopulateStatement
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder alwaysPopulateStatement(String alwaysPopulateStatement)
If enabled then the populateStatement method from org.apache.camel.component.sql.SqlPrepareStatementStrategy is always invoked, also if there is no expected parameters to be prepared. When this is false then the populateStatement is only invoked if there is 1 or more expected parameters to be set; for example this avoids reading the message body/headers for SQL queries with no parameters. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
alwaysPopulateStatementin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
alwaysPopulateStatementin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
alwaysPopulateStatement- the value to set- Returns:
- the dsl builder
-
elSqlConfig
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder elSqlConfig(com.opengamma.elsql.ElSqlConfig elSqlConfig)
To use a specific configured ElSqlConfig. It may be better to use the databaseVendor option instead. The option is a: <code>com.opengamma.elsql.ElSqlConfig</code> type. Group: advanced- Specified by:
elSqlConfigin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
elSqlConfigin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
elSqlConfig- the value to set- Returns:
- the dsl builder
-
elSqlConfig
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder elSqlConfig(String elSqlConfig)
To use a specific configured ElSqlConfig. It may be better to use the databaseVendor option instead. The option will be converted to a <code>com.opengamma.elsql.ElSqlConfig</code> type. Group: advanced- Specified by:
elSqlConfigin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
elSqlConfigin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
elSqlConfig- the value to set- Returns:
- the dsl builder
-
parametersCount
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder parametersCount(int parametersCount)
If set greater than zero, then Camel will use this count value of parameters to replace instead of querying via JDBC metadata API. This is useful if the JDBC vendor could not return correct parameters count, then user may override instead. The option is a: <code>int</code> type. Group: advanced- Specified by:
parametersCountin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
parametersCountin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
parametersCount- the value to set- Returns:
- the dsl builder
-
parametersCount
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder parametersCount(String parametersCount)
If set greater than zero, then Camel will use this count value of parameters to replace instead of querying via JDBC metadata API. This is useful if the JDBC vendor could not return correct parameters count, then user may override instead. The option will be converted to a <code>int</code> type. Group: advanced- Specified by:
parametersCountin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
parametersCountin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
parametersCount- the value to set- Returns:
- the dsl builder
-
placeholder
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder placeholder(String placeholder)
Specifies a character that will be replaced to in SQL query. Notice, that it is simple String.replaceAll() operation and no SQL parsing is involved (quoted strings will also change). The option is a: <code>java.lang.String</code> type. Default: # Group: advanced- Specified by:
placeholderin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
placeholderin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
placeholder- the value to set- Returns:
- the dsl builder
-
prepareStatementStrategy
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder prepareStatementStrategy(org.apache.camel.component.sql.SqlPrepareStatementStrategy prepareStatementStrategy)
Allows to plugin to use a custom org.apache.camel.component.sql.SqlPrepareStatementStrategy to control preparation of the query and prepared statement. The option is a: <code>org.apache.camel.component.sql.SqlPrepareStatementStrategy</code> type. Group: advanced- Specified by:
prepareStatementStrategyin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
prepareStatementStrategyin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
prepareStatementStrategy- the value to set- Returns:
- the dsl builder
-
prepareStatementStrategy
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder prepareStatementStrategy(String prepareStatementStrategy)
Allows to plugin to use a custom org.apache.camel.component.sql.SqlPrepareStatementStrategy to control preparation of the query and prepared statement. The option will be converted to a <code>org.apache.camel.component.sql.SqlPrepareStatementStrategy</code> type. Group: advanced- Specified by:
prepareStatementStrategyin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
prepareStatementStrategyin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
prepareStatementStrategy- the value to set- Returns:
- the dsl builder
-
templateOptions
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder templateOptions(String key, Object value)
Configures the Spring JdbcTemplate with the key/values from the Map. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the templateOptions(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Specified by:
templateOptionsin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
templateOptionsin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
key- the option keyvalue- the option value- Returns:
- the dsl builder
-
templateOptions
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder templateOptions(Map values)
Configures the Spring JdbcTemplate with the key/values from the Map. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the templateOptions(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Specified by:
templateOptionsin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
templateOptionsin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
values- the values- Returns:
- the dsl builder
-
usePlaceholder
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder usePlaceholder(boolean usePlaceholder)
Sets whether to use placeholder and replace all placeholder characters with sign in the SQL queries. The option is a: <code>boolean</code> type. Default: true Group: advanced- Specified by:
usePlaceholderin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
usePlaceholderin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
usePlaceholder- the value to set- Returns:
- the dsl builder
-
usePlaceholder
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder usePlaceholder(String usePlaceholder)
Sets whether to use placeholder and replace all placeholder characters with sign in the SQL queries. The option will be converted to a <code>boolean</code> type. Default: true Group: advanced- Specified by:
usePlaceholderin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder- Specified by:
usePlaceholderin interfaceElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder- Parameters:
usePlaceholder- the value to set- Returns:
- the dsl builder
-
-