org.dbunit.database
Class ScrollableResultSetTable
java.lang.Object
org.dbunit.dataset.AbstractTable
org.dbunit.database.AbstractResultSetTable
org.dbunit.database.ScrollableResultSetTable
- All Implemented Interfaces:
- IResultSetTable, ITable
public class ScrollableResultSetTable
- extends AbstractResultSetTable
- Since:
- Feb 17, 2002
- Version:
- $Revision: 679 $
- Author:
- Manuel Laflamme
Method Summary |
int |
getRowCount()
Returns this table row count. |
Object |
getValue(int row,
String columnName)
Returns this table value for the specified row and column. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScrollableResultSetTable
public ScrollableResultSetTable(ITableMetaData metaData,
ResultSet resultSet)
throws SQLException,
DataSetException
- Throws:
SQLException
DataSetException
ScrollableResultSetTable
public ScrollableResultSetTable(ITableMetaData metaData,
IDatabaseConnection connection)
throws DataSetException,
SQLException
- Throws:
DataSetException
SQLException
ScrollableResultSetTable
public ScrollableResultSetTable(String tableName,
String selectStatement,
IDatabaseConnection connection)
throws DataSetException,
SQLException
- Throws:
DataSetException
SQLException
getRowCount
public int getRowCount()
- Description copied from interface:
ITable
- Returns this table row count.
getValue
public Object getValue(int row,
String columnName)
throws DataSetException
- Description copied from interface:
ITable
- Returns this table value for the specified row and column.
- Parameters:
row
- The row index, starting with 0columnName
- The name of the column
- Returns:
- The value
- Throws:
NoSuchColumnException
- if specified column name do not exist in
this table
RowOutOfBoundsException
- if specified row is less than zero or
equals or greater than getRowCount
DataSetException
Copyright © 2002-2012. All Rights Reserved.