Interface JpaEndpointBuilderFactory.JpaEndpointBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver,JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder,JpaEndpointBuilderFactory.JpaEndpointProducerBuilder
- Enclosing interface:
- JpaEndpointBuilderFactory
public static interface JpaEndpointBuilderFactory.JpaEndpointBuilder extends JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder, JpaEndpointBuilderFactory.JpaEndpointProducerBuilder
Builder for endpoint for the JPA component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default JpaEndpointBuilderFactory.AdvancedJpaEndpointBuilderadvanced()default JpaEndpointBuilderFactory.JpaEndpointBuilderjoinTransaction(boolean joinTransaction)The camel-jpa component will join transaction by default.default JpaEndpointBuilderFactory.JpaEndpointBuilderjoinTransaction(String joinTransaction)The camel-jpa component will join transaction by default.default JpaEndpointBuilderFactory.JpaEndpointBuildermaximumResults(int maximumResults)Set the maximum number of results to retrieve on the Query.default JpaEndpointBuilderFactory.JpaEndpointBuildermaximumResults(String maximumResults)Set the maximum number of results to retrieve on the Query.default JpaEndpointBuilderFactory.JpaEndpointBuildernamedQuery(String namedQuery)To use a named query.default JpaEndpointBuilderFactory.JpaEndpointBuildernativeQuery(String nativeQuery)To use a custom native query.default JpaEndpointBuilderFactory.JpaEndpointBuilderpersistenceUnit(String persistenceUnit)The JPA persistence unit used by default.default JpaEndpointBuilderFactory.JpaEndpointBuilderquery(String query)To use a custom query.default JpaEndpointBuilderFactory.JpaEndpointBuilderresultClass(Class<Object> resultClass)Defines the type of the returned payload (we will call entityManager.createNativeQuery(nativeQuery, resultClass) instead of entityManager.createNativeQuery(nativeQuery)).default JpaEndpointBuilderFactory.JpaEndpointBuilderresultClass(String resultClass)Defines the type of the returned payload (we will call entityManager.createNativeQuery(nativeQuery, resultClass) instead of entityManager.createNativeQuery(nativeQuery)).-
Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
-
Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.JpaEndpointBuilderFactory.JpaEndpointConsumerBuilder
backoffErrorThreshold, backoffErrorThreshold, backoffIdleThreshold, backoffIdleThreshold, backoffMultiplier, backoffMultiplier, consumeDelete, consumeDelete, consumeLockEntity, consumeLockEntity, delay, delay, deleteHandler, deleteHandler, greedy, greedy, initialDelay, initialDelay, lockModeType, lockModeType, maxMessagesPerPoll, maxMessagesPerPoll, preDeleteHandler, preDeleteHandler, repeatCount, repeatCount, runLoggingLevel, runLoggingLevel, scheduledExecutorService, scheduledExecutorService, scheduler, scheduler, schedulerProperties, schedulerProperties, sendEmptyMessageWhenIdle, sendEmptyMessageWhenIdle, skipLockedEntity, skipLockedEntity, startScheduler, startScheduler, timeUnit, timeUnit, transacted, transacted, useFixedDelay, useFixedDelay
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.JpaEndpointBuilderFactory.JpaEndpointProducerBuilder
findEntity, findEntity, firstResult, firstResult, flushOnSend, flushOnSend, outputTarget, remove, remove, singleResult, singleResult, useExecuteUpdate, useExecuteUpdate, usePersist, usePersist
-
-
-
-
Method Detail
-
advanced
default JpaEndpointBuilderFactory.AdvancedJpaEndpointBuilder advanced()
- Specified by:
advancedin interfaceJpaEndpointBuilderFactory.JpaEndpointConsumerBuilder- Specified by:
advancedin interfaceJpaEndpointBuilderFactory.JpaEndpointProducerBuilder
-
joinTransaction
default JpaEndpointBuilderFactory.JpaEndpointBuilder joinTransaction(boolean joinTransaction)
The camel-jpa component will join transaction by default. You can use this option to turn this off, for example if you use LOCAL_RESOURCE and join transaction doesn't work with your JPA provider. This option can also be set globally on the JpaComponent, instead of having to set it on all endpoints. The option is a: <code>boolean</code> type. Default: true Group: common- Specified by:
joinTransactionin interfaceJpaEndpointBuilderFactory.JpaEndpointConsumerBuilder- Specified by:
joinTransactionin interfaceJpaEndpointBuilderFactory.JpaEndpointProducerBuilder- Parameters:
joinTransaction- the value to set- Returns:
- the dsl builder
-
joinTransaction
default JpaEndpointBuilderFactory.JpaEndpointBuilder joinTransaction(String joinTransaction)
The camel-jpa component will join transaction by default. You can use this option to turn this off, for example if you use LOCAL_RESOURCE and join transaction doesn't work with your JPA provider. This option can also be set globally on the JpaComponent, instead of having to set it on all endpoints. The option will be converted to a <code>boolean</code> type. Default: true Group: common- Specified by:
joinTransactionin interfaceJpaEndpointBuilderFactory.JpaEndpointConsumerBuilder- Specified by:
joinTransactionin interfaceJpaEndpointBuilderFactory.JpaEndpointProducerBuilder- Parameters:
joinTransaction- the value to set- Returns:
- the dsl builder
-
maximumResults
default JpaEndpointBuilderFactory.JpaEndpointBuilder maximumResults(int maximumResults)
Set the maximum number of results to retrieve on the Query. The option is a: <code>int</code> type. Default: -1 Group: common- Specified by:
maximumResultsin interfaceJpaEndpointBuilderFactory.JpaEndpointConsumerBuilder- Specified by:
maximumResultsin interfaceJpaEndpointBuilderFactory.JpaEndpointProducerBuilder- Parameters:
maximumResults- the value to set- Returns:
- the dsl builder
-
maximumResults
default JpaEndpointBuilderFactory.JpaEndpointBuilder maximumResults(String maximumResults)
Set the maximum number of results to retrieve on the Query. The option will be converted to a <code>int</code> type. Default: -1 Group: common- Specified by:
maximumResultsin interfaceJpaEndpointBuilderFactory.JpaEndpointConsumerBuilder- Specified by:
maximumResultsin interfaceJpaEndpointBuilderFactory.JpaEndpointProducerBuilder- Parameters:
maximumResults- the value to set- Returns:
- the dsl builder
-
namedQuery
default JpaEndpointBuilderFactory.JpaEndpointBuilder namedQuery(String namedQuery)
To use a named query. The option is a: <code>java.lang.String</code> type. Group: common- Specified by:
namedQueryin interfaceJpaEndpointBuilderFactory.JpaEndpointConsumerBuilder- Specified by:
namedQueryin interfaceJpaEndpointBuilderFactory.JpaEndpointProducerBuilder- Parameters:
namedQuery- the value to set- Returns:
- the dsl builder
-
nativeQuery
default JpaEndpointBuilderFactory.JpaEndpointBuilder nativeQuery(String nativeQuery)
To use a custom native query. You may want to use the option resultClass also when using native queries. The option is a: <code>java.lang.String</code> type. Group: common- Specified by:
nativeQueryin interfaceJpaEndpointBuilderFactory.JpaEndpointConsumerBuilder- Specified by:
nativeQueryin interfaceJpaEndpointBuilderFactory.JpaEndpointProducerBuilder- Parameters:
nativeQuery- the value to set- Returns:
- the dsl builder
-
persistenceUnit
default JpaEndpointBuilderFactory.JpaEndpointBuilder persistenceUnit(String persistenceUnit)
The JPA persistence unit used by default. The option is a: <code>java.lang.String</code> type. Required: true Default: camel Group: common- Specified by:
persistenceUnitin interfaceJpaEndpointBuilderFactory.JpaEndpointConsumerBuilder- Specified by:
persistenceUnitin interfaceJpaEndpointBuilderFactory.JpaEndpointProducerBuilder- Parameters:
persistenceUnit- the value to set- Returns:
- the dsl builder
-
query
default JpaEndpointBuilderFactory.JpaEndpointBuilder query(String query)
To use a custom query. The option is a: <code>java.lang.String</code> type. Group: common- Specified by:
queryin interfaceJpaEndpointBuilderFactory.JpaEndpointConsumerBuilder- Specified by:
queryin interfaceJpaEndpointBuilderFactory.JpaEndpointProducerBuilder- Parameters:
query- the value to set- Returns:
- the dsl builder
-
resultClass
default JpaEndpointBuilderFactory.JpaEndpointBuilder resultClass(Class<Object> resultClass)
Defines the type of the returned payload (we will call entityManager.createNativeQuery(nativeQuery, resultClass) instead of entityManager.createNativeQuery(nativeQuery)). Without this option, we will return an object array. Only has an affect when using in conjunction with native query when consuming data. The option is a: <code>java.lang.Class<java.lang.Object></code> type. Group: common- Specified by:
resultClassin interfaceJpaEndpointBuilderFactory.JpaEndpointConsumerBuilder- Specified by:
resultClassin interfaceJpaEndpointBuilderFactory.JpaEndpointProducerBuilder- Parameters:
resultClass- the value to set- Returns:
- the dsl builder
-
resultClass
default JpaEndpointBuilderFactory.JpaEndpointBuilder resultClass(String resultClass)
Defines the type of the returned payload (we will call entityManager.createNativeQuery(nativeQuery, resultClass) instead of entityManager.createNativeQuery(nativeQuery)). Without this option, we will return an object array. Only has an affect when using in conjunction with native query when consuming data. The option will be converted to a <code>java.lang.Class<java.lang.Object></code> type. Group: common- Specified by:
resultClassin interfaceJpaEndpointBuilderFactory.JpaEndpointConsumerBuilder- Specified by:
resultClassin interfaceJpaEndpointBuilderFactory.JpaEndpointProducerBuilder- Parameters:
resultClass- the value to set- Returns:
- the dsl builder
-
-