Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

resultSet with array

 
Shyam Hai
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SMSCConnectInfoBean bean = null;


if(resultSet.next()) {

bean = new SMSCConnectInfoBean(resultSet.getInt("SERVICE_NUMBER"), resultSet.getString("IP_ADDRESS"),
resultSet.getInt("PORT"), resultSet.getString("SYSTEMID"),
resultSet.getString("PASSWORD"), resultSet.getString("SYSTEMTYPE")}


I want to use SMSCConnectInfoBean bean[] = null;

how to use array inside the resultSet.next()

how can retrive
please give sample code ..
 
dariyoosh za
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ragavendran Sivaji Rao wrote:SMSCConnectInfoBean bean = null;
I want to use SMSCConnectInfoBean bean[] = null;

how to use array inside the resultSet.next()


Did you look API to see all available methods?


http://java.sun.com/javase/6/docs/api/java/sql/ResultSet.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic