Class JpaUpdatingOutboundEndpointSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<JpaUpdatingOutboundEndpointSpec, JpaOutboundGateway>
org.springframework.integration.dsl.MessageHandlerSpec<JpaUpdatingOutboundEndpointSpec, JpaOutboundGateway>
org.springframework.integration.jpa.dsl.JpaBaseOutboundEndpointSpec<JpaUpdatingOutboundEndpointSpec>
org.springframework.integration.jpa.dsl.JpaUpdatingOutboundEndpointSpec
- All Implemented Interfaces:
- 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 SummaryFields inherited from class org.springframework.integration.jpa.dsl.JpaBaseOutboundEndpointSpecjpaExecutorFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclearOnFlush(boolean clearOnFlush) If set totruetheEntityManager.clear()will be called, and only if theEntityManager.flush()was called after performing persistence operations.flush(boolean flush) If set totruetheEntityManager.flush()will be called after persistence operation.flushSize(int flushSize) If the provided value is greater than0, thenEntityManager.flush()will be called after persistence operations as well as within batch operations.persistMode(PersistMode persistMode) Specify aPersistModefor the gateway.protected JpaUpdatingOutboundEndpointSpecproducesReply(boolean producesReply) Methods inherited from class org.springframework.integration.jpa.dsl.JpaBaseOutboundEndpointSpecentityClass, getComponentsToRegister, jpaQuery, namedQuery, nativeQuery, parameter, parameter, parameter, parameterExpression, parameterExpression, parameterSourceFactory, usePayloadAsParameterSourceMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
JpaUpdatingOutboundEndpointSpec
 
- 
- 
Method Details- 
producesReply
- 
persistModeSpecify aPersistModefor the gateway. Defaults toPersistMode.MERGE.- Parameters:
- persistMode- the- PersistModeto use.
- Returns:
- the spec
 
- 
flushIf 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 to- false.
- Returns:
- the spec
 
- 
flushSizeIf 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 to- 0.
- Returns:
- the spec
 
- 
clearOnFlushIf set totruetheEntityManager.clear()will be called, and only if theEntityManager.flush()was called after performing persistence operations.- Parameters:
- clearOnFlush- defaults to- false.
- Returns:
- the spec
 
 
-