Class DatasetTimeGenerator


  • public class DatasetTimeGenerator
    extends DatasetGenerator
    Represents a date facet for filtering.
    Author:
    kevinvandevelde at atmire.com Date: 23-dec-2008 Time: 9:44:57
    • Method Detail

      • setDateInterval

        public void setDateInterval​(String dateType,
                                    String start,
                                    String end)
        Sets the date interval. For example if you wish to see the data from today to six months ago give the following parameters: datatype = "month" start = "-6" end = "+1" // the +1 indicates this month also
        Parameters:
        dateType - type can be days, months, years
        start - the start of the interval
        end - the end of the interval
      • getStartDate

        public String getStartDate()
      • setStartDate

        public void setStartDate​(String startDate)
      • getEndDate

        public String getEndDate()
      • setEndDate

        public void setEndDate​(String endDate)
      • getDateType

        public String getDateType()
      • getActualStartDate

        public Date getActualStartDate()
      • setActualStartDate

        public void setActualStartDate​(Date actualStartDate)
      • getActualEndDate

        public Date getActualEndDate()
      • setActualEndDate

        public void setActualEndDate​(Date actualEndDate)
      • setDateType

        public void setDateType​(String dateType)
      • getType

        public String getType()
      • setType

        public void setType​(String type)