Class TableRow
java.lang.Object
org.silverpeas.components.mydb.model.TableRow
A row in a table in a data source. A row is a tuple in which each field matches a given column of
the requested table. Hence, the field name in the row is the column name and its value the value
in the column.
- Author:
- mmoquillon
-
Constructor Summary
ConstructorsConstructorDescriptionTableRow(Map<String, TableFieldValue> fields) Constructs the table row from the specified dictionary of fields. -
Method Summary
Modifier and TypeMethodDescriptiongetCopy()Gets all the fields of this table row.getFieldValue(String field) Gets the value of the specified field in this table row.
-
Constructor Details
-
TableRow
Constructs the table row from the specified dictionary of fields.- Parameters:
fields- aMapofTableFieldValueinstances, each of them mapped to the name of a table's column.
-
-
Method Details
-
getFields
Gets all the fields of this table row.- Returns:
- a
Mapbetween a field name and its value.
-
getFieldValue
Gets the value of the specified field in this table row.- Parameters:
field- the name of the field.- Returns:
- the value of the asked field.
-
getCopy
-