Class RowLink

java.lang.Object
com.inductiveautomation.snap.web.RowLink

public class RowLink extends Object
This object represents a relation between a source row and a destination row or rows.
  • Constructor Details

    • RowLink

      public RowLink(Row aRow, Property aRelation, Object aRemoteValue)
      Creates a new RowLink for a given row, a relation, a remote value and a remote row.
  • Method Details

    • getRow

      public Row getRow()
      Returns the row.
    • getSite

      public WebSite getSite()
      Returns the data site.
    • getRelation

      public Property getRelation()
      Returns the relation.
    • isToOne

      public boolean isToOne()
      Returns whether relation is to-one.
    • isToMany

      public boolean isToMany()
      Returns whether relation is to-many.
    • getRemoteValue

      @Nullable public Object getRemoteValue()
      Returns the remote value.
    • getRemoteValues

      @Nonnull public List getRemoteValues()
      Returns the remote values.
    • getRemoteValueOrValues

      @Nullable public Object getRemoteValueOrValues()
      Returns the remote value or values.
    • isRemoteRowSet

      public boolean isRemoteRowSet()
      Returns whether RemoteRow or RemoteRows is set.
    • getRemoteRow

      @Nullable public Row getRemoteRow()
      Returns the remote row. Can return null if getRemoteRowImpl() returns null
    • getRemoteRows

      @Nonnull public List<Row> getRemoteRows()
      Returns the remote rows.
    • getRemoteRowOrRows

      @Nullable public Object getRemoteRowOrRows()
      Returns the remote row or rows.
    • isResolved

      public boolean isResolved()
      Returns whether this RowLink can be resolved.
    • getUnresolvedRows

      @Nonnull public Row[] getUnresolvedRows()
      Returns any unresolved rows.
    • equals

      public boolean equals(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Standard hashcode implementation.
      Overrides:
      hashCode in class Object