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 Detail

      • 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 a org.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 a char type. Default: , Group: common
      • 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 a boolean 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 a boolean 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 a boolean type. Default: false Group: producer