public class JpaBamProcessorSupport<T> extends BamProcessorSupport<T>
Constructor and Description |
---|
JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
javax.persistence.EntityManagerFactory entityManagerFactory,
org.apache.camel.Expression correlationKeyExpression,
ActivityRules activityRules) |
JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
javax.persistence.EntityManagerFactory entityManagerFactory,
org.apache.camel.Expression correlationKeyExpression,
ActivityRules activityRules,
Class<T> entitytype) |
Modifier and Type | Method and Description |
---|---|
protected T |
createEntity(org.apache.camel.Exchange exchange,
Object key)
Create a new instance of the entity for the given key
|
protected String |
createFindByKeyQuery() |
protected T |
findEntityByCorrelationKey(Object key) |
ActivityRules |
getActivityRules() |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory() |
String |
getFindByKeyQuery() |
String |
getKeyPropertyName() |
protected Class<?> |
getKeyType() |
boolean |
isCorrelationKeyIsPrimary() |
protected T |
loadEntity(org.apache.camel.Exchange exchange,
Object key) |
protected void |
processEntity(org.apache.camel.Exchange exchange,
T entity) |
void |
setActivityRules(ActivityRules activityRules) |
void |
setCorrelationKeyIsPrimary(boolean correlationKeyIsPrimary) |
void |
setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory) |
void |
setFindByKeyQuery(String findByKeyQuery) |
protected void |
setKeyProperty(T entity,
Object key)
Sets the key property on the new entity
|
void |
setKeyPropertyName(String keyPropertyName) |
protected void |
setProcessDefinitionProperty(T entity,
ProcessDefinition processDefinition) |
getCorrelationKey, getCorrelationKeyExpression, getEntityType, onError, process
public JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate, javax.persistence.EntityManagerFactory entityManagerFactory, org.apache.camel.Expression correlationKeyExpression, ActivityRules activityRules, Class<T> entitytype)
public JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate, javax.persistence.EntityManagerFactory entityManagerFactory, org.apache.camel.Expression correlationKeyExpression, ActivityRules activityRules)
public String getFindByKeyQuery()
public void setFindByKeyQuery(String findByKeyQuery)
public ActivityRules getActivityRules()
public void setActivityRules(ActivityRules activityRules)
public String getKeyPropertyName()
public void setKeyPropertyName(String keyPropertyName)
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
public void setEntityManagerFactory(javax.persistence.EntityManagerFactory entityManagerFactory)
public boolean isCorrelationKeyIsPrimary()
public void setCorrelationKeyIsPrimary(boolean correlationKeyIsPrimary)
protected T loadEntity(org.apache.camel.Exchange exchange, Object key) throws Exception
loadEntity
in class BamProcessorSupport<T>
Exception
protected Class<?> getKeyType()
getKeyType
in class BamProcessorSupport<T>
protected void setKeyProperty(T entity, Object key) throws Exception
Exception
protected void setProcessDefinitionProperty(T entity, ProcessDefinition processDefinition) throws Exception
Exception
protected T createEntity(org.apache.camel.Exchange exchange, Object key)
protected void processEntity(org.apache.camel.Exchange exchange, T entity) throws Exception
processEntity
in class BamProcessorSupport<T>
Exception
protected String createFindByKeyQuery()
Apache Camel