Class WurbletRelation

java.lang.Object
org.tentackle.wurblet.WurbletRelation

public class WurbletRelation extends Object
A relation within a WurbletArgument.
Describes an element of a path to an attribute or entity.
  • Constructor Details

    • WurbletRelation

      public WurbletRelation(Relation relation, String filter) throws org.wurbelizer.wurbel.WurbelException
      Creates a wurblet relation.
      Parameters:
      relation - the model relation
      filter - an optional filter string (only for load joins), null if none
      Throws:
      org.wurbelizer.wurbel.WurbelException - if parsing the filter failed
  • Method Details

    • getRelation

      public Relation getRelation()
      Gets the model relation.
      Returns:
      the relation
    • getFilter

      public String getFilter()
      Gets the optional filter string.
      Returns:
      the filter, null if none
    • getParser

      public WurbletArgumentParser getParser()
      Gets the optional parser that has been applied to the filter string.
      Returns:
      the parser, null if none
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object