Class TeamPersistenceImpl

Object
com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
com.liferay.portal.service.persistence.impl.TeamPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>, com.liferay.portal.kernel.service.persistence.TeamPersistence

public class TeamPersistenceImpl extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team> implements com.liferay.portal.kernel.service.persistence.TeamPersistence
The persistence implementation for the team service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
{$generated.description}
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.UserGroup>
     
    protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.User>
     
    protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence
     
    protected com.liferay.portal.kernel.service.persistence.UserPersistence
     

    Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addUser(long pk, long userPK)
    Adds an association between the team and the user.
    boolean
    addUser(long pk, com.liferay.portal.kernel.model.User user)
    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, com.liferay.portal.kernel.model.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<com.liferay.portal.kernel.model.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
    addUsers(long pk, List<com.liferay.portal.kernel.model.User> users)
    Adds an association between the team and the users.
    void
    Initializes the team persistence.
    void
    cacheResult(com.liferay.portal.kernel.model.Team team)
    Caches the team in the entity cache if it is enabled.
    void
    cacheResult(List<com.liferay.portal.kernel.model.Team> teams)
    Caches the teams in the entity cache if it is enabled.
    protected void
     
    void
    Clears the cache for all teams.
    void
    clearCache(com.liferay.portal.kernel.model.Team team)
    Clears the cache for the team.
    void
    clearCache(List<com.liferay.portal.kernel.model.Team> teams)
     
    void
    clearCache(Set<Serializable> primaryKeys)
     
    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)
    Returns true if the user is associated with the team.
    boolean
    containsUserGroup(long pk, long userGroupPK)
    Returns true if the user group is associated with the team.
    boolean
    Returns true if the team has any user groups associated with it.
    boolean
    containsUsers(long pk)
    Returns true if the team has any users associated with it.
    int
    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
    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 = ?.
    com.liferay.portal.kernel.model.Team
    create(long teamId)
    Creates a new team with the primary key.
    void
     
    com.liferay.portal.kernel.model.Team
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the first team in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.Team
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the last team in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.Team
    fetchByG_N(long groupId, String name)
    Returns the team where groupId = ? and name = ? or returns null if it could not be found.
    com.liferay.portal.kernel.model.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.
    com.liferay.portal.kernel.model.Team
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the first team in the ordered set where groupId = ?.
    com.liferay.portal.kernel.model.Team
    fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the last team in the ordered set where groupId = ?.
    com.liferay.portal.kernel.model.Team
    fetchByPrimaryKey(long teamId)
    Returns the team with the primary key or returns null if it could not be found.
    com.liferay.portal.kernel.model.Team
    Returns the team with the primary key or returns null if it could not be found.
    Map<Serializable,com.liferay.portal.kernel.model.Team>
     
    com.liferay.portal.kernel.model.Team
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the first team in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Team
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the last team in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Team
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the first team in the ordered set where uuid = ?.
    com.liferay.portal.kernel.model.Team
    fetchByUUID_G(String uuid, long groupId)
    Returns the team where uuid = ? and groupId = ? or returns null if it could not be found.
    com.liferay.portal.kernel.model.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.
    com.liferay.portal.kernel.model.Team
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 = ?.
    List<com.liferay.portal.kernel.model.Team>
    filterFindByGroupId(long groupId)
    Returns all the teams that the user has permission to view where groupId = ?.
    List<com.liferay.portal.kernel.model.Team>
    filterFindByGroupId(long groupId, int start, int end)
    Returns a range of all the teams that the user has permission to view where groupId = ?.
    List<com.liferay.portal.kernel.model.Team>
    filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns an ordered range of all the teams that the user has permissions to view where groupId = ?.
    com.liferay.portal.kernel.model.Team[]
    filterFindByGroupId_PrevAndNext(long teamId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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 = ?.
    protected com.liferay.portal.kernel.model.Team
    filterGetByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
     
    List<com.liferay.portal.kernel.model.Team>
    Returns all the teams.
    List<com.liferay.portal.kernel.model.Team>
    findAll(int start, int end)
    Returns a range of all the teams.
    List<com.liferay.portal.kernel.model.Team>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns an ordered range of all the teams.
    List<com.liferay.portal.kernel.model.Team>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the teams.
    List<com.liferay.portal.kernel.model.Team>
    findByCompanyId(long companyId)
    Returns all the teams where companyId = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the teams where companyId = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns an ordered range of all the teams where companyId = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the teams where companyId = ?.
    com.liferay.portal.kernel.model.Team
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the first team in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.Team
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the last team in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.Team[]
    findByCompanyId_PrevAndNext(long teamId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the teams before and after the current team in the ordered set where companyId = ?.
    com.liferay.portal.kernel.model.Team
    findByG_N(long groupId, String name)
    Returns the team where groupId = ? and name = ? or throws a NoSuchTeamException if it could not be found.
    List<com.liferay.portal.kernel.model.Team>
    findByGroupId(long groupId)
    Returns all the teams where groupId = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the teams where groupId = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns an ordered range of all the teams where groupId = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the teams where groupId = ?.
    com.liferay.portal.kernel.model.Team
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the first team in the ordered set where groupId = ?.
    com.liferay.portal.kernel.model.Team
    findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the last team in the ordered set where groupId = ?.
    com.liferay.portal.kernel.model.Team[]
    findByGroupId_PrevAndNext(long teamId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the teams before and after the current team in the ordered set where groupId = ?.
    com.liferay.portal.kernel.model.Team
    findByPrimaryKey(long teamId)
    Returns the team with the primary key or throws a NoSuchTeamException if it could not be found.
    com.liferay.portal.kernel.model.Team
    Returns the team with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
    List<com.liferay.portal.kernel.model.Team>
    Returns all the teams where uuid = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByUuid(String uuid, int start, int end)
    Returns a range of all the teams where uuid = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns an ordered range of all the teams where uuid = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the teams where uuid = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByUuid_C(String uuid, long companyId)
    Returns all the teams where uuid = ? and companyId = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the teams where uuid = ? and companyId = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns an ordered range of all the teams where uuid = ? and companyId = ?.
    List<com.liferay.portal.kernel.model.Team>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the teams where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Team
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the first team in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Team
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the last team in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Team[]
    findByUuid_C_PrevAndNext(long teamId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the teams before and after the current team in the ordered set where uuid = ? and companyId = ?.
    com.liferay.portal.kernel.model.Team
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the first team in the ordered set where uuid = ?.
    com.liferay.portal.kernel.model.Team
    findByUUID_G(String uuid, long groupId)
    Returns the team where uuid = ? and groupId = ? or throws a NoSuchTeamException if it could not be found.
    com.liferay.portal.kernel.model.Team
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the last team in the ordered set where uuid = ?.
    com.liferay.portal.kernel.model.Team[]
    findByUuid_PrevAndNext(long teamId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
    Returns the teams before and after the current team in the ordered set where uuid = ?.
     
    protected com.liferay.portal.kernel.model.Team
    getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
     
    protected com.liferay.portal.kernel.model.Team
    getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
     
    protected com.liferay.portal.kernel.model.Team
    getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
     
    protected com.liferay.portal.kernel.model.Team
    getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
     
    getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
     
    protected com.liferay.portal.kernel.dao.orm.EntityCache
     
    protected com.liferay.portal.kernel.dao.orm.FinderCache
     
     
    protected String
     
    protected String
     
     
     
     
    long[]
    Returns the primaryKeys of user groups associated with the team.
    List<com.liferay.portal.kernel.model.UserGroup>
    getUserGroups(long pk)
    Returns all the user groups associated with the team.
    List<com.liferay.portal.kernel.model.UserGroup>
    getUserGroups(long pk, int start, int end)
    Returns a range of all the user groups associated with the team.
    List<com.liferay.portal.kernel.model.UserGroup>
    getUserGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator)
    Returns an ordered range of all the user groups associated with the team.
    int
    Returns the number of user groups associated with the team.
    long[]
    Returns the primaryKeys of users associated with the team.
    List<com.liferay.portal.kernel.model.User>
    getUsers(long pk)
    Returns all the users associated with the team.
    List<com.liferay.portal.kernel.model.User>
    getUsers(long pk, int start, int end)
    Returns a range of all the users associated with the team.
    List<com.liferay.portal.kernel.model.User>
    getUsers(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.
    com.liferay.portal.kernel.model.Team
    remove(long teamId)
    Removes the team with the primary key from the database.
    com.liferay.portal.kernel.model.Team
    remove(Serializable primaryKey)
    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.
    com.liferay.portal.kernel.model.Team
    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
    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.
    com.liferay.portal.kernel.model.Team
    removeByUUID_G(String uuid, long groupId)
    Removes the team where uuid = ? and groupId = ? from the database.
    protected com.liferay.portal.kernel.model.Team
    removeImpl(com.liferay.portal.kernel.model.Team team)
     
    void
    removeUser(long pk, long userPK)
    Removes the association between the team and the user.
    void
    removeUser(long pk, com.liferay.portal.kernel.model.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, com.liferay.portal.kernel.model.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<com.liferay.portal.kernel.model.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<com.liferay.portal.kernel.model.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<com.liferay.portal.kernel.model.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
    setUsers(long pk, List<com.liferay.portal.kernel.model.User> users)
    Sets the users associated with the team, removing and adding associations as necessary.
    com.liferay.portal.kernel.model.Team
    updateImpl(com.liferay.portal.kernel.model.Team team)
     

    Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl

    appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, update

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • Field Details

    • FINDER_CLASS_NAME_ENTITY

      public static final String FINDER_CLASS_NAME_ENTITY
    • FINDER_CLASS_NAME_LIST_WITH_PAGINATION

      public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
    • FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

      public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
    • userPersistence

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
    • teamToUserTableMapper

      protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.User> teamToUserTableMapper
    • userGroupPersistence

      @BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence
    • teamToUserGroupTableMapper

      protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.UserGroup> teamToUserGroupTableMapper
  • Constructor Details

    • TeamPersistenceImpl

      public TeamPersistenceImpl()
  • Method Details

    • findByUuid

      public List<com.liferay.portal.kernel.model.Team> findByUuid(String uuid)
      Returns all the teams where uuid = ?.
      Specified by:
      findByUuid in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      Returns:
      the matching teams
    • findByUuid

      public List<com.liferay.portal.kernel.model.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.

      Specified by:
      findByUuid in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.Team> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      findByUuid in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.Team> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      findByUuid in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the first team in the ordered set where uuid = ?.
      Specified by:
      findByUuid_First in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a matching team could not be found
    • fetchByUuid_First

      public com.liferay.portal.kernel.model.Team fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
      Returns the first team in the ordered set where uuid = ?.
      Specified by:
      fetchByUuid_First in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the last team in the ordered set where uuid = ?.
      Specified by:
      findByUuid_Last in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a matching team could not be found
    • fetchByUuid_Last

      public com.liferay.portal.kernel.model.Team fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
      Returns the last team in the ordered set where uuid = ?.
      Specified by:
      fetchByUuid_Last in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team[] findByUuid_PrevAndNext(long teamId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the teams before and after the current team in the ordered set where uuid = ?.
      Specified by:
      findByUuid_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a team with the primary key could not be found
    • getByUuid_PrevAndNext

      protected com.liferay.portal.kernel.model.Team getByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
    • removeByUuid

      public void removeByUuid(String uuid)
      Removes all the teams where uuid = ? from the database.
      Specified by:
      removeByUuid in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
    • countByUuid

      public int countByUuid(String uuid)
      Returns the number of teams where uuid = ?.
      Specified by:
      countByUuid in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching teams
    • findByUUID_G

      public com.liferay.portal.kernel.model.Team findByUUID_G(String uuid, long groupId) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the team where uuid = ? and groupId = ? or throws a NoSuchTeamException if it could not be found.
      Specified by:
      findByUUID_G in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a matching team could not be found
    • fetchByUUID_G

      public com.liferay.portal.kernel.model.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.
      Specified by:
      fetchByUUID_G in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.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.
      Specified by:
      fetchByUUID_G in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team removeByUUID_G(String uuid, long groupId) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Removes the team where uuid = ? and groupId = ? from the database.
      Specified by:
      removeByUUID_G in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the team that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException
    • countByUUID_G

      public int countByUUID_G(String uuid, long groupId)
      Returns the number of teams where uuid = ? and groupId = ?.
      Specified by:
      countByUUID_G in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching teams
    • findByUuid_C

      public List<com.liferay.portal.kernel.model.Team> findByUuid_C(String uuid, long companyId)
      Returns all the teams where uuid = ? and companyId = ?.
      Specified by:
      findByUuid_C in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching teams
    • findByUuid_C

      public List<com.liferay.portal.kernel.model.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.

      Specified by:
      findByUuid_C in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.Team> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      findByUuid_C in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.Team> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      findByUuid_C in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the first team in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      findByUuid_C_First in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a matching team could not be found
    • fetchByUuid_C_First

      public com.liferay.portal.kernel.model.Team fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
      Returns the first team in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      fetchByUuid_C_First in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the last team in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      findByUuid_C_Last in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a matching team could not be found
    • fetchByUuid_C_Last

      public com.liferay.portal.kernel.model.Team fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
      Returns the last team in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      fetchByUuid_C_Last in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team[] findByUuid_C_PrevAndNext(long teamId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the teams before and after the current team in the ordered set where uuid = ? and companyId = ?.
      Specified by:
      findByUuid_C_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a team with the primary key could not be found
    • getByUuid_C_PrevAndNext

      protected com.liferay.portal.kernel.model.Team getByUuid_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
    • removeByUuid_C

      public void removeByUuid_C(String uuid, long companyId)
      Removes all the teams where uuid = ? and companyId = ? from the database.
      Specified by:
      removeByUuid_C in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public int countByUuid_C(String uuid, long companyId)
      Returns the number of teams where uuid = ? and companyId = ?.
      Specified by:
      countByUuid_C in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching teams
    • findByCompanyId

      public List<com.liferay.portal.kernel.model.Team> findByCompanyId(long companyId)
      Returns all the teams where companyId = ?.
      Specified by:
      findByCompanyId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      companyId - the company ID
      Returns:
      the matching teams
    • findByCompanyId

      public List<com.liferay.portal.kernel.model.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.

      Specified by:
      findByCompanyId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.Team> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      findByCompanyId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.Team> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      findByCompanyId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the first team in the ordered set where companyId = ?.
      Specified by:
      findByCompanyId_First in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a matching team could not be found
    • fetchByCompanyId_First

      public com.liferay.portal.kernel.model.Team fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
      Returns the first team in the ordered set where companyId = ?.
      Specified by:
      fetchByCompanyId_First in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the last team in the ordered set where companyId = ?.
      Specified by:
      findByCompanyId_Last in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a matching team could not be found
    • fetchByCompanyId_Last

      public com.liferay.portal.kernel.model.Team fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
      Returns the last team in the ordered set where companyId = ?.
      Specified by:
      fetchByCompanyId_Last in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team[] findByCompanyId_PrevAndNext(long teamId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the teams before and after the current team in the ordered set where companyId = ?.
      Specified by:
      findByCompanyId_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a team with the primary key could not be found
    • getByCompanyId_PrevAndNext

      protected com.liferay.portal.kernel.model.Team getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
    • removeByCompanyId

      public void removeByCompanyId(long companyId)
      Removes all the teams where companyId = ? from the database.
      Specified by:
      removeByCompanyId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public int countByCompanyId(long companyId)
      Returns the number of teams where companyId = ?.
      Specified by:
      countByCompanyId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching teams
    • findByGroupId

      public List<com.liferay.portal.kernel.model.Team> findByGroupId(long groupId)
      Returns all the teams where groupId = ?.
      Specified by:
      findByGroupId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      groupId - the group ID
      Returns:
      the matching teams
    • findByGroupId

      public List<com.liferay.portal.kernel.model.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.

      Specified by:
      findByGroupId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.Team> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      findByGroupId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.Team> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      findByGroupId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the first team in the ordered set where groupId = ?.
      Specified by:
      findByGroupId_First in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a matching team could not be found
    • fetchByGroupId_First

      public com.liferay.portal.kernel.model.Team fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
      Returns the first team in the ordered set where groupId = ?.
      Specified by:
      fetchByGroupId_First in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the last team in the ordered set where groupId = ?.
      Specified by:
      findByGroupId_Last in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a matching team could not be found
    • fetchByGroupId_Last

      public com.liferay.portal.kernel.model.Team fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator)
      Returns the last team in the ordered set where groupId = ?.
      Specified by:
      fetchByGroupId_Last in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team[] findByGroupId_PrevAndNext(long teamId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the teams before and after the current team in the ordered set where groupId = ?.
      Specified by:
      findByGroupId_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a team with the primary key could not be found
    • getByGroupId_PrevAndNext

      protected com.liferay.portal.kernel.model.Team getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
    • filterFindByGroupId

      public List<com.liferay.portal.kernel.model.Team> filterFindByGroupId(long groupId)
      Returns all the teams that the user has permission to view where groupId = ?.
      Specified by:
      filterFindByGroupId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      groupId - the group ID
      Returns:
      the matching teams that the user has permission to view
    • filterFindByGroupId

      public List<com.liferay.portal.kernel.model.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.

      Specified by:
      filterFindByGroupId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.Team> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      filterFindByGroupId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team[] filterFindByGroupId_PrevAndNext(long teamId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.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 = ?.
      Specified by:
      filterFindByGroupId_PrevAndNext in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a team with the primary key could not be found
    • filterGetByGroupId_PrevAndNext

      protected com.liferay.portal.kernel.model.Team filterGetByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous)
    • removeByGroupId

      public void removeByGroupId(long groupId)
      Removes all the teams where groupId = ? from the database.
      Specified by:
      removeByGroupId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      groupId - the group ID
    • countByGroupId

      public int countByGroupId(long groupId)
      Returns the number of teams where groupId = ?.
      Specified by:
      countByGroupId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching teams
    • filterCountByGroupId

      public int filterCountByGroupId(long groupId)
      Returns the number of teams that the user has permission to view where groupId = ?.
      Specified by:
      filterCountByGroupId in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching teams that the user has permission to view
    • findByG_N

      public com.liferay.portal.kernel.model.Team findByG_N(long groupId, String name) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the team where groupId = ? and name = ? or throws a NoSuchTeamException if it could not be found.
      Specified by:
      findByG_N in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the matching team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a matching team could not be found
    • fetchByG_N

      public com.liferay.portal.kernel.model.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.
      Specified by:
      fetchByG_N in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.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.
      Specified by:
      fetchByG_N in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 com.liferay.portal.kernel.model.Team removeByG_N(long groupId, String name) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Removes the team where groupId = ? and name = ? from the database.
      Specified by:
      removeByG_N in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the team that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException
    • countByG_N

      public int countByG_N(long groupId, String name)
      Returns the number of teams where groupId = ? and name = ?.
      Specified by:
      countByG_N in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      groupId - the group ID
      name - the name
      Returns:
      the number of matching teams
    • cacheResult

      public void cacheResult(com.liferay.portal.kernel.model.Team team)
      Caches the team in the entity cache if it is enabled.
      Specified by:
      cacheResult in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Overrides:
      cacheResult in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
      Parameters:
      team - the team
    • cacheResult

      public void cacheResult(List<com.liferay.portal.kernel.model.Team> teams)
      Caches the teams in the entity cache if it is enabled.
      Specified by:
      cacheResult in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      teams - the teams
    • clearCache

      public void clearCache()
      Clears the cache for all teams.

      The EntityCache and FinderCache are both cleared by this method.

      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
    • clearCache

      public void clearCache(com.liferay.portal.kernel.model.Team team)
      Clears the cache for the team.

      The EntityCache and FinderCache are both cleared by this method.

      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
    • clearCache

      public void clearCache(List<com.liferay.portal.kernel.model.Team> teams)
      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
      Overrides:
      clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
    • clearCache

      public void clearCache(Set<Serializable> primaryKeys)
      Specified by:
      clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
    • cacheUniqueFindersCache

      protected void cacheUniqueFindersCache(TeamModelImpl teamModelImpl)
    • create

      public com.liferay.portal.kernel.model.Team create(long teamId)
      Creates a new team with the primary key. Does not add the team to the database.
      Specified by:
      create in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      teamId - the primary key for the new team
      Returns:
      the new team
    • remove

      public com.liferay.portal.kernel.model.Team remove(long teamId) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Removes the team with the primary key from the database. Also notifies the appropriate model listeners.
      Specified by:
      remove in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      teamId - the primary key of the team
      Returns:
      the team that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a team with the primary key could not be found
    • remove

      public com.liferay.portal.kernel.model.Team remove(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Removes the team with the primary key from the database. Also notifies the appropriate model listeners.
      Specified by:
      remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
      Overrides:
      remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
      Parameters:
      primaryKey - the primary key of the team
      Returns:
      the team that was removed
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a team with the primary key could not be found
    • removeImpl

      protected com.liferay.portal.kernel.model.Team removeImpl(com.liferay.portal.kernel.model.Team team)
      Overrides:
      removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
    • updateImpl

      public com.liferay.portal.kernel.model.Team updateImpl(com.liferay.portal.kernel.model.Team team)
      Specified by:
      updateImpl in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Overrides:
      updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
    • findByPrimaryKey

      public com.liferay.portal.kernel.model.Team findByPrimaryKey(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the team with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
      Overrides:
      findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
      Parameters:
      primaryKey - the primary key of the team
      Returns:
      the team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a team with the primary key could not be found
    • findByPrimaryKey

      public com.liferay.portal.kernel.model.Team findByPrimaryKey(long teamId) throws com.liferay.portal.kernel.exception.NoSuchTeamException
      Returns the team with the primary key or throws a NoSuchTeamException if it could not be found.
      Specified by:
      findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      teamId - the primary key of the team
      Returns:
      the team
      Throws:
      com.liferay.portal.kernel.exception.NoSuchTeamException - if a team with the primary key could not be found
    • fetchByPrimaryKey

      public com.liferay.portal.kernel.model.Team fetchByPrimaryKey(Serializable primaryKey)
      Returns the team with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
      Overrides:
      fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
      Parameters:
      primaryKey - the primary key of the team
      Returns:
      the team, or null if a team with the primary key could not be found
    • fetchByPrimaryKey

      public com.liferay.portal.kernel.model.Team fetchByPrimaryKey(long teamId)
      Returns the team with the primary key or returns null if it could not be found.
      Specified by:
      fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      teamId - the primary key of the team
      Returns:
      the team, or null if a team with the primary key could not be found
    • fetchByPrimaryKeys

      public Map<Serializable,com.liferay.portal.kernel.model.Team> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      Specified by:
      fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
      Overrides:
      fetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
    • findAll

      public List<com.liferay.portal.kernel.model.Team> findAll()
      Returns all the teams.
      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Returns:
      the teams
    • findAll

      public List<com.liferay.portal.kernel.model.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.

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.Team> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.Team> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      findAll in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 void removeAll()
      Removes all the teams from the database.
      Specified by:
      removeAll in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
    • countAll

      public int countAll()
      Returns the number of teams.
      Specified by:
      countAll in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Returns:
      the number of teams
    • getUserPrimaryKeys

      public long[] getUserPrimaryKeys(long pk)
      Returns the primaryKeys of users associated with the team.
      Specified by:
      getUserPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      Returns:
      long[] of the primaryKeys of users associated with the team
    • getUsers

      public List<com.liferay.portal.kernel.model.User> getUsers(long pk)
      Returns all the users associated with the team.
      Specified by:
      getUsers in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      Returns:
      the users associated with the team
    • getUsers

      public List<com.liferay.portal.kernel.model.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.

      Specified by:
      getUsers in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.User> getUsers(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      getUsers in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 int getUsersSize(long pk)
      Returns the number of users associated with the team.
      Specified by:
      getUsersSize in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      Returns:
      the number of users associated with the team
    • containsUser

      public boolean containsUser(long pk, long userPK)
      Returns true if the user is associated with the team.
      Specified by:
      containsUser in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 boolean containsUsers(long pk)
      Returns true if the team has any users associated with it.
      Specified by:
      containsUsers in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 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.
      Specified by:
      addUser in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 boolean addUser(long pk, com.liferay.portal.kernel.model.User user)
      Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      addUser in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 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.
      Specified by:
      addUsers in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 boolean addUsers(long pk, List<com.liferay.portal.kernel.model.User> users)
      Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      addUsers in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 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.
      Specified by:
      clearUsers in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team to clear the associated users from
    • removeUser

      public 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.
      Specified by:
      removeUser in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      userPK - the primary key of the user
    • removeUser

      public void removeUser(long pk, com.liferay.portal.kernel.model.User user)
      Removes the association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      removeUser in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      user - the user
    • removeUsers

      public 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.
      Specified by:
      removeUsers in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      userPKs - the primary keys of the users
    • removeUsers

      public void removeUsers(long pk, List<com.liferay.portal.kernel.model.User> users)
      Removes the association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.
      Specified by:
      removeUsers in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      users - the users
    • setUsers

      public 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.
      Specified by:
      setUsers in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      userPKs - the primary keys of the users to be associated with the team
    • setUsers

      public void setUsers(long pk, List<com.liferay.portal.kernel.model.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.
      Specified by:
      setUsers in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      users - the users to be associated with the team
    • getUserGroupPrimaryKeys

      public long[] getUserGroupPrimaryKeys(long pk)
      Returns the primaryKeys of user groups associated with the team.
      Specified by:
      getUserGroupPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      Returns:
      long[] of the primaryKeys of user groups associated with the team
    • getUserGroups

      public List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(long pk)
      Returns all the user groups associated with the team.
      Specified by:
      getUserGroups in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      Returns:
      the user groups associated with the team
    • getUserGroups

      public List<com.liferay.portal.kernel.model.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.

      Specified by:
      getUserGroups in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.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.

      Specified by:
      getUserGroups in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 int getUserGroupsSize(long pk)
      Returns the number of user groups associated with the team.
      Specified by:
      getUserGroupsSize in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      Returns:
      the number of user groups associated with the team
    • containsUserGroup

      public boolean containsUserGroup(long pk, long userGroupPK)
      Returns true if the user group is associated with the team.
      Specified by:
      containsUserGroup in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 boolean containsUserGroups(long pk)
      Returns true if the team has any user groups associated with it.
      Specified by:
      containsUserGroups in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 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.
      Specified by:
      addUserGroup in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 boolean addUserGroup(long pk, com.liferay.portal.kernel.model.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.
      Specified by:
      addUserGroup in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 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.
      Specified by:
      addUserGroups in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 boolean addUserGroups(long pk, List<com.liferay.portal.kernel.model.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.
      Specified by:
      addUserGroups in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      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 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.
      Specified by:
      clearUserGroups in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team to clear the associated user groups from
    • removeUserGroup

      public 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.
      Specified by:
      removeUserGroup in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      userGroupPK - the primary key of the user group
    • removeUserGroup

      public void removeUserGroup(long pk, com.liferay.portal.kernel.model.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.
      Specified by:
      removeUserGroup in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      userGroup - the user group
    • removeUserGroups

      public 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.
      Specified by:
      removeUserGroups in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      userGroupPKs - the primary keys of the user groups
    • removeUserGroups

      public void removeUserGroups(long pk, List<com.liferay.portal.kernel.model.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.
      Specified by:
      removeUserGroups in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      userGroups - the user groups
    • setUserGroups

      public 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.
      Specified by:
      setUserGroups in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      userGroupPKs - the primary keys of the user groups to be associated with the team
    • setUserGroups

      public void setUserGroups(long pk, List<com.liferay.portal.kernel.model.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.
      Specified by:
      setUserGroups in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
      Parameters:
      pk - the primary key of the team
      userGroups - the user groups to be associated with the team
    • getBadColumnNames

      public Set<String> getBadColumnNames()
      Specified by:
      getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
      Overrides:
      getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
    • getEntityCache

      protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()
      Overrides:
      getEntityCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
    • getPKDBName

      protected String getPKDBName()
      Overrides:
      getPKDBName in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
    • getSelectSQL

      protected String getSelectSQL()
      Overrides:
      getSelectSQL in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
    • getCTColumnNames

      public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType)
      Specified by:
      getCTColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
    • getMappingTableNames

      public List<String> getMappingTableNames()
      Specified by:
      getMappingTableNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
    • getTableColumnsMap

      public Map<String,Integer> getTableColumnsMap()
      Specified by:
      getTableColumnsMap in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
      Overrides:
      getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
    • getTableName

      public String getTableName()
      Specified by:
      getTableName in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
    • getUniqueIndexColumnNames

      public List<String[]> getUniqueIndexColumnNames()
      Specified by:
      getUniqueIndexColumnNames in interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
    • afterPropertiesSet

      public void afterPropertiesSet()
      Initializes the team persistence.
    • destroy

      public void destroy()
    • getFinderCache

      protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()
      Overrides:
      getFinderCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>