public class Row extends Object
| Constructor and Description |
|---|
Row() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public Column getColumn(String columnName)
columnName - The name of the column, not nullpublic List<Column> getPrimaryKeyColumns()
public void addPrimaryKeyColumn(Column primaryKeyColumn)
primaryKeyColumn - The column to add, not nullUnitilsException - When a value for the same column was already addedpublic void addColumn(Column column)
column - The column to add, not nullUnitilsException - When a value for the same column was already addedpublic boolean hasDifferentPrimaryKeyColumns(Row actualRow)
actualRow - The row to compare with, not nullpublic RowDifference compare(Row actualRow)
actualRow - The row to compare with, not nullprotected 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 nullCopyright © 2017. All rights reserved.