public class JpaBamProcessorSupport<T> extends BamProcessorSupport<T>
| Constructor and Description |
|---|
JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.orm.jpa.JpaTemplate template,
org.apache.camel.Expression correlationKeyExpression,
ActivityRules activityRules) |
JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.orm.jpa.JpaTemplate template,
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() |
String |
getFindByKeyQuery() |
String |
getKeyPropertyName() |
protected Class<?> |
getKeyType() |
org.springframework.orm.jpa.JpaTemplate |
getTemplate() |
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 |
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) |
void |
setTemplate(org.springframework.orm.jpa.JpaTemplate template) |
getCorrelationKey, getCorrelationKeyExpression, getEntityType, onError, processpublic JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.orm.jpa.JpaTemplate template,
org.apache.camel.Expression correlationKeyExpression,
ActivityRules activityRules,
Class<T> entitytype)
public JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.orm.jpa.JpaTemplate template,
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 org.springframework.orm.jpa.JpaTemplate getTemplate()
public void setTemplate(org.springframework.orm.jpa.JpaTemplate template)
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>Exceptionprotected Class<?> getKeyType()
getKeyType in class BamProcessorSupport<T>protected void setKeyProperty(T entity, Object key) throws Exception
Exceptionprotected void setProcessDefinitionProperty(T entity, ProcessDefinition processDefinition) throws Exception
Exceptionprotected 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>Exceptionprotected String createFindByKeyQuery()
Apache Camel