public class Row extends Object implements DbElement, WithColumnLetterCase, WithPrimaryKeyLetterCase
AbstractDbData.
A row can have many columns with a value in front of this column.
Note : you never instantiate directly this class. You will get an object of this class from a Table or a
Request by using AbstractDbData.getRow(int) or with the list by using
AbstractDbData.getRowsList().
| Modifier and Type | Method and Description |
|---|---|
LetterCase |
getColumnLetterCase()
Returns the letter case of the columns.
|
List<String> |
getColumnsNameList()
Returns the list of the columns name.
|
Value |
getColumnValue(int index)
Returns the value corresponding to the column index.
|
Value |
getColumnValue(String columnName)
Returns the value corresponding to the column name in the
Row. |
List<String> |
getPksNameList()
Return the list of the primary keys name.
|
List<Value> |
getPksValueList()
Return the list of the primary keys value.
|
Value[] |
getPksValues()
Returns the primary keys value.
|
LetterCase |
getPrimaryKeyLetterCase()
Returns the letter case of the primary keys.
|
List<Value> |
getValuesList()
Returns the list of the values for the data from database.
|
boolean |
hasPksValuesEqualTo(Value[] pksValues)
Returns if the values of the primary keys are equal to the values in parameter.
|
boolean |
hasValues(Row row)
Returns if the values are equal to the value of the
Row in parameter. |
public LetterCase getColumnLetterCase()
getColumnLetterCase in interface WithColumnLetterCasepublic LetterCase getPrimaryKeyLetterCase()
getPrimaryKeyLetterCase in interface WithPrimaryKeyLetterCasepublic List<String> getPksNameList()
public List<Value> getPksValueList()
public List<String> getColumnsNameList()
public List<Value> getValuesList()
public Value[] getPksValues()
public boolean hasPksValuesEqualTo(Value[] pksValues)
pksValues - The values of the primary keys to compare.public boolean hasValues(Row row)
Row in parameter.row - The Row to compare with.public Value getColumnValue(int index)
index - The indexpublic Value getColumnValue(String columnName)
Row.columnName - The column name (must be not null).NullPointerException - If the columnName parameter is null.Copyright © 2015–2017 AssertJ. All rights reserved.