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