Class JpaScheduledJob
- java.lang.Object
-
- com.broadleafcommerce.scheduledjob.provider.jpa.domain.JpaScheduledJob
-
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
,com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
,com.broadleafcommerce.data.tracking.core.Trackable
,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
,Serializable
@Entity public class JpaScheduledJob extends Object implements com.broadleafcommerce.data.tracking.core.TenantTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, Serializable
Persistent counter-part to aScheduledJob
for use with a JPA-supported datastore.- Author:
- Samarth Dhruva (samarthd)
- See Also:
ScheduledJob
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaScheduledJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
org.modelmapper.ModelMapper
fromMe()
String
getAuthor()
Class<?>
getBusinessDomainType()
String
getContextId()
String
getCron()
List<JpaScheduledJobDetail>
getDetails()
Optional<String>
getDisplay()
Instant
getLastExecuted()
String
getName()
Instant
getPreviousLastExecuted()
Instant
getTargetDate()
String
getTimingType()
com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking
getTracking()
String
getType()
Instant
getUpdated()
int
hashCode()
boolean
isEnabled()
boolean
isExecuted()
boolean
isManageInAdmin()
void
setAuthor(String author)
void
setContextId(String contextId)
void
setCron(String cron)
void
setDetails(List<JpaScheduledJobDetail> details)
void
setEnabled(boolean enabled)
void
setExecuted(boolean executed)
void
setLastExecuted(Instant lastExecuted)
void
setManageInAdmin(boolean manageInAdmin)
void
setName(String name)
void
setPreviousLastExecuted(Instant previousLastExecuted)
void
setTargetDate(Instant targetDate)
void
setTimingType(String timingType)
void
setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking)
void
setType(String type)
void
setUpdated(Instant updated)
org.modelmapper.ModelMapper
toMe()
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
-
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
-
-
-
-
Method Detail
-
fromMe
@NonNull public org.modelmapper.ModelMapper fromMe()
- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
@NonNull public org.modelmapper.ModelMapper toMe()
- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getBusinessDomainType
public Class<?> getBusinessDomainType()
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
public Optional<String> getDisplay()
- Specified by:
getDisplay
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getContextId
public String getContextId()
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getType
public String getType()
- See Also:
ScheduledJob.getType()
-
getTimingType
public String getTimingType()
- See Also:
ScheduledJob.getTimingType()
-
getName
public String getName()
- See Also:
ScheduledJob.getName()
-
isEnabled
public boolean isEnabled()
- See Also:
ScheduledJob.isEnabled()
-
isExecuted
public boolean isExecuted()
- See Also:
ScheduledJob.isExecuted()
-
getLastExecuted
public Instant getLastExecuted()
- See Also:
ScheduledJob.getLastExecuted()
-
getPreviousLastExecuted
public Instant getPreviousLastExecuted()
- See Also:
ScheduledJob.getPreviousLastExecuted()
-
getUpdated
public Instant getUpdated()
- See Also:
ScheduledJob.getUpdated()
-
getTargetDate
public Instant getTargetDate()
- See Also:
ScheduledJob.getTargetDate()
-
getCron
public String getCron()
- See Also:
ScheduledJob.getCron()
-
getDetails
public List<JpaScheduledJobDetail> getDetails()
- See Also:
ScheduledJob.getDetails()
-
isManageInAdmin
public boolean isManageInAdmin()
- See Also:
ScheduledJob.isManageInAdmin()
-
getAuthor
public String getAuthor()
- See Also:
ScheduledJob.getAuthor()
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking getTracking()
- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Returns:
- the
TenantJpaTracking
information for this - See Also:
TenantJpaTracking
-
setContextId
public void setContextId(String contextId)
- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setType
public void setType(String type)
- See Also:
ScheduledJob.getType()
-
setTimingType
public void setTimingType(String timingType)
- See Also:
ScheduledJob.getTimingType()
-
setName
public void setName(String name)
- See Also:
ScheduledJob.getName()
-
setEnabled
public void setEnabled(boolean enabled)
- See Also:
ScheduledJob.isEnabled()
-
setExecuted
public void setExecuted(boolean executed)
- See Also:
ScheduledJob.isExecuted()
-
setLastExecuted
public void setLastExecuted(Instant lastExecuted)
- See Also:
ScheduledJob.getLastExecuted()
-
setPreviousLastExecuted
public void setPreviousLastExecuted(Instant previousLastExecuted)
- See Also:
ScheduledJob.getPreviousLastExecuted()
-
setUpdated
public void setUpdated(Instant updated)
- See Also:
ScheduledJob.getUpdated()
-
setTargetDate
public void setTargetDate(Instant targetDate)
- See Also:
ScheduledJob.getTargetDate()
-
setCron
public void setCron(String cron)
- See Also:
ScheduledJob.getCron()
-
setDetails
public void setDetails(List<JpaScheduledJobDetail> details)
- See Also:
ScheduledJob.getDetails()
-
setManageInAdmin
public void setManageInAdmin(boolean manageInAdmin)
- See Also:
ScheduledJob.isManageInAdmin()
-
setAuthor
public void setAuthor(String author)
- See Also:
ScheduledJob.getAuthor()
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking tracking)
- Specified by:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.TenantJpaTracking>
- Parameters:
tracking
- theTenantJpaTracking
information for this- See Also:
TenantJpaTracking
-
canEqual
protected boolean canEqual(Object other)
-
-