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 Detail

      • 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