Interface TeamPersistence
- All Superinterfaces:
BasePersistence<Team>
,CTPersistence<Team>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addUser
(long pk, long userPK) Adds an association between the team and the user.boolean
Adds an association between the team and the user.boolean
addUserGroup
(long pk, long userGroupPK) Adds an association between the team and the user group.boolean
addUserGroup
(long pk, UserGroup userGroup) Adds an association between the team and the user group.boolean
addUserGroups
(long pk, long[] userGroupPKs) Adds an association between the team and the user groups.boolean
addUserGroups
(long pk, List<UserGroup> userGroups) Adds an association between the team and the user groups.boolean
addUsers
(long pk, long[] userPKs) Adds an association between the team and the users.boolean
Adds an association between the team and the users.void
cacheResult
(Team team) Caches the team in the entity cache if it is enabled.void
cacheResult
(List<Team> teams) Caches the teams in the entity cache if it is enabled.void
clearUserGroups
(long pk) Clears all associations between the team and its user groups.void
clearUsers
(long pk) Clears all associations between the team and its users.boolean
containsUser
(long pk, long userPK) Returnstrue
if the user is associated with the team.boolean
containsUserGroup
(long pk, long userGroupPK) Returnstrue
if the user group is associated with the team.boolean
containsUserGroups
(long pk) Returnstrue
if the team has any user groups associated with it.boolean
containsUsers
(long pk) Returnstrue
if the team has any users associated with it.int
countAll()
Returns the number of teams.int
countByCompanyId
(long companyId) Returns the number of teams where companyId = ?.int
countByG_N
(long groupId, String name) Returns the number of teams where groupId = ? and name = ?.int
countByGroupId
(long groupId) Returns the number of teams where groupId = ?.int
countByUuid
(String uuid) Returns the number of teams where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of teams where uuid = ? and companyId = ?.int
countByUUID_G
(String uuid, long groupId) Returns the number of teams where uuid = ? and groupId = ?.create
(long teamId) Creates a new team with the primary key.fetchByCompanyId_First
(long companyId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where companyId = ?.fetchByG_N
(long groupId, String name) Returns the team where groupId = ? and name = ? or returnsnull
if it could not be found.fetchByG_N
(long groupId, String name, boolean useFinderCache) Returns the team where groupId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByGroupId_First
(long groupId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where groupId = ?.fetchByGroupId_Last
(long groupId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where groupId = ?.fetchByPrimaryKey
(long teamId) Returns the team with the primary key or returnsnull
if it could not be found.fetchByUuid_C_First
(String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where uuid = ?.fetchByUUID_G
(String uuid, long groupId) Returns the team where uuid = ? and groupId = ? or returnsnull
if it could not be found.fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the team where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByUuid_Last
(String uuid, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where uuid = ?.int
filterCountByGroupId
(long groupId) Returns the number of teams that the user has permission to view where groupId = ?.filterFindByGroupId
(long groupId) Returns all the teams that the user has permission to view where groupId = ?.filterFindByGroupId
(long groupId, int start, int end) Returns a range of all the teams that the user has permission to view where groupId = ?.filterFindByGroupId
(long groupId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams that the user has permissions to view where groupId = ?.Team[]
filterFindByGroupId_PrevAndNext
(long teamId, long groupId, OrderByComparator<Team> orderByComparator) Returns the teams before and after the current team in the ordered set of teams that the user has permission to view where groupId = ?.findAll()
Returns all the teams.findAll
(int start, int end) Returns a range of all the teams.findAll
(int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams.findAll
(int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams.findByCompanyId
(long companyId) Returns all the teams where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the teams where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where companyId = ?.findByCompanyId_First
(long companyId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where companyId = ?.Team[]
findByCompanyId_PrevAndNext
(long teamId, long companyId, OrderByComparator<Team> orderByComparator) Returns the teams before and after the current team in the ordered set where companyId = ?.Returns the team where groupId = ? and name = ? or throws aNoSuchTeamException
if it could not be found.findByGroupId
(long groupId) Returns all the teams where groupId = ?.findByGroupId
(long groupId, int start, int end) Returns a range of all the teams where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where groupId = ?.findByGroupId_First
(long groupId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where groupId = ?.findByGroupId_Last
(long groupId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where groupId = ?.Team[]
findByGroupId_PrevAndNext
(long teamId, long groupId, OrderByComparator<Team> orderByComparator) Returns the teams before and after the current team in the ordered set where groupId = ?.findByPrimaryKey
(long teamId) Returns the team with the primary key or throws aNoSuchTeamException
if it could not be found.findByUuid
(String uuid) Returns all the teams where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the teams where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the teams where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the teams where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where uuid = ? and companyId = ?.findByUuid_C_First
(String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last
(String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where uuid = ? and companyId = ?.Team[]
findByUuid_C_PrevAndNext
(long teamId, String uuid, long companyId, OrderByComparator<Team> orderByComparator) Returns the teams before and after the current team in the ordered set where uuid = ? and companyId = ?.findByUuid_First
(String uuid, OrderByComparator<Team> orderByComparator) Returns the first team in the ordered set where uuid = ?.findByUUID_G
(String uuid, long groupId) Returns the team where uuid = ? and groupId = ? or throws aNoSuchTeamException
if it could not be found.findByUuid_Last
(String uuid, OrderByComparator<Team> orderByComparator) Returns the last team in the ordered set where uuid = ?.Team[]
findByUuid_PrevAndNext
(long teamId, String uuid, OrderByComparator<Team> orderByComparator) Returns the teams before and after the current team in the ordered set where uuid = ?.long[]
getUserGroupPrimaryKeys
(long pk) Returns the primaryKeys of user groups associated with the team.getUserGroups
(long pk) Returns all the user groups associated with the team.getUserGroups
(long pk, int start, int end) Returns a range of all the user groups associated with the team.getUserGroups
(long pk, int start, int end, OrderByComparator<UserGroup> orderByComparator) Returns an ordered range of all the user groups associated with the team.int
getUserGroupsSize
(long pk) Returns the number of user groups associated with the team.long[]
getUserPrimaryKeys
(long pk) Returns the primaryKeys of users associated with the team.getUsers
(long pk) Returns all the users associated with the team.getUsers
(long pk, int start, int end) Returns a range of all the users associated with the team.getUsers
(long pk, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users associated with the team.int
getUsersSize
(long pk) Returns the number of users associated with the team.remove
(long teamId) Removes the team with the primary key from the database.void
Removes all the teams from the database.void
removeByCompanyId
(long companyId) Removes all the teams where companyId = ? from the database.removeByG_N
(long groupId, String name) Removes the team where groupId = ? and name = ? from the database.void
removeByGroupId
(long groupId) Removes all the teams where groupId = ? from the database.void
removeByUuid
(String uuid) Removes all the teams where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the teams where uuid = ? and companyId = ? from the database.removeByUUID_G
(String uuid, long groupId) Removes the team where uuid = ? and groupId = ? from the database.void
removeUser
(long pk, long userPK) Removes the association between the team and the user.void
removeUser
(long pk, User user) Removes the association between the team and the user.void
removeUserGroup
(long pk, long userGroupPK) Removes the association between the team and the user group.void
removeUserGroup
(long pk, UserGroup userGroup) Removes the association between the team and the user group.void
removeUserGroups
(long pk, long[] userGroupPKs) Removes the association between the team and the user groups.void
removeUserGroups
(long pk, List<UserGroup> userGroups) Removes the association between the team and the user groups.void
removeUsers
(long pk, long[] userPKs) Removes the association between the team and the users.void
removeUsers
(long pk, List<User> users) Removes the association between the team and the users.void
setUserGroups
(long pk, long[] userGroupPKs) Sets the user groups associated with the team, removing and adding associations as necessary.void
setUserGroups
(long pk, List<UserGroup> userGroups) Sets the user groups associated with the team, removing and adding associations as necessary.void
setUsers
(long pk, long[] userPKs) Sets the users associated with the team, removing and adding associations as necessary.void
Sets the users associated with the team, removing and adding associations as necessary.updateImpl
(Team team) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByUuid
Returns all the teams where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching teams
-
findByUuid
Returns a range of all the teams where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByUuid
Returns an ordered range of all the teams where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching teams
-
findByUuid
List<Team> findByUuid(String uuid, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByUuid_First
Team findByUuid_First(String uuid, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the first team in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching team
- Throws:
NoSuchTeamException
- if a matching team could not be found
-
fetchByUuid_First
Returns the first team in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching team, or
null
if a matching team could not be found
-
findByUuid_Last
Team findByUuid_Last(String uuid, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the last team in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching team
- Throws:
NoSuchTeamException
- if a matching team could not be found
-
fetchByUuid_Last
Returns the last team in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching team, or
null
if a matching team could not be found
-
findByUuid_PrevAndNext
Team[] findByUuid_PrevAndNext(long teamId, String uuid, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the teams before and after the current team in the ordered set where uuid = ?.- Parameters:
teamId
- the primary key of the current teamuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next team
- Throws:
NoSuchTeamException
- if a team with the primary key could not be found
-
removeByUuid
Removes all the teams where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of teams where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching teams
-
findByUUID_G
Returns the team where uuid = ? and groupId = ? or throws aNoSuchTeamException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching team
- Throws:
NoSuchTeamException
- if a matching team could not be found
-
fetchByUUID_G
Returns the team where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching team, or
null
if a matching team could not be found
-
fetchByUUID_G
Returns the team where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching team, or
null
if a matching team could not be found
-
removeByUUID_G
Removes the team where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the team that was removed
- Throws:
NoSuchTeamException
-
countByUUID_G
Returns the number of teams where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching teams
-
findByUuid_C
Returns all the teams where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching teams
-
findByUuid_C
Returns a range of all the teams where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByUuid_C
List<Team> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching teams
-
findByUuid_C
List<Team> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByUuid_C_First
Team findByUuid_C_First(String uuid, long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the first team in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching team
- Throws:
NoSuchTeamException
- if a matching team could not be found
-
fetchByUuid_C_First
Returns the first team in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching team, or
null
if a matching team could not be found
-
findByUuid_C_Last
Team findByUuid_C_Last(String uuid, long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the last team in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching team
- Throws:
NoSuchTeamException
- if a matching team could not be found
-
fetchByUuid_C_Last
Returns the last team in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching team, or
null
if a matching team could not be found
-
findByUuid_C_PrevAndNext
Team[] findByUuid_C_PrevAndNext(long teamId, String uuid, long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the teams before and after the current team in the ordered set where uuid = ? and companyId = ?.- Parameters:
teamId
- the primary key of the current teamuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next team
- Throws:
NoSuchTeamException
- if a team with the primary key could not be found
-
removeByUuid_C
Removes all the teams where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of teams where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching teams
-
findByCompanyId
Returns all the teams where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching teams
-
findByCompanyId
Returns a range of all the teams where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByCompanyId
List<Team> findByCompanyId(long companyId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching teams
-
findByCompanyId
List<Team> findByCompanyId(long companyId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByCompanyId_First
Team findByCompanyId_First(long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the first team in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching team
- Throws:
NoSuchTeamException
- if a matching team could not be found
-
fetchByCompanyId_First
Returns the first team in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching team, or
null
if a matching team could not be found
-
findByCompanyId_Last
Team findByCompanyId_Last(long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the last team in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching team
- Throws:
NoSuchTeamException
- if a matching team could not be found
-
fetchByCompanyId_Last
Returns the last team in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching team, or
null
if a matching team could not be found
-
findByCompanyId_PrevAndNext
Team[] findByCompanyId_PrevAndNext(long teamId, long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the teams before and after the current team in the ordered set where companyId = ?.- Parameters:
teamId
- the primary key of the current teamcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next team
- Throws:
NoSuchTeamException
- if a team with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the teams where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of teams where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching teams
-
findByGroupId
Returns all the teams where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching teams
-
findByGroupId
Returns a range of all the teams where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByGroupId
List<Team> findByGroupId(long groupId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching teams
-
findByGroupId
List<Team> findByGroupId(long groupId, int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByGroupId_First
Team findByGroupId_First(long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the first team in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching team
- Throws:
NoSuchTeamException
- if a matching team could not be found
-
fetchByGroupId_First
Returns the first team in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching team, or
null
if a matching team could not be found
-
findByGroupId_Last
Team findByGroupId_Last(long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the last team in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching team
- Throws:
NoSuchTeamException
- if a matching team could not be found
-
fetchByGroupId_Last
Returns the last team in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching team, or
null
if a matching team could not be found
-
findByGroupId_PrevAndNext
Team[] findByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the teams before and after the current team in the ordered set where groupId = ?.- Parameters:
teamId
- the primary key of the current teamgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next team
- Throws:
NoSuchTeamException
- if a team with the primary key could not be found
-
filterFindByGroupId
Returns all the teams that the user has permission to view where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching teams that the user has permission to view
-
filterFindByGroupId
Returns a range of all the teams that the user has permission to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams that the user has permission to view
-
filterFindByGroupId
List<Team> filterFindByGroupId(long groupId, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams that the user has permissions to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching teams that the user has permission to view
-
filterFindByGroupId_PrevAndNext
Team[] filterFindByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException Returns the teams before and after the current team in the ordered set of teams that the user has permission to view where groupId = ?.- Parameters:
teamId
- the primary key of the current teamgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next team
- Throws:
NoSuchTeamException
- if a team with the primary key could not be found
-
removeByGroupId
void removeByGroupId(long groupId) Removes all the teams where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
int countByGroupId(long groupId) Returns the number of teams where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching teams
-
filterCountByGroupId
int filterCountByGroupId(long groupId) Returns the number of teams that the user has permission to view where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching teams that the user has permission to view
-
findByG_N
Returns the team where groupId = ? and name = ? or throws aNoSuchTeamException
if it could not be found.- Parameters:
groupId
- the group IDname
- the name- Returns:
- the matching team
- Throws:
NoSuchTeamException
- if a matching team could not be found
-
fetchByG_N
Returns the team where groupId = ? and name = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
groupId
- the group IDname
- the name- Returns:
- the matching team, or
null
if a matching team could not be found
-
fetchByG_N
Returns the team where groupId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
groupId
- the group IDname
- the nameuseFinderCache
- whether to use the finder cache- Returns:
- the matching team, or
null
if a matching team could not be found
-
removeByG_N
Removes the team where groupId = ? and name = ? from the database.- Parameters:
groupId
- the group IDname
- the name- Returns:
- the team that was removed
- Throws:
NoSuchTeamException
-
countByG_N
Returns the number of teams where groupId = ? and name = ?.- Parameters:
groupId
- the group IDname
- the name- Returns:
- the number of matching teams
-
cacheResult
Caches the team in the entity cache if it is enabled.- Parameters:
team
- the team
-
cacheResult
Caches the teams in the entity cache if it is enabled.- Parameters:
teams
- the teams
-
create
Creates a new team with the primary key. Does not add the team to the database.- Parameters:
teamId
- the primary key for the new team- Returns:
- the new team
-
remove
Removes the team with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
teamId
- the primary key of the team- Returns:
- the team that was removed
- Throws:
NoSuchTeamException
- if a team with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the team with the primary key or throws aNoSuchTeamException
if it could not be found.- Parameters:
teamId
- the primary key of the team- Returns:
- the team
- Throws:
NoSuchTeamException
- if a team with the primary key could not be found
-
fetchByPrimaryKey
Returns the team with the primary key or returnsnull
if it could not be found.- Parameters:
teamId
- the primary key of the team- Returns:
- the team, or
null
if a team with the primary key could not be found
-
findAll
Returns all the teams.- Returns:
- the teams
-
findAll
Returns a range of all the teams.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
start
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)- Returns:
- the range of teams
-
findAll
Returns an ordered range of all the teams.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
start
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of teams
-
findAll
List<Team> findAll(int start, int end, OrderByComparator<Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
start
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of teams
-
removeAll
void removeAll()Removes all the teams from the database. -
countAll
int countAll()Returns the number of teams.- Returns:
- the number of teams
-
getUserPrimaryKeys
long[] getUserPrimaryKeys(long pk) Returns the primaryKeys of users associated with the team.- Parameters:
pk
- the primary key of the team- Returns:
- long[] of the primaryKeys of users associated with the team
-
getUsers
Returns all the users associated with the team.- Parameters:
pk
- the primary key of the team- Returns:
- the users associated with the team
-
getUsers
Returns a range of all the users associated with the team.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
pk
- the primary key of the teamstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)- Returns:
- the range of users associated with the team
-
getUsers
Returns an ordered range of all the users associated with the team.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
pk
- the primary key of the teamstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of users associated with the team
-
getUsersSize
int getUsersSize(long pk) Returns the number of users associated with the team.- Parameters:
pk
- the primary key of the team- Returns:
- the number of users associated with the team
-
containsUser
boolean containsUser(long pk, long userPK) Returnstrue
if the user is associated with the team.- Parameters:
pk
- the primary key of the teamuserPK
- the primary key of the user- Returns:
true
if the user is associated with the team;false
otherwise
-
containsUsers
boolean containsUsers(long pk) Returnstrue
if the team has any users associated with it.- Parameters:
pk
- the primary key of the team to check for associations with users- Returns:
true
if the team has any users associated with it;false
otherwise
-
addUser
boolean addUser(long pk, long userPK) Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserPK
- the primary key of the user- Returns:
true
if an association between the team and the user was added;false
if they were already associated
-
addUser
Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuser
- the user- Returns:
true
if an association between the team and the user was added;false
if they were already associated
-
addUsers
boolean addUsers(long pk, long[] userPKs) Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserPKs
- the primary keys of the users- Returns:
true
if at least one association between the team and the users was added;false
if they were all already associated
-
addUsers
Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamusers
- the users- Returns:
true
if at least one association between the team and the users was added;false
if they were all already associated
-
clearUsers
void clearUsers(long pk) Clears all associations between the team and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the team to clear the associated users from
-
removeUser
void removeUser(long pk, long userPK) Removes the association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserPK
- the primary key of the user
-
removeUser
Removes the association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuser
- the user
-
removeUsers
void removeUsers(long pk, long[] userPKs) Removes the association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserPKs
- the primary keys of the users
-
removeUsers
Removes the association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamusers
- the users
-
setUsers
void setUsers(long pk, long[] userPKs) Sets the users associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserPKs
- the primary keys of the users to be associated with the team
-
setUsers
Sets the users associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamusers
- the users to be associated with the team
-
getUserGroupPrimaryKeys
long[] getUserGroupPrimaryKeys(long pk) Returns the primaryKeys of user groups associated with the team.- Parameters:
pk
- the primary key of the team- Returns:
- long[] of the primaryKeys of user groups associated with the team
-
getUserGroups
Returns all the user groups associated with the team.- Parameters:
pk
- the primary key of the team- Returns:
- the user groups associated with the team
-
getUserGroups
Returns a range of all the user groups associated with the team.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
pk
- the primary key of the teamstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)- Returns:
- the range of user groups associated with the team
-
getUserGroups
List<UserGroup> getUserGroups(long pk, int start, int end, OrderByComparator<UserGroup> orderByComparator) Returns an ordered range of all the user groups associated with the team.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Parameters:
pk
- the primary key of the teamstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of user groups associated with the team
-
getUserGroupsSize
int getUserGroupsSize(long pk) Returns the number of user groups associated with the team.- Parameters:
pk
- the primary key of the team- Returns:
- the number of user groups associated with the team
-
containsUserGroup
boolean containsUserGroup(long pk, long userGroupPK) Returnstrue
if the user group is associated with the team.- Parameters:
pk
- the primary key of the teamuserGroupPK
- the primary key of the user group- Returns:
true
if the user group is associated with the team;false
otherwise
-
containsUserGroups
boolean containsUserGroups(long pk) Returnstrue
if the team has any user groups associated with it.- Parameters:
pk
- the primary key of the team to check for associations with user groups- Returns:
true
if the team has any user groups associated with it;false
otherwise
-
addUserGroup
boolean addUserGroup(long pk, long userGroupPK) Adds an association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserGroupPK
- the primary key of the user group- Returns:
true
if an association between the team and the user group was added;false
if they were already associated
-
addUserGroup
Adds an association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserGroup
- the user group- Returns:
true
if an association between the team and the user group was added;false
if they were already associated
-
addUserGroups
boolean addUserGroups(long pk, long[] userGroupPKs) Adds an association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groups- Returns:
true
if at least one association between the team and the user groups was added;false
if they were all already associated
-
addUserGroups
Adds an association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserGroups
- the user groups- Returns:
true
if at least one association between the team and the user groups was added;false
if they were all already associated
-
clearUserGroups
void clearUserGroups(long pk) Clears all associations between the team and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the team to clear the associated user groups from
-
removeUserGroup
void removeUserGroup(long pk, long userGroupPK) Removes the association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserGroupPK
- the primary key of the user group
-
removeUserGroup
Removes the association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserGroup
- the user group
-
removeUserGroups
void removeUserGroups(long pk, long[] userGroupPKs) Removes the association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groups
-
removeUserGroups
Removes the association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserGroups
- the user groups
-
setUserGroups
void setUserGroups(long pk, long[] userGroupPKs) Sets the user groups associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groups to be associated with the team
-
setUserGroups
Sets the user groups associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk
- the primary key of the teamuserGroups
- the user groups to be associated with the team
-