com.seag.qm
Class ResultTable

java.lang.Object
  |
  +--com.seag.qm.ResultTable
All Implemented Interfaces:
java.io.Serializable

public class ResultTable
extends java.lang.Object
implements java.io.Serializable

This Object stores the result, given in the, from the DB returned ResultSet

See Also:
Serialized Form

Constructor Summary
ResultTable()
          Create new empty ResultTable
ResultTable(java.sql.ResultSet rs, ResultParameter[] rp)
          Creat new ResultTable
 
Method Summary
 int getColCount()
          Getting number of Columns
 java.lang.Object getColumnLabel(int col)
          Getting Metadata
 java.lang.Object getColumnName(int col)
          Getting Metadata
 int getRowCount()
          Getting number of Rows
 java.lang.Object getValueAt(int row, int col)
          Getting a specific value
protected  void reinit(java.sql.ResultSet rs, ResultParameter[] rp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultTable

public ResultTable(java.sql.ResultSet rs,
                   ResultParameter[] rp)
            throws java.sql.SQLException
Creat new ResultTable
Parameters:
rs - ResutlSet from JDBC
rp - ResultParameter[] specified by the user of the QueryManager
Throws:
java.sql.SQLException - if the creation fails

ResultTable

public ResultTable()
Create new empty ResultTable
Method Detail

reinit

protected void reinit(java.sql.ResultSet rs,
                      ResultParameter[] rp)
               throws java.sql.SQLException

getColumnLabel

public java.lang.Object getColumnLabel(int col)
Getting Metadata
Parameters:
col - ResultTable - Column
Returns:
Object ColumnLabel

getColumnName

public java.lang.Object getColumnName(int col)
Getting Metadata
Parameters:
col - ResultTable - Column
Returns:
Object ColumnName

getRowCount

public int getRowCount()
Getting number of Rows
Returns:
int number of rows

getColCount

public int getColCount()
Getting number of Columns
Returns:
int number of columns

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Getting a specific value
Parameters:
row - rownumber
col - columnnumber
Returns:
Object result value