Interface SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder

  • All Superinterfaces:
    org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
    Enclosing interface:
    SqlStoredEndpointBuilderFactory

    public static interface SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder
    extends org.apache.camel.builder.EndpointProducerBuilder
    Builder for endpoint for the SQL Stored Procedure component.
    • Method Detail

      • dataSource

        default SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder dataSource​(Object dataSource)
        Sets the DataSource to use to communicate with the database. The option is a: <code>javax.sql.DataSource</code> type. Group: producer
        Parameters:
        dataSource - the value to set
        Returns:
        the dsl builder
      • dataSource

        default SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder dataSource​(String dataSource)
        Sets the DataSource to use to communicate with the database. The option will be converted to a <code>javax.sql.DataSource</code> type. Group: producer
        Parameters:
        dataSource - the value to set
        Returns:
        the dsl builder
      • function

        default SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder function​(boolean function)
        Whether this call is for a function. The option is a: <code>boolean</code> type. Default: false Group: producer
        Parameters:
        function - the value to set
        Returns:
        the dsl builder
      • lazyStartProducer

        default SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder 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
        Parameters:
        lazyStartProducer - the value to set
        Returns:
        the dsl builder
      • lazyStartProducer

        default SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder 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
        Parameters:
        lazyStartProducer - the value to set
        Returns:
        the dsl builder
      • noop

        default SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder noop​(boolean noop)
        If set, will ignore the results of the template and use the existing IN message as the OUT message for the continuation of processing. The option is a: <code>boolean</code> type. Default: false Group: producer
        Parameters:
        noop - the value to set
        Returns:
        the dsl builder
      • noop

        default SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder noop​(String noop)
        If set, will ignore the results of the template and use the existing IN message as the OUT message for the continuation of processing. The option will be converted to a <code>boolean</code> type. Default: false Group: producer
        Parameters:
        noop - the value to set
        Returns:
        the dsl builder
      • outputHeader

        default SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder outputHeader​(String outputHeader)
        Store the template result in a header instead of the message body. By default, outputHeader == null and the template 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 template result and the original message body is preserved. The option is a: <code>java.lang.String</code> type. Group: producer
        Parameters:
        outputHeader - the value to set
        Returns:
        the dsl builder
      • useMessageBodyForTemplate

        default SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder useMessageBodyForTemplate​(boolean useMessageBodyForTemplate)
        Whether to use the message body as the template and then headers for parameters. If this option is enabled then the template in the uri is not used. The option is a: <code>boolean</code> type. Default: false Group: producer
        Parameters:
        useMessageBodyForTemplate - the value to set
        Returns:
        the dsl builder
      • useMessageBodyForTemplate

        default SqlStoredEndpointBuilderFactory.SqlStoredEndpointBuilder useMessageBodyForTemplate​(String useMessageBodyForTemplate)
        Whether to use the message body as the template and then headers for parameters. If this option is enabled then the template in the uri is not used. The option will be converted to a <code>boolean</code> type. Default: false Group: producer
        Parameters:
        useMessageBodyForTemplate - the value to set
        Returns:
        the dsl builder