Interface JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder

All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder, org.apache.camel.EndpointProducerResolver
All Known Subinterfaces:
JpaEndpointBuilderFactory.AdvancedJpaEndpointBuilder
Enclosing interface:
JpaEndpointBuilderFactory

public static interface JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Advanced builder for endpoint producers for the JPA component.
  • Method Details

    • basic

    • lazyStartProducer

      default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder 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 (advanced)
      Parameters:
      lazyStartProducer - the value to set
      Returns:
      the dsl builder
    • lazyStartProducer

      default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder 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 (advanced)
      Parameters:
      lazyStartProducer - the value to set
      Returns:
      the dsl builder
    • usePassedInEntityManager

      default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder usePassedInEntityManager(boolean usePassedInEntityManager)
      If set to true, then Camel will use the EntityManager from the header JpaConstants.ENTITY_MANAGER instead of the configured entity manager on the component/endpoint. This allows end users to control which entity manager will be in use. The option is a: <code>boolean</code> type. Default: false Group: producer (advanced)
      Parameters:
      usePassedInEntityManager - the value to set
      Returns:
      the dsl builder
    • usePassedInEntityManager

      default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder usePassedInEntityManager(String usePassedInEntityManager)
      If set to true, then Camel will use the EntityManager from the header JpaConstants.ENTITY_MANAGER instead of the configured entity manager on the component/endpoint. This allows end users to control which entity manager will be in use. The option will be converted to a <code>boolean</code> type. Default: false Group: producer (advanced)
      Parameters:
      usePassedInEntityManager - the value to set
      Returns:
      the dsl builder
    • entityManagerProperties

      default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder entityManagerProperties(String key, Object value)
      Additional properties for the entity manager to use. The option is a: <code>java.util.Map&lt;java.lang.String, java.lang.Object&gt;</code> type. The option is multivalued, and you can use the entityManagerProperties(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced
      Parameters:
      key - the option key
      value - the option value
      Returns:
      the dsl builder
    • entityManagerProperties

      default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder entityManagerProperties(Map values)
      Additional properties for the entity manager to use. The option is a: <code>java.util.Map&lt;java.lang.String, java.lang.Object&gt;</code> type. The option is multivalued, and you can use the entityManagerProperties(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced
      Parameters:
      values - the values
      Returns:
      the dsl builder
    • sharedEntityManager

      default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder sharedEntityManager(boolean sharedEntityManager)
      Whether to use Spring's SharedEntityManager for the consumer/producer. Note in most cases joinTransaction should be set to false as this is not an EXTENDED EntityManager. The option is a: <code>boolean</code> type. Default: false Group: advanced
      Parameters:
      sharedEntityManager - the value to set
      Returns:
      the dsl builder
    • sharedEntityManager

      default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder sharedEntityManager(String sharedEntityManager)
      Whether to use Spring's SharedEntityManager for the consumer/producer. Note in most cases joinTransaction should be set to false as this is not an EXTENDED EntityManager. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced
      Parameters:
      sharedEntityManager - the value to set
      Returns:
      the dsl builder