org.dbunit.database
Class AbstractResultSetTable

java.lang.Object
  extended byorg.dbunit.dataset.AbstractTable
      extended byorg.dbunit.database.AbstractResultSetTable
All Implemented Interfaces:
IResultSetTable, ITable
Direct Known Subclasses:
ForwardOnlyResultSetTable, ScrollableResultSetTable

public abstract class AbstractResultSetTable
extends AbstractTable
implements IResultSetTable

Since:
Apr 10, 2003
Version:
$Revision: 1.7 $
Author:
Manuel Laflamme

Field Summary
protected  ITableMetaData _metaData
           
protected  java.sql.ResultSet _resultSet
           
 
Fields inherited from interface org.dbunit.dataset.ITable
NO_VALUE
 
Constructor Summary
AbstractResultSetTable(ITableMetaData metaData, IDatabaseConnection connection)
           
AbstractResultSetTable(ITableMetaData metaData, java.sql.ResultSet resultSet)
           
AbstractResultSetTable(java.lang.String tableName, java.lang.String selectStatement, IDatabaseConnection connection)
           
 
Method Summary
 void close()
           
 ITableMetaData getTableMetaData()
          Returns this table metadata.
 
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
 
Methods inherited from interface org.dbunit.dataset.ITable
getRowCount, getValue
 

Field Detail

_metaData

protected ITableMetaData _metaData

_resultSet

protected java.sql.ResultSet _resultSet
Constructor Detail

AbstractResultSetTable

public AbstractResultSetTable(ITableMetaData metaData,
                              java.sql.ResultSet resultSet)
                       throws java.sql.SQLException,
                              DataSetException

AbstractResultSetTable

public AbstractResultSetTable(java.lang.String tableName,
                              java.lang.String selectStatement,
                              IDatabaseConnection connection)
                       throws DataSetException,
                              java.sql.SQLException

AbstractResultSetTable

public AbstractResultSetTable(ITableMetaData metaData,
                              IDatabaseConnection connection)
                       throws DataSetException,
                              java.sql.SQLException
Method Detail

getTableMetaData

public ITableMetaData getTableMetaData()
Description copied from interface: ITable
Returns this table metadata.

Specified by:
getTableMetaData in interface ITable

close

public void close()
           throws DataSetException
Specified by:
close in interface IResultSetTable
Throws:
DataSetException


Copyright © 2002-2004 DbUnit.org. All Rights Reserved.