@Singleton public class GroupResultDao extends AbstractDao
jpa
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
countByBatch(Batch batch) |
GroupResult |
create(GroupResult groupResult) |
java.util.List<GroupResult> |
findAllByBatch(Batch batch) |
java.util.List<GroupResult> |
findAllMaxNotReached(Batch batch)
Searches the database for GroupResults that fit the criteria: 1) are in the given batch, 2) are in state STARTED,
3) where the activeMemberCount < Batch's maxActiveMembers, 3) activeMemberCount + historyMemberCount < Batch's
maxTotalMembers.
|
GroupResult |
findById(java.lang.Long id) |
void |
refresh(GroupResult groupResult) |
void |
remove(GroupResult groupResult) |
void |
update(GroupResult groupResult) |
merge, persist, refresh, remove
public GroupResult create(GroupResult groupResult)
public void update(GroupResult groupResult)
public void remove(GroupResult groupResult)
public void refresh(GroupResult groupResult)
public GroupResult findById(java.lang.Long id)
public java.util.List<GroupResult> findAllByBatch(Batch batch)
public java.lang.Integer countByBatch(Batch batch)
public java.util.List<GroupResult> findAllMaxNotReached(Batch batch)