Class GeneratedTrigger

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Direct Known Subclasses:
    Trigger

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

      • ACTIVE

        public static final java.lang.String ACTIVE
        Qualifier of the Trigger.active attribute
        See Also:
        Constant Field Values
      • SECOND

        public static final java.lang.String SECOND
        Qualifier of the Trigger.second attribute
        See Also:
        Constant Field Values
      • MINUTE

        public static final java.lang.String MINUTE
        Qualifier of the Trigger.minute attribute
        See Also:
        Constant Field Values
      • HOUR

        public static final java.lang.String HOUR
        Qualifier of the Trigger.hour attribute
        See Also:
        Constant Field Values
      • DAY

        public static final java.lang.String DAY
        Qualifier of the Trigger.day attribute
        See Also:
        Constant Field Values
      • MONTH

        public static final java.lang.String MONTH
        Qualifier of the Trigger.month attribute
        See Also:
        Constant Field Values
      • YEAR

        public static final java.lang.String YEAR
        Qualifier of the Trigger.year attribute
        See Also:
        Constant Field Values
      • RELATIVE

        public static final java.lang.String RELATIVE
        Qualifier of the Trigger.relative attribute
        See Also:
        Constant Field Values
      • DAYSOFWEEK

        public static final java.lang.String DAYSOFWEEK
        Qualifier of the Trigger.daysOfWeek attribute
        See Also:
        Constant Field Values
      • WEEKINTERVAL

        public static final java.lang.String WEEKINTERVAL
        Qualifier of the Trigger.weekInterval attribute
        See Also:
        Constant Field Values
      • DATERANGE

        public static final java.lang.String DATERANGE
        Qualifier of the Trigger.dateRange attribute
        See Also:
        Constant Field Values
      • ACTIVATIONTIME

        public static final java.lang.String ACTIVATIONTIME
        Qualifier of the Trigger.activationTime attribute
        See Also:
        Constant Field Values
      • CRONEXPRESSION

        public static final java.lang.String CRONEXPRESSION
        Qualifier of the Trigger.cronExpression attribute
        See Also:
        Constant Field Values
      • MAXACCEPTABLEDELAY

        public static final java.lang.String MAXACCEPTABLEDELAY
        Qualifier of the Trigger.maxAcceptableDelay attribute
        See Also:
        Constant Field Values
      • JOB

        public static final java.lang.String JOB
        Qualifier of the Trigger.job attribute
        See Also:
        Constant Field Values
      • CRONJOB

        public static final java.lang.String CRONJOB
        Qualifier of the Trigger.cronJob attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedTrigger

        public GeneratedTrigger()
    • Method Detail

      • getActivationTime

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

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

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

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

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

        public java.lang.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,
                              java.lang.Boolean value)
        Generated method - Setter of the Trigger.active attribute.
        Parameters:
        value - the active
      • setActive

        public void setActive​(java.lang.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 java.lang.String getCronExpression​(SessionContext ctx)
        Generated method - Getter of the Trigger.cronExpression attribute.
        Returns:
        the cronExpression
      • getCronExpression

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

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

        public void setCronExpression​(java.lang.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 java.lang.Integer getDay​(SessionContext ctx)
        Generated method - Getter of the Trigger.day attribute.
        Returns:
        the day - time value day
      • getDay

        public java.lang.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,
                           java.lang.Integer value)
        Generated method - Setter of the Trigger.day attribute.
        Parameters:
        value - the day - time value day
      • setDay

        public void setDay​(java.lang.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 java.util.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 java.util.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,
                                  java.util.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​(java.util.List<EnumerationValue> value)
        Generated method - Setter of the Trigger.daysOfWeek attribute.
        Parameters:
        value - the daysOfWeek - days of week the trigger is active
      • getHour

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

        public java.lang.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,
                            java.lang.Integer value)
        Generated method - Setter of the Trigger.hour attribute.
        Parameters:
        value - the hour - time value hour
      • setHour

        public void setHour​(java.lang.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 java.lang.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 java.lang.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,
                                          java.lang.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​(java.lang.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 java.lang.Integer getMinute​(SessionContext ctx)
        Generated method - Getter of the Trigger.minute attribute.
        Returns:
        the minute - time value minute
      • getMinute

        public java.lang.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,
                              java.lang.Integer value)
        Generated method - Setter of the Trigger.minute attribute.
        Parameters:
        value - the minute - time value minute
      • setMinute

        public void setMinute​(java.lang.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 java.lang.Integer getMonth​(SessionContext ctx)
        Generated method - Getter of the Trigger.month attribute.
        Returns:
        the month - time value month
      • getMonth

        public java.lang.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,
                             java.lang.Integer value)
        Generated method - Setter of the Trigger.month attribute.
        Parameters:
        value - the month - time value month
      • setMonth

        public void setMonth​(java.lang.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 java.lang.Boolean isRelative​(SessionContext ctx)
        Generated method - Getter of the Trigger.relative attribute.
        Returns:
        the relative - time values are considered as relative values
      • isRelative

        public java.lang.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,
                                java.lang.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​(java.lang.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 java.lang.Integer getSecond​(SessionContext ctx)
        Generated method - Getter of the Trigger.second attribute.
        Returns:
        the second - time value second
      • getSecond

        public java.lang.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,
                              java.lang.Integer value)
        Generated method - Setter of the Trigger.second attribute.
        Parameters:
        value - the second - time value second
      • setSecond

        public void setSecond​(java.lang.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 java.lang.Integer getWeekInterval​(SessionContext ctx)
        Generated method - Getter of the Trigger.weekInterval attribute.
        Returns:
        the weekInterval - week interval for days of week
      • getWeekInterval

        public java.lang.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,
                                    java.lang.Integer value)
        Generated method - Setter of the Trigger.weekInterval attribute.
        Parameters:
        value - the weekInterval - week interval for days of week
      • setWeekInterval

        public void setWeekInterval​(java.lang.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 java.lang.Integer getYear​(SessionContext ctx)
        Generated method - Getter of the Trigger.year attribute.
        Returns:
        the year - time value year
      • getYear

        public java.lang.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,
                            java.lang.Integer value)
        Generated method - Setter of the Trigger.year attribute.
        Parameters:
        value - the year - time value year
      • setYear

        public void setYear​(java.lang.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