Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ResultSetMetaData problem, not returning data

 
Jeff Foflygen
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

My problem is that my class is not returning data at all and I'm stuck. the culprit I think is my in the class. I need help getting past it. I am posting the whole code so everyone knows what I'm looking at. the prepared statement is being filled out based on a value entered from another class. it works, I have verified, this class allows for people to see a Spreadsheet like view of the query instead of specific data. please, any ideas or help would be awesome! thanks!
 
Albareto McKenzie
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you are suppouse to return an String[] and you are returning null, you get the data from the DB, store it in a ResultSet but you don´t manipulate that ResultSet, so if you just return null... what do you expect the aplication to do?

You should manipulate the data of the rs and stored it somehow in a String[]
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!