org.nuxeo.ecm.core.query.sql.model
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
dateParser
public static final org.joda.time.format.DateTimeFormatter dateParser
dateTimeParser
public static final org.joda.time.format.DateTimeFormatter dateTimeParser
dateFormatter
public static final org.joda.time.format.DateTimeFormatter dateFormatter
dateTimeFormatter
public static final org.joda.time.format.DateTimeFormatter dateTimeFormatter
value
public final org.joda.time.DateTime value
onlyDate
public final boolean onlyDate
DateLiteral
public DateLiteral(String value,
boolean onlyDate)
toCalendar
public Calendar toCalendar()
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
public static String dateTime(DateLiteral date)
date
public static String date(DateLiteral date)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.