org.dbunit.database
Class ForwardOnlyResultSetTable
java.lang.Object
org.dbunit.dataset.AbstractTable
org.dbunit.database.AbstractResultSetTable
org.dbunit.database.ForwardOnlyResultSetTable
- All Implemented Interfaces:
- IResultSetTable, ITable
public class ForwardOnlyResultSetTable
- extends AbstractResultSetTable
- Since:
- Apr 10, 2003
- Version:
- $Revision: 679 $
- Author:
- Manuel Laflamme
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForwardOnlyResultSetTable
public ForwardOnlyResultSetTable(ITableMetaData metaData,
java.sql.ResultSet resultSet)
throws java.sql.SQLException,
DataSetException
- Throws:
java.sql.SQLException
DataSetException
ForwardOnlyResultSetTable
public ForwardOnlyResultSetTable(ITableMetaData metaData,
IDatabaseConnection connection)
throws DataSetException,
java.sql.SQLException
- Throws:
DataSetException
java.sql.SQLException
ForwardOnlyResultSetTable
public ForwardOnlyResultSetTable(java.lang.String tableName,
java.lang.String selectStatement,
IDatabaseConnection connection)
throws DataSetException,
java.sql.SQLException
- Throws:
DataSetException
java.sql.SQLException
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.
- 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-2009. All Rights Reserved.