|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.unitils.dbunit.dataset.Row
public class Row
A data set row
Constructor Summary | |
---|---|
Row()
|
Method Summary | |
---|---|
void |
addColumn(Column column)
Adds a column to the row. |
void |
addPrimaryKeyColumn(Column primaryKeyColumn)
Adds a column to the row. |
RowDifference |
compare(Row actualRow)
Compares the row with the given actual row. |
protected void |
compareColumns(List<Column> columns,
Row actualRow,
RowDifference result)
Compares the given columns with the columns of the actual row. |
Column |
getColumn(String columnName)
Gets the column for the given name. |
List<Column> |
getColumns()
|
List<Column> |
getPrimaryKeyColumns()
|
boolean |
hasDifferentPrimaryKeyColumns(Row actualRow)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Row()
Method Detail |
---|
public Column getColumn(String columnName)
columnName
- The name of the column, not null
public List<Column> getPrimaryKeyColumns()
public List<Column> getColumns()
public void addPrimaryKeyColumn(Column primaryKeyColumn)
primaryKeyColumn
- The column to add, not null
UnitilsException
- When a value for the same column was already addedpublic void addColumn(Column column)
column
- The column to add, not null
UnitilsException
- When a value for the same column was already addedpublic boolean hasDifferentPrimaryKeyColumns(Row actualRow)
actualRow
- The row to compare with, not null
public RowDifference compare(Row actualRow)
actualRow
- The row to compare with, not null
protected void compareColumns(List<Column> columns, Row actualRow, RowDifference result)
columns
- The columns to compare, not nullactualRow
- The columns to compare with, not nullresult
- The result to add the differences to, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |