org.dbunit.database
Class ScrollableResultSetTable

java.lang.Object
  extended by org.dbunit.dataset.AbstractTable
      extended by org.dbunit.database.AbstractResultSetTable
          extended by org.dbunit.database.ScrollableResultSetTable
All Implemented Interfaces:
IResultSetTable, ITable

public class ScrollableResultSetTable
extends AbstractResultSetTable

Since:
Feb 17, 2002
Version:
$Revision: 398 $
Author:
Manuel Laflamme

Field Summary
 
Fields inherited from class org.dbunit.database.AbstractResultSetTable
_metaData, _resultSet
 
Fields inherited from interface org.dbunit.dataset.ITable
NO_VALUE
 
Constructor Summary
ScrollableResultSetTable(ITableMetaData metaData, IDatabaseConnection connection)
           
ScrollableResultSetTable(ITableMetaData metaData, java.sql.ResultSet resultSet)
           
ScrollableResultSetTable(java.lang.String tableName, java.lang.String selectStatement, IDatabaseConnection connection)
           
 
Method Summary
 int getRowCount()
          Returns this table row count.
 java.lang.Object getValue(int row, java.lang.String columnName)
          Returns this table value for the specified row and column.
 
Methods inherited from class org.dbunit.database.AbstractResultSetTable
close, getTableMetaData
 
Methods inherited from class org.dbunit.dataset.AbstractTable
assertValidColumn, assertValidRowIndex, assertValidRowIndex, getColumnIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScrollableResultSetTable

public ScrollableResultSetTable(ITableMetaData metaData,
                                java.sql.ResultSet resultSet)
                         throws java.sql.SQLException,
                                DataSetException
Throws:
java.sql.SQLException
DataSetException

ScrollableResultSetTable

public ScrollableResultSetTable(ITableMetaData metaData,
                                IDatabaseConnection connection)
                         throws DataSetException,
                                java.sql.SQLException
Throws:
DataSetException
java.sql.SQLException

ScrollableResultSetTable

public ScrollableResultSetTable(java.lang.String tableName,
                                java.lang.String selectStatement,
                                IDatabaseConnection connection)
                         throws DataSetException,
                                java.sql.SQLException
Throws:
DataSetException
java.sql.SQLException
Method Detail

getRowCount

public int getRowCount()
Description copied from interface: ITable
Returns this table row count.


getValue

public java.lang.Object getValue(int row,
                                 java.lang.String columnName)
                          throws DataSetException
Description copied from interface: ITable
Returns this table value for the specified row and column.

Throws:
NoSuchColumnException - if specfied column name do not exist in this table
RowOutOfBoundsException - if specfied row is less than zero or equals or greater than getRowCount
DataSetException


Copyright © 2002-2006. All Rights Reserved.