Interface ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointBuilder
- Enclosing interface:
- ElsqlEndpointBuilderFactory
public static interface ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Advanced builder for endpoint consumers for the ElSQL component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
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 ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
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 ElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder
basic()
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
basicPropertyBinding(boolean basicPropertyBinding)
Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
basicPropertyBinding(String basicPropertyBinding)
Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
elSqlConfig(Object elSqlConfig)
To use a specific configured ElSqlConfig.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
elSqlConfig(String elSqlConfig)
To use a specific configured ElSqlConfig.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
exceptionHandler(String exceptionHandler)
To let the consumer use a custom ExceptionHandler.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler)
To let the consumer use a custom ExceptionHandler.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
exchangePattern(String exchangePattern)
Sets the exchange pattern when the consumer creates an exchange.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
exchangePattern(org.apache.camel.ExchangePattern exchangePattern)
Sets the exchange pattern when the consumer creates an exchange.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
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 ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
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 ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
placeholder(String placeholder)
Specifies a character that will be replaced to in SQL query.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
pollStrategy(String pollStrategy)
A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange have been created and being routed in Camel.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
pollStrategy(org.apache.camel.spi.PollingConsumerPollStrategy pollStrategy)
A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange have been created and being routed in Camel.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
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 ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
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 ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
processingStrategy(Object processingStrategy)
Allows to plugin to use a custom org.apache.camel.component.sql.SqlProcessingStrategy to execute queries when the consumer has processed the rows/batch.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
processingStrategy(String processingStrategy)
Allows to plugin to use a custom org.apache.camel.component.sql.SqlProcessingStrategy to execute queries when the consumer has processed the rows/batch.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
synchronous(boolean synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
synchronous(String synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
templateOptions(String key, Object value)
Configures the Spring JdbcTemplate with the key/values from the Map.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
templateOptions(Map values)
Configures the Spring JdbcTemplate with the key/values from the Map.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
usePlaceholder(boolean usePlaceholder)
Sets whether to use placeholder and replace all placeholder characters with sign in the SQL queries.default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder
usePlaceholder(String usePlaceholder)
Sets whether to use placeholder and replace all placeholder characters with sign in the SQL queries.
-
-
-
Method Detail
-
basic
default ElsqlEndpointBuilderFactory.ElsqlEndpointConsumerBuilder basic()
-
exceptionHandler
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler)
To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a:org.apache.camel.spi.ExceptionHandler
type. Group: consumer (advanced)
-
exceptionHandler
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder exceptionHandler(String exceptionHandler)
To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to aorg.apache.camel.spi.ExceptionHandler
type. Group: consumer (advanced)
-
exchangePattern
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder exchangePattern(org.apache.camel.ExchangePattern exchangePattern)
Sets the exchange pattern when the consumer creates an exchange. The option is a:org.apache.camel.ExchangePattern
type. Group: consumer (advanced)
-
exchangePattern
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder exchangePattern(String exchangePattern)
Sets the exchange pattern when the consumer creates an exchange. The option will be converted to aorg.apache.camel.ExchangePattern
type. Group: consumer (advanced)
-
pollStrategy
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder pollStrategy(org.apache.camel.spi.PollingConsumerPollStrategy pollStrategy)
A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange have been created and being routed in Camel. The option is a:org.apache.camel.spi.PollingConsumerPollStrategy
type. Group: consumer (advanced)
-
pollStrategy
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder pollStrategy(String pollStrategy)
A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the poll operation before an Exchange have been created and being routed in Camel. The option will be converted to aorg.apache.camel.spi.PollingConsumerPollStrategy
type. Group: consumer (advanced)
-
processingStrategy
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder processingStrategy(Object processingStrategy)
Allows to plugin to use a custom org.apache.camel.component.sql.SqlProcessingStrategy to execute queries when the consumer has processed the rows/batch. The option is a:org.apache.camel.component.sql.SqlProcessingStrategy
type. Group: consumer (advanced)
-
processingStrategy
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder processingStrategy(String processingStrategy)
Allows to plugin to use a custom org.apache.camel.component.sql.SqlProcessingStrategy to execute queries when the consumer has processed the rows/batch. The option will be converted to aorg.apache.camel.component.sql.SqlProcessingStrategy
type. Group: consumer (advanced)
-
alwaysPopulateStatement
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
alwaysPopulateStatement
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
basicPropertyBinding
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder basicPropertyBinding(boolean basicPropertyBinding)
Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities. The option is a:boolean
type. Default: false Group: advanced
-
basicPropertyBinding
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder basicPropertyBinding(String basicPropertyBinding)
Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities. The option will be converted to aboolean
type. Default: false Group: advanced
-
elSqlConfig
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder elSqlConfig(Object elSqlConfig)
To use a specific configured ElSqlConfig. It may be better to use the databaseVendor option instead. The option is a:com.opengamma.elsql.ElSqlConfig
type. Group: advanced
-
elSqlConfig
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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 acom.opengamma.elsql.ElSqlConfig
type. Group: advanced
-
parametersCount
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
parametersCount
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
placeholder
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
prepareStatementStrategy
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
prepareStatementStrategy
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
synchronous
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
synchronous
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
templateOptions
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
templateOptions
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
usePlaceholder
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
usePlaceholder
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointConsumerBuilder 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
-
-