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 JpaInboundChannelAdapterSpecinboundAdapter(javax.persistence.EntityManager entityManager)Create aJpaInboundChannelAdapterSpecbuilder instance based on the providedEntityManager.static JpaInboundChannelAdapterSpecinboundAdapter(javax.persistence.EntityManagerFactory entityManagerFactory)Create aJpaInboundChannelAdapterSpecbuilder instance based on the providedEntityManagerFactory.static JpaInboundChannelAdapterSpecinboundAdapter(JpaOperations jpaOperations)Create aJpaInboundChannelAdapterSpecbuilder instance based on the providedJpaOperations.static JpaUpdatingOutboundEndpointSpecoutboundAdapter(javax.persistence.EntityManager entityManager)Create aJpaUpdatingOutboundEndpointSpecbuilder instance for one-way adapter based on the providedEntityManager.static JpaUpdatingOutboundEndpointSpecoutboundAdapter(javax.persistence.EntityManagerFactory entityManagerFactory)Create aJpaUpdatingOutboundEndpointSpecbuilder instance for one-way adapter based on the providedEntityManagerFactory.static JpaUpdatingOutboundEndpointSpecoutboundAdapter(JpaOperations jpaOperations)Create aJpaUpdatingOutboundEndpointSpecbuilder instance for one-way adapter based on the providedJpaOperations.static JpaRetrievingOutboundGatewaySpecretrievingGateway(javax.persistence.EntityManager entityManager)Create aJpaRetrievingOutboundGatewaySpecbuilder instance for request-reply gateway based on the providedEntityManager.static JpaRetrievingOutboundGatewaySpecretrievingGateway(javax.persistence.EntityManagerFactory entityManagerFactory)Create aJpaRetrievingOutboundGatewaySpecbuilder instance for request-reply gateway based on the providedEntityManagerFactory.static JpaRetrievingOutboundGatewaySpecretrievingGateway(JpaOperations jpaOperations)Create aJpaRetrievingOutboundGatewaySpecbuilder instance for request-reply gateway based on the providedJpaOperations.static JpaUpdatingOutboundEndpointSpecupdatingGateway(javax.persistence.EntityManager entityManager)Create aJpaUpdatingOutboundEndpointSpecbuilder instance for request-reply gateway based on the providedEntityManager.static JpaUpdatingOutboundEndpointSpecupdatingGateway(javax.persistence.EntityManagerFactory entityManagerFactory)Create aJpaUpdatingOutboundEndpointSpecbuilder instance for request-reply gateway based on the providedEntityManagerFactory.static JpaUpdatingOutboundEndpointSpecupdatingGateway(JpaOperations jpaOperations)Create aJpaUpdatingOutboundEndpointSpecbuilder instance for request-reply gateway based on the providedJpaOperations.
-
Method Details
-
inboundAdapter
public static JpaInboundChannelAdapterSpec inboundAdapter(javax.persistence.EntityManagerFactory entityManagerFactory)Create aJpaInboundChannelAdapterSpecbuilder instance based on the providedEntityManagerFactory.- Parameters:
entityManagerFactory- theEntityManagerFactoryto use- Returns:
- the JpaInboundChannelAdapterSpec instance
-
inboundAdapter
public static JpaInboundChannelAdapterSpec inboundAdapter(javax.persistence.EntityManager entityManager)Create aJpaInboundChannelAdapterSpecbuilder instance based on the providedEntityManager.- Parameters:
entityManager- theEntityManagerto use- Returns:
- the JpaInboundChannelAdapterSpec instance
-
inboundAdapter
Create aJpaInboundChannelAdapterSpecbuilder instance based on the providedJpaOperations.- Parameters:
jpaOperations- theJpaOperationsto use- Returns:
- the JpaInboundChannelAdapterSpec instance
-
outboundAdapter
public static JpaUpdatingOutboundEndpointSpec outboundAdapter(javax.persistence.EntityManagerFactory entityManagerFactory)Create aJpaUpdatingOutboundEndpointSpecbuilder instance for one-way adapter based on the providedEntityManagerFactory.- Parameters:
entityManagerFactory- theEntityManagerFactoryto use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
outboundAdapter
public static JpaUpdatingOutboundEndpointSpec outboundAdapter(javax.persistence.EntityManager entityManager)Create aJpaUpdatingOutboundEndpointSpecbuilder instance for one-way adapter based on the providedEntityManager.- Parameters:
entityManager- theEntityManagerto use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
outboundAdapter
Create aJpaUpdatingOutboundEndpointSpecbuilder instance for one-way adapter based on the providedJpaOperations.- Parameters:
jpaOperations- theJpaOperationsto use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
updatingGateway
public static JpaUpdatingOutboundEndpointSpec updatingGateway(javax.persistence.EntityManagerFactory entityManagerFactory)Create aJpaUpdatingOutboundEndpointSpecbuilder instance for request-reply gateway based on the providedEntityManagerFactory.- Parameters:
entityManagerFactory- theEntityManagerFactoryto use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
updatingGateway
public static JpaUpdatingOutboundEndpointSpec updatingGateway(javax.persistence.EntityManager entityManager)Create aJpaUpdatingOutboundEndpointSpecbuilder instance for request-reply gateway based on the providedEntityManager.- Parameters:
entityManager- theEntityManagerto use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
updatingGateway
Create aJpaUpdatingOutboundEndpointSpecbuilder instance for request-reply gateway based on the providedJpaOperations.- Parameters:
jpaOperations- theJpaOperationsto use- Returns:
- the JpaUpdatingOutboundEndpointSpec instance
-
retrievingGateway
public static JpaRetrievingOutboundGatewaySpec retrievingGateway(javax.persistence.EntityManagerFactory entityManagerFactory)Create aJpaRetrievingOutboundGatewaySpecbuilder instance for request-reply gateway based on the providedEntityManagerFactory.- Parameters:
entityManagerFactory- theEntityManagerFactoryto use- Returns:
- the JpaRetrievingOutboundGatewaySpec instance
-
retrievingGateway
public static JpaRetrievingOutboundGatewaySpec retrievingGateway(javax.persistence.EntityManager entityManager)Create aJpaRetrievingOutboundGatewaySpecbuilder instance for request-reply gateway based on the providedEntityManager.- Parameters:
entityManager- theEntityManagerto use- Returns:
- the JpaRetrievingOutboundGatewaySpec instance
-
retrievingGateway
Create aJpaRetrievingOutboundGatewaySpecbuilder instance for request-reply gateway based on the providedJpaOperations.- Parameters:
jpaOperations- theJpaOperationsto use- Returns:
- the JpaRetrievingOutboundGatewaySpec instance
-