org.apache.camel.component.jpa
Class JpaEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.component.jpa.JpaEndpoint
- All Implemented Interfaces:
- org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class JpaEndpoint
- extends org.apache.camel.impl.ScheduledPollEndpoint
- Version:
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureConsumer, createEndpointConfiguration, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from interface org.apache.camel.Service |
start, stop |
JpaEndpoint
public JpaEndpoint()
JpaEndpoint
@Deprecated
public JpaEndpoint(String endpointUri)
- Deprecated. use
JpaEndpoint(String, JpaComponent)
instead
- Parameters:
endpointUri
-
JpaEndpoint
public JpaEndpoint(String uri,
JpaComponent component)
JpaEndpoint
@Deprecated
public JpaEndpoint(String endpointUri,
javax.persistence.EntityManagerFactory entityManagerFactory)
- Deprecated. use
JpaEndpoint(String, JpaComponent)
instead
- Parameters:
endpointUri
- entityManagerFactory
-
JpaEndpoint
@Deprecated
public JpaEndpoint(String endpointUri,
javax.persistence.EntityManagerFactory entityManagerFactory,
org.springframework.transaction.PlatformTransactionManager transactionManager)
- Deprecated. use
JpaEndpoint(String, JpaComponent)
instead
- Parameters:
endpointUri
- entityManagerFactory
- transactionManager
-
createProducer
public org.apache.camel.Producer createProducer()
throws Exception
- Throws:
Exception
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
- Throws:
Exception
configureProperties
public void configureProperties(Map<String,Object> options)
- Specified by:
configureProperties
in interface org.apache.camel.Endpoint
- Overrides:
configureProperties
in class org.apache.camel.impl.ScheduledPollEndpoint
isSingleton
public boolean isSingleton()
createEndpointUri
protected String createEndpointUri()
- Overrides:
createEndpointUri
in class org.apache.camel.impl.DefaultEndpoint
getTemplate
public org.springframework.orm.jpa.JpaTemplate getTemplate()
setTemplate
public void setTemplate(org.springframework.orm.jpa.JpaTemplate template)
getProducerExpression
public org.apache.camel.Expression getProducerExpression()
setProducerExpression
public void setProducerExpression(org.apache.camel.Expression producerExpression)
getMaximumResults
public int getMaximumResults()
setMaximumResults
public void setMaximumResults(int maximumResults)
getEntityType
public Class<?> getEntityType()
setEntityType
public void setEntityType(Class<?> entityType)
getEntityManagerFactory
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
setEntityManagerFactory
public void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
getTransactionManager
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
setTransactionManager
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
getEntityManagerProperties
public Map<Object,Object> getEntityManagerProperties()
setEntityManagerProperties
public void setEntityManagerProperties(Map<Object,Object> entityManagerProperties)
getPersistenceUnit
public String getPersistenceUnit()
setPersistenceUnit
public void setPersistenceUnit(String persistenceUnit)
isConsumeDelete
public boolean isConsumeDelete()
setConsumeDelete
public void setConsumeDelete(boolean consumeDelete)
isConsumeLockEntity
public boolean isConsumeLockEntity()
setConsumeLockEntity
public void setConsumeLockEntity(boolean consumeLockEntity)
isFlushOnSend
public boolean isFlushOnSend()
setFlushOnSend
public void setFlushOnSend(boolean flushOnSend)
getMaxMessagesPerPoll
public int getMaxMessagesPerPoll()
setMaxMessagesPerPoll
public void setMaxMessagesPerPoll(int maxMessagesPerPoll)
isUsePersist
public boolean isUsePersist()
setUsePersist
public void setUsePersist(boolean usePersist)
validate
protected void validate()
createTemplate
protected org.springframework.orm.jpa.JpaTemplate createTemplate()
createEntityManagerFactory
protected javax.persistence.EntityManagerFactory createEntityManagerFactory()
createTransactionManager
protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()
createEntityManager
protected javax.persistence.EntityManager createEntityManager()
createTransactionStrategy
protected TransactionStrategy createTransactionStrategy()
createProducerExpression
protected org.apache.camel.Expression createProducerExpression()
Apache CAMEL