Interface JobRaiseEvent

    • Method Detail

      • isEventAlreadyRaised

        boolean isEventAlreadyRaised()
        Get the value for EventAlreadyRaised. (Has the event already been raised for this Job? If so, then it does not need to be raised again.)
        Returns:
        the field
        Throws:
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getJob

        Job getJob()
        Get the Job.
        Returns:
        Job
        Throws:
        com.redwood.scheduler.api.exception.ObjectDeletedException - If this method is called when the object has been marked for deletion.
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - If this method is called when the object has been removed from it's session.
      • getEvent

        Event getEvent()
        Get the Event.
        Returns:
        Event
        Throws:
        com.redwood.scheduler.api.exception.ObjectDeletedException - If this method is called when the object has been marked for deletion.
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - If this method is called when the object has been removed from it's session.
      • getEventDefinition

        EventDefinition getEventDefinition()
        Get the EventDefinition.
        Returns:
        EventDefinition
        Throws:
        com.redwood.scheduler.api.exception.ObjectDeletedException - If this method is called when the object has been marked for deletion.
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - If this method is called when the object has been removed from it's session.
      • setEvent

        void setEvent​(Event newEvent)
        Set the value for Event. This value is optional.
        Parameters:
        newEvent - is the object to set Event to. If this is set, then the associated Job raised this instance of its associated EventDefinition.
      • setEventDefinition

        void setEventDefinition​(EventDefinition newEventDefinition)
        Set the value for EventDefinition. This value is mandatory.
        Parameters:
        newEventDefinition - is the object to set EventDefinition to. The event definition to raise for a job raise event. If this is null, then the object cannot be persisted.