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:
- java.io.Serializable, ASTNode, Operand
public class DateLiteral
- extends Literal
- Author:
- Florent Guillaume
- See Also:
- Serialized Form
Constructor Summary |
DateLiteral(java.lang.String value,
boolean onlyDate)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
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(java.lang.String value,
boolean onlyDate)
toCalendar
public java.util.Calendar toCalendar()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
asString
public java.lang.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(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
dateTime
public static java.lang.String dateTime(DateLiteral date)
date
public static java.lang.String date(DateLiteral date)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.