org.apache.camel.component.jpa
Class JpaEndpoint

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

public class JpaEndpoint
extends ScheduledPollEndpoint

Version:
$Revision: 787911 $

Constructor Summary
JpaEndpoint()
           
JpaEndpoint(String endpointUri)
           
JpaEndpoint(String endpointUri, EntityManagerFactory entityManagerFactory)
           
JpaEndpoint(String endpointUri, EntityManagerFactory entityManagerFactory, org.springframework.transaction.PlatformTransactionManager transactionManager)
           
JpaEndpoint(String uri, JpaComponent component)
           
 
Method Summary
 void configureProperties(Map options)
           
 Consumer createConsumer(Processor processor)
           
protected  String createEndpointUri()
           
protected  EntityManager createEntityManager()
           
protected  EntityManagerFactory createEntityManagerFactory()
           
 Producer createProducer()
           
protected  Expression createProducerExpression()
           
protected  org.springframework.orm.jpa.JpaTemplate createTemplate()
           
protected  org.springframework.transaction.PlatformTransactionManager createTransactionManager()
           
protected  TransactionStrategy createTransactionStrategy()
           
 EntityManagerFactory getEntityManagerFactory()
           
 Map getEntityManagerProperties()
           
 Class<?> getEntityType()
           
 int getMaximumResults()
           
 int getMaxMessagesPerPoll()
           
 String getPersistenceUnit()
           
 Expression getProducerExpression()
           
 org.springframework.orm.jpa.JpaTemplate getTemplate()
           
 org.springframework.transaction.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 setMaxMessagesPerPoll(int maxMessagesPerPoll)
           
 void setPersistenceUnit(String persistenceUnit)
           
 void setProducerExpression(Expression producerExpression)
           
 void setTemplate(org.springframework.orm.jpa.JpaTemplate template)
           
 void setTransactionManager(org.springframework.transaction.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
createExchange, createExchange, createExchange, createPollingConsumer, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, isLenientProperties, setCamelContext, 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()

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,
                   org.springframework.transaction.PlatformTransactionManager transactionManager)
Method Detail

createProducer

public Producer createProducer()
                        throws Exception
Throws:
Exception

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Throws:
Exception

configureProperties

public void configureProperties(Map options)
Specified by:
configureProperties in interface Endpoint
Overrides:
configureProperties in class ScheduledPollEndpoint

isSingleton

public boolean isSingleton()

createEndpointUri

protected String createEndpointUri()
Overrides:
createEndpointUri in class DefaultEndpoint

getTemplate

public org.springframework.orm.jpa.JpaTemplate getTemplate()

setTemplate

public void setTemplate(org.springframework.orm.jpa.JpaTemplate template)

getProducerExpression

public Expression getProducerExpression()

setProducerExpression

public void setProducerExpression(Expression 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 org.springframework.transaction.PlatformTransactionManager getTransactionManager()

setTransactionManager

public void setTransactionManager(org.springframework.transaction.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)

getMaxMessagesPerPoll

public int getMaxMessagesPerPoll()

setMaxMessagesPerPoll

public void setMaxMessagesPerPoll(int maxMessagesPerPoll)

validate

protected void validate()

createTemplate

protected org.springframework.orm.jpa.JpaTemplate createTemplate()

createEntityManagerFactory

protected EntityManagerFactory createEntityManagerFactory()

createTransactionManager

protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()

createEntityManager

protected EntityManager createEntityManager()

createTransactionStrategy

protected TransactionStrategy createTransactionStrategy()

createProducerExpression

protected Expression createProducerExpression()


Apache CAMEL