@Component(value="jpa")
public class JpaComponent
extends org.apache.camel.support.DefaultComponent
| Constructor and Description |
|---|
JpaComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String path,
Map<String,Object> options) |
protected void |
doStart() |
protected void |
doStop() |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory() |
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager() |
boolean |
isJoinTransaction() |
boolean |
isSharedEntityManager() |
void |
setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
To use the
EntityManagerFactory. |
void |
setJoinTransaction(boolean joinTransaction)
The camel-jpa component will join transaction by default.
|
void |
setSharedEntityManager(boolean sharedEntityManager)
Whether to use Spring's SharedEntityManager for the consumer/producer.
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
To use the
PlatformTransactionManager for managing transactions. |
afterConfiguration, createEndpoint, createEndpoint, doInit, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic javax.persistence.EntityManagerFactory getEntityManagerFactory()
public void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
EntityManagerFactory. This is strongly recommended to configure.public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
PlatformTransactionManager for managing transactions.public boolean isJoinTransaction()
public void setJoinTransaction(boolean joinTransaction)
public boolean isSharedEntityManager()
public void setSharedEntityManager(boolean sharedEntityManager)
protected org.apache.camel.Endpoint createEndpoint(String uri, String path, Map<String,Object> options) throws Exception
createEndpoint in class org.apache.camel.support.DefaultComponentExceptionprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultComponentExceptionApache Camel