kotkabeans
Class RSContainer

java.lang.Object
  |
  +--kotkabeans.RSContainer

public class RSContainer
extends java.lang.Object

Stores ResultSet's data. Database connection must be open for initializing this bean.


Field Summary
protected  java.util.ArrayList rows
          ResultSet's rows
 
Constructor Summary
RSContainer()
           
RSContainer(java.sql.ResultSet rs)
          Constructor that saves all ResultSet's data to a ArrayList.
 
Method Summary
 java.util.ArrayList getRows()
          Simple access method to get ResultSet's rows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rows

protected java.util.ArrayList rows
ResultSet's rows

Constructor Detail

RSContainer

public RSContainer()

RSContainer

public RSContainer(java.sql.ResultSet rs)
            throws java.lang.Exception
Constructor that saves all ResultSet's data to a ArrayList. Needs open database connection. One row in ResultSet is saved in HashMap where column's name is used as a key.

Parameters:
rs - ResultSet needs open database connection in bean that uses this one.
Method Detail

getRows

public java.util.ArrayList getRows()
Simple access method to get ResultSet's rows.

Returns:
ResultSet's rows in ArrayList containing HashMaps as rows