Class Reference

java.lang.Object
org.nuxeo.ecm.core.query.sql.model.Reference
All Implemented Interfaces:
Serializable, ASTNode, Operand
Direct Known Subclasses:
PathReference

public class Reference extends Object implements Operand
A named reference to a variable (this can be a field or table).

Can also include a cast.

See Also:
  • Field Details

    • name

      public final String name
    • originalName

      public String originalName
    • cast

      public final String cast
    • esHint

      public final EsHint esHint
    • info

      public Object info
      Arbitrary info associated to the reference.
  • Constructor Details

    • Reference

      public Reference(String name)
    • Reference

      public Reference(String name, String cast)
      Since:
      5.6
    • Reference

      public Reference(String name, String cast, EsHint hint)
      Since:
      9.10
    • Reference

      public Reference(Reference other, String cast)
      Since:
      5.6
    • Reference

      public Reference(Reference other, EsHint hint)
      Since:
      7.3
  • Method Details

    • accept

      public void accept(IVisitor visitor)
      Description copied from interface: ASTNode
      Accept the given visitor.
      Specified by:
      accept in interface ASTNode
      Parameters:
      visitor - the AST node visitor
    • setInfo

      public void setInfo(Object info)
    • getInfo

      public Object getInfo()
    • toString

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isPathReference

      public boolean isPathReference()