Interface Row

  • All Known Implementing Classes:
    GenericRow

    public interface Row
    A Row holds set of values. It is a similar to the database record where each value maps to a column in a table.
    • Method Detail

      • getValues

        List<Object> getValues()
        Returns the list of values this Row represents.
        Returns:
        list of values
      • getValue

        Object getValue​(int position)
        Returns a value at the given position.
        Parameters:
        position - position of a value in the row
        Returns:
        Java object
      • getValue

        Object getValue​(String fieldName)
        Returns a value that corresponds to field name.
        Parameters:
        fieldName - field name of a value in the row
        Returns:
        Java object
      • isNull

        default boolean isNull​(int position)
        Checks whether a value at a position is null.
        Parameters:
        position - position of a value in a row
        Returns:
        true if value at position is null; otherwise false
      • isNull

        default boolean isNull​(String fieldName)
        Checks whether a value for field name is null.
        Parameters:
        fieldName - field name of a value in a row
        Returns:
        true if value for field name is null; otherwise false
      • isEmpty

        default boolean isEmpty()
        Checks if the list of value empty for this Row.
        Returns:
        true if values list is empty; otherwise false
      • size

        default int size()
        Returns the number of values in this Row.
        Returns:
        number of values
      • hasFieldName

        boolean hasFieldName​(String fieldName)
        Checks if a column with a given name exists.
        Parameters:
        fieldName - field name in a row
        Returns:
        true if column with a name exists; otherwise false
      • getFieldNames

        List<String> getFieldNames()
        Returns list of field names.
        Returns:
        list of field names