Package org.assertj.db.type
Class Row
java.lang.Object
org.assertj.db.type.Row
- All Implemented Interfaces:
DbElement,WithColumnLetterCase,WithPrimaryKeyLetterCase
public class Row
extends Object
implements DbElement, WithColumnLetterCase, WithPrimaryKeyLetterCase
Row in a
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().
- Author:
- Régis Pouiller
-
Method Summary
Modifier and TypeMethodDescriptionReturns the letter case of the columns.Returns the list of the columns name.getColumnValue(int index) Returns the value corresponding to the column index.getColumnValue(String columnName) Returns the value corresponding to the column name in theRow.Return the list of the primary keys name.Return the list of the primary keys value.Value[]Returns the primary keys value.Returns the letter case of the primary keys.Returns the list of the values for the data from database.booleanhasPksValuesEqualTo(Value[] pksValues) Returns if the values of the primary keys are equal to the values in parameter.booleanReturns if the values are equal to the value of theRowin parameter.
-
Method Details
-
getColumnLetterCase
Returns the letter case of the columns.- Specified by:
getColumnLetterCasein interfaceWithColumnLetterCase- Returns:
- The letter case of the columns.
-
getPrimaryKeyLetterCase
Returns the letter case of the primary keys.- Specified by:
getPrimaryKeyLetterCasein interfaceWithPrimaryKeyLetterCase- Returns:
- The letter case of the primary keys.
-
getPksNameList
Return the list of the primary keys name.- Returns:
- The list of the primary keys name.
-
getPksValueList
Return the list of the primary keys value.- Returns:
- The list of the primary keys value.
-
getColumnsNameList
Returns the list of the columns name.- Returns:
- The list of the columns name.
-
getValuesList
Returns the list of the values for the data from database.- Returns:
- The list of the values.
-
getPksValues
Returns the primary keys value.- Returns:
- The primary keys value.
-
hasPksValuesEqualTo
Returns if the values of the primary keys are equal to the values in parameter.- Parameters:
pksValues- The values of the primary keys to compare.- Returns:
- If the values of the primary keys are equal.
-
hasValues
Returns if the values are equal to the value of theRowin parameter.- Parameters:
row- TheRowto compare with.- Returns:
- If the values are equal.
-
getColumnValue
Returns the value corresponding to the column index.- Parameters:
index- The index- Returns:
- The value
-
getColumnValue
Returns the value corresponding to the column name in theRow.- Parameters:
columnName- The column name (must be notnull).- Returns:
- The value
- Throws:
NullPointerException- If thecolumnNameparameter isnull.
-