Class RecurrenceInfo

java.lang.Object
org.apache.ofbiz.service.calendar.RecurrenceInfo

public class RecurrenceInfo extends Object
Recurrence Info Object
  • Constructor Details

  • Method Details

    • init

      public void init() throws RecurrenceInfoException
      Initializes the rules for this RecurrenceInfo object.
      Throws:
      RecurrenceInfoException
    • getID

      public String getID()
      Returns the primary key for this value object
    • getStartDate

      public Date getStartDate()
      Returns the startDate Date object.
    • getStartTime

      public long getStartTime()
      Returns the long value of the startDate.
    • getRecurrenceRuleIterator

      public Iterator<RecurrenceRule> getRecurrenceRuleIterator()
      Returns a recurrence rule iterator
    • getRecurrenceDateIterator

      public Iterator<Date> getRecurrenceDateIterator()
      Returns a sorted recurrence date iterator
    • getExceptionRuleIterator

      public Iterator<RecurrenceRule> getExceptionRuleIterator()
      Returns a exception recurrence iterator
    • getExceptionDateIterator

      public Iterator<Date> getExceptionDateIterator()
      Returns a sorted exception date iterator
    • getCurrentCount

      public long getCurrentCount()
      Returns the current count of this recurrence.
    • incrementCurrentCount

      public void incrementCurrentCount() throws GenericEntityException
      Increments the current count of this recurrence and updates the record.
      Throws:
      GenericEntityException
    • incrementCurrentCount

      public void incrementCurrentCount(boolean store) throws GenericEntityException
      Increments the current count of this recurrence.
      Throws:
      GenericEntityException
    • remove

      public void remove() throws RecurrenceInfoException
      Removes the recurrence from persistant store.
      Throws:
      RecurrenceInfoException
    • first

      public long first()
      Returns the first recurrence.
    • last

      public long last()
      Returns the estimated last recurrence.
    • next

      public long next()
      Returns the next recurrence from now.
    • next

      public long next(long fromTime)
      Returns the next recurrence from the specified time.
    • isValidCurrent

      public boolean isValidCurrent()
      Checks the current recurrence validity at the moment.
    • isValidCurrent

      public boolean isValidCurrent(long checkTime)
      Checks the current recurrence validity for checkTime.
    • primaryKey

      public String primaryKey()
      Primary key string.
      Returns:
      the string
    • makeInfo

      public static RecurrenceInfo makeInfo(Delegator delegator, long startTime, int frequency, int interval, int count) throws RecurrenceInfoException
      Throws:
      RecurrenceInfoException
    • makeInfo

      public static RecurrenceInfo makeInfo(Delegator delegator, long startTime, int frequency, int interval, long endTime) throws RecurrenceInfoException
      Throws:
      RecurrenceInfoException
    • makeInfo

      public static RecurrenceInfo makeInfo(Delegator delegator, long startTime, int frequency, int interval, int count, long endTime) throws RecurrenceInfoException
      Throws:
      RecurrenceInfoException
    • toTemporalExpression

      public static TemporalExpression toTemporalExpression(RecurrenceInfo info)
      Convert a RecurrenceInfo object to a TemporalExpression object.
      Parameters:
      info - A RecurrenceInfo instance
      Returns:
      A TemporalExpression instance