public class ExecutionModel extends Object implements Serializable
Constructor and Description |
---|
ExecutionModel() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ExecutionModel |
fromDbResult(ResultSet rs)
Create a model instance from a database result set.
|
static ExecutionModel |
fromDbResult(String idField,
ResultSet rs)
Create a model instance from a database result set.
|
Integer |
getDuration()
Duration
|
Integer |
getEndTime()
End time
|
Integer |
getId()
Execution ID
|
String |
getLog()
Command output
|
Boolean |
getResult()
Result
|
Integer |
getScheduleId()
Schedule ID
|
Integer |
getStartTime()
Start time
|
int |
hashCode() |
boolean |
isRunning()
Check whether the execution is still running
|
ExecutionModel |
setDuration(Integer duration)
Set the duration
|
ExecutionModel |
setEndTime(Integer endTime)
Set the end time
|
ExecutionModel |
setId(Integer id)
Set the execution ID
|
ExecutionModel |
setLog(String log)
Set the command output
|
ExecutionModel |
setResult(Boolean result)
Set the result
|
ExecutionModel |
setScheduleId(Integer scheduleId)
Set the schedule ID
|
ExecutionModel |
setStartTime(Integer startTime)
Set the start time
|
public static ExecutionModel fromDbResult(ResultSet rs) throws SQLException
This method assumes that the cursor is correctly set at the element to convert.
rs
- The database resultSQLException
- When the result set can not be readpublic static ExecutionModel fromDbResult(String idField, ResultSet rs) throws SQLException
This method assumes that the cursor is correctly set at the element to convert.
The name of the ID field can be specified if the result is from a
JOIN statement where id
alone is ambiguous.
idField
- The name of the execution ID field.rs
- The database resultSQLException
- When the result set can not be readpublic Integer getId()
public ExecutionModel setId(Integer id)
id
- The execution IDpublic Integer getScheduleId()
public ExecutionModel setScheduleId(Integer scheduleId)
scheduleId
- The schedule IDpublic Integer getStartTime()
public ExecutionModel setStartTime(Integer startTime)
startTime
- The start timepublic Integer getEndTime()
public ExecutionModel setEndTime(Integer endTime)
endTime
- The end timepublic Integer getDuration()
public ExecutionModel setDuration(Integer duration)
duration
- The durationpublic Boolean getResult()
public ExecutionModel setResult(Boolean result)
result
- The resultpublic String getLog()
public ExecutionModel setLog(String log)
log
- The command outputpublic boolean isRunning()
Copyright © 2024 Gentics Software. All rights reserved.