Package de.hybris.platform.cronjob.model
Class TriggerModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.cronjob.model.TriggerModel
-
- All Implemented Interfaces:
java.io.Serializable
public class TriggerModel extends ItemModel
Generated model class for type Trigger first defined at extension processing.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_CRONJOBTRIGGERRELATIONGenerated relation code constant for relationCronJobTriggerRelationdefining source attributecronJobin extensionprocessing.static java.lang.String_JOBTRIGGERRELATIONGenerated relation code constant for relationJobTriggerRelationdefining source attributejobin extensionprocessing.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringACTIVATIONTIMEGenerated constant - Attribute key ofTrigger.activationTimeattribute defined at extensionprocessing.static java.lang.StringACTIVEGenerated constant - Attribute key ofTrigger.activeattribute defined at extensionprocessing.static java.lang.StringCRONEXPRESSIONGenerated constant - Attribute key ofTrigger.cronExpressionattribute defined at extensionprocessing.static java.lang.StringCRONJOBGenerated constant - Attribute key ofTrigger.cronJobattribute defined at extensionprocessing.static java.lang.StringDATERANGEGenerated constant - Attribute key ofTrigger.dateRangeattribute defined at extensionprocessing.static java.lang.StringDAYGenerated constant - Attribute key ofTrigger.dayattribute defined at extensionprocessing.static java.lang.StringDAYSOFWEEKGenerated constant - Attribute key ofTrigger.daysOfWeekattribute defined at extensionprocessing.static java.lang.StringHOURGenerated constant - Attribute key ofTrigger.hourattribute defined at extensionprocessing.static java.lang.StringJOBGenerated constant - Attribute key ofTrigger.jobattribute defined at extensionprocessing.static java.lang.StringMAXACCEPTABLEDELAYGenerated constant - Attribute key ofTrigger.maxAcceptableDelayattribute defined at extensionprocessing.static java.lang.StringMINUTEGenerated constant - Attribute key ofTrigger.minuteattribute defined at extensionprocessing.static java.lang.StringMONTHGenerated constant - Attribute key ofTrigger.monthattribute defined at extensionprocessing.static java.lang.StringRELATIVEGenerated constant - Attribute key ofTrigger.relativeattribute defined at extensionprocessing.static java.lang.StringSECONDGenerated constant - Attribute key ofTrigger.secondattribute defined at extensionprocessing.static java.lang.StringTIMETABLEGenerated constant - Attribute key ofTrigger.timeTableattribute defined at extensionprocessing.static java.lang.StringWEEKINTERVALGenerated constant - Attribute key ofTrigger.weekIntervalattribute defined at extensionprocessing.static java.lang.StringYEARGenerated constant - Attribute key ofTrigger.yearattribute defined at extensionprocessing.-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description TriggerModel()Generated constructor - Default constructor for generic creation.TriggerModel(CronJobModel _cronJob, JobModel _job, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersTriggerModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetActivationTime()Generated method - Getter of theTrigger.activationTimeattribute defined at extensionprocessing.java.lang.BooleangetActive()Generated method - Getter of theTrigger.activeattribute defined at extensionprocessing.java.lang.StringgetCronExpression()Generated method - Getter of theTrigger.cronExpressionattribute defined at extensionprocessing.CronJobModelgetCronJob()Generated method - Getter of theTrigger.cronJobattribute defined at extensionprocessing.StandardDateRangegetDateRange()Generated method - Getter of theTrigger.dateRangeattribute defined at extensionprocessing.java.lang.IntegergetDay()Generated method - Getter of theTrigger.dayattribute defined at extensionprocessing.java.util.List<DayOfWeek>getDaysOfWeek()Generated method - Getter of theTrigger.daysOfWeekattribute defined at extensionprocessing.java.lang.IntegergetHour()Generated method - Getter of theTrigger.hourattribute defined at extensionprocessing.JobModelgetJob()Generated method - Getter of theTrigger.jobattribute defined at extensionprocessing.java.lang.IntegergetMaxAcceptableDelay()Generated method - Getter of theTrigger.maxAcceptableDelayattribute defined at extensionprocessing.java.lang.IntegergetMinute()Generated method - Getter of theTrigger.minuteattribute defined at extensionprocessing.java.lang.IntegergetMonth()Generated method - Getter of theTrigger.monthattribute defined at extensionprocessing.java.lang.BooleangetRelative()Generated method - Getter of theTrigger.relativeattribute defined at extensionprocessing.java.lang.IntegergetSecond()Generated method - Getter of theTrigger.secondattribute defined at extensionprocessing.java.lang.StringgetTimeTable()Generated method - Getter of theTrigger.timeTabledynamic attribute defined at extensionprocessing.java.lang.IntegergetWeekInterval()Generated method - Getter of theTrigger.weekIntervalattribute defined at extensionprocessing.java.lang.IntegergetYear()Generated method - Getter of theTrigger.yearattribute defined at extensionprocessing.voidsetActivationTime(java.util.Date value)Generated method - Setter ofTrigger.activationTimeattribute defined at extensionprocessing.voidsetActive(java.lang.Boolean value)Generated method - Setter ofTrigger.activeattribute defined at extensionprocessing.voidsetCronExpression(java.lang.String value)Generated method - Setter ofTrigger.cronExpressionattribute defined at extensionprocessing.voidsetCronJob(CronJobModel value)Generated method - Initial setter ofTrigger.cronJobattribute defined at extensionprocessing.voidsetDateRange(StandardDateRange value)Generated method - Setter ofTrigger.dateRangeattribute defined at extensionprocessing.voidsetDay(java.lang.Integer value)Generated method - Setter ofTrigger.dayattribute defined at extensionprocessing.voidsetDaysOfWeek(java.util.List<DayOfWeek> value)Generated method - Setter ofTrigger.daysOfWeekattribute defined at extensionprocessing.voidsetHour(java.lang.Integer value)Generated method - Setter ofTrigger.hourattribute defined at extensionprocessing.voidsetJob(JobModel value)Generated method - Initial setter ofTrigger.jobattribute defined at extensionprocessing.voidsetMaxAcceptableDelay(java.lang.Integer value)Generated method - Setter ofTrigger.maxAcceptableDelayattribute defined at extensionprocessing.voidsetMinute(java.lang.Integer value)Generated method - Setter ofTrigger.minuteattribute defined at extensionprocessing.voidsetMonth(java.lang.Integer value)Generated method - Setter ofTrigger.monthattribute defined at extensionprocessing.voidsetRelative(java.lang.Boolean value)Generated method - Setter ofTrigger.relativeattribute defined at extensionprocessing.voidsetSecond(java.lang.Integer value)Generated method - Setter ofTrigger.secondattribute defined at extensionprocessing.voidsetWeekInterval(java.lang.Integer value)Generated method - Setter ofTrigger.weekIntervalattribute defined at extensionprocessing.voidsetYear(java.lang.Integer value)Generated method - Setter ofTrigger.yearattribute defined at extensionprocessing.-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_JOBTRIGGERRELATION
public static final java.lang.String _JOBTRIGGERRELATION
Generated relation code constant for relationJobTriggerRelationdefining source attributejobin extensionprocessing.- See Also:
- Constant Field Values
-
_CRONJOBTRIGGERRELATION
public static final java.lang.String _CRONJOBTRIGGERRELATION
Generated relation code constant for relationCronJobTriggerRelationdefining source attributecronJobin extensionprocessing.- See Also:
- Constant Field Values
-
ACTIVE
public static final java.lang.String ACTIVE
Generated constant - Attribute key ofTrigger.activeattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
SECOND
public static final java.lang.String SECOND
Generated constant - Attribute key ofTrigger.secondattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
MINUTE
public static final java.lang.String MINUTE
Generated constant - Attribute key ofTrigger.minuteattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
HOUR
public static final java.lang.String HOUR
Generated constant - Attribute key ofTrigger.hourattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
DAY
public static final java.lang.String DAY
Generated constant - Attribute key ofTrigger.dayattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
MONTH
public static final java.lang.String MONTH
Generated constant - Attribute key ofTrigger.monthattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
YEAR
public static final java.lang.String YEAR
Generated constant - Attribute key ofTrigger.yearattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
RELATIVE
public static final java.lang.String RELATIVE
Generated constant - Attribute key ofTrigger.relativeattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
DAYSOFWEEK
public static final java.lang.String DAYSOFWEEK
Generated constant - Attribute key ofTrigger.daysOfWeekattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
WEEKINTERVAL
public static final java.lang.String WEEKINTERVAL
Generated constant - Attribute key ofTrigger.weekIntervalattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
DATERANGE
public static final java.lang.String DATERANGE
Generated constant - Attribute key ofTrigger.dateRangeattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
ACTIVATIONTIME
public static final java.lang.String ACTIVATIONTIME
Generated constant - Attribute key ofTrigger.activationTimeattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
TIMETABLE
public static final java.lang.String TIMETABLE
Generated constant - Attribute key ofTrigger.timeTableattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
CRONEXPRESSION
public static final java.lang.String CRONEXPRESSION
Generated constant - Attribute key ofTrigger.cronExpressionattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
MAXACCEPTABLEDELAY
public static final java.lang.String MAXACCEPTABLEDELAY
Generated constant - Attribute key ofTrigger.maxAcceptableDelayattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
JOB
public static final java.lang.String JOB
Generated constant - Attribute key ofTrigger.jobattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
CRONJOB
public static final java.lang.String CRONJOB
Generated constant - Attribute key ofTrigger.cronJobattribute defined at extensionprocessing.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TriggerModel
public TriggerModel()
Generated constructor - Default constructor for generic creation.
-
TriggerModel
public TriggerModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
TriggerModel
@Deprecated(since="4.1.1", forRemoval=true) public TriggerModel(CronJobModel _cronJob, JobModel _job, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_cronJob- initial attribute declared by typeTriggerat extensionprocessing_job- initial attribute declared by typeTriggerat extensionprocessing_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getActivationTime
@Accessor(qualifier="activationTime", type=GETTER) public java.util.Date getActivationTime()
Generated method - Getter of theTrigger.activationTimeattribute defined at extensionprocessing.- Returns:
- the activationTime - next activation time
-
getActive
@Accessor(qualifier="active", type=GETTER) public java.lang.Boolean getActive()
Generated method - Getter of theTrigger.activeattribute defined at extensionprocessing.- Returns:
- the active
-
getCronExpression
@Accessor(qualifier="cronExpression", type=GETTER) public java.lang.String getCronExpression()
Generated method - Getter of theTrigger.cronExpressionattribute defined at extensionprocessing.- Returns:
- the cronExpression
-
getCronJob
@Accessor(qualifier="cronJob", type=GETTER) public CronJobModel getCronJob()
Generated method - Getter of theTrigger.cronJobattribute defined at extensionprocessing.- Returns:
- the cronJob - assigned cronjob
-
getDateRange
@Accessor(qualifier="dateRange", type=GETTER) public StandardDateRange getDateRange()
Generated method - Getter of theTrigger.dateRangeattribute defined at extensionprocessing.- Returns:
- the dateRange - date range the trigger is active
-
getDay
@Accessor(qualifier="day", type=GETTER) public java.lang.Integer getDay()
Generated method - Getter of theTrigger.dayattribute defined at extensionprocessing.- Returns:
- the day - time value day
-
getDaysOfWeek
@Accessor(qualifier="daysOfWeek", type=GETTER) public java.util.List<DayOfWeek> getDaysOfWeek()
Generated method - Getter of theTrigger.daysOfWeekattribute defined at extensionprocessing. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the daysOfWeek - days of week the trigger is active
-
getHour
@Accessor(qualifier="hour", type=GETTER) public java.lang.Integer getHour()
Generated method - Getter of theTrigger.hourattribute defined at extensionprocessing.- Returns:
- the hour - time value hour
-
getJob
@Accessor(qualifier="job", type=GETTER) public JobModel getJob()
Generated method - Getter of theTrigger.jobattribute defined at extensionprocessing.- Returns:
- the job - assigned job
-
getMaxAcceptableDelay
@Accessor(qualifier="maxAcceptableDelay", type=GETTER) public java.lang.Integer getMaxAcceptableDelay()
Generated method - Getter of theTrigger.maxAcceptableDelayattribute defined at extensionprocessing.- Returns:
- the maxAcceptableDelay - the maximum acceptable delay (s) in which the job can be triggered, after which it is ignored.
-
getMinute
@Accessor(qualifier="minute", type=GETTER) public java.lang.Integer getMinute()
Generated method - Getter of theTrigger.minuteattribute defined at extensionprocessing.- Returns:
- the minute - time value minute
-
getMonth
@Accessor(qualifier="month", type=GETTER) public java.lang.Integer getMonth()
Generated method - Getter of theTrigger.monthattribute defined at extensionprocessing.- Returns:
- the month - time value month
-
getRelative
@Accessor(qualifier="relative", type=GETTER) public java.lang.Boolean getRelative()
Generated method - Getter of theTrigger.relativeattribute defined at extensionprocessing.- Returns:
- the relative - time values are considered as relative values
-
getSecond
@Accessor(qualifier="second", type=GETTER) public java.lang.Integer getSecond()
Generated method - Getter of theTrigger.secondattribute defined at extensionprocessing.- Returns:
- the second - time value second
-
getTimeTable
@Accessor(qualifier="timeTable", type=GETTER) public java.lang.String getTimeTable()
Generated method - Getter of theTrigger.timeTabledynamic attribute defined at extensionprocessing.- Returns:
- the timeTable
-
getWeekInterval
@Accessor(qualifier="weekInterval", type=GETTER) public java.lang.Integer getWeekInterval()
Generated method - Getter of theTrigger.weekIntervalattribute defined at extensionprocessing.- Returns:
- the weekInterval - week interval for days of week
-
getYear
@Accessor(qualifier="year", type=GETTER) public java.lang.Integer getYear()
Generated method - Getter of theTrigger.yearattribute defined at extensionprocessing.- Returns:
- the year - time value year
-
setActivationTime
@Accessor(qualifier="activationTime", type=SETTER) public void setActivationTime(java.util.Date value)
Generated method - Setter ofTrigger.activationTimeattribute defined at extensionprocessing.- Parameters:
value- the activationTime - next activation time
-
setActive
@Accessor(qualifier="active", type=SETTER) public void setActive(java.lang.Boolean value)
Generated method - Setter ofTrigger.activeattribute defined at extensionprocessing.- Parameters:
value- the active
-
setCronExpression
@Accessor(qualifier="cronExpression", type=SETTER) public void setCronExpression(java.lang.String value)
Generated method - Setter ofTrigger.cronExpressionattribute defined at extensionprocessing.- Parameters:
value- the cronExpression
-
setCronJob
@Accessor(qualifier="cronJob", type=SETTER) public void setCronJob(CronJobModel value)
Generated method - Initial setter ofTrigger.cronJobattribute defined at extensionprocessing. Can only be used at creation of model - before first save.- Parameters:
value- the cronJob - assigned cronjob
-
setDateRange
@Accessor(qualifier="dateRange", type=SETTER) public void setDateRange(StandardDateRange value)
Generated method - Setter ofTrigger.dateRangeattribute defined at extensionprocessing.- Parameters:
value- the dateRange - date range the trigger is active
-
setDay
@Accessor(qualifier="day", type=SETTER) public void setDay(java.lang.Integer value)
Generated method - Setter ofTrigger.dayattribute defined at extensionprocessing.- Parameters:
value- the day - time value day
-
setDaysOfWeek
@Accessor(qualifier="daysOfWeek", type=SETTER) public void setDaysOfWeek(java.util.List<DayOfWeek> value)
Generated method - Setter ofTrigger.daysOfWeekattribute defined at extensionprocessing.- Parameters:
value- the daysOfWeek - days of week the trigger is active
-
setHour
@Accessor(qualifier="hour", type=SETTER) public void setHour(java.lang.Integer value)
Generated method - Setter ofTrigger.hourattribute defined at extensionprocessing.- Parameters:
value- the hour - time value hour
-
setJob
@Accessor(qualifier="job", type=SETTER) public void setJob(JobModel value)
Generated method - Initial setter ofTrigger.jobattribute defined at extensionprocessing. Can only be used at creation of model - before first save.- Parameters:
value- the job - assigned job
-
setMaxAcceptableDelay
@Accessor(qualifier="maxAcceptableDelay", type=SETTER) public void setMaxAcceptableDelay(java.lang.Integer value)
Generated method - Setter ofTrigger.maxAcceptableDelayattribute defined at extensionprocessing.- Parameters:
value- the maxAcceptableDelay - the maximum acceptable delay (s) in which the job can be triggered, after which it is ignored.
-
setMinute
@Accessor(qualifier="minute", type=SETTER) public void setMinute(java.lang.Integer value)
Generated method - Setter ofTrigger.minuteattribute defined at extensionprocessing.- Parameters:
value- the minute - time value minute
-
setMonth
@Accessor(qualifier="month", type=SETTER) public void setMonth(java.lang.Integer value)
Generated method - Setter ofTrigger.monthattribute defined at extensionprocessing.- Parameters:
value- the month - time value month
-
setRelative
@Accessor(qualifier="relative", type=SETTER) public void setRelative(java.lang.Boolean value)
Generated method - Setter ofTrigger.relativeattribute defined at extensionprocessing.- Parameters:
value- the relative - time values are considered as relative values
-
setSecond
@Accessor(qualifier="second", type=SETTER) public void setSecond(java.lang.Integer value)
Generated method - Setter ofTrigger.secondattribute defined at extensionprocessing.- Parameters:
value- the second - time value second
-
setWeekInterval
@Accessor(qualifier="weekInterval", type=SETTER) public void setWeekInterval(java.lang.Integer value)
Generated method - Setter ofTrigger.weekIntervalattribute defined at extensionprocessing.- Parameters:
value- the weekInterval - week interval for days of week
-
-