Class GeneratedTrigger

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
Trigger

public abstract class GeneratedTrigger extends GenericItem
Generated class for type Trigger.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedTrigger

      public GeneratedTrigger()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • getActivationTime

      public Date getActivationTime(SessionContext ctx)
      Generated method - Getter of the Trigger.activationTime attribute.
      Returns:
      the activationTime - next activation time
    • getActivationTime

      public Date getActivationTime()
      Generated method - Getter of the Trigger.activationTime attribute.
      Returns:
      the activationTime - next activation time
    • setActivationTime

      public void setActivationTime(SessionContext ctx, Date value)
      Generated method - Setter of the Trigger.activationTime attribute.
      Parameters:
      value - the activationTime - next activation time
    • setActivationTime

      public void setActivationTime(Date value)
      Generated method - Setter of the Trigger.activationTime attribute.
      Parameters:
      value - the activationTime - next activation time
    • isActive

      public Boolean isActive(SessionContext ctx)
      Generated method - Getter of the Trigger.active attribute.
      Returns:
      the active
    • isActive

      public Boolean isActive()
      Generated method - Getter of the Trigger.active attribute.
      Returns:
      the active
    • isActiveAsPrimitive

      public boolean isActiveAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Trigger.active attribute.
      Returns:
      the active
    • isActiveAsPrimitive

      public boolean isActiveAsPrimitive()
      Generated method - Getter of the Trigger.active attribute.
      Returns:
      the active
    • setActive

      public void setActive(SessionContext ctx, Boolean value)
      Generated method - Setter of the Trigger.active attribute.
      Parameters:
      value - the active
    • setActive

      public void setActive(Boolean value)
      Generated method - Setter of the Trigger.active attribute.
      Parameters:
      value - the active
    • setActive

      public void setActive(SessionContext ctx, boolean value)
      Generated method - Setter of the Trigger.active attribute.
      Parameters:
      value - the active
    • setActive

      public void setActive(boolean value)
      Generated method - Setter of the Trigger.active attribute.
      Parameters:
      value - the active
    • createItem

      protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
      Description copied from class: Item
      Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

      In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
      Sn example:

      
       public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
       ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
       man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
       // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
       SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
       super.getNonInitialAttributes( ctx, allAttributes );
       // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
      
       
      Overrides:
      createItem in class GenericItem
      Parameters:
      ctx - the current session context which this item is created within
      type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
      Returns:
      the new item instance
      Throws:
      JaloBusinessException - indicates an error during creation - any changes will be rollbacked
    • getCronExpression

      public String getCronExpression(SessionContext ctx)
      Generated method - Getter of the Trigger.cronExpression attribute.
      Returns:
      the cronExpression
    • getCronExpression

      public String getCronExpression()
      Generated method - Getter of the Trigger.cronExpression attribute.
      Returns:
      the cronExpression
    • setCronExpression

      public void setCronExpression(SessionContext ctx, String value)
      Generated method - Setter of the Trigger.cronExpression attribute.
      Parameters:
      value - the cronExpression
    • setCronExpression

      public void setCronExpression(String value)
      Generated method - Setter of the Trigger.cronExpression attribute.
      Parameters:
      value - the cronExpression
    • getCronJob

      public CronJob getCronJob(SessionContext ctx)
      Generated method - Getter of the Trigger.cronJob attribute.
      Returns:
      the cronJob - assigned cronjob
    • getCronJob

      public CronJob getCronJob()
      Generated method - Getter of the Trigger.cronJob attribute.
      Returns:
      the cronJob - assigned cronjob
    • setCronJob

      protected void setCronJob(SessionContext ctx, CronJob value)
      Generated method - Setter of the Trigger.cronJob attribute.
      Parameters:
      value - the cronJob - assigned cronjob
    • setCronJob

      protected void setCronJob(CronJob value)
      Generated method - Setter of the Trigger.cronJob attribute.
      Parameters:
      value - the cronJob - assigned cronjob
    • getDateRange

      public StandardDateRange getDateRange(SessionContext ctx)
      Generated method - Getter of the Trigger.dateRange attribute.
      Returns:
      the dateRange - date range the trigger is active
    • getDateRange

      public StandardDateRange getDateRange()
      Generated method - Getter of the Trigger.dateRange attribute.
      Returns:
      the dateRange - date range the trigger is active
    • setDateRange

      public void setDateRange(SessionContext ctx, StandardDateRange value)
      Generated method - Setter of the Trigger.dateRange attribute.
      Parameters:
      value - the dateRange - date range the trigger is active
    • setDateRange

      public void setDateRange(StandardDateRange value)
      Generated method - Setter of the Trigger.dateRange attribute.
      Parameters:
      value - the dateRange - date range the trigger is active
    • getDay

      public Integer getDay(SessionContext ctx)
      Generated method - Getter of the Trigger.day attribute.
      Returns:
      the day - time value day
    • getDay

      public Integer getDay()
      Generated method - Getter of the Trigger.day attribute.
      Returns:
      the day - time value day
    • getDayAsPrimitive

      public int getDayAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Trigger.day attribute.
      Returns:
      the day - time value day
    • getDayAsPrimitive

      public int getDayAsPrimitive()
      Generated method - Getter of the Trigger.day attribute.
      Returns:
      the day - time value day
    • setDay

      public void setDay(SessionContext ctx, Integer value)
      Generated method - Setter of the Trigger.day attribute.
      Parameters:
      value - the day - time value day
    • setDay

      public void setDay(Integer value)
      Generated method - Setter of the Trigger.day attribute.
      Parameters:
      value - the day - time value day
    • setDay

      public void setDay(SessionContext ctx, int value)
      Generated method - Setter of the Trigger.day attribute.
      Parameters:
      value - the day - time value day
    • setDay

      public void setDay(int value)
      Generated method - Setter of the Trigger.day attribute.
      Parameters:
      value - the day - time value day
    • getDaysOfWeek

      public List<EnumerationValue> getDaysOfWeek(SessionContext ctx)
      Generated method - Getter of the Trigger.daysOfWeek attribute.
      Returns:
      the daysOfWeek - days of week the trigger is active
    • getDaysOfWeek

      public List<EnumerationValue> getDaysOfWeek()
      Generated method - Getter of the Trigger.daysOfWeek attribute.
      Returns:
      the daysOfWeek - days of week the trigger is active
    • setDaysOfWeek

      public void setDaysOfWeek(SessionContext ctx, List<EnumerationValue> value)
      Generated method - Setter of the Trigger.daysOfWeek attribute.
      Parameters:
      value - the daysOfWeek - days of week the trigger is active
    • setDaysOfWeek

      public void setDaysOfWeek(List<EnumerationValue> value)
      Generated method - Setter of the Trigger.daysOfWeek attribute.
      Parameters:
      value - the daysOfWeek - days of week the trigger is active
    • getHour

      public Integer getHour(SessionContext ctx)
      Generated method - Getter of the Trigger.hour attribute.
      Returns:
      the hour - time value hour
    • getHour

      public Integer getHour()
      Generated method - Getter of the Trigger.hour attribute.
      Returns:
      the hour - time value hour
    • getHourAsPrimitive

      public int getHourAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Trigger.hour attribute.
      Returns:
      the hour - time value hour
    • getHourAsPrimitive

      public int getHourAsPrimitive()
      Generated method - Getter of the Trigger.hour attribute.
      Returns:
      the hour - time value hour
    • setHour

      public void setHour(SessionContext ctx, Integer value)
      Generated method - Setter of the Trigger.hour attribute.
      Parameters:
      value - the hour - time value hour
    • setHour

      public void setHour(Integer value)
      Generated method - Setter of the Trigger.hour attribute.
      Parameters:
      value - the hour - time value hour
    • setHour

      public void setHour(SessionContext ctx, int value)
      Generated method - Setter of the Trigger.hour attribute.
      Parameters:
      value - the hour - time value hour
    • setHour

      public void setHour(int value)
      Generated method - Setter of the Trigger.hour attribute.
      Parameters:
      value - the hour - time value hour
    • getJob

      public Job getJob(SessionContext ctx)
      Generated method - Getter of the Trigger.job attribute.
      Returns:
      the job - assigned job
    • getJob

      public Job getJob()
      Generated method - Getter of the Trigger.job attribute.
      Returns:
      the job - assigned job
    • setJob

      protected void setJob(SessionContext ctx, Job value)
      Generated method - Setter of the Trigger.job attribute.
      Parameters:
      value - the job - assigned job
    • setJob

      protected void setJob(Job value)
      Generated method - Setter of the Trigger.job attribute.
      Parameters:
      value - the job - assigned job
    • getMaxAcceptableDelay

      public Integer getMaxAcceptableDelay(SessionContext ctx)
      Generated method - Getter of the Trigger.maxAcceptableDelay attribute.
      Returns:
      the maxAcceptableDelay - the maximum acceptable delay (s) in which the job can be triggered, after which it is ignored.
    • getMaxAcceptableDelay

      public Integer getMaxAcceptableDelay()
      Generated method - Getter of the Trigger.maxAcceptableDelay attribute.
      Returns:
      the maxAcceptableDelay - the maximum acceptable delay (s) in which the job can be triggered, after which it is ignored.
    • getMaxAcceptableDelayAsPrimitive

      public int getMaxAcceptableDelayAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Trigger.maxAcceptableDelay attribute.
      Returns:
      the maxAcceptableDelay - the maximum acceptable delay (s) in which the job can be triggered, after which it is ignored.
    • getMaxAcceptableDelayAsPrimitive

      public int getMaxAcceptableDelayAsPrimitive()
      Generated method - Getter of the Trigger.maxAcceptableDelay attribute.
      Returns:
      the maxAcceptableDelay - the maximum acceptable delay (s) in which the job can be triggered, after which it is ignored.
    • setMaxAcceptableDelay

      public void setMaxAcceptableDelay(SessionContext ctx, Integer value)
      Generated method - Setter of the Trigger.maxAcceptableDelay attribute.
      Parameters:
      value - the maxAcceptableDelay - the maximum acceptable delay (s) in which the job can be triggered, after which it is ignored.
    • setMaxAcceptableDelay

      public void setMaxAcceptableDelay(Integer value)
      Generated method - Setter of the Trigger.maxAcceptableDelay attribute.
      Parameters:
      value - the maxAcceptableDelay - the maximum acceptable delay (s) in which the job can be triggered, after which it is ignored.
    • setMaxAcceptableDelay

      public void setMaxAcceptableDelay(SessionContext ctx, int value)
      Generated method - Setter of the Trigger.maxAcceptableDelay attribute.
      Parameters:
      value - the maxAcceptableDelay - the maximum acceptable delay (s) in which the job can be triggered, after which it is ignored.
    • setMaxAcceptableDelay

      public void setMaxAcceptableDelay(int value)
      Generated method - Setter of the Trigger.maxAcceptableDelay attribute.
      Parameters:
      value - the maxAcceptableDelay - the maximum acceptable delay (s) in which the job can be triggered, after which it is ignored.
    • getMinute

      public Integer getMinute(SessionContext ctx)
      Generated method - Getter of the Trigger.minute attribute.
      Returns:
      the minute - time value minute
    • getMinute

      public Integer getMinute()
      Generated method - Getter of the Trigger.minute attribute.
      Returns:
      the minute - time value minute
    • getMinuteAsPrimitive

      public int getMinuteAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Trigger.minute attribute.
      Returns:
      the minute - time value minute
    • getMinuteAsPrimitive

      public int getMinuteAsPrimitive()
      Generated method - Getter of the Trigger.minute attribute.
      Returns:
      the minute - time value minute
    • setMinute

      public void setMinute(SessionContext ctx, Integer value)
      Generated method - Setter of the Trigger.minute attribute.
      Parameters:
      value - the minute - time value minute
    • setMinute

      public void setMinute(Integer value)
      Generated method - Setter of the Trigger.minute attribute.
      Parameters:
      value - the minute - time value minute
    • setMinute

      public void setMinute(SessionContext ctx, int value)
      Generated method - Setter of the Trigger.minute attribute.
      Parameters:
      value - the minute - time value minute
    • setMinute

      public void setMinute(int value)
      Generated method - Setter of the Trigger.minute attribute.
      Parameters:
      value - the minute - time value minute
    • getMonth

      public Integer getMonth(SessionContext ctx)
      Generated method - Getter of the Trigger.month attribute.
      Returns:
      the month - time value month
    • getMonth

      public Integer getMonth()
      Generated method - Getter of the Trigger.month attribute.
      Returns:
      the month - time value month
    • getMonthAsPrimitive

      public int getMonthAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Trigger.month attribute.
      Returns:
      the month - time value month
    • getMonthAsPrimitive

      public int getMonthAsPrimitive()
      Generated method - Getter of the Trigger.month attribute.
      Returns:
      the month - time value month
    • setMonth

      public void setMonth(SessionContext ctx, Integer value)
      Generated method - Setter of the Trigger.month attribute.
      Parameters:
      value - the month - time value month
    • setMonth

      public void setMonth(Integer value)
      Generated method - Setter of the Trigger.month attribute.
      Parameters:
      value - the month - time value month
    • setMonth

      public void setMonth(SessionContext ctx, int value)
      Generated method - Setter of the Trigger.month attribute.
      Parameters:
      value - the month - time value month
    • setMonth

      public void setMonth(int value)
      Generated method - Setter of the Trigger.month attribute.
      Parameters:
      value - the month - time value month
    • isRelative

      public Boolean isRelative(SessionContext ctx)
      Generated method - Getter of the Trigger.relative attribute.
      Returns:
      the relative - time values are considered as relative values
    • isRelative

      public Boolean isRelative()
      Generated method - Getter of the Trigger.relative attribute.
      Returns:
      the relative - time values are considered as relative values
    • isRelativeAsPrimitive

      public boolean isRelativeAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Trigger.relative attribute.
      Returns:
      the relative - time values are considered as relative values
    • isRelativeAsPrimitive

      public boolean isRelativeAsPrimitive()
      Generated method - Getter of the Trigger.relative attribute.
      Returns:
      the relative - time values are considered as relative values
    • setRelative

      public void setRelative(SessionContext ctx, Boolean value)
      Generated method - Setter of the Trigger.relative attribute.
      Parameters:
      value - the relative - time values are considered as relative values
    • setRelative

      public void setRelative(Boolean value)
      Generated method - Setter of the Trigger.relative attribute.
      Parameters:
      value - the relative - time values are considered as relative values
    • setRelative

      public void setRelative(SessionContext ctx, boolean value)
      Generated method - Setter of the Trigger.relative attribute.
      Parameters:
      value - the relative - time values are considered as relative values
    • setRelative

      public void setRelative(boolean value)
      Generated method - Setter of the Trigger.relative attribute.
      Parameters:
      value - the relative - time values are considered as relative values
    • getSecond

      public Integer getSecond(SessionContext ctx)
      Generated method - Getter of the Trigger.second attribute.
      Returns:
      the second - time value second
    • getSecond

      public Integer getSecond()
      Generated method - Getter of the Trigger.second attribute.
      Returns:
      the second - time value second
    • getSecondAsPrimitive

      public int getSecondAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Trigger.second attribute.
      Returns:
      the second - time value second
    • getSecondAsPrimitive

      public int getSecondAsPrimitive()
      Generated method - Getter of the Trigger.second attribute.
      Returns:
      the second - time value second
    • setSecond

      public void setSecond(SessionContext ctx, Integer value)
      Generated method - Setter of the Trigger.second attribute.
      Parameters:
      value - the second - time value second
    • setSecond

      public void setSecond(Integer value)
      Generated method - Setter of the Trigger.second attribute.
      Parameters:
      value - the second - time value second
    • setSecond

      public void setSecond(SessionContext ctx, int value)
      Generated method - Setter of the Trigger.second attribute.
      Parameters:
      value - the second - time value second
    • setSecond

      public void setSecond(int value)
      Generated method - Setter of the Trigger.second attribute.
      Parameters:
      value - the second - time value second
    • getWeekInterval

      public Integer getWeekInterval(SessionContext ctx)
      Generated method - Getter of the Trigger.weekInterval attribute.
      Returns:
      the weekInterval - week interval for days of week
    • getWeekInterval

      public Integer getWeekInterval()
      Generated method - Getter of the Trigger.weekInterval attribute.
      Returns:
      the weekInterval - week interval for days of week
    • getWeekIntervalAsPrimitive

      public int getWeekIntervalAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Trigger.weekInterval attribute.
      Returns:
      the weekInterval - week interval for days of week
    • getWeekIntervalAsPrimitive

      public int getWeekIntervalAsPrimitive()
      Generated method - Getter of the Trigger.weekInterval attribute.
      Returns:
      the weekInterval - week interval for days of week
    • setWeekInterval

      public void setWeekInterval(SessionContext ctx, Integer value)
      Generated method - Setter of the Trigger.weekInterval attribute.
      Parameters:
      value - the weekInterval - week interval for days of week
    • setWeekInterval

      public void setWeekInterval(Integer value)
      Generated method - Setter of the Trigger.weekInterval attribute.
      Parameters:
      value - the weekInterval - week interval for days of week
    • setWeekInterval

      public void setWeekInterval(SessionContext ctx, int value)
      Generated method - Setter of the Trigger.weekInterval attribute.
      Parameters:
      value - the weekInterval - week interval for days of week
    • setWeekInterval

      public void setWeekInterval(int value)
      Generated method - Setter of the Trigger.weekInterval attribute.
      Parameters:
      value - the weekInterval - week interval for days of week
    • getYear

      public Integer getYear(SessionContext ctx)
      Generated method - Getter of the Trigger.year attribute.
      Returns:
      the year - time value year
    • getYear

      public Integer getYear()
      Generated method - Getter of the Trigger.year attribute.
      Returns:
      the year - time value year
    • getYearAsPrimitive

      public int getYearAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Trigger.year attribute.
      Returns:
      the year - time value year
    • getYearAsPrimitive

      public int getYearAsPrimitive()
      Generated method - Getter of the Trigger.year attribute.
      Returns:
      the year - time value year
    • setYear

      public void setYear(SessionContext ctx, Integer value)
      Generated method - Setter of the Trigger.year attribute.
      Parameters:
      value - the year - time value year
    • setYear

      public void setYear(Integer value)
      Generated method - Setter of the Trigger.year attribute.
      Parameters:
      value - the year - time value year
    • setYear

      public void setYear(SessionContext ctx, int value)
      Generated method - Setter of the Trigger.year attribute.
      Parameters:
      value - the year - time value year
    • setYear

      public void setYear(int value)
      Generated method - Setter of the Trigger.year attribute.
      Parameters:
      value - the year - time value year