Class DateLiteral

java.lang.Object
org.nuxeo.ecm.core.query.sql.model.Literal
org.nuxeo.ecm.core.query.sql.model.DateLiteral
All Implemented Interfaces:
Serializable, ASTNode, Operand

public class DateLiteral extends Literal
Author:
Florent Guillaume
See Also:
  • Field Details

    • value

      public final ZonedDateTime value
    • onlyDate

      public final boolean onlyDate
  • Constructor Details

    • DateLiteral

      public DateLiteral(ZonedDateTime value)
    • DateLiteral

      public DateLiteral(String value, boolean onlyDate)
  • Method Details

    • toCalendar

      public Calendar toCalendar()
    • toSqlDate

      public Date toSqlDate()
    • toString

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

      public String asString()
      Description copied from class: Literal
      Gets a string representation of the value.
      Specified by:
      asString in class Literal
      Returns:
      a string representation of the value
    • accept

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

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

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

      @Deprecated public static String dateTime(DateLiteral date)
      Deprecated.
      since 11.1 as not used
    • date

      @Deprecated public static String date(DateLiteral date)
      Deprecated.
      since 11.1 as not used