org.apache.camel.example.etl
Class CustomerTransformer
java.lang.Object
org.apache.camel.example.etl.CustomerTransformer
@Converter
public class CustomerTransformer
- extends Object
A Message Transformer of an XML document to a Customer entity bean
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomerTransformer
public CustomerTransformer()
toCustomer
@Converter
public CustomerEntity toCustomer(PersonDocument doc,
org.apache.camel.Exchange exchange)
throws Exception
- A transformation method to convert a person document into a customer
entity
- Throws:
Exception
findCustomerByName
protected CustomerEntity findCustomerByName(org.springframework.orm.jpa.JpaTemplate template,
String user)
throws Exception
- Finds a customer for the given username
- Throws:
Exception
Apache CAMEL