cst.loggingTool.persistenceLayer
Class DateFilterCondition

java.lang.Object
  extended by cst.loggingTool.persistenceLayer.DateFilterCondition

public class DateFilterCondition
extends java.lang.Object


 Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
      http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software 
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.  
 

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
DateFilterCondition(SessionProperties sessionProperties)
           
 
Method Summary
 boolean accept(java.util.Date date)
           
 void acceptAbsentValues()
           
 void acceptPresentValues()
           
 void acceptValuesBetweenDates(java.util.Date beginDate, java.util.Date endDate)
           
 void acceptValuesMatchingOperator(java.lang.String numericOperatorDisplayName, java.util.Date filterDate)
           
 java.util.Date getBeginDate()
           
 ComparisonOperator getComparionOperatorFromDisplayName(java.lang.String displayName)
           
 java.util.Date getEndDate()
           
 java.util.Date getFilterDate()
           
static java.lang.String[] getNumericOperatorNames()
           
 ComparisonOperator getOperator()
           
 void setBeginDate(java.util.Date beginDate)
           
 void setEndDate(java.util.Date endDate)
           
 void setFilterDate(java.util.Date filterDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFilterCondition

public DateFilterCondition(SessionProperties sessionProperties)
Method Detail

getFilterDate

public java.util.Date getFilterDate()

setFilterDate

public void setFilterDate(java.util.Date filterDate)

getBeginDate

public java.util.Date getBeginDate()

setBeginDate

public void setBeginDate(java.util.Date beginDate)

getEndDate

public java.util.Date getEndDate()

setEndDate

public void setEndDate(java.util.Date endDate)

getNumericOperatorNames

public static java.lang.String[] getNumericOperatorNames()

acceptValuesMatchingOperator

public void acceptValuesMatchingOperator(java.lang.String numericOperatorDisplayName,
                                         java.util.Date filterDate)

getComparionOperatorFromDisplayName

public ComparisonOperator getComparionOperatorFromDisplayName(java.lang.String displayName)

accept

public boolean accept(java.util.Date date)

getOperator

public ComparisonOperator getOperator()

acceptPresentValues

public void acceptPresentValues()

acceptAbsentValues

public void acceptAbsentValues()

acceptValuesBetweenDates

public void acceptValuesBetweenDates(java.util.Date beginDate,
                                     java.util.Date endDate)