Interface IDfRelativeDateExpression

All Superinterfaces:
IDfAttrExpression, IDfExpression, IDfSimpleAttrExpression

public interface IDfRelativeDateExpression extends IDfSimpleAttrExpression
Defines an expression on a date that is relative to the actual date when the query is executed. For example, a date greater than (<actual date> - 3 months).
The inherited method getValue() returns a dynamic date that is relative to the actual date when the query is executed.
See Also:
  • Method Details

    • getRelativeTime

      int getRelativeTime()
      Gets the number of time units for the relative date expression.
      These time units are added to the current date to compute the real expression date. For example, if search operator=GREATER_THAN, relative time=-3, time unit=MONTH, then the expression defines a constraint on a date that must be greater than the current date minus 3 months. In this example, this method would return the value -3.
      Returns:
      The number of time units for the relative date expression.
    • getTimeUnit

      int getTimeUnit()
      Gets the time unit for the relative date expression.
      For example, if searchOpCode=GREATER_THAN, relativeTime=-3, timeUnit=MONTH, then the expression defines a constraint on a date that must be greater than the current date minus 3 months. In this example, this method would return the value MONTH.
      Returns:
      The time unit for the relative date expression.