org.dbunit.dataset
Class ColumnFilterTable
java.lang.Object
org.dbunit.dataset.ColumnFilterTable
- All Implemented Interfaces:
- ITable
public class ColumnFilterTable
- extends java.lang.Object
- implements ITable
A table that filters some columns out from the original table.
- Since:
- 2.4.0
- Version:
- $Revision: 850 $ $Date: 2008-10-31 19:39:59 +0100 (ven, 31 ott 2008) $
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author: gommma $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnFilterTable
public ColumnFilterTable(ITable table,
IColumnFilter columnFilter)
throws DataSetException
- Parameters:
table - The table from which some columns should be filteredcolumnFilter - The filter defining which columns to be filtered
- Throws:
DataSetException
getRowCount
public int getRowCount()
- Description copied from interface:
ITable
- Returns this table row count.
- Specified by:
getRowCount in interface ITable
getTableMetaData
public ITableMetaData getTableMetaData()
- Description copied from interface:
ITable
- Returns this table metadata.
- Specified by:
getTableMetaData in interface ITable
getValue
public java.lang.Object getValue(int row,
java.lang.String column)
throws DataSetException
- Description copied from interface:
ITable
- Returns this table value for the specified row and column.
- Specified by:
getValue in interface ITable
- Parameters:
row - The row index, starting with 0column - 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
getOriginalMetaData
public ITableMetaData getOriginalMetaData()
Copyright © 2002-2009. All Rights Reserved.