public class Row extends Object
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 |
---|---|
List<String> |
getColumnsNameList()
Returns the list of the columns name.
|
Object |
getColumnValue(int index)
Returns the value corresponding to the column index.
|
Object |
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<Object> |
getPksValueList()
Return the list of the primary keys value.
|
Object[] |
getPksValues()
Returns the primary keys value.
|
List<Object> |
getValuesList()
Returns the list of the values for the data from database.
|
boolean |
hasPksValuesEqualTo(Object[] 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 List<String> getPksNameList()
public List<Object> getPksValueList()
public List<String> getColumnsNameList()
public List<Object> getValuesList()
public Object[] getPksValues()
public boolean hasPksValuesEqualTo(Object[] 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 Object getColumnValue(int index)
index
- The indexpublic Object getColumnValue(String columnName)
Row
.columnName
- The column name (must be not null
).NullPointerException
- If the columnName
parameter is null
.Copyright © 2015 AssertJ. All Rights Reserved.