@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 |
doInit() |
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, doBuild, doStart, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getDefaultName, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
build, 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, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public 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.DefaultComponent
Exception
protected void doInit() throws Exception
doInit
in class org.apache.camel.support.DefaultComponent
Exception
Apache Camel