org.apache.camel.component.jpa
Class JpaEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint<E>
      extended by org.apache.camel.impl.ScheduledPollEndpoint<Exchange>
          extended by org.apache.camel.component.jpa.JpaEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint<Exchange>

public class JpaEndpoint
extends ScheduledPollEndpoint<Exchange>

Version:
$Revision: 769677 $

Constructor Summary
JpaEndpoint(String endpointUri)
           
JpaEndpoint(String endpointUri, EntityManagerFactory entityManagerFactory)
           
JpaEndpoint(String endpointUri, EntityManagerFactory entityManagerFactory, PlatformTransactionManager transactionManager)
           
JpaEndpoint(String uri, JpaComponent component)
           
 
Method Summary
 void configureProperties(Map options)
           
 Consumer<Exchange> createConsumer(Processor processor)
           
protected  EntityManager createEntityManager()
           
protected  EntityManagerFactory createEntityManagerFactory()
           
 Producer<Exchange> createProducer()
           
protected  Expression<Exchange> createProducerExpression()
           
protected  JpaTemplate createTemplate()
           
protected  PlatformTransactionManager createTransactionManager()
           
protected  TransactionStrategy createTransactionStrategy()
           
 EntityManagerFactory getEntityManagerFactory()
           
 Map getEntityManagerProperties()
           
 Class<?> getEntityType()
           
 int getMaximumResults()
           
 String getPersistenceUnit()
           
 Expression<Exchange> getProducerExpression()
           
 JpaTemplate getTemplate()
           
 PlatformTransactionManager getTransactionManager()
           
 boolean isConsumeDelete()
           
 boolean isConsumeLockEntity()
           
 boolean isFlushOnSend()
           
 boolean isSingleton()
           
 void setConsumeDelete(boolean consumeDelete)
           
 void setConsumeLockEntity(boolean consumeLockEntity)
           
 void setEntityManagerFactory(EntityManagerFactory entityManagerFactory)
           
 void setEntityManagerProperties(Map entityManagerProperties)
           
 void setEntityType(Class<?> entityType)
           
 void setFlushOnSend(boolean flushOnSend)
           
 void setMaximumResults(int maximumResults)
           
 void setPersistenceUnit(String persistenceUnit)
           
 void setProducerExpression(Expression<Exchange> producerExpression)
           
 void setTemplate(JpaTemplate template)
           
 void setTransactionManager(PlatformTransactionManager transactionManager)
           
protected  void validate()
           
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureConsumer, getConsumerProperties, setConsumerProperties
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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