As far as I know, what you are trying to do is not supported by Oracle's JDBC driver.
Instead of a record, you may be able to define some object type -- and that (I think) is supported. Again, the sample code available (from the above Web page) illustrates how to do this (if I remember correctly).
Good Luck, Avi.
All of life is a contant education - Eleanor Roosevelt. Tiny ad: