info.magnolia.cms.gui.query
Class DateSearchQueryParameter

java.lang.Object
  extended by info.magnolia.cms.gui.query.AbstractExpressionImpl
      extended by info.magnolia.cms.gui.query.SearchQueryParameter
          extended by info.magnolia.cms.gui.query.DateSearchQueryParameter
All Implemented Interfaces:
SearchQueryExpression

public class DateSearchQueryParameter
extends SearchQueryParameter

Author:
Sameer Charles $Id$

Field Summary
static String AFTER
          sql constraint "AFTER"
static String BEFORE
          sql constraint "BEFORE"
static String IS
          sql constraint "IS"
static String TODAY
          sql constraint "TODAY"
 
Fields inherited from class info.magnolia.cms.gui.query.SearchQueryParameter
constraint, name, value
 
Constructor Summary
DateSearchQueryParameter(String name, Date value, String constraint)
           
 
Method Summary
 SimpleDateFormat getDateFormat()
          get date format
 Date getValue()
          get value
 void setDateFormat(SimpleDateFormat format)
          set date format
 void setValue(Date value)
          set value
 
Methods inherited from class info.magnolia.cms.gui.query.SearchQueryParameter
getConstraint, getName, setConstraint, setName
 
Methods inherited from class info.magnolia.cms.gui.query.AbstractExpressionImpl
getLeft, getRight, hasLeft, hasRight, setleft, setRight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.cms.gui.query.SearchQueryExpression
toString
 

Field Detail

TODAY

public static final String TODAY
sql constraint "TODAY"

See Also:
Constant Field Values

AFTER

public static final String AFTER
sql constraint "AFTER"

See Also:
Constant Field Values

BEFORE

public static final String BEFORE
sql constraint "BEFORE"

See Also:
Constant Field Values

IS

public static final String IS
sql constraint "IS"

See Also:
Constant Field Values
Constructor Detail

DateSearchQueryParameter

public DateSearchQueryParameter(String name,
                                Date value,
                                String constraint)
Parameters:
name - of this parameter
value -
constraint - check SearchQueryParameter constants
Method Detail

getValue

public Date getValue()
get value

Returns:
Date

setValue

public void setValue(Date value)
set value

Parameters:
value - Date

setDateFormat

public void setDateFormat(SimpleDateFormat format)
set date format

Parameters:
format -

getDateFormat

public SimpleDateFormat getDateFormat()
get date format

Returns:
date format, either the one which has been set or default "yyyy-MM-dd"


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.