if (frequency.getEnum() != null) { //for enum expression: create a trigger using calendar interval CalendarIntervalScheduleBuilder scheduleBuilder = CalendarIntervalScheduleBuilder.calendarIntervalSchedule() .withInterval(getTimeInterval(frequency.getEnum()), getTimeUnit(frequency.getEnum())) .withMisfireHandlingInstructionIgnoreMisfires(); trigger = TriggerBuilder.newTrigger().withIdentity(jobHandle, ALARM_SERVICE).startAt(start.toDate())
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { XFrequencyEnum theEnum; theEnum = this.getEnum(); strategy.appendField(locator, this, "_enum", buffer, theEnum); } { String theCronExpression; theCronExpression = this.getCronExpression(); strategy.appendField(locator, this, "cronExpression", buffer, theCronExpression); } { String theTimezone; theTimezone = this.getTimezone(); strategy.appendField(locator, this, "timezone", buffer, theTimezone); } return buffer; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { XFrequencyEnum theEnum; theEnum = this.getEnum(); strategy.appendField(locator, this, "_enum", buffer, theEnum); } { String theCronExpression; theCronExpression = this.getCronExpression(); strategy.appendField(locator, this, "cronExpression", buffer, theCronExpression); } { String theTimezone; theTimezone = this.getTimezone(); strategy.appendField(locator, this, "timezone", buffer, theTimezone); } return buffer; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XFrequencyEnum theEnum; theEnum = this.getEnum(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "_enum", theEnum), currentHashCode, theEnum); } { String theCronExpression; theCronExpression = this.getCronExpression(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cronExpression", theCronExpression), currentHashCode, theCronExpression); } { String theTimezone; theTimezone = this.getTimezone(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "timezone", theTimezone), currentHashCode, theTimezone); } return currentHashCode; }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { XFrequencyEnum theEnum; theEnum = this.getEnum(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "_enum", theEnum), currentHashCode, theEnum); } { String theCronExpression; theCronExpression = this.getCronExpression(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "cronExpression", theCronExpression), currentHashCode, theCronExpression); } { String theTimezone; theTimezone = this.getTimezone(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "timezone", theTimezone), currentHashCode, theTimezone); } return currentHashCode; }