Class BaseSubmission<T extends Task>
java.lang.Object
at.jku.dke.etutor.task_app.data.entities.BaseSubmission<T>
- Type Parameters:
T
- The type of the task.
- All Implemented Interfaces:
Submission<T>
@MappedSuperclass
public abstract class BaseSubmission<T extends Task>
extends Object
implements Submission<T>
Represents a submission.
Add following annotations to extending classes:
@Entity @Table(name = "submission")
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new instance of classBaseSubmission
.protected
BaseSubmission
(String userId, String assignmentId, T task, String language, int feedbackLevel, SubmissionMode mode) Creates a new instance of classBaseSubmission
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the assignment id.Gets the evaluation results.int
Gets the feedback level.getId()
Gets the id.Gets the language.getMode()
Gets the mode.Gets the submission time.getTask()
Gets the task.Gets the user id.int
hashCode()
void
setAssignmentId
(String assignmentId) Sets the assignment id.void
setEvaluationResult
(GradingDto evaluationResult) Sets the evaluation results.void
setFeedbackLevel
(int feedbackLevel) Sets the feedback level.void
Sets the id.void
setLanguage
(String language) Sets the language.void
setMode
(SubmissionMode mode) Sets the mode.void
setSubmissionTime
(Instant submissionTime) Sets the submission time.void
Sets the task.void
Sets the user id.toString()
-
Constructor Details
-
BaseSubmission
protected BaseSubmission()Creates a new instance of classBaseSubmission
. -
BaseSubmission
protected BaseSubmission(String userId, String assignmentId, T task, String language, int feedbackLevel, SubmissionMode mode) Creates a new instance of classBaseSubmission
.- Parameters:
userId
- The user id.assignmentId
- The assignment id.task
- The task.language
- The language.feedbackLevel
- The feedback level.mode
- The mode.
-
-
Method Details
-
getId
Gets the id.- Specified by:
getId
in interfaceSubmission<T extends Task>
- Returns:
- The id.
-
setId
Sets the id.- Specified by:
setId
in interfaceSubmission<T extends Task>
- Parameters:
id
- The id.
-
getAssignmentId
Gets the assignment id.- Specified by:
getAssignmentId
in interfaceSubmission<T extends Task>
- Returns:
- The assignment id.
-
setAssignmentId
Sets the assignment id.- Specified by:
setAssignmentId
in interfaceSubmission<T extends Task>
- Parameters:
assignmentId
- The assignment id.
-
getUserId
Gets the user id.- Specified by:
getUserId
in interfaceSubmission<T extends Task>
- Returns:
- The user id.
-
setUserId
Sets the user id.- Specified by:
setUserId
in interfaceSubmission<T extends Task>
- Parameters:
userId
- The user id.
-
getTask
Gets the task.- Specified by:
getTask
in interfaceSubmission<T extends Task>
- Returns:
- The task.
-
setTask
Sets the task.- Specified by:
setTask
in interfaceSubmission<T extends Task>
- Parameters:
task
- The task.
-
getSubmissionTime
Gets the submission time.- Specified by:
getSubmissionTime
in interfaceSubmission<T extends Task>
- Returns:
- The submission time.
-
setSubmissionTime
Sets the submission time.- Specified by:
setSubmissionTime
in interfaceSubmission<T extends Task>
- Parameters:
submissionTime
- The submission time.
-
getFeedbackLevel
public int getFeedbackLevel()Gets the feedback level.- Specified by:
getFeedbackLevel
in interfaceSubmission<T extends Task>
- Returns:
- The feedback level.
-
setFeedbackLevel
public void setFeedbackLevel(int feedbackLevel) Sets the feedback level.- Specified by:
setFeedbackLevel
in interfaceSubmission<T extends Task>
- Parameters:
feedbackLevel
- The feedback level.
-
getLanguage
Gets the language.- Specified by:
getLanguage
in interfaceSubmission<T extends Task>
- Returns:
- The language.
-
setLanguage
Sets the language.- Specified by:
setLanguage
in interfaceSubmission<T extends Task>
- Parameters:
language
- The language.
-
getMode
Gets the mode.- Specified by:
getMode
in interfaceSubmission<T extends Task>
- Returns:
- The mode.
-
setMode
Sets the mode.- Specified by:
setMode
in interfaceSubmission<T extends Task>
- Parameters:
mode
- The mode.
-
getEvaluationResult
Gets the evaluation results.- Specified by:
getEvaluationResult
in interfaceSubmission<T extends Task>
- Returns:
- The evaluation results.
-
setEvaluationResult
Sets the evaluation results.- Specified by:
setEvaluationResult
in interfaceSubmission<T extends Task>
- Parameters:
evaluationResult
- The evaluation results.
-
equals
-
hashCode
public int hashCode() -
toString
-