org.apache.camel.example.etl
Class CustomerTransformer
java.lang.Object
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomerTransformer
public CustomerTransformer(org.springframework.orm.jpa.JpaTemplate template)
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.