org.apache.camel.component.jpa
Class JpaEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint<E>
org.apache.camel.impl.ScheduledPollEndpoint<Exchange>
org.apache.camel.component.jpa.JpaEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint<Exchange>
public class JpaEndpoint
- extends ScheduledPollEndpoint<Exchange>
- Version:
- $Revision: 769677 $
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
convertTo, createEndpointUri, createExchange, createExchange, createExchange, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getContext, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString |
JpaEndpoint
public JpaEndpoint(String endpointUri)
JpaEndpoint
public JpaEndpoint(String uri,
JpaComponent component)
JpaEndpoint
public JpaEndpoint(String endpointUri,
EntityManagerFactory entityManagerFactory)
JpaEndpoint
public JpaEndpoint(String endpointUri,
EntityManagerFactory entityManagerFactory,
PlatformTransactionManager transactionManager)
createProducer
public Producer<Exchange> createProducer()
throws Exception
- Throws:
Exception
createConsumer
public Consumer<Exchange> createConsumer(Processor processor)
throws Exception
- Throws:
Exception
configureProperties
public void configureProperties(Map options)
- Specified by:
configureProperties
in interface Endpoint<Exchange>
- Overrides:
configureProperties
in class ScheduledPollEndpoint<Exchange>
isSingleton
public boolean isSingleton()
getTemplate
public JpaTemplate getTemplate()
setTemplate
public void setTemplate(JpaTemplate template)
getProducerExpression
public Expression<Exchange> getProducerExpression()
setProducerExpression
public void setProducerExpression(Expression<Exchange> producerExpression)
getMaximumResults
public int getMaximumResults()
setMaximumResults
public void setMaximumResults(int maximumResults)
getEntityType
public Class<?> getEntityType()
setEntityType
public void setEntityType(Class<?> entityType)
getEntityManagerFactory
public EntityManagerFactory getEntityManagerFactory()
setEntityManagerFactory
public void setEntityManagerFactory(EntityManagerFactory entityManagerFactory)
getTransactionManager
public PlatformTransactionManager getTransactionManager()
setTransactionManager
public void setTransactionManager(PlatformTransactionManager transactionManager)
getEntityManagerProperties
public Map getEntityManagerProperties()
setEntityManagerProperties
public void setEntityManagerProperties(Map 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)
validate
protected void validate()
createTemplate
protected JpaTemplate createTemplate()
createEntityManagerFactory
protected EntityManagerFactory createEntityManagerFactory()
createTransactionManager
protected PlatformTransactionManager createTransactionManager()
createEntityManager
protected EntityManager createEntityManager()
createTransactionStrategy
protected TransactionStrategy createTransactionStrategy()
createProducerExpression
protected Expression<Exchange> createProducerExpression()
Apache CAMEL