public class JpaUpdatingOutboundEndpointSpec extends JpaBaseOutboundEndpointSpec<JpaUpdatingOutboundEndpointSpec>
JpaBaseOutboundEndpointSpec extension for the updating
JpaOutboundGateway mode.
The outbound-channel-adapter is achievable through an internal producesReply option.jpaExecutorlogger, PARSER, target| Modifier and Type | Method and Description |
|---|---|
JpaUpdatingOutboundEndpointSpec |
clearOnFlush(boolean clearOnFlush)
If set to
true the EntityManager.clear() will be called,
and only if the EntityManager.flush()
was called after performing persistence operations. |
JpaUpdatingOutboundEndpointSpec |
flush(boolean flush)
If set to
true the EntityManager.flush() will be called
after persistence operation. |
JpaUpdatingOutboundEndpointSpec |
flushSize(int flushSize)
If the provided value is greater than
0, then EntityManager.flush()
will be called after persistence operations as well as within batch operations. |
JpaUpdatingOutboundEndpointSpec |
persistMode(PersistMode persistMode)
Specify a
PersistMode for the gateway. |
entityClass, getComponentsToRegister, jpaQuery, namedQuery, nativeQuery, parameter, parameter, parameter, parameterExpression, parameterExpression, parameterSourceFactory, usePayloadAsParameterSource_this, afterPropertiesSet, destroy, doGet, get, getId, getObject, getObjectType, id, isSingletonpublic JpaUpdatingOutboundEndpointSpec persistMode(PersistMode persistMode)
PersistMode for the gateway.
Defaults to PersistMode.MERGE.persistMode - the PersistMode to use.public JpaUpdatingOutboundEndpointSpec flush(boolean flush)
true the EntityManager.flush() will be called
after persistence operation.
Has the same effect, if the flushSize(int) is specified to 1.
For convenience in cases when the provided entity to persist is not an instance of Iterable.flush - defaults to false.public JpaUpdatingOutboundEndpointSpec flushSize(int flushSize)
0, then EntityManager.flush()
will be called after persistence operations as well as within batch operations.
This property has precedence over the flush(boolean), if it is specified to a value greater than 0.
If the entity to persist is not an instance of Iterable and this property is greater than 0,
then the entity will be flushed as if the flush(boolean) attribute was set to true.flushSize - defaults to 0.public JpaUpdatingOutboundEndpointSpec clearOnFlush(boolean clearOnFlush)
true the EntityManager.clear() will be called,
and only if the EntityManager.flush()
was called after performing persistence operations.clearOnFlush - defaults to false.