Interface ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
ElsqlEndpointBuilderFactory.ElsqlEndpointBuilder
- Enclosing interface:
- ElsqlEndpointBuilderFactory
public static interface ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the ElSQL component.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder
advanced()
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
allowNamedParameters(boolean allowNamedParameters)
Whether to allow using named parameters in the queries.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
allowNamedParameters(String allowNamedParameters)
Whether to allow using named parameters in the queries.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
batch(boolean batch)
Enables or disables batch mode.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
batch(String batch)
Enables or disables batch mode.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
databaseVendor(String databaseVendor)
To use a vendor specific com.opengamma.elsql.ElSqlConfig.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
databaseVendor(ElsqlEndpointBuilderFactory.ElSqlDatabaseVendor databaseVendor)
To use a vendor specific com.opengamma.elsql.ElSqlConfig.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
dataSource(Object dataSource)
Sets the DataSource to use to communicate with the database.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
dataSource(String dataSource)
Sets the DataSource to use to communicate with the database.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
dataSourceRef(String dataSourceRef)
Deprecated.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
noop(boolean noop)
If set, will ignore the results of the SQL query and use the existing IN message as the OUT message for the continuation of processing.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
noop(String noop)
If set, will ignore the results of the SQL query and use the existing IN message as the OUT message for the continuation of processing.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
outputClass(String outputClass)
Specify the full package and class name to use as conversion when outputType=SelectOne.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
outputHeader(String outputHeader)
Store the query result in a header instead of the message body.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
outputType(String outputType)
Make the output of consumer or producer to SelectList as List of Map, or SelectOne as single Java object in the following way: a) If the query has only single column, then that JDBC Column object is returned.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
outputType(ElsqlEndpointBuilderFactory.SqlOutputType outputType)
Make the output of consumer or producer to SelectList as List of Map, or SelectOne as single Java object in the following way: a) If the query has only single column, then that JDBC Column object is returned.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
separator(char separator)
The separator to use when parameter values is taken from message body (if the body is a String type), to be inserted at # placeholders.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
separator(String separator)
The separator to use when parameter values is taken from message body (if the body is a String type), to be inserted at # placeholders.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
useMessageBodyForSql(boolean useMessageBodyForSql)
Whether to use the message body as the SQL and then headers for parameters.default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder
useMessageBodyForSql(String useMessageBodyForSql)
Whether to use the message body as the SQL and then headers for parameters.
-
-
-
Method Detail
-
advanced
default ElsqlEndpointBuilderFactory.AdvancedElsqlEndpointProducerBuilder advanced()
-
allowNamedParameters
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder allowNamedParameters(boolean allowNamedParameters)
Whether to allow using named parameters in the queries. The option is a:boolean
type. Default: true Group: common
-
allowNamedParameters
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder allowNamedParameters(String allowNamedParameters)
Whether to allow using named parameters in the queries. The option will be converted to aboolean
type. Default: true Group: common
-
databaseVendor
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder databaseVendor(ElsqlEndpointBuilderFactory.ElSqlDatabaseVendor databaseVendor)
To use a vendor specific com.opengamma.elsql.ElSqlConfig. The option is a:org.apache.camel.component.elsql.ElSqlDatabaseVendor
type. Group: common
-
databaseVendor
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder databaseVendor(String databaseVendor)
To use a vendor specific com.opengamma.elsql.ElSqlConfig. The option will be converted to aorg.apache.camel.component.elsql.ElSqlDatabaseVendor
type. Group: common
-
dataSource
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder dataSource(Object dataSource)
Sets the DataSource to use to communicate with the database. The option is a:javax.sql.DataSource
type. Group: common
-
dataSource
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder dataSource(String dataSource)
Sets the DataSource to use to communicate with the database. The option will be converted to ajavax.sql.DataSource
type. Group: common
-
dataSourceRef
@Deprecated default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder dataSourceRef(String dataSourceRef)
Deprecated.Sets the reference to a DataSource to lookup from the registry, to use for communicating with the database. The option is a:java.lang.String
type. Group: common
-
outputClass
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder outputClass(String outputClass)
Specify the full package and class name to use as conversion when outputType=SelectOne. The option is a:java.lang.String
type. Group: common
-
outputHeader
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder outputHeader(String outputHeader)
Store the query result in a header instead of the message body. By default, outputHeader == null and the query result is stored in the message body, any existing content in the message body is discarded. If outputHeader is set, the value is used as the name of the header to store the query result and the original message body is preserved. The option is a:java.lang.String
type. Group: common
-
outputType
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder outputType(ElsqlEndpointBuilderFactory.SqlOutputType outputType)
Make the output of consumer or producer to SelectList as List of Map, or SelectOne as single Java object in the following way: a) If the query has only single column, then that JDBC Column object is returned. (such as SELECT COUNT( ) FROM PROJECT will return a Long object. b) If the query has more than one column, then it will return a Map of that result. c) If the outputClass is set, then it will convert the query result into an Java bean object by calling all the setters that match the column names. It will assume your class has a default constructor to create instance with. d) If the query resulted in more than one rows, it throws an non-unique result exception. StreamList streams the result of the query using an Iterator. This can be used with the Splitter EIP in streaming mode to process the ResultSet in streaming fashion. The option is a:org.apache.camel.component.sql.SqlOutputType
type. Default: SelectList Group: common
-
outputType
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder outputType(String outputType)
Make the output of consumer or producer to SelectList as List of Map, or SelectOne as single Java object in the following way: a) If the query has only single column, then that JDBC Column object is returned. (such as SELECT COUNT( ) FROM PROJECT will return a Long object. b) If the query has more than one column, then it will return a Map of that result. c) If the outputClass is set, then it will convert the query result into an Java bean object by calling all the setters that match the column names. It will assume your class has a default constructor to create instance with. d) If the query resulted in more than one rows, it throws an non-unique result exception. StreamList streams the result of the query using an Iterator. This can be used with the Splitter EIP in streaming mode to process the ResultSet in streaming fashion. The option will be converted to aorg.apache.camel.component.sql.SqlOutputType
type. Default: SelectList Group: common
-
separator
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder separator(char separator)
The separator to use when parameter values is taken from message body (if the body is a String type), to be inserted at # placeholders. Notice if you use named parameters, then a Map type is used instead. The default value is comma. The option is a:char
type. Default: , Group: common
-
separator
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder separator(String separator)
The separator to use when parameter values is taken from message body (if the body is a String type), to be inserted at # placeholders. Notice if you use named parameters, then a Map type is used instead. The default value is comma. The option will be converted to achar
type. Default: , Group: common
-
batch
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder batch(boolean batch)
Enables or disables batch mode. The option is a:boolean
type. Default: false Group: producer
-
batch
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder batch(String batch)
Enables or disables batch mode. The option will be converted to aboolean
type. Default: false Group: producer
-
lazyStartProducer
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder 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:boolean
type. Default: false Group: producer
-
lazyStartProducer
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder 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 aboolean
type. Default: false Group: producer
-
noop
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder noop(boolean noop)
If set, will ignore the results of the SQL query and use the existing IN message as the OUT message for the continuation of processing. The option is a:boolean
type. Default: false Group: producer
-
noop
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder noop(String noop)
If set, will ignore the results of the SQL query and use the existing IN message as the OUT message for the continuation of processing. The option will be converted to aboolean
type. Default: false Group: producer
-
useMessageBodyForSql
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder useMessageBodyForSql(boolean useMessageBodyForSql)
Whether to use the message body as the SQL and then headers for parameters. If this option is enabled then the SQL in the uri is not used. Note that query parameters in the message body are represented by a question mark instead of a # symbol. The option is a:boolean
type. Default: false Group: producer
-
useMessageBodyForSql
default ElsqlEndpointBuilderFactory.ElsqlEndpointProducerBuilder useMessageBodyForSql(String useMessageBodyForSql)
Whether to use the message body as the SQL and then headers for parameters. If this option is enabled then the SQL in the uri is not used. Note that query parameters in the message body are represented by a question mark instead of a # symbol. The option will be converted to aboolean
type. Default: false Group: producer
-
-