public class JpaEndpoint
extends org.apache.camel.impl.ScheduledPollEndpoint
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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() |
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, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic JpaEndpoint()
@Deprecated public JpaEndpoint(String endpointUri)
JpaEndpoint(String, JpaComponent) insteadendpointUri - public JpaEndpoint(String uri, JpaComponent component)
@Deprecated public JpaEndpoint(String endpointUri, javax.persistence.EntityManagerFactory entityManagerFactory)
JpaEndpoint(String, JpaComponent) insteadendpointUri - entityManagerFactory - @Deprecated public JpaEndpoint(String endpointUri, javax.persistence.EntityManagerFactory entityManagerFactory, org.springframework.transaction.PlatformTransactionManager transactionManager)
JpaEndpoint(String, JpaComponent) insteadendpointUri - entityManagerFactory - transactionManager - public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic void configureProperties(Map<String,Object> options)
configureProperties in interface org.apache.camel.EndpointconfigureProperties in class org.apache.camel.impl.ScheduledPollEndpointpublic boolean isSingleton()
protected String createEndpointUri()
createEndpointUri in class org.apache.camel.impl.DefaultEndpointpublic org.springframework.orm.jpa.JpaTemplate getTemplate()
public void setTemplate(org.springframework.orm.jpa.JpaTemplate template)
public org.apache.camel.Expression getProducerExpression()
public void setProducerExpression(org.apache.camel.Expression producerExpression)
public int getMaximumResults()
public void setMaximumResults(int maximumResults)
public Class<?> getEntityType()
public void setEntityType(Class<?> entityType)
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
public void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public void setEntityManagerProperties(Map<Object,Object> entityManagerProperties)
public String getPersistenceUnit()
public void setPersistenceUnit(String persistenceUnit)
public boolean isConsumeDelete()
public void setConsumeDelete(boolean consumeDelete)
public boolean isConsumeLockEntity()
public void setConsumeLockEntity(boolean consumeLockEntity)
public boolean isFlushOnSend()
public void setFlushOnSend(boolean flushOnSend)
public int getMaxMessagesPerPoll()
public void setMaxMessagesPerPoll(int maxMessagesPerPoll)
public boolean isUsePersist()
public void setUsePersist(boolean usePersist)
protected void validate()
protected org.springframework.orm.jpa.JpaTemplate createTemplate()
protected javax.persistence.EntityManagerFactory createEntityManagerFactory()
protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()
protected javax.persistence.EntityManager createEntityManager()
protected TransactionStrategy createTransactionStrategy()
protected org.apache.camel.Expression createProducerExpression()
Apache Camel