Package com.redwood.scheduler.api.model
Interface WrappedJob
- 
- All Superinterfaces:
- Root,- SchedulerEntity,- SchedulerEntityComp
 
 public interface WrappedJob extends Root Abstract base-class for objects that wrap a job internally. Some objects act as a facade that wrap an internal job. This base-class provides pass-through attributes for such objects.
- 
- 
Field Summary- 
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntityACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetComment()Get the value for Comment.StringgetDescription()Get the value for Description.IsolationGroupgetIsolationGroup()Get the IsolationGroup.JobgetJob()Get the value for Job.DateTimeZonegetRequestedStartTime()Get the value for RequestedStartTime.JobgetWrappedJob()Get the WrappedJob.JobDefinitiongetWrappedJobDefinition()Get the value for WrappedJobDefinition.voidsetComment(String newComment)Set the value for Comment.voidsetDescription(String newDescription)Set the value for Description.voidsetIsolationGroup(IsolationGroup newIsolationGroup)Set the value for IsolationGroup.voidsetRequestedStartTime(DateTimeZone newRequestedStartTime)Set the value for RequestedStartTime.voidsetWrappedJobDefinition(JobDefinition newWrappedJobDefinition)Set the value for WrappedJobDefinition.- 
Methods inherited from interface com.redwood.scheduler.api.model.RootgetCreationTime, getLastModificationTime, getLastModifierSubject
 - 
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntitycanPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
 
- 
 
- 
- 
- 
Method Detail- 
getCommentString getComment() Get the value for Comment. (Optional comment.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getDescriptionString getDescription() Get the value for Description. (Optional description.)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getJobJob getJob() Get the value for Job. (This is the wrapped internal job.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getWrappedJobDefinitionJobDefinition getWrappedJobDefinition() Get the value for WrappedJobDefinition. (This is the optional JobDefinition of the wrapped job (if no JobDefinition is passed, the default will be used).)- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getRequestedStartTimeDateTimeZone getRequestedStartTime() Get the value for RequestedStartTime. (This is the time that the user has requested that the wrapped job start.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setCommentvoid setComment(String newComment) Set the value for Comment. (Optional comment.) This value is optional.- Parameters:
- newComment- the new value for Comment.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setDescriptionvoid setDescription(String newDescription) Set the value for Description. (Optional description.) This value is optional.- Parameters:
- newDescription- the new value for Description.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setWrappedJobDefinitionvoid setWrappedJobDefinition(JobDefinition newWrappedJobDefinition) Set the value for WrappedJobDefinition. (This is the optional JobDefinition of the wrapped job (if no JobDefinition is passed, the default will be used).) This value is optional.- Parameters:
- newWrappedJobDefinition- the new value for WrappedJobDefinition.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
setRequestedStartTimevoid setRequestedStartTime(DateTimeZone newRequestedStartTime) Set the value for RequestedStartTime. (This is the time that the user has requested that the wrapped job start.) This value is mandatory.- Parameters:
- newRequestedStartTime- the new value for RequestedStartTime. If this is- null, then the object cannot be persisted.
- Throws:
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
 
 - 
getIsolationGroupIsolationGroup getIsolationGroup() Get the IsolationGroup.- Returns:
- IsolationGroup
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
getWrappedJobJob getWrappedJob() Get the WrappedJob.- Returns:
- WrappedJob
- Throws:
- com.redwood.scheduler.api.exception.ObjectDeletedException- If this method is called when the object has been marked for deletion.
- com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- If this method is called when the object has been removed from it's session.
 
 - 
setIsolationGroupvoid setIsolationGroup(IsolationGroup newIsolationGroup) Set the value for IsolationGroup. This value is mandatory.- Parameters:
- newIsolationGroup- is the object to set IsolationGroup to. The isolation-group that a wrapped-job belongs to. If this is- null, then the object cannot be persisted.
 
 
- 
 
-