@UriEndpoint(scheme="jpa", syntax="jpa:entityType", consumerClass=JpaConsumer.class, label="database,sql") 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()
Deprecated.
use
getEntityManagerFactory() to get hold of factory and create an entity manager using the factory. |
protected javax.persistence.EntityManagerFactory |
createEntityManagerFactory() |
org.apache.camel.Producer |
createProducer() |
protected org.apache.camel.Expression |
createProducerExpression() |
protected org.springframework.transaction.PlatformTransactionManager |
createTransactionManager() |
protected org.springframework.transaction.support.TransactionTemplate |
createTransactionTemplate() |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory() |
Map<String,Object> |
getEntityManagerProperties() |
Class<?> |
getEntityType() |
int |
getMaximumResults() |
int |
getMaxMessagesPerPoll() |
String |
getPersistenceUnit() |
org.apache.camel.Expression |
getProducerExpression() |
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager() |
boolean |
isConsumeDelete() |
boolean |
isConsumeLockEntity() |
boolean |
isFlushOnSend() |
boolean |
isJoinTransaction() |
boolean |
isSingleton() |
boolean |
isUsePassedInEntityManager() |
boolean |
isUsePersist() |
void |
setConsumeDelete(boolean consumeDelete) |
void |
setConsumeLockEntity(boolean consumeLockEntity) |
void |
setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory) |
void |
setEntityManagerProperties(Map<String,Object> entityManagerProperties) |
void |
setEntityType(Class<?> entityType) |
void |
setFlushOnSend(boolean flushOnSend) |
void |
setJoinTransaction(boolean joinTransaction) |
void |
setMaximumResults(int maximumResults) |
void |
setMaxMessagesPerPoll(int maxMessagesPerPoll) |
void |
setPersistenceUnit(String persistenceUnit) |
void |
setProducerExpression(org.apache.camel.Expression producerExpression) |
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) |
void |
setUsePassedInEntityManager(boolean usePassedIn) |
void |
setUsePersist(boolean usePersist) |
protected void |
validate() |
configurePollingConsumer, configureScheduledPollConsumerProperties, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, initConsumerProperties, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay
configureConsumer, createEndpointConfiguration, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public JpaEndpoint()
@Deprecated public JpaEndpoint(String endpointUri)
JpaEndpoint(String, JpaComponent)
insteadpublic JpaEndpoint(String uri, JpaComponent component)
@Deprecated public JpaEndpoint(String endpointUri, javax.persistence.EntityManagerFactory entityManagerFactory)
JpaEndpoint(String, JpaComponent)
instead@Deprecated public JpaEndpoint(String endpointUri, javax.persistence.EntityManagerFactory entityManagerFactory, org.springframework.transaction.PlatformTransactionManager transactionManager)
JpaEndpoint(String, JpaComponent)
insteadpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public void configureProperties(Map<String,Object> options)
configureProperties
in interface org.apache.camel.Endpoint
configureProperties
in class org.apache.camel.impl.ScheduledPollEndpoint
public boolean isSingleton()
protected String createEndpointUri()
createEndpointUri
in class org.apache.camel.impl.DefaultEndpoint
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<String,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)
public boolean isJoinTransaction()
public void setJoinTransaction(boolean joinTransaction)
public boolean isUsePassedInEntityManager()
public void setUsePassedInEntityManager(boolean usePassedIn)
protected void validate()
protected javax.persistence.EntityManagerFactory createEntityManagerFactory()
protected org.springframework.transaction.PlatformTransactionManager createTransactionManager()
@Deprecated protected javax.persistence.EntityManager createEntityManager()
getEntityManagerFactory()
to get hold of factory and create an entity manager using the factory.protected org.springframework.transaction.support.TransactionTemplate createTransactionTemplate()
protected org.apache.camel.Expression createProducerExpression()
Apache Camel