org.apache.camel.component.jpa
Class JpaEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      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:
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:

Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
JpaEndpoint()
           
JpaEndpoint(String endpointUri)
          Deprecated. use JpaEndpoint(String, JpaComponent) instead
JpaEndpoint(String endpointUri, javax.persistence.EntityManagerFactory entityManagerFactory)
          Deprecated. use JpaEndpoint(String, JpaComponent) instead
JpaEndpoint(String endpointUri, javax.persistence.EntityManagerFactory entityManagerFactory, org.springframework.transaction.PlatformTransactionManager transactionManager)
          Deprecated. use JpaEndpoint(String, JpaComponent) instead
JpaEndpoint(String uri, JpaComponent component)
           
 
Method Summary
 void configureProperties(Map<String,Object> options)
           
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
protected  String createEndpointUri()
           
protected  javax.persistence.EntityManager createEntityManager()
           
protected  javax.persistence.EntityManagerFactory createEntityManagerFactory()
           
 org.apache.camel.Producer createProducer()
           
protected  org.apache.camel.Expression createProducerExpression()
           
protected  org.springframework.orm.jpa.JpaTemplate createTemplate()
           
protected  org.springframework.transaction.PlatformTransactionManager createTransactionManager()
           
protected  TransactionStrategy createTransactionStrategy()
           
 javax.persistence.EntityManagerFactory getEntityManagerFactory()
           
 Map<Object,Object> getEntityManagerProperties()
           
 Class<?> getEntityType()
           
 int getMaximumResults()
           
 int getMaxMessagesPerPoll()
           
 String getPersistenceUnit()
           
 org.apache.camel.Expression getProducerExpression()
           
 org.springframework.orm.jpa.JpaTemplate getTemplate()
           
 org.springframework.transaction.PlatformTransactionManager getTransactionManager()
           
 boolean isConsumeDelete()
           
 boolean isConsumeLockEntity()
           
 boolean isFlushOnSend()
           
 boolean isSingleton()
           
 boolean isUsePersist()
           
 void setConsumeDelete(boolean consumeDelete)
           
 void setConsumeLockEntity(boolean consumeLockEntity)
           
 void setEntityManagerFactory(javax.persistence.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(org.apache.camel.Expression producerExpression)
           
 void setTemplate(org.springframework.orm.jpa.JpaTemplate template)
           
 void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
           
 void setUsePersist(boolean usePersist)
           
protected  void validate()
           
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

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

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