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: DateSearchQueryParameter.java 32667 2010-03-13 00:37:06Z gjoseph $

Field Summary
static java.lang.String AFTER
          sql constraint "AFTER"
static java.lang.String BEFORE
          sql constraint "BEFORE"
static java.lang.String IS
          sql constraint "IS"
static java.lang.String TODAY
          sql constraint "TODAY"
 
Fields inherited from class info.magnolia.cms.gui.query.SearchQueryParameter
constraint, name, value
 
Constructor Summary
DateSearchQueryParameter(java.lang.String name, java.util.Date value, java.lang.String constraint)
           
 
Method Summary
 java.text.SimpleDateFormat getDateFormat()
          get date format
 java.util.Date getValue()
          get value
 void setDateFormat(java.text.SimpleDateFormat format)
          set date format
 void setValue(java.util.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 java.lang.String TODAY
sql constraint "TODAY"

See Also:
Constant Field Values

AFTER

public static final java.lang.String AFTER
sql constraint "AFTER"

See Also:
Constant Field Values

BEFORE

public static final java.lang.String BEFORE
sql constraint "BEFORE"

See Also:
Constant Field Values

IS

public static final java.lang.String IS
sql constraint "IS"

See Also:
Constant Field Values
Constructor Detail

DateSearchQueryParameter

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

getValue

public java.util.Date getValue()
get value

Returns:
Date

setValue

public void setValue(java.util.Date value)
set value

Parameters:
value - Date

setDateFormat

public void setDateFormat(java.text.SimpleDateFormat format)
set date format

Parameters:
format -

getDateFormat

public java.text.SimpleDateFormat getDateFormat()
get date format

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


Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.