Interface SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
,org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
,SqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
,SqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
- Enclosing interface:
- SqlEndpointBuilderFactory
public static interface SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder extends SqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder, SqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
Advanced builder for endpoint for the SQL component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
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.default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
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.default SqlEndpointBuilderFactory.SqlEndpointBuilder
basic()
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
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.default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
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.default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
placeholder(String placeholder)
Specifies a character that will be replaced to in SQL query.default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
prepareStatementStrategy(Object prepareStatementStrategy)
Allows to plugin to use a custom org.apache.camel.component.sql.SqlPrepareStatementStrategy to control preparation of the query and prepared statement.default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
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.default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
synchronous(boolean synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
synchronous(String synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
templateOptions(String key, Object value)
Configures the Spring JdbcTemplate with the key/values from the Map.default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
templateOptions(Map values)
Configures the Spring JdbcTemplate with the key/values from the Map.default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
usePlaceholder(boolean usePlaceholder)
Sets whether to use placeholder and replace all placeholder characters with sign in the SQL queries.default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder
usePlaceholder(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.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, getUri
-
Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, expr, getUri
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.SqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
exceptionHandler, exceptionHandler, exchangePattern, exchangePattern, pollStrategy, pollStrategy, processingStrategy, processingStrategy
-
-
-
-
Method Detail
-
basic
default SqlEndpointBuilderFactory.SqlEndpointBuilder basic()
- Specified by:
basic
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
basic
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
alwaysPopulateStatement
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder 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:boolean
type. Default: false Group: advanced- Specified by:
alwaysPopulateStatement
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
alwaysPopulateStatement
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
alwaysPopulateStatement
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder 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 aboolean
type. Default: false Group: advanced- Specified by:
alwaysPopulateStatement
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
alwaysPopulateStatement
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
parametersCount
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder 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:int
type. Group: advanced- Specified by:
parametersCount
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
parametersCount
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
parametersCount
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder 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 aint
type. Group: advanced- Specified by:
parametersCount
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
parametersCount
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
placeholder
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder 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:java.lang.String
type. Default: # Group: advanced- Specified by:
placeholder
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
placeholder
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
prepareStatementStrategy
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder prepareStatementStrategy(Object 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:org.apache.camel.component.sql.SqlPrepareStatementStrategy
type. Group: advanced- Specified by:
prepareStatementStrategy
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
prepareStatementStrategy
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
prepareStatementStrategy
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder 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 aorg.apache.camel.component.sql.SqlPrepareStatementStrategy
type. Group: advanced- Specified by:
prepareStatementStrategy
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
prepareStatementStrategy
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
synchronous
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder synchronous(boolean synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). The option is a:boolean
type. Default: false Group: advanced- Specified by:
synchronous
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
synchronous
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
synchronous
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder synchronous(String synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). The option will be converted to aboolean
type. Default: false Group: advanced- Specified by:
synchronous
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
synchronous
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
templateOptions
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder templateOptions(String key, Object value)
Configures the Spring JdbcTemplate with the key/values from the Map. The option is a:java.util.Map<java.lang.String, java.lang.Object>
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:
templateOptions
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
templateOptions
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
templateOptions
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder templateOptions(Map values)
Configures the Spring JdbcTemplate with the key/values from the Map. The option is a:java.util.Map<java.lang.String, java.lang.Object>
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:
templateOptions
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
templateOptions
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
usePlaceholder
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder usePlaceholder(boolean usePlaceholder)
Sets whether to use placeholder and replace all placeholder characters with sign in the SQL queries. The option is a:boolean
type. Default: true Group: advanced- Specified by:
usePlaceholder
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
usePlaceholder
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
usePlaceholder
default SqlEndpointBuilderFactory.AdvancedSqlEndpointBuilder 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 aboolean
type. Default: true Group: advanced- Specified by:
usePlaceholder
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointConsumerBuilder
- Specified by:
usePlaceholder
in interfaceSqlEndpointBuilderFactory.AdvancedSqlEndpointProducerBuilder
-
-