Class BaseTask
java.lang.Object
at.jku.dke.etutor.task_app.data.entities.BaseTask
- All Implemented Interfaces:
Task
- Direct Known Subclasses:
BaseTaskInGroup
Represents a task.
Add following annotations to extending classes:
@Entity @Table(name = "task")
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BaseTask()
Creates a new instance of classBaseTask
.protected
BaseTask
(Long id, BigDecimal maxPoints, TaskStatus status) Creates a new instance of classBaseTask
.protected
BaseTask
(BigDecimal maxPoints, TaskStatus status) Creates a new instance of classBaseTask
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Gets the id.Gets the max points.Gets the status.int
hashCode()
void
Sets the id.void
setMaxPoints
(BigDecimal maxPoints) Sets the max points.void
setStatus
(TaskStatus status) Sets the status.toString()
-
Constructor Details
-
BaseTask
protected BaseTask()Creates a new instance of classBaseTask
. -
BaseTask
Creates a new instance of classBaseTask
.- Parameters:
maxPoints
- The maximum achievable points.status
- The status.
-
BaseTask
Creates a new instance of classBaseTask
.- Parameters:
id
- The id.maxPoints
- The maximum achievable points.status
- The status.
-
-
Method Details
-
getId
Gets the id. -
setId
Sets the id. -
getMaxPoints
Gets the max points.- Specified by:
getMaxPoints
in interfaceTask
- Returns:
- The max points.
-
setMaxPoints
Sets the max points.- Specified by:
setMaxPoints
in interfaceTask
- Parameters:
maxPoints
- The max points.
-
getStatus
Gets the status. -
setStatus
Sets the status. -
equals
-
hashCode
public int hashCode() -
toString
-