Liferay 7.0-ga1 portal-impl

com.liferay.portal.service.persistence.impl
Class TeamPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
      extended by 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.TeamPersistence

@ProviderType
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

See Also:
TeamPersistence, TeamUtil
{$generated.description}

Field Summary
protected  com.liferay.portal.kernel.service.persistence.CompanyProvider companyProvider
           
protected  com.liferay.portal.kernel.dao.orm.EntityCache entityCache
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_G_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
           
protected  com.liferay.portal.kernel.dao.orm.FinderCache finderCache
           
protected  com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.UserGroup> teamToUserGroupTableMapper
           
protected  com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.User> teamToUserTableMapper
           
protected  com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence
           
protected  com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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
TeamPersistenceImpl()
           
 
Method Summary
 void addUser(long pk, long userPK)
          Adds an association between the team and the user.
 void addUser(long pk, com.liferay.portal.kernel.model.User user)
          Adds an association between the team and the user.
 void addUserGroup(long pk, long userGroupPK)
          Adds an association between the team and the user group.
 void addUserGroup(long pk, com.liferay.portal.kernel.model.UserGroup userGroup)
          Adds an association between the team and the user group.
 void addUserGroups(long pk, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
          Adds an association between the team and the user groups.
 void addUserGroups(long pk, long[] userGroupPKs)
          Adds an association between the team and the user groups.
 void addUsers(long pk, List<com.liferay.portal.kernel.model.User> users)
          Adds an association between the team and the users.
 void addUsers(long pk, long[] userPKs)
          Adds an association between the team and the users.
 void afterPropertiesSet()
          Initializes the team persistence.
 void cacheResult(List<com.liferay.portal.kernel.model.Team> teams)
          Caches the teams in the entity cache if it is enabled.
 void cacheResult(com.liferay.portal.kernel.model.Team team)
          Caches the team in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(TeamModelImpl teamModelImpl, boolean isNew)
           
 void clearCache()
          Clears the cache for all teams.
 void clearCache(List<com.liferay.portal.kernel.model.Team> teams)
           
 void clearCache(com.liferay.portal.kernel.model.Team team)
          Clears the cache for the team.
protected  void clearUniqueFindersCache(TeamModelImpl teamModelImpl)
           
 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 containsUserGroups(long pk)
          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 countAll()
          Returns the number of teams.
 int countByG_N(long groupId, String name)
          Returns the number of teams where groupId = ? and name = ?.
 int countByGroupId(long groupId)
          Returns the number of teams where groupId = ?.
 int countByUuid_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 = ?.
 int countByUuid(String uuid)
          Returns the number of teams where uuid = ?.
 com.liferay.portal.kernel.model.Team create(long teamId)
          Creates a new team with the primary key.
 void destroy()
           
 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 retrieveFromCache)
          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 fetchByPrimaryKey(Serializable primaryKey)
          Returns the team with the primary key or returns null if it could not be found.
 Map<Serializable,com.liferay.portal.kernel.model.Team> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 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 retrieveFromCache)
          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 = ?.
 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 = ?.
 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 = ?.
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> findAll()
          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 retrieveFromCache)
          Returns an ordered range of all the teams.
 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.
 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 = ?.
 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 retrieveFromCache)
          Returns an ordered range of all the teams 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 findByPrimaryKey(Serializable primaryKey)
          Returns the team with the primary key or throws a NoSuchModelException if it could not be found.
 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 = ?.
 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 retrieveFromCache)
          Returns an ordered range of all the teams 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 = ?.
 List<com.liferay.portal.kernel.model.Team> findByUuid(String uuid)
          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 retrieveFromCache)
          Returns an ordered range of all the teams where uuid = ?.
 Set<String> getBadColumnNames()
           
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)
           
protected  Map<String,Integer> getTableColumnsMap()
           
 long[] getUserGroupPrimaryKeys(long pk)
          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 getUserGroupsSize(long pk)
          Returns the number of user groups associated with the team.
 long[] getUserPrimaryKeys(long pk)
          Returns the primaryKeys of users associated with the team.
 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 removeAll()
          Removes all the teams 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 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.
 void removeByUuid(String uuid)
          Removes all the teams where uuid = ? 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, List<com.liferay.portal.kernel.model.UserGroup> userGroups)
          Removes the association between the team and the user groups.
 void removeUserGroups(long pk, long[] userGroupPKs)
          Removes the association between the team and the user groups.
 void removeUsers(long pk, List<com.liferay.portal.kernel.model.User> users)
          Removes the association between the team and the users.
 void removeUsers(long pk, long[] userPKs)
          Removes the association between the team and the users.
 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 setUserGroups(long pk, long[] userGroupPKs)
          Sets the user groups 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.
 void setUsers(long pk, long[] userPKs)
          Sets the users associated with the team, removing and adding associations as necessary.
protected  com.liferay.portal.kernel.model.Team toUnwrappedModel(com.liferay.portal.kernel.model.Team team)
           
 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, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, 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, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

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

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FETCH_BY_UUID_G

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_UUID_G

FINDER_PATH_COUNT_BY_UUID_G

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID_G

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_COUNT_BY_UUID_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_UUID_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FETCH_BY_G_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_G_N

FINDER_PATH_COUNT_BY_G_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_N

companyProvider

@BeanReference(type=com.liferay.portal.kernel.service.persistence.CompanyProviderWrapper.class)
protected com.liferay.portal.kernel.service.persistence.CompanyProvider companyProvider

entityCache

protected com.liferay.portal.kernel.dao.orm.EntityCache entityCache

finderCache

protected com.liferay.portal.kernel.dao.orm.FinderCache finderCache

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 Detail

TeamPersistenceImpl

public TeamPersistenceImpl()
Method Detail

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from 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 retrieveFromCache)
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
retrieveFromCache - whether to retrieve from 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from 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

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 retrieveFromCache)
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
retrieveFromCache - whether to retrieve from 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
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>

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(TeamModelImpl teamModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(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>

toUnwrappedModel

protected com.liferay.portal.kernel.model.Team toUnwrappedModel(com.liferay.portal.kernel.model.Team 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 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>
Specified by:
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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)
retrieveFromCache - whether to retrieve from 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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 void 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

addUser

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

addUsers

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

addUsers

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

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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 void 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

addUserGroup

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

addUserGroups

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

addUserGroups

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

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>
Specified by:
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.TeamPersistence
Overrides:
getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the team persistence.


destroy

public void destroy()

Liferay 7.0-ga1 portal-impl