org.outerj.daisy.query.model.functions
Class RelativeDateFunction

java.lang.Object
  extended by org.outerj.daisy.query.model.AbstractFunction
      extended by org.outerj.daisy.query.model.functions.RelativeDateTimeFunction
          extended by org.outerj.daisy.query.model.functions.RelativeDateFunction
All Implemented Interfaces:
Expression, Function, ValueExpr

public class RelativeDateFunction
extends RelativeDateTimeFunction


Field Summary
static java.lang.String NAME
           
 
Fields inherited from class org.outerj.daisy.query.model.AbstractFunction
params
 
Constructor Summary
RelativeDateFunction()
           
 
Method Summary
protected  java.util.Calendar calcDate(boolean start, int shift, int shiftUnit, int dayInShiftUnit)
           
 java.lang.String getFunctionName()
           
 QValueType getOutputValueType()
          Identifies the type of data returned from the ValueExpr.getOutputValue(org.outerj.daisy.repository.Document, org.outerj.daisy.repository.Version, EvaluationContext) method.
 QValueType getValueType()
          Returns the ValueType of this expression, or null if undetermined.
 
Methods inherited from class org.outerj.daisy.query.model.functions.RelativeDateTimeFunction
bindValueExpr, evaluate, evaluate, generateSqlValueExpr, getOutputValue, getTitle, prepare
 
Methods inherited from class org.outerj.daisy.query.model.AbstractFunction
addParam, bindPreConditions, canTestAppliesTo, getColumn, getExpression, getLine, getLocation, getParam, getSqlPreConditions, isAclAllowed, isMultiValue, isOutputOnly, isSymbolicIdentifier, setLocation, translateSymbolic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

RelativeDateFunction

public RelativeDateFunction()
Method Detail

getFunctionName

public java.lang.String getFunctionName()
Specified by:
getFunctionName in interface Function
Overrides:
getFunctionName in class RelativeDateTimeFunction

getValueType

public QValueType getValueType()
Description copied from interface: ValueExpr
Returns the ValueType of this expression, or null if undetermined.

Specified by:
getValueType in interface ValueExpr
Overrides:
getValueType in class RelativeDateTimeFunction

getOutputValueType

public QValueType getOutputValueType()
Description copied from interface: ValueExpr
Identifies the type of data returned from the ValueExpr.getOutputValue(org.outerj.daisy.repository.Document, org.outerj.daisy.repository.Version, EvaluationContext) method.

Specified by:
getOutputValueType in interface ValueExpr
Overrides:
getOutputValueType in class RelativeDateTimeFunction

calcDate

protected java.util.Calendar calcDate(boolean start,
                                      int shift,
                                      int shiftUnit,
                                      int dayInShiftUnit)
Overrides:
calcDate in class RelativeDateTimeFunction


Copyright © -2012 . All Rights Reserved.