Class JpaUpdatingOutboundEndpointSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<S,JpaOutboundGateway>
org.springframework.integration.jpa.dsl.JpaBaseOutboundEndpointSpec<JpaUpdatingOutboundEndpointSpec>
org.springframework.integration.jpa.dsl.JpaUpdatingOutboundEndpointSpec
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<JpaOutboundGateway>,InitializingBean,Lifecycle,Phased,SmartLifecycle,ComponentsRegistration
public class JpaUpdatingOutboundEndpointSpec extends JpaBaseOutboundEndpointSpec<JpaUpdatingOutboundEndpointSpec>
A
JpaBaseOutboundEndpointSpec extension for the updating
JpaOutboundGateway mode.
The outbound-channel-adapter is achievable through an internal producesReply option.- Since:
- 5.0
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.jpa.dsl.JpaBaseOutboundEndpointSpec
jpaExecutorFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target -
Constructor Summary
Constructors Modifier Constructor Description protectedJpaUpdatingOutboundEndpointSpec(JpaExecutor jpaExecutor) -
Method Summary
Modifier and Type Method Description JpaUpdatingOutboundEndpointSpecclearOnFlush(boolean clearOnFlush)If set totruetheEntityManager.clear()will be called, and only if theEntityManager.flush()was called after performing persistence operations.JpaUpdatingOutboundEndpointSpecflush(boolean flush)If set totruetheEntityManager.flush()will be called after persistence operation.JpaUpdatingOutboundEndpointSpecflushSize(int flushSize)If the provided value is greater than0, thenEntityManager.flush()will be called after persistence operations as well as within batch operations.JpaUpdatingOutboundEndpointSpecpersistMode(PersistMode persistMode)Specify aPersistModefor the gateway.protected JpaUpdatingOutboundEndpointSpecproducesReply(boolean producesReply)Methods inherited from class org.springframework.integration.jpa.dsl.JpaBaseOutboundEndpointSpec
entityClass, getComponentsToRegister, jpaQuery, namedQuery, nativeQuery, parameter, parameter, parameter, parameterExpression, parameterExpression, parameterSourceFactory, usePayloadAsParameterSourceMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
Method Details
-
producesReply
-
persistMode
Specify aPersistModefor the gateway. Defaults toPersistMode.MERGE.- Parameters:
persistMode- thePersistModeto use.- Returns:
- the spec
-
flush
If set totruetheEntityManager.flush()will be called after persistence operation. Has the same effect, if theflushSize(int)is specified to1. For convenience in cases when the provided entity to persist is not an instance ofIterable.- Parameters:
flush- defaults tofalse.- Returns:
- the spec
-
flushSize
If the provided value is greater than0, thenEntityManager.flush()will be called after persistence operations as well as within batch operations. This property has precedence over theflush(boolean), if it is specified to a value greater than0. If the entity to persist is not an instance ofIterableand this property is greater than0, then the entity will be flushed as if theflush(boolean)attribute was set totrue.- Parameters:
flushSize- defaults to0.- Returns:
- the spec
-
clearOnFlush
If set totruetheEntityManager.clear()will be called, and only if theEntityManager.flush()was called after performing persistence operations.- Parameters:
clearOnFlush- defaults tofalse.- Returns:
- the spec
-