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 booleanonlyDateZonedDateTimevalue
-
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 voidaccept(IVisitor visitor)Accept the given visitor.StringasString()Gets a string representation of the value.static Stringdate(DateLiteral date)Deprecated.since 11.1 as not usedstatic StringdateTime(DateLiteral date)Deprecated.since 11.1 as not usedbooleanequals(Object obj)inthashCode()CalendartoCalendar()DatetoSqlDate()StringtoString()
-
-
-
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:LiteralGets a string representation of the value.
-
accept
public void accept(IVisitor visitor)
Description copied from interface:ASTNodeAccept 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
-
-