> I guess you just need to read the data from the SQL statements, populate
> the object and marshal them.
Yes. And to populate objects you need to create them, and that's when
you need to call ObjectFactory methods.
ObjectFactory of = new ObjectFactory();
Foo foo = of.createFoo();
foo.setProperty1(abc);
foo.setProperty2(def);
...
--
Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>