com.ibm.commerce.marketing.promotion.schedule

Class DateRangeSchedule

  • All Implemented Interfaces:
    Schedule, ScheduleLookAheadSupport, XMLizable, java.io.Serializable


    public class DateRangeSchedule
    extends TimeRangeSchedule
    This class is used for representing the Date Range of a promotion where any promotion can be active during a certain period of time defined by a start and end date. The end time could be set to a very large number e.g. 11:59:59 PM, December 31, 9999, which effectively makes the promotion active all the time after the start date.

    XML Snippet for DateRangeSchedule:

        <DateRange impl=
        "com.ibm.commerce.marketing.promotion.schedule.DateRangeSchedule">
            <Start inclusive="true">01-09-2003 13:15:30</Start>
            <End inclusive="true">31-12-2004 09:30:20</End>
        </DateRange>
     
     
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright
        See Also:
        Constant Field Values
    • Constructor Detail

      • DateRangeSchedule

        public DateRangeSchedule()
        Constructor
      • DateRangeSchedule

        public DateRangeSchedule(java.util.Date aStartTime,
                                 java.util.Date anEndTime)
        Constructor
        Parameters:
        aStartTime - start date inclusive
        anEndTime - end date inclusive
      • DateRangeSchedule

        public DateRangeSchedule(java.util.Date aStartTime,
                                 java.util.Date anEndTime,
                                 boolean anIncludeStart,
                                 boolean anIncludeEnd)
        Constructor
        Parameters:
        aStartTime - start date
        anEndTime - end date
        anIncludeStart - whether or not include the start date & time
        anIncludeEnd - whether or not include the end date & time