Class Literal


public final class Literal extends Factor
  • Field Details

  • Method Details

    • from

      public static Literal from(Object value, boolean asParameter)
      Creates literal factor from the given value. The value may be null. If argument asParameter is true, the value is not set in the query directly, but rather by using a parameter.
    • from

      public static Literal from(Object value)
      Creates a literal factor from the given value. The value may be null. The value is not put in the query directly, a parameter is used to do that.
    • getValue

      public Object getValue()
    • create

      public Node create(TypeManager typeManager, EntityModel entityModel)
      Description copied from class: Condition
      Creates a new node representing this condition.
      Specified by:
      create in class Condition
      Parameters:
      typeManager - the type manager as it might be required for creating nodes
      entityModel - the entity model which is the root of the query
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object