Storing database values

Hello,

I have a java stored procedure which fetches sqlserver values and inserts into oracle db.

Currently I am storing values in vectors, but problem with vector is I have around 15 fields, so I have to create 15 vectors.

Could some provide some example of using some util classes like HashMap or hashtable. How I can store and retrieve values in the same order if I use HashMap or hashtable?

Thanks

[432 byte] By [ponica] at [2007-11-27 6:14:42]
# 1
Create a class to represent your 15 fields and put that in the list instead.
dcmintera at 2007-7-12 17:24:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
Could you provide some examples?Thanks
ponica at 2007-7-12 17:24:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
Why don't you take a stab at it first, and then I'll give you some pointers. Ok?
dcmintera at 2007-7-12 17:24:27 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...