|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TeamDao
Data access methods for Teams. Methods are all dynamically generated: see DynamicDaoFactoryBean.
| Method Summary | |
|---|---|
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> |
findAllByIds(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 |
persist(org.squashtest.tm.domain.users.Team team)
Will persist a new team. |
| Methods inherited from interface org.squashtest.tm.service.internal.repository.CustomTeamDao |
|---|
findSortedAssociatedTeams, findSortedTeams |
| Methods inherited from interface org.squashtest.tm.service.internal.repository.EntityDao |
|---|
findAll, findAllByIds |
| Methods inherited from interface org.squashtest.tm.service.internal.repository.GenericDao |
|---|
clearFromCache, clearFromCache, flush, persist, remove, removeAll |
| Method Detail |
|---|
void persist(org.squashtest.tm.domain.users.Team team)
persist in interface GenericDao<org.squashtest.tm.domain.users.Team>team - : the new team to persistorg.squashtest.tm.domain.users.Team findById(long teamId)
Team of the given id
findById in interface EntityDao<org.squashtest.tm.domain.users.Team>teamId -
void delete(org.squashtest.tm.domain.users.Team team)
Team
team - List<org.squashtest.tm.domain.users.Team> findAllByName(String name)
name -
long count()
Team in databaseList<org.squashtest.tm.domain.users.Team> findAllByIds(List<Long> teamIds)
teamIds - : ids of Teams to return
Teams.long countAssociatedTeams(long userId)
userId - : id of the concerned user
List<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 user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||