public class ScheduledAction extends BaseDto implements RowCallback
Constructor and Description |
---|
ScheduledAction() |
Modifier and Type | Method and Description |
---|---|
void |
callback(java.sql.ResultSet rs)
Callback method which is invoked by DataSource for each row found
in the ResultSet of an elaborator query.
|
java.lang.String |
getActionName()
Returns the human readable name of action.
|
java.lang.Long |
getActionStatusId() |
java.lang.String |
getAgeString()
Getter for ageString
|
java.util.List<java.lang.String> |
getCallBackColumns()
A list of column names that are used in the callback In lower case.
|
long |
getCompleted()
Returns the number of completed actions.
|
long |
getCompletedSystems()
Returns the number of completed systems.
|
java.lang.String |
getEarliest()
Returns the earliest date the action will be run.
|
java.util.Date |
getEarliestDate()
Returns the earliest date the action will be run.
|
long |
getFailed()
Returns the number of failed actions.
|
long |
getFailedSystems()
Returns the number of failed systems.
|
java.lang.Long |
getId()
Returns the Action's id.
|
long |
getInProgress()
Returns the number of actions which are in progress.
|
long |
getInProgressSystems()
Returns the number of systems which are in progress.
|
java.lang.Long |
getPrerequisite()
Returns the prerequisite for this action.
|
java.lang.Long |
getScheduler()
Returns the person or entity which scheduled the action.
|
java.lang.String |
getSchedulerName()
Returns the name of the person or entity which scheduled the action.
|
long |
getTally()
Returns the total count of the scheduled actions.
|
java.lang.String |
getTypeName()
Returns the type name of the action.
|
java.lang.String |
getUserName()
Getter for userName
|
boolean |
isSelectable()
This says whether this object is selectable on a page with a set The
default as can be seen is true.
|
void |
setActionName(java.lang.String aname)
Sets the action's name
|
void |
setActionStatusId(java.lang.Long actionStatusIdIn) |
void |
setAgeString(java.lang.String stringIn)
Setter for ageString
|
void |
setCompletedSystems(java.lang.Long systems)
Sets the number of completed systems.
|
void |
setEarliest(java.util.Date early)
Sets the earliest date the action will be run.
|
void |
setFailedSystems(java.lang.Long systems)
Sets the number of failed systems.
|
void |
setId(java.lang.Long idIn)
Sets the Action's id.
|
void |
setInProgressSystems(java.lang.Long systems)
Sets the number of systems which are in progress.
|
void |
setPrerequisite(java.lang.Long prerequisiteIn) |
void |
setScheduler(java.lang.Long sched)
Sets the person or entity which scheduled the action.
|
void |
setSchedulerName(java.lang.String schedName)
Sets the name of the person or entity which scheduled the action.
|
void |
setTypeName(java.lang.String tname)
Sets the name of the Action type.
|
void |
setUserName(java.lang.String stringIn)
Setter for userName
|
addToSet, getSelectionKey, toString
isDisabled, isSelected, setDisabled, setSelected
public java.lang.Long getId()
getId
in interface Identifiable
getId
in class BaseDto
public java.lang.String getEarliest()
public java.util.Date getEarliestDate()
public java.lang.String getTypeName()
public java.lang.String getActionName()
public java.lang.Long getScheduler()
public java.lang.String getSchedulerName()
public void setId(java.lang.Long idIn)
idIn
- database id.public void setEarliest(java.util.Date early)
early
- earliest date the action will be run.public void setTypeName(java.lang.String tname)
tname
- name of the action type.public void setActionName(java.lang.String aname)
aname
- the action's name.public void setScheduler(java.lang.Long sched)
sched
- the person or entity which scheduled the action.public void setSchedulerName(java.lang.String schedName)
schedName
- the name of the person or entity which scheduled the action.public long getTally()
public long getCompleted()
public long getFailed()
public long getInProgress()
public void setCompletedSystems(java.lang.Long systems)
systems
- the number of systems that have completed the actionpublic void setFailedSystems(java.lang.Long systems)
systems
- the number of systems that have failed the actionpublic void setInProgressSystems(java.lang.Long systems)
systems
- the number of systems that haven't completed the actionpublic long getCompletedSystems()
public long getFailedSystems()
public long getInProgressSystems()
public void callback(java.sql.ResultSet rs) throws java.sql.SQLException
callback
in interface RowCallback
rs
- ResultSet containing current row returned by elaborator.java.sql.SQLException
- thrown if there is a problem accessing the
ResultSet.public java.util.List<java.lang.String> getCallBackColumns()
getCallBackColumns
in interface RowCallback
public java.lang.String getAgeString()
public void setAgeString(java.lang.String stringIn)
stringIn
- String to set ageString topublic java.lang.String getUserName()
public void setUserName(java.lang.String stringIn)
stringIn
- String to set userName topublic java.lang.Long getActionStatusId()
public void setActionStatusId(java.lang.Long actionStatusIdIn)
actionStatusIdIn
- The actionStatusId to set.public java.lang.Long getPrerequisite()
public void setPrerequisite(java.lang.Long prerequisiteIn)
prerequisiteIn
- The prerequisite to set.public boolean isSelectable()
SelectableAdapter
<rhn:set value="${current.id}"
disabled="${not current.selectable}" />
isSelectable
in interface Selectable
isSelectable
in class SelectableAdapter