Class TableCell

  • All Implemented Interfaces:
    ResultCell

    public final class TableCell
    extends java.lang.Object
    implements ResultCell
    A representation of a table cell.
    Author:
    Alex Kalderimis
    • Constructor Detail

      • TableCell

        public TableCell​(FastPathObject fpo,
                         Path view,
                         boolean isKeyField)
        Construct a table cell.
        Parameters:
        fpo - The object backing this cell.
        view - The path this cell is a projection of.
        isKeyField - Whether this cell is a key field.
      • TableCell

        public TableCell​(Path view)
        Construct a table cell for a null value.
        Parameters:
        view - The path this cell is a projection of.
    • Method Detail

      • isKeyField

        public boolean isKeyField()
        Specified by:
        isKeyField in interface ResultCell
        Returns:
        whether this cell represents a key field
      • getField

        public java.lang.Object getField()
        Specified by:
        getField in interface ResultCell
        Returns:
        the object this cell projects
      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface ResultCell
        Returns:
        the type of the value of this cell.
      • getPath

        public Path getPath()
        Specified by:
        getPath in interface ResultCell
        Returns:
        the path of this cell
      • getId

        public java.lang.Integer getId()
        Specified by:
        getId in interface ResultCell
        Returns:
        the id of the object of this cell.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object