org.apache.camel.example.etl
Class CustomerTransformer

java.lang.Object
  extended by 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:

Constructor Summary
CustomerTransformer()
           
 
Method Summary
protected  CustomerEntity findCustomerByName(org.springframework.orm.jpa.JpaTemplate template, String user)
          Finds a customer for the given username
 CustomerEntity toCustomer(PersonDocument doc, Exchange exchange)
          A transformation method to convert a person document into a customer entity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerTransformer

public CustomerTransformer()
Method Detail

toCustomer

@Converter
public CustomerEntity toCustomer(PersonDocument doc,
                                           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