Object
com.liferay.portal.kernel.service.persistence.TeamUtil

public class TeamUtil extends Object
The persistence utility for the team service. This utility wraps com.liferay.portal.service.persistence.impl.TeamPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • TeamUtil

      public TeamUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
    • clearCache

      public static void clearCache(Team team)
      See Also:
    • countWithDynamicQuery

      public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • fetchByPrimaryKeys

      public static Map<Serializable,Team> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
    • findWithDynamicQuery

      public static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • findWithDynamicQuery

      public static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
      See Also:
    • findWithDynamicQuery

      public static List<Team> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<Team> orderByComparator)
      See Also:
    • update

      public static Team update(Team team)
      See Also:
    • update

      public static Team update(Team team, ServiceContext serviceContext)
      See Also:
    • findByUuid

      public static List<Team> findByUuid(String uuid)
      Returns all the teams where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching teams
    • findByUuid

      public static List<Team> findByUuid(String uuid, int start, int end)
      Returns a range of all the teams where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      Returns:
      the range of matching teams
    • findByUuid

      public static List<Team> findByUuid(String uuid, int start, int end, OrderByComparator<Team> orderByComparator)
      Returns an ordered range of all the teams where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching teams
    • findByUuid

      public static 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching teams
    • findByUuid_First

      public static Team findByUuid_First(String uuid, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
      Returns the first team in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team
      Throws:
      NoSuchTeamException - if a matching team could not be found
      NoSuchTeamException
    • fetchByUuid_First

      public static Team fetchByUuid_First(String uuid, OrderByComparator<Team> orderByComparator)
      Returns the first team in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team, or null if a matching team could not be found
    • findByUuid_Last

      public static Team findByUuid_Last(String uuid, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
      Returns the last team in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team
      Throws:
      NoSuchTeamException - if a matching team could not be found
      NoSuchTeamException
    • fetchByUuid_Last

      public static Team fetchByUuid_Last(String uuid, OrderByComparator<Team> orderByComparator)
      Returns the last team in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team, or null if a matching team could not be found
    • findByUuid_PrevAndNext

      public static 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 team
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next team
      Throws:
      NoSuchTeamException - if a team with the primary key could not be found
      NoSuchTeamException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the teams where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of teams where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching teams
    • findByUUID_G

      public static Team findByUUID_G(String uuid, long groupId) throws NoSuchTeamException
      Returns the team where uuid = ? and groupId = ? or throws a NoSuchTeamException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching team
      Throws:
      NoSuchTeamException - if a matching team could not be found
      NoSuchTeamException
    • fetchByUUID_G

      public static Team fetchByUUID_G(String uuid, long groupId)
      Returns the team where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching team, or null if a matching team could not be found
    • fetchByUUID_G

      public static Team fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the team where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching team, or null if a matching team could not be found
    • removeByUUID_G

      public static Team removeByUUID_G(String uuid, long groupId) throws NoSuchTeamException
      Removes the team where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the team that was removed
      Throws:
      NoSuchTeamException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of teams where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching teams
    • findByUuid_C

      public static List<Team> findByUuid_C(String uuid, long companyId)
      Returns all the teams where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching teams
    • findByUuid_C

      public static List<Team> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the teams where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      Returns:
      the range of matching teams
    • findByUuid_C

      public static 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching teams
    • findByUuid_C

      public static 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching teams
    • findByUuid_C_First

      public static 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team
      Throws:
      NoSuchTeamException - if a matching team could not be found
      NoSuchTeamException
    • fetchByUuid_C_First

      public static Team fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<Team> orderByComparator)
      Returns the first team in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team, or null if a matching team could not be found
    • findByUuid_C_Last

      public static 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team
      Throws:
      NoSuchTeamException - if a matching team could not be found
      NoSuchTeamException
    • fetchByUuid_C_Last

      public static Team fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<Team> orderByComparator)
      Returns the last team in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team, or null if a matching team could not be found
    • findByUuid_C_PrevAndNext

      public static 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 team
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next team
      Throws:
      NoSuchTeamException - if a team with the primary key could not be found
      NoSuchTeamException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the teams where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of teams where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching teams
    • findByCompanyId

      public static List<Team> findByCompanyId(long companyId)
      Returns all the teams where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching teams
    • findByCompanyId

      public static List<Team> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the teams where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      Returns:
      the range of matching teams
    • findByCompanyId

      public static 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching teams
    • findByCompanyId

      public static 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching teams
    • findByCompanyId_First

      public static Team findByCompanyId_First(long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
      Returns the first team in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team
      Throws:
      NoSuchTeamException - if a matching team could not be found
      NoSuchTeamException
    • fetchByCompanyId_First

      public static Team fetchByCompanyId_First(long companyId, OrderByComparator<Team> orderByComparator)
      Returns the first team in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team, or null if a matching team could not be found
    • findByCompanyId_Last

      public static Team findByCompanyId_Last(long companyId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
      Returns the last team in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team
      Throws:
      NoSuchTeamException - if a matching team could not be found
      NoSuchTeamException
    • fetchByCompanyId_Last

      public static Team fetchByCompanyId_Last(long companyId, OrderByComparator<Team> orderByComparator)
      Returns the last team in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team, or null if a matching team could not be found
    • findByCompanyId_PrevAndNext

      public static 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 team
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next team
      Throws:
      NoSuchTeamException - if a team with the primary key could not be found
      NoSuchTeamException
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the teams where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of teams where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching teams
    • findByGroupId

      public static List<Team> findByGroupId(long groupId)
      Returns all the teams where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching teams
    • findByGroupId

      public static List<Team> findByGroupId(long groupId, int start, int end)
      Returns a range of all the teams where groupId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      Returns:
      the range of matching teams
    • findByGroupId

      public static 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching teams
    • findByGroupId

      public static 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching teams
    • findByGroupId_First

      public static Team findByGroupId_First(long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
      Returns the first team in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team
      Throws:
      NoSuchTeamException - if a matching team could not be found
      NoSuchTeamException
    • fetchByGroupId_First

      public static Team fetchByGroupId_First(long groupId, OrderByComparator<Team> orderByComparator)
      Returns the first team in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team, or null if a matching team could not be found
    • findByGroupId_Last

      public static Team findByGroupId_Last(long groupId, OrderByComparator<Team> orderByComparator) throws NoSuchTeamException
      Returns the last team in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team
      Throws:
      NoSuchTeamException - if a matching team could not be found
      NoSuchTeamException
    • fetchByGroupId_Last

      public static Team fetchByGroupId_Last(long groupId, OrderByComparator<Team> orderByComparator)
      Returns the last team in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team, or null if a matching team could not be found
    • findByGroupId_PrevAndNext

      public static 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 team
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next team
      Throws:
      NoSuchTeamException - if a team with the primary key could not be found
      NoSuchTeamException
    • filterFindByGroupId

      public static List<Team> filterFindByGroupId(long groupId)
      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

      public static List<Team> filterFindByGroupId(long groupId, int start, int end)
      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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      Returns:
      the range of matching teams that the user has permission to view
    • filterFindByGroupId

      public static 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching teams that the user has permission to view
    • filterFindByGroupId_PrevAndNext

      public static 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 team
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next team
      Throws:
      NoSuchTeamException - if a team with the primary key could not be found
      NoSuchTeamException
    • removeByGroupId

      public static void removeByGroupId(long groupId)
      Removes all the teams where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      public static int countByGroupId(long groupId)
      Returns the number of teams where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching teams
    • filterCountByGroupId

      public static 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

      public static Team findByG_N(long groupId, String name) throws NoSuchTeamException
      Returns the team where groupId = ? and name = ? or throws a NoSuchTeamException if it could not be found.
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the matching team
      Throws:
      NoSuchTeamException - if a matching team could not be found
      NoSuchTeamException
    • fetchByG_N

      public static Team fetchByG_N(long groupId, String name)
      Returns the team where groupId = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the matching team, or null if a matching team could not be found
    • fetchByG_N

      public static Team fetchByG_N(long groupId, String name, boolean useFinderCache)
      Returns the team where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      groupId - the group ID
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching team, or null if a matching team could not be found
    • removeByG_N

      public static Team removeByG_N(long groupId, String name) throws NoSuchTeamException
      Removes the team where groupId = ? and name = ? from the database.
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the team that was removed
      Throws:
      NoSuchTeamException
    • countByG_N

      public static int countByG_N(long groupId, String name)
      Returns the number of teams where groupId = ? and name = ?.
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the number of matching teams
    • cacheResult

      public static void cacheResult(Team team)
      Caches the team in the entity cache if it is enabled.
      Parameters:
      team - the team
    • cacheResult

      public static void cacheResult(List<Team> teams)
      Caches the teams in the entity cache if it is enabled.
      Parameters:
      teams - the teams
    • create

      public static Team create(long teamId)
      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

      public static Team remove(long teamId) throws NoSuchTeamException
      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
      NoSuchTeamException
    • updateImpl

      public static Team updateImpl(Team team)
    • findByPrimaryKey

      public static Team findByPrimaryKey(long teamId) throws NoSuchTeamException
      Returns the team with the primary key or throws a NoSuchTeamException 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
      NoSuchTeamException
    • fetchByPrimaryKey

      public static Team fetchByPrimaryKey(long teamId)
      Returns the team with the primary key or returns null 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

      public static List<Team> findAll()
      Returns all the teams.
      Returns:
      the teams
    • findAll

      public static List<Team> findAll(int start, int end)
      Returns a range of all the teams.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      Returns:
      the range of teams
    • findAll

      public static List<Team> findAll(int start, int end, OrderByComparator<Team> orderByComparator)
      Returns an ordered range of all the teams.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of teams
    • findAll

      public static 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of teams
    • removeAll

      public static void removeAll()
      Removes all the teams from the database.
    • countAll

      public static int countAll()
      Returns the number of teams.
      Returns:
      the number of teams
    • getUserPrimaryKeys

      public static 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

      public static List<User> getUsers(long pk)
      Returns all the users associated with the team.
      Parameters:
      pk - the primary key of the team
      Returns:
      the users associated with the team
    • getUsers

      public static List<User> getUsers(long pk, int start, int end)
      Returns a range of all the users associated with the team.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      pk - the primary key of the team
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      Returns:
      the range of users associated with the team
    • getUsers

      public static List<User> getUsers(long pk, int start, int end, OrderByComparator<User> orderByComparator)
      Returns an ordered range of all the users associated with the team.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      pk - the primary key of the team
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of users associated with the team
    • getUsersSize

      public static 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

      public static boolean containsUser(long pk, long userPK)
      Returns true if the user is associated with the team.
      Parameters:
      pk - the primary key of the team
      userPK - the primary key of the user
      Returns:
      true if the user is associated with the team; false otherwise
    • containsUsers

      public static boolean containsUsers(long pk)
      Returns true 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

      public static 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 team
      userPK - 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

      public static boolean addUser(long pk, User user)
      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 team
      user - the user
      Returns:
      true if an association between the team and the user was added; false if they were already associated
    • addUsers

      public static 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 team
      userPKs - 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

      public static boolean addUsers(long pk, List<User> users)
      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 team
      users - 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

      public static 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

      public static 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 team
      userPK - the primary key of the user
    • removeUser

      public static void removeUser(long pk, User user)
      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 team
      user - the user
    • removeUsers

      public static 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 team
      userPKs - the primary keys of the users
    • removeUsers

      public static void removeUsers(long pk, List<User> users)
      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 team
      users - the users
    • setUsers

      public static 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 team
      userPKs - the primary keys of the users to be associated with the team
    • setUsers

      public static void setUsers(long pk, List<User> users)
      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 team
      users - the users to be associated with the team
    • getUserGroupPrimaryKeys

      public static 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

      public static List<UserGroup> getUserGroups(long pk)
      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

      public static List<UserGroup> getUserGroups(long pk, int start, int end)
      Returns a range of all the user groups associated with the team.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      pk - the primary key of the team
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      Returns:
      the range of user groups associated with the team
    • getUserGroups

      public static 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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from TeamModelImpl.

      Parameters:
      pk - the primary key of the team
      start - the lower bound of the range of teams
      end - the upper bound of the range of teams (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of user groups associated with the team
    • getUserGroupsSize

      public static 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

      public static boolean containsUserGroup(long pk, long userGroupPK)
      Returns true if the user group is associated with the team.
      Parameters:
      pk - the primary key of the team
      userGroupPK - the primary key of the user group
      Returns:
      true if the user group is associated with the team; false otherwise
    • containsUserGroups

      public static boolean containsUserGroups(long pk)
      Returns true 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

      public static 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 team
      userGroupPK - 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

      public static boolean addUserGroup(long pk, UserGroup userGroup)
      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 team
      userGroup - the user group
      Returns:
      true if an association between the team and the user group was added; false if they were already associated
    • addUserGroups

      public static 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 team
      userGroupPKs - 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

      public static boolean addUserGroups(long pk, List<UserGroup> userGroups)
      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 team
      userGroups - 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

      public static 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

      public static 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 team
      userGroupPK - the primary key of the user group
    • removeUserGroup

      public static void removeUserGroup(long pk, UserGroup userGroup)
      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 team
      userGroup - the user group
    • removeUserGroups

      public static 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 team
      userGroupPKs - the primary keys of the user groups
    • removeUserGroups

      public static void removeUserGroups(long pk, List<UserGroup> userGroups)
      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 team
      userGroups - the user groups
    • setUserGroups

      public static 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 team
      userGroupPKs - the primary keys of the user groups to be associated with the team
    • setUserGroups

      public static void setUserGroups(long pk, List<UserGroup> userGroups)
      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 team
      userGroups - the user groups to be associated with the team
    • getPersistence

      public static TeamPersistence getPersistence()
    • setPersistence

      public static void setPersistence(TeamPersistence persistence)