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 Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default JpaEndpointBuilderFactory.JpaEndpointProducerBuilder
basic()
default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder
entityManagerProperties(String key, Object value)
Additional properties for the entity manager to use.default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder
entityManagerProperties(Map values)
Additional properties for the entity manager to use.default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder
sharedEntityManager(boolean sharedEntityManager)
Whether to use Spring's SharedEntityManager for the consumer/producer.default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder
sharedEntityManager(String sharedEntityManager)
Whether to use Spring's SharedEntityManager for the consumer/producer.default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder
synchronous(boolean synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder
synchronous(String synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).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.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.
-
-
-
Method Detail
-
basic
default JpaEndpointBuilderFactory.JpaEndpointProducerBuilder basic()
-
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:boolean
type. Default: false Group: producer (advanced)
-
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 aboolean
type. Default: false Group: producer (advanced)
-
entityManagerProperties
default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder entityManagerProperties(String key, Object value)
Additional properties for the entity manager to use. The option is a:java.util.Map<java.lang.String, java.lang.Object>
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
-
entityManagerProperties
default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder entityManagerProperties(Map values)
Additional properties for the entity manager to use. The option is a:java.util.Map<java.lang.String, java.lang.Object>
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
-
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:boolean
type. Default: false Group: advanced
-
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 aboolean
type. Default: false Group: advanced
-
synchronous
default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder synchronous(boolean synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). The option is a:boolean
type. Default: false Group: advanced
-
synchronous
default JpaEndpointBuilderFactory.AdvancedJpaEndpointProducerBuilder synchronous(String synchronous)
Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). The option will be converted to aboolean
type. Default: false Group: advanced
-
-