Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.query.sql.model
Class DateLiteral

java.lang.Object
  extended by org.nuxeo.ecm.core.query.sql.model.Literal
      extended by 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
static org.joda.time.format.DateTimeFormatter dateFormatter
           
static org.joda.time.format.DateTimeFormatter dateParser
           
static org.joda.time.format.DateTimeFormatter dateTimeFormatter
           
static org.joda.time.format.DateTimeFormatter dateTimeParser
           
 boolean onlyDate
           
 org.joda.time.DateTime value
           
 
Constructor Summary
DateLiteral(String value, boolean onlyDate)
           
 
Method Summary
 void accept(IVisitor visitor)
          Accept the given visitor.
 String asString()
          Gets a string representation of the value.
static String date(DateLiteral date)
           
static String dateTime(DateLiteral date)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 Calendar toCalendar()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

DateLiteral

public DateLiteral(String value,
                   boolean onlyDate)
Method Detail

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)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.