org.apache.camel.bam
Class JpaBamProcessorSupport<T>
java.lang.Object
org.apache.camel.bam.BamProcessorSupport<T>
org.apache.camel.bam.JpaBamProcessorSupport<T>
- All Implemented Interfaces:
- org.apache.camel.Processor
- Direct Known Subclasses:
- JpaBamProcessor
public class JpaBamProcessorSupport<T>
- extends BamProcessorSupport<T>
- 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)
getActivity
public ActivityRules getActivity()
setActivity
public void setActivity(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
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.