Class BaseTaskInGroup<T extends TaskGroup>
java.lang.Object
at.jku.dke.etutor.task_app.data.entities.BaseTask
at.jku.dke.etutor.task_app.data.entities.BaseTaskInGroup<T>
- Type Parameters:
T
- The type of the task group.
- All Implemented Interfaces:
Task
,TaskInGroup<T>
@MappedSuperclass
public abstract class BaseTaskInGroup<T extends TaskGroup>
extends BaseTask
implements TaskInGroup<T>
Represents a task belonging to a task group.
Add following annotations to extending classes:
@Entity @Table(name = "task")
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new instance of classBaseTaskInGroup
.protected
BaseTaskInGroup
(Long id, BigDecimal maxPoints, TaskStatus status, T taskGroup) Creates a new instance of classBaseTaskInGroup
.protected
BaseTaskInGroup
(BigDecimal maxPoints, TaskStatus status, T taskGroup) Creates a new instance of classBaseTaskInGroup
. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Gets the task group.final int
hashCode()
void
setTaskGroup
(T taskGroup) Sets the task group.Methods inherited from class at.jku.dke.etutor.task_app.data.entities.BaseTask
getId, getMaxPoints, getStatus, setId, setMaxPoints, setStatus, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface at.jku.dke.etutor.task_app.data.entities.Task
getId, getMaxPoints, getStatus, setId, setMaxPoints, setStatus
-
Constructor Details
-
BaseTaskInGroup
protected BaseTaskInGroup()Creates a new instance of classBaseTaskInGroup
. -
BaseTaskInGroup
Creates a new instance of classBaseTaskInGroup
.- Parameters:
maxPoints
- The maximum achievable points.status
- The status.taskGroup
- The task group.
-
BaseTaskInGroup
Creates a new instance of classBaseTaskInGroup
.- Parameters:
id
- The id.maxPoints
- The maximum achievable points.status
- The status.taskGroup
- The task group.
-
-
Method Details
-
getTaskGroup
Gets the task group.- Specified by:
getTaskGroup
in interfaceTaskInGroup<T extends TaskGroup>
- Returns:
- The task group.
-
setTaskGroup
Sets the task group.- Specified by:
setTaskGroup
in interfaceTaskInGroup<T extends TaskGroup>
- Parameters:
taskGroup
- The task group.
-
equals
-
hashCode
public final int hashCode()
-