my dog learned polymorphism*
The moose likes JDBC and the fly likes resultSet with array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "resultSet with array" Watch "resultSet with array" New topic
Author

resultSet with array

Shyam Hai
Ranch Hand

Joined: Feb 04, 2009
Posts: 68
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

Joined: Apr 12, 2009
Posts: 20
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: resultSet with array