public class JpaComponent
extends org.apache.camel.impl.UriEndpointComponent
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() |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory() |
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager() |
boolean |
isJoinTransaction() |
void |
setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
To use the
EntityManagerFactory . |
void |
setJoinTransaction(boolean joinTransaction)
The camel-jpa component will join transaction by default.
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
To use the
PlatformTransactionManager for managing transactions. |
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, createConfiguration, createEndpoint, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
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)
protected org.apache.camel.Endpoint createEndpoint(String uri, String path, Map<String,Object> options) throws Exception
createEndpoint
in class org.apache.camel.impl.DefaultComponent
Exception
Apache Camel