org.apache.camel.bam.processor
Class JpaBamProcessorSupport<T>
java.lang.Object
org.apache.camel.bam.processor.BamProcessorSupport<T>
org.apache.camel.bam.processor.JpaBamProcessorSupport<T>
- All Implemented Interfaces:
- org.apache.camel.Processor
- Direct Known Subclasses:
- JpaBamProcessor
public class JpaBamProcessorSupport<T>
- extends BamProcessorSupport<T>
A base class for JPA based BAM which can use any entity to store the process instance information which
allows derived classes to specialise the process instance entity.
- Version:
- $Revision: $
Constructor Summary |
JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.orm.jpa.JpaTemplate template,
org.apache.camel.Expression<org.apache.camel.Exchange> correlationKeyExpression,
ActivityRules activityRules)
|
JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.orm.jpa.JpaTemplate template,
org.apache.camel.Expression<org.apache.camel.Exchange> correlationKeyExpression,
ActivityRules activityRules,
Class<T> entitytype)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaBamProcessorSupport
public JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.orm.jpa.JpaTemplate template,
org.apache.camel.Expression<org.apache.camel.Exchange> correlationKeyExpression,
ActivityRules activityRules,
Class<T> entitytype)
JpaBamProcessorSupport
public JpaBamProcessorSupport(org.springframework.transaction.support.TransactionTemplate transactionTemplate,
org.springframework.orm.jpa.JpaTemplate template,
org.apache.camel.Expression<org.apache.camel.Exchange> correlationKeyExpression,
ActivityRules activityRules)
getFindByKeyQuery
public String getFindByKeyQuery()
setFindByKeyQuery
public void setFindByKeyQuery(String findByKeyQuery)
getActivityRules
public ActivityRules getActivityRules()
setActivityRules
public void setActivityRules(ActivityRules activityRules)
getKeyPropertyName
public String getKeyPropertyName()
setKeyPropertyName
public void setKeyPropertyName(String keyPropertyName)
getTemplate
public org.springframework.orm.jpa.JpaTemplate getTemplate()
setTemplate
public void setTemplate(org.springframework.orm.jpa.JpaTemplate template)
loadEntity
protected T loadEntity(org.apache.camel.Exchange exchange,
Object key)
- Specified by:
loadEntity
in class BamProcessorSupport<T>
setKeyProperty
protected void setKeyProperty(T entity,
Object key)
- Sets the key property on the new entity
setProcessDefinitionProperty
protected void setProcessDefinitionProperty(T entity,
ProcessDefinition processDefinition)
createEntity
protected T createEntity(org.apache.camel.Exchange exchange,
Object key)
- Create a new instance of the entity for the given key
processEntity
protected void processEntity(org.apache.camel.Exchange exchange,
T entity)
throws Exception
- Specified by:
processEntity
in class BamProcessorSupport<T>
- Throws:
Exception
createFindByKeyQuery
protected String createFindByKeyQuery()
Copyright © 2007 Apache Software Foundation. All Rights Reserved.