Class JpaBaseOutboundEndpointSpec<S extends JpaBaseOutboundEndpointSpec<S>>
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S, JpaOutboundGateway>
org.springframework.integration.dsl.MessageHandlerSpec<S, JpaOutboundGateway>
org.springframework.integration.jpa.dsl.JpaBaseOutboundEndpointSpec<S>
- Type Parameters:
- S- the target- JpaBaseOutboundEndpointSpecimplementation type.
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<JpaOutboundGateway>,- InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
- Direct Known Subclasses:
- JpaRetrievingOutboundGatewaySpec,- JpaUpdatingOutboundEndpointSpec
public abstract class JpaBaseOutboundEndpointSpec<S extends JpaBaseOutboundEndpointSpec<S>>
extends MessageHandlerSpec<S, JpaOutboundGateway>
implements ComponentsRegistration
The base 
MessageHandlerSpec for JPA Outbound endpoints.- Since:
- 5.0
- Author:
- Artem Bilan
- 
Field SummaryFieldsFields 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 TypeMethodDescriptionentityClass(Class<?> entityClass) Specify the class type which is being used for retrieving entities from the database.Specify a JPA query to perform persistent operation.namedQuery(String namedQuery) Specify a name a named JPQL based query or a native SQL query.nativeQuery(String nativeQuery) Specify a native SQL query to perform persistent operation.Add a value for indexed query parameter.Add a value for named parameter in the query.parameter(JpaParameter jpaParameter) parameterExpression(String expression) Add a SpEL expression for indexed parameter in the query.parameterExpression(String name, String expression) Add a SpEL expression for named parameter in the query.parameterSourceFactory(ParameterSourceFactory parameterSourceFactory) Specify aParameterSourceFactoryto populate query parameters at runtime against request message.usePayloadAsParameterSource(Boolean usePayloadAsParameterSource) Indicates that whether only the payload of the passed inMessagewill be used as a source of parameters.Methods 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
- 
Field Details- 
jpaExecutor
 
- 
- 
Constructor Details- 
JpaBaseOutboundEndpointSpec
 
- 
- 
Method Details- 
entityClass
- 
jpaQuery
- 
nativeQuery
- 
namedQuery
- 
parameterSourceFactorySpecify aParameterSourceFactoryto populate query parameters at runtime against request message.- Parameters:
- parameterSourceFactory- the- ParameterSourceFactoryto use.
- Returns:
- the spec
 
- 
parameter
- 
parameter
- 
parameterExpression
- 
parameterExpression
- 
parameter
- 
usePayloadAsParameterSourceIndicates that whether only the payload of the passed inMessagewill be used as a source of parameters. The is 'true' by default because as a default aBeanPropertyParameterSourceFactoryimplementation is used for the sqlParameterSourceFactory property.- Parameters:
- usePayloadAsParameterSource- the- booleanflag to indicate if use- payloadas a source of parameter values or not.
- Returns:
- the spec
 
- 
getComponentsToRegister- Specified by:
- getComponentsToRegisterin interface- ComponentsRegistration
 
 
-