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: 889234 $

Constructor Summary
JpaEndpoint()
           
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<String,Object> options)
           
 Consumer createConsumer(Processor processor)
           
protected  String createEndpointUri()
           
protected  EntityManager createEntityManager()
           
protected  EntityManagerFactory createEntityManagerFactory()
           
 Producer createProducer()
           
protected  Expression createProducerExpression()
           
protected  JpaTemplate createTemplate()
           
protected  PlatformTransactionManager createTransactionManager()
           
protected  TransactionStrategy createTransactionStrategy()
           
 EntityManagerFactory getEntityManagerFactory()
           
 Map<Object,Object> getEntityManagerProperties()
           
 Class<?> getEntityType()
           
 int getMaximumResults()
           
 int getMaxMessagesPerPoll()
           
 String getPersistenceUnit()
           
 Expression 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<Object,Object> 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(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
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,
                   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<String,Object> 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 JpaTemplate getTemplate()

setTemplate

public void setTemplate(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 PlatformTransactionManager getTransactionManager()

setTransactionManager

public void setTransactionManager(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)

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 createProducerExpression()


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.