Interface JdbcEndpointBuilderFactory.AdvancedJdbcEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
JdbcEndpointBuilderFactory
public static interface JdbcEndpointBuilderFactory.AdvancedJdbcEndpointBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Advanced builder for endpoint for the JDBC component.
-
Method Summary
Modifier and TypeMethodDescriptionbasic()
beanRowMapper
(String beanRowMapper) To use a custom org.apache.camel.component.jdbc.BeanRowMapper when using outputClass.beanRowMapper
(org.apache.camel.component.jdbc.BeanRowMapper beanRowMapper) To use a custom org.apache.camel.component.jdbc.BeanRowMapper when using outputClass.connectionStrategy
(String connectionStrategy) To use a custom strategy for working with connections.connectionStrategy
(org.apache.camel.component.jdbc.ConnectionStrategy connectionStrategy) To use a custom strategy for working with connections.lazyStartProducer
(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).lazyStartProducer
(String lazyStartProducer) Whether the producer should be started lazy (on the first message).prepareStatementStrategy
(String prepareStatementStrategy) Allows the plugin to use a custom org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy to control preparation of the query and prepared statement.prepareStatementStrategy
(org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy prepareStatementStrategy) Allows the plugin to use a custom org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy to control preparation of the query and prepared statement.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
basic
-
lazyStartProducer
default JdbcEndpointBuilderFactory.AdvancedJdbcEndpointBuilder lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default JdbcEndpointBuilderFactory.AdvancedJdbcEndpointBuilder lazyStartProducer(String lazyStartProducer) Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to a <code>boolean</code> type. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
beanRowMapper
default JdbcEndpointBuilderFactory.AdvancedJdbcEndpointBuilder beanRowMapper(org.apache.camel.component.jdbc.BeanRowMapper beanRowMapper) To use a custom org.apache.camel.component.jdbc.BeanRowMapper when using outputClass. The default implementation will lower case the row names and skip underscores, and dashes. For example CUST_ID is mapped as custId. The option is a: <code>org.apache.camel.component.jdbc.BeanRowMapper</code> type. Group: advanced- Parameters:
beanRowMapper
- the value to set- Returns:
- the dsl builder
-
beanRowMapper
To use a custom org.apache.camel.component.jdbc.BeanRowMapper when using outputClass. The default implementation will lower case the row names and skip underscores, and dashes. For example CUST_ID is mapped as custId. The option will be converted to a <code>org.apache.camel.component.jdbc.BeanRowMapper</code> type. Group: advanced- Parameters:
beanRowMapper
- the value to set- Returns:
- the dsl builder
-
connectionStrategy
default JdbcEndpointBuilderFactory.AdvancedJdbcEndpointBuilder connectionStrategy(org.apache.camel.component.jdbc.ConnectionStrategy connectionStrategy) To use a custom strategy for working with connections. Do not use a custom strategy when using the spring-jdbc component because a special Spring ConnectionStrategy is used by default to support Spring Transactions. The option is a: <code>org.apache.camel.component.jdbc.ConnectionStrategy</code> type. Group: advanced- Parameters:
connectionStrategy
- the value to set- Returns:
- the dsl builder
-
connectionStrategy
default JdbcEndpointBuilderFactory.AdvancedJdbcEndpointBuilder connectionStrategy(String connectionStrategy) To use a custom strategy for working with connections. Do not use a custom strategy when using the spring-jdbc component because a special Spring ConnectionStrategy is used by default to support Spring Transactions. The option will be converted to a <code>org.apache.camel.component.jdbc.ConnectionStrategy</code> type. Group: advanced- Parameters:
connectionStrategy
- the value to set- Returns:
- the dsl builder
-
prepareStatementStrategy
default JdbcEndpointBuilderFactory.AdvancedJdbcEndpointBuilder prepareStatementStrategy(org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy prepareStatementStrategy) Allows the plugin to use a custom org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy to control preparation of the query and prepared statement. The option is a: <code>org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy</code> type. Group: advanced- Parameters:
prepareStatementStrategy
- the value to set- Returns:
- the dsl builder
-
prepareStatementStrategy
default JdbcEndpointBuilderFactory.AdvancedJdbcEndpointBuilder prepareStatementStrategy(String prepareStatementStrategy) Allows the plugin to use a custom org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy to control preparation of the query and prepared statement. The option will be converted to a <code>org.apache.camel.component.jdbc.JdbcPrepareStatementStrategy</code> type. Group: advanced- Parameters:
prepareStatementStrategy
- the value to set- Returns:
- the dsl builder
-