public interface TeamDao extends org.springframework.data.repository.Repository<org.squashtest.tm.domain.users.Team,Long>, CustomTeamDao
Teams.| Modifier and Type | Method and Description |
|---|---|
long |
count()
Simply count all Teams
|
long |
countAssociatedTeams(long userId)
Will count the number of Teams where the concerned user is member.
|
void |
delete(org.squashtest.tm.domain.users.Team team)
Simply delete the given
Team |
List<org.squashtest.tm.domain.users.Team> |
findAllByIdIn(List<Long> teamIds)
Find all teams matching the given ids
|
List<org.squashtest.tm.domain.users.Team> |
findAllByName(String name)
Find all teams with name equals to the given name param.
|
List<org.squashtest.tm.domain.users.Team> |
findAllNonAssociatedTeams(long userId)
Will return all
Teams that don't have the concerned user as a member. |
org.squashtest.tm.domain.users.Team |
findById(long teamId)
Simply retrieve the
Team of the given id |
void |
save(org.squashtest.tm.domain.users.Team team)
Will persist a new team.
|
findSortedAssociatedTeams, findSortedTeamsfindAll, findAllByIdsclearFromCache, clearFromCache, flush, persist, persist, remove, removeAllvoid save(org.squashtest.tm.domain.users.Team team)
team - : the new team to persistorg.squashtest.tm.domain.users.Team findById(long teamId)
Team of the given idvoid delete(org.squashtest.tm.domain.users.Team team)
Teamteam - List<org.squashtest.tm.domain.users.Team> findAllByName(String name)
name - long count()
Team in databaseList<org.squashtest.tm.domain.users.Team> findAllByIdIn(List<Long> teamIds)
teamIds - : ids of Teams to returnTeams.long countAssociatedTeams(long userId)
userId - : id of the concerned userList<org.squashtest.tm.domain.users.Team> findAllNonAssociatedTeams(long userId)
Teams that don't have the concerned user as a member.userId - : the id of the concerned userCopyright © 2010–2016 Henix, henix.fr. All rights reserved.