Class Jpa
java.lang.Object
org.springframework.integration.jpa.dsl.Jpa
Factory class for JPA components.
- Since:
- 5.0
- Author:
- Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionstatic JpaInboundChannelAdapterSpec
inboundAdapter
(EntityManager entityManager) Create aJpaInboundChannelAdapterSpec
builder instance based on the providedEntityManager
.static JpaInboundChannelAdapterSpec
inboundAdapter
(EntityManagerFactory entityManagerFactory) Create aJpaInboundChannelAdapterSpec
builder instance based on the providedEntityManagerFactory
.static JpaInboundChannelAdapterSpec
inboundAdapter
(JpaOperations jpaOperations) Create aJpaInboundChannelAdapterSpec
builder instance based on the providedJpaOperations
.outboundAdapter
(EntityManager entityManager) Create aJpaUpdatingOutboundEndpointSpec
builder instance for one-way adapter based on the providedEntityManager
.outboundAdapter
(EntityManagerFactory entityManagerFactory) Create aJpaUpdatingOutboundEndpointSpec
builder instance for one-way adapter based on the providedEntityManagerFactory
.outboundAdapter
(JpaOperations jpaOperations) Create aJpaUpdatingOutboundEndpointSpec
builder instance for one-way adapter based on the providedJpaOperations
.retrievingGateway
(EntityManager entityManager) Create aJpaRetrievingOutboundGatewaySpec
builder instance for request-reply gateway based on the providedEntityManager
.retrievingGateway
(EntityManagerFactory entityManagerFactory) Create aJpaRetrievingOutboundGatewaySpec
builder instance for request-reply gateway based on the providedEntityManagerFactory
.retrievingGateway
(JpaOperations jpaOperations) Create aJpaRetrievingOutboundGatewaySpec
builder instance for request-reply gateway based on the providedJpaOperations
.updatingGateway
(EntityManager entityManager) Create aJpaUpdatingOutboundEndpointSpec
builder instance for request-reply gateway based on the providedEntityManager
.updatingGateway
(EntityManagerFactory entityManagerFactory) Create aJpaUpdatingOutboundEndpointSpec
builder instance for request-reply gateway based on the providedEntityManagerFactory
.updatingGateway
(JpaOperations jpaOperations) Create aJpaUpdatingOutboundEndpointSpec
builder instance for request-reply gateway based on the providedJpaOperations
.
-
Method Details
-
inboundAdapter
public static JpaInboundChannelAdapterSpec inboundAdapter(EntityManagerFactory entityManagerFactory) Create aJpaInboundChannelAdapterSpec
builder instance based on the providedEntityManagerFactory
.- Parameters:
entityManagerFactory
- theEntityManagerFactory
to use- Returns:
- the JpaInboundChannelAdapterSpec instance
-
inboundAdapter
Create aJpaInboundChannelAdapterSpec
builder instance based on the providedEntityManager
.- Parameters:
entityManager
- theEntityManager
to use- Returns:
- the JpaInboundChannelAdapterSpec instance
-
inboundAdapter
Create aJpaInboundChannelAdapterSpec
builder instance based on the providedJpaOperations
.- Parameters:
jpaOperations
- theJpaOperations
to use- Returns:
- the JpaInboundChannelAdapterSpec instance
-
outboundAdapter
public static JpaUpdatingOutboundEndpointSpec outboundAdapter(EntityManagerFactory entityManagerFactory) Create aJpaUpdatingOutboundEndpointSpec
builder instance for one-way adapter based on the providedEntityManagerFactory
.- Parameters:
entityManagerFactory
- theEntityManagerFactory
to use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
outboundAdapter
Create aJpaUpdatingOutboundEndpointSpec
builder instance for one-way adapter based on the providedEntityManager
.- Parameters:
entityManager
- theEntityManager
to use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
outboundAdapter
Create aJpaUpdatingOutboundEndpointSpec
builder instance for one-way adapter based on the providedJpaOperations
.- Parameters:
jpaOperations
- theJpaOperations
to use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
updatingGateway
public static JpaUpdatingOutboundEndpointSpec updatingGateway(EntityManagerFactory entityManagerFactory) Create aJpaUpdatingOutboundEndpointSpec
builder instance for request-reply gateway based on the providedEntityManagerFactory
.- Parameters:
entityManagerFactory
- theEntityManagerFactory
to use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
updatingGateway
Create aJpaUpdatingOutboundEndpointSpec
builder instance for request-reply gateway based on the providedEntityManager
.- Parameters:
entityManager
- theEntityManager
to use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
updatingGateway
Create aJpaUpdatingOutboundEndpointSpec
builder instance for request-reply gateway based on the providedJpaOperations
.- Parameters:
jpaOperations
- theJpaOperations
to use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
retrievingGateway
public static JpaRetrievingOutboundGatewaySpec retrievingGateway(EntityManagerFactory entityManagerFactory) Create aJpaRetrievingOutboundGatewaySpec
builder instance for request-reply gateway based on the providedEntityManagerFactory
.- Parameters:
entityManagerFactory
- theEntityManagerFactory
to use- Returns:
- the JpaRetrievingOutboundGatewaySpec instance
-
retrievingGateway
Create aJpaRetrievingOutboundGatewaySpec
builder instance for request-reply gateway based on the providedEntityManager
.- Parameters:
entityManager
- theEntityManager
to use- Returns:
- the JpaRetrievingOutboundGatewaySpec instance
-
retrievingGateway
Create aJpaRetrievingOutboundGatewaySpec
builder instance for request-reply gateway based on the providedJpaOperations
.- Parameters:
jpaOperations
- theJpaOperations
to use- Returns:
- the JpaRetrievingOutboundGatewaySpec instance
-