org.apache.camel.example.etl
Class CustomerTransformer

java.lang.Object
  extended by org.apache.camel.example.etl.CustomerTransformer

public class CustomerTransformer
extends Object

A Message Transformer of an XML document to a Customer entity bean

Version:
$Revision: 1.1 $

Constructor Summary
CustomerTransformer(org.springframework.orm.jpa.JpaTemplate template)
           
 
Method Summary
protected  CustomerEntity findCustomerByName(String user)
          Finds a customer for the given username, or creates and inserts a new one
 CustomerEntity toCustomer(PersonDocument doc)
          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(org.springframework.orm.jpa.JpaTemplate template)
Method Detail

toCustomer

public CustomerEntity toCustomer(PersonDocument doc)
A transformation method to convert a person document into a customer entity


findCustomerByName

protected CustomerEntity findCustomerByName(String user)
Finds a customer for the given username, or creates and inserts a new one



Copyright © 2007 Apache Software Foundation. All Rights Reserved.