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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description boolean
onlyDate
ZonedDateTime
value
-
Constructor Summary
Constructors Constructor Description DateLiteral(String value, boolean onlyDate)
DateLiteral(ZonedDateTime value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
accept(IVisitor visitor)
Accept the given visitor.String
asString()
Gets a string representation of the value.static String
date(DateLiteral date)
Deprecated.since 11.1 as not usedstatic String
dateTime(DateLiteral date)
Deprecated.since 11.1 as not usedboolean
equals(Object obj)
int
hashCode()
Calendar
toCalendar()
Date
toSqlDate()
String
toString()
-
-
-
Field Detail
-
value
public final ZonedDateTime value
-
onlyDate
public final boolean onlyDate
-
-
Constructor Detail
-
DateLiteral
public DateLiteral(ZonedDateTime value)
-
DateLiteral
public DateLiteral(String value, boolean onlyDate)
-
-
Method Detail
-
toCalendar
public Calendar toCalendar()
-
toSqlDate
public Date toSqlDate()
-
asString
public String asString()
Description copied from class:Literal
Gets 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
-
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
-
-