Kettle, the popular ETL tool, can be extended with user-supplied Java snippets.  Read an overview of Kettle (and a new book from Packt, "Pentaho Data Integration 4 Cookbook") at http://rickwagner.blogspot.com/2011/07/etl-what-is-it-how-it-can-be-useful-to.html.