Can I get all the column values from aResultSet with one method?

  • Thread starter =?ISO-8859-1?Q?Thomas_Gagn=E9?=
  • Start date
?

=?ISO-8859-1?Q?Thomas_Gagn=E9?=

I want to wrap a single row of data inside an object. Rather than
findout out how many columns there are, creating an array, then moving
each individually I was hoping I could get all of them at once as an
Object[]. Is that possible? I'm not seeing a method that looks like
what I need.
 
L

Lee Fesperman

=?ISO-8859-1?Q?Thomas_Gagn=E9?= said:
I want to wrap a single row of data inside an object. Rather than
findout out how many columns there are, creating an array, then moving
each individually I was hoping I could get all of them at once as an
Object[]. Is that possible? I'm not seeing a method that looks like
what I need.

Assuming you're talking about JDBC, java.sql.ResultSet doesn't include a method with
that functionality. Just do it yourself as you outlined.

When posting to usenet, don't include information in the Subject that is not in the
text.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top