Class TeamPersistenceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory,com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>,com.liferay.portal.kernel.service.persistence.TeamPersistence
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.UserGroup> protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.User> protected com.liferay.portal.kernel.service.persistence.UserGroupPersistenceprotected com.liferay.portal.kernel.service.persistence.UserPersistenceFields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddUser(long pk, long userPK) Adds an association between the team and the user.booleanaddUser(long pk, com.liferay.portal.kernel.model.User user) Adds an association between the team and the user.booleanaddUserGroup(long pk, long userGroupPK) Adds an association between the team and the user group.booleanaddUserGroup(long pk, com.liferay.portal.kernel.model.UserGroup userGroup) Adds an association between the team and the user group.booleanaddUserGroups(long pk, long[] userGroupPKs) Adds an association between the team and the user groups.booleanaddUserGroups(long pk, List<com.liferay.portal.kernel.model.UserGroup> userGroups) Adds an association between the team and the user groups.booleanaddUsers(long pk, long[] userPKs) Adds an association between the team and the users.booleanAdds an association between the team and the users.voidInitializes the team persistence.voidcacheResult(com.liferay.portal.kernel.model.Team team) Caches the team in the entity cache if it is enabled.voidcacheResult(List<com.liferay.portal.kernel.model.Team> teams) Caches the teams in the entity cache if it is enabled.protected voidcacheUniqueFindersCache(TeamModelImpl teamModelImpl) voidClears the cache for all teams.voidclearCache(com.liferay.portal.kernel.model.Team team) Clears the cache for the team.voidclearCache(List<com.liferay.portal.kernel.model.Team> teams) voidclearCache(Set<Serializable> primaryKeys) voidclearUserGroups(long pk) Clears all associations between the team and its user groups.voidclearUsers(long pk) Clears all associations between the team and its users.booleancontainsUser(long pk, long userPK) Returnstrueif the user is associated with the team.booleancontainsUserGroup(long pk, long userGroupPK) Returnstrueif the user group is associated with the team.booleancontainsUserGroups(long pk) Returnstrueif the team has any user groups associated with it.booleancontainsUsers(long pk) Returnstrueif the team has any users associated with it.intcountAll()Returns the number of teams.intcountByCompanyId(long companyId) Returns the number of teams where companyId = ?.intcountByG_N(long groupId, String name) Returns the number of teams where groupId = ? and name = ?.intcountByGroupId(long groupId) Returns the number of teams where groupId = ?.intcountByUuid(String uuid) Returns the number of teams where uuid = ?.intcountByUuid_C(String uuid, long companyId) Returns the number of teams where uuid = ? and companyId = ?.intcountByUUID_G(String uuid, long groupId) Returns the number of teams where uuid = ? and groupId = ?.com.liferay.portal.kernel.model.Teamcreate(long teamId) Creates a new team with the primary key.voiddestroy()com.liferay.portal.kernel.model.TeamfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the first team in the ordered set where companyId = ?.com.liferay.portal.kernel.model.TeamfetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where companyId = ?.com.liferay.portal.kernel.model.TeamfetchByG_N(long groupId, String name) Returns the team where groupId = ? and name = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.TeamfetchByG_N(long groupId, String name, boolean useFinderCache) Returns the team where groupId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.TeamfetchByGroupId_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.TeamfetchByGroupId_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.TeamfetchByPrimaryKey(long teamId) Returns the team with the primary key or returnsnullif it could not be found.com.liferay.portal.kernel.model.TeamfetchByPrimaryKey(Serializable primaryKey) Returns the team with the primary key or returnsnullif it could not be found.Map<Serializable,com.liferay.portal.kernel.model.Team> fetchByPrimaryKeys(Set<Serializable> primaryKeys) com.liferay.portal.kernel.model.TeamfetchByUuid_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.TeamfetchByUuid_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.TeamfetchByUuid_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.TeamfetchByUUID_G(String uuid, long groupId) Returns the team where uuid = ? and groupId = ? or returnsnullif it could not be found.com.liferay.portal.kernel.model.TeamfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the team where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.TeamfetchByUuid_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 = ?.intfilterCountByGroupId(long groupId) Returns the number of teams that the user has permission to view where groupId = ?.List<com.liferay.portal.kernel.model.Team>filterFindByGroupId(long groupId) Returns all the teams that the user has permission to view where groupId = ?.List<com.liferay.portal.kernel.model.Team>filterFindByGroupId(long groupId, int start, int end) Returns a range of all the teams that the user has permission to view where groupId = ?.List<com.liferay.portal.kernel.model.Team>filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns an ordered range of all the teams that the user has permissions to view where groupId = ?.com.liferay.portal.kernel.model.Team[]filterFindByGroupId_PrevAndNext(long teamId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the teams before and after the current team in the ordered set of teams that the user has permission to view where groupId = ?.protected com.liferay.portal.kernel.model.TeamfilterGetByGroupId_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 useFinderCache) Returns an ordered range of all the teams.List<com.liferay.portal.kernel.model.Team>findByCompanyId(long companyId) Returns all the teams where companyId = ?.List<com.liferay.portal.kernel.model.Team>findByCompanyId(long companyId, int start, int end) Returns a range of all the teams where companyId = ?.List<com.liferay.portal.kernel.model.Team>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns an ordered range of all the teams where companyId = ?.List<com.liferay.portal.kernel.model.Team>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where companyId = ?.com.liferay.portal.kernel.model.TeamfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the first team in the ordered set where companyId = ?.com.liferay.portal.kernel.model.TeamfindByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where companyId = ?.com.liferay.portal.kernel.model.Team[]findByCompanyId_PrevAndNext(long teamId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the teams before and after the current team in the ordered set where companyId = ?.com.liferay.portal.kernel.model.TeamReturns the team where groupId = ? and name = ? or throws aNoSuchTeamExceptionif it could not be found.List<com.liferay.portal.kernel.model.Team>findByGroupId(long groupId) Returns all the teams where groupId = ?.List<com.liferay.portal.kernel.model.Team>findByGroupId(long groupId, int start, int end) Returns a range of all the teams where groupId = ?.List<com.liferay.portal.kernel.model.Team>findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns an ordered range of all the teams where groupId = ?.List<com.liferay.portal.kernel.model.Team>findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where groupId = ?.com.liferay.portal.kernel.model.TeamfindByGroupId_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.TeamfindByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where groupId = ?.com.liferay.portal.kernel.model.Team[]findByGroupId_PrevAndNext(long teamId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the teams before and after the current team in the ordered set where groupId = ?.com.liferay.portal.kernel.model.TeamfindByPrimaryKey(long teamId) Returns the team with the primary key or throws aNoSuchTeamExceptionif it could not be found.com.liferay.portal.kernel.model.TeamfindByPrimaryKey(Serializable primaryKey) Returns the team with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelExceptionif it could not be found.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 useFinderCache) Returns an ordered range of all the teams where uuid = ?.List<com.liferay.portal.kernel.model.Team>findByUuid_C(String uuid, long companyId) Returns all the teams where uuid = ? and companyId = ?.List<com.liferay.portal.kernel.model.Team>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the teams where uuid = ? and companyId = ?.List<com.liferay.portal.kernel.model.Team>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns an ordered range of all the teams where uuid = ? and companyId = ?.List<com.liferay.portal.kernel.model.Team>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.TeamfindByUuid_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.TeamfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.Team[]findByUuid_C_PrevAndNext(long teamId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the teams before and after the current team in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.TeamfindByUuid_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.TeamfindByUUID_G(String uuid, long groupId) Returns the team where uuid = ? and groupId = ? or throws aNoSuchTeamExceptionif it could not be found.com.liferay.portal.kernel.model.TeamfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where uuid = ?.com.liferay.portal.kernel.model.Team[]findByUuid_PrevAndNext(long teamId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the teams before and after the current team in the ordered set where uuid = ?.protected com.liferay.portal.kernel.model.TeamgetByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.TeamgetByGroupId_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.TeamgetByUuid_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.TeamgetByUuid_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous) getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.dao.orm.EntityCacheprotected com.liferay.portal.kernel.dao.orm.FinderCacheprotected Stringprotected Stringlong[]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.intgetUserGroupsSize(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.intgetUsersSize(long pk) Returns the number of users associated with the team.com.liferay.portal.kernel.model.Teamremove(long teamId) Removes the team with the primary key from the database.com.liferay.portal.kernel.model.Teamremove(Serializable primaryKey) Removes the team with the primary key from the database.voidRemoves all the teams from the database.voidremoveByCompanyId(long companyId) Removes all the teams where companyId = ? from the database.com.liferay.portal.kernel.model.TeamremoveByG_N(long groupId, String name) Removes the team where groupId = ? and name = ? from the database.voidremoveByGroupId(long groupId) Removes all the teams where groupId = ? from the database.voidremoveByUuid(String uuid) Removes all the teams where uuid = ? from the database.voidremoveByUuid_C(String uuid, long companyId) Removes all the teams where uuid = ? and companyId = ? from the database.com.liferay.portal.kernel.model.TeamremoveByUUID_G(String uuid, long groupId) Removes the team where uuid = ? and groupId = ? from the database.protected com.liferay.portal.kernel.model.TeamremoveImpl(com.liferay.portal.kernel.model.Team team) voidremoveUser(long pk, long userPK) Removes the association between the team and the user.voidremoveUser(long pk, com.liferay.portal.kernel.model.User user) Removes the association between the team and the user.voidremoveUserGroup(long pk, long userGroupPK) Removes the association between the team and the user group.voidremoveUserGroup(long pk, com.liferay.portal.kernel.model.UserGroup userGroup) Removes the association between the team and the user group.voidremoveUserGroups(long pk, long[] userGroupPKs) Removes the association between the team and the user groups.voidremoveUserGroups(long pk, List<com.liferay.portal.kernel.model.UserGroup> userGroups) Removes the association between the team and the user groups.voidremoveUsers(long pk, long[] userPKs) Removes the association between the team and the users.voidremoveUsers(long pk, List<com.liferay.portal.kernel.model.User> users) Removes the association between the team and the users.voidsetUserGroups(long pk, long[] userGroupPKs) Sets the user groups associated with the team, removing and adding associations as necessary.voidsetUserGroups(long pk, List<com.liferay.portal.kernel.model.UserGroup> userGroups) Sets the user groups associated with the team, removing and adding associations as necessary.voidsetUsers(long pk, long[] userPKs) Sets the users associated with the team, removing and adding associations as necessary.voidSets the users associated with the team, removing and adding associations as necessary.com.liferay.portal.kernel.model.TeamupdateImpl(com.liferay.portal.kernel.model.Team team) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Field Details
-
FINDER_CLASS_NAME_ENTITY
-
FINDER_CLASS_NAME_LIST_WITH_PAGINATION
-
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
-
userPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserPersistence userPersistence -
teamToUserTableMapper
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.User> teamToUserTableMapper -
userGroupPersistence
@BeanReference(type=com.liferay.portal.kernel.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence userGroupPersistence -
teamToUserGroupTableMapper
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,com.liferay.portal.kernel.model.UserGroup> teamToUserGroupTableMapper
-
-
Constructor Details
-
TeamPersistenceImpl
public TeamPersistenceImpl()
-
-
Method Details
-
findByUuid
Returns all the teams where uuid = ?.- Specified by:
findByUuidin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuid- Returns:
- the matching teams
-
findByUuid
Returns a range of all the teams where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByUuidin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByUuid
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByUuidin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching teams
-
findByUuid
public List<com.liferay.portal.kernel.model.Team> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByUuidin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByUuid_First
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_Firstin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- 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_Firstin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team, or
nullif 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_Lastin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- 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_Lastin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team, or
nullif 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_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
teamId- the primary key of the current teamuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next team
- Throws:
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
Removes all the teams where uuid = ? from the database.- Specified by:
removeByUuidin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of teams where uuid = ?.- Specified by:
countByUuidin interfacecom.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 aNoSuchTeamExceptionif it could not be found.- Specified by:
findByUUID_Gin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching team
- Throws:
com.liferay.portal.kernel.exception.NoSuchTeamException- if a matching team could not be found
-
fetchByUUID_G
Returns the team where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByUUID_Gin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching team, or
nullif a matching team could not be found
-
fetchByUUID_G
public com.liferay.portal.kernel.model.Team fetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the team where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByUUID_Gin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching team, or
nullif 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_Gin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the team that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchTeamException
-
countByUUID_G
Returns the number of teams where uuid = ? and groupId = ?.- Specified by:
countByUUID_Gin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching teams
-
findByUuid_C
Returns all the teams where uuid = ? and companyId = ?.- Specified by:
findByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidcompanyId- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByUuid_C
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching teams
-
findByUuid_C
public List<com.liferay.portal.kernel.model.Team> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByUuid_C_First
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_Firstin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- 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_Firstin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team, or
nullif 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_Lastin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- 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_Lastin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team, or
nullif 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_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
teamId- the primary key of the current teamuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next team
- Throws:
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
Removes all the teams where uuid = ? and companyId = ? from the database.- Specified by:
removeByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of teams where uuid = ? and companyId = ?.- Specified by:
countByUuid_Cin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching teams
-
findByCompanyId
Returns all the teams where companyId = ?.- Specified by:
findByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
companyId- the company ID- Returns:
- the matching teams
-
findByCompanyId
public List<com.liferay.portal.kernel.model.Team> findByCompanyId(long companyId, int start, int end) Returns a range of all the teams where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByCompanyId
public List<com.liferay.portal.kernel.model.Team> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns an ordered range of all the teams where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching teams
-
findByCompanyId
public List<com.liferay.portal.kernel.model.Team> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
companyId- the company IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByCompanyId_First
public com.liferay.portal.kernel.model.Team findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the first team in the ordered set where companyId = ?.- Specified by:
findByCompanyId_Firstin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team
- Throws:
com.liferay.portal.kernel.exception.NoSuchTeamException- if a matching team could not be found
-
fetchByCompanyId_First
public com.liferay.portal.kernel.model.Team fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the first team in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_Firstin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team, or
nullif a matching team could not be found
-
findByCompanyId_Last
public com.liferay.portal.kernel.model.Team findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the last team in the ordered set where companyId = ?.- Specified by:
findByCompanyId_Lastin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team
- Throws:
com.liferay.portal.kernel.exception.NoSuchTeamException- if a matching team could not be found
-
fetchByCompanyId_Last
public com.liferay.portal.kernel.model.Team fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where companyId = ?.- Specified by:
fetchByCompanyId_Lastin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team, or
nullif a matching team could not be found
-
findByCompanyId_PrevAndNext
public com.liferay.portal.kernel.model.Team[] findByCompanyId_PrevAndNext(long teamId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the teams before and after the current team in the ordered set where companyId = ?.- Specified by:
findByCompanyId_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
teamId- the primary key of the current teamcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next team
- Throws:
com.liferay.portal.kernel.exception.NoSuchTeamException- if a team with the primary key could not be found
-
getByCompanyId_PrevAndNext
protected com.liferay.portal.kernel.model.Team getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous) -
removeByCompanyId
public void removeByCompanyId(long companyId) Removes all the teams where companyId = ? from the database.- Specified by:
removeByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
companyId- the company ID
-
countByCompanyId
public int countByCompanyId(long companyId) Returns the number of teams where companyId = ?.- Specified by:
countByCompanyIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
companyId- the company ID- Returns:
- the number of matching teams
-
findByGroupId
Returns all the teams where groupId = ?.- Specified by:
findByGroupIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group ID- Returns:
- the matching teams
-
findByGroupId
Returns a range of all the teams where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByGroupIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams
-
findByGroupId
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByGroupIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching teams
-
findByGroupId
public List<com.liferay.portal.kernel.model.Team> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findByGroupIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching teams
-
findByGroupId_First
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_Firstin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- 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_Firstin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching team, or
nullif 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_Lastin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- 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_Lastin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching team, or
nullif 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_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
teamId- the primary key of the current teamgroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next team
- Throws:
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
Returns all the teams that the user has permission to view where groupId = ?.- Specified by:
filterFindByGroupIdin interfacecom.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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
filterFindByGroupIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of matching teams that the user has permission to view
-
filterFindByGroupId
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
filterFindByGroupIdin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching teams that the user has permission to view
-
filterFindByGroupId_PrevAndNext
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_PrevAndNextin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
teamId- the primary key of the current teamgroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next team
- Throws:
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:
removeByGroupIdin interfacecom.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:
countByGroupIdin interfacecom.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:
filterCountByGroupIdin interfacecom.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 aNoSuchTeamExceptionif it could not be found.- Specified by:
findByG_Nin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDname- the name- Returns:
- the matching team
- Throws:
com.liferay.portal.kernel.exception.NoSuchTeamException- if a matching team could not be found
-
fetchByG_N
Returns the team where groupId = ? and name = ? or returnsnullif it could not be found. Uses the finder cache.- Specified by:
fetchByG_Nin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDname- the name- Returns:
- the matching team, or
nullif a matching team could not be found
-
fetchByG_N
public com.liferay.portal.kernel.model.Team fetchByG_N(long groupId, String name, boolean useFinderCache) Returns the team where groupId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.- Specified by:
fetchByG_Nin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDname- the nameuseFinderCache- whether to use the finder cache- Returns:
- the matching team, or
nullif 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_Nin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDname- the name- Returns:
- the team that was removed
- Throws:
com.liferay.portal.kernel.exception.NoSuchTeamException
-
countByG_N
Returns the number of teams where groupId = ? and name = ?.- Specified by:
countByG_Nin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
groupId- the group IDname- 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:
cacheResultin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Overrides:
cacheResultin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>- Parameters:
team- the team
-
cacheResult
Caches the teams in the entity cache if it is enabled.- Specified by:
cacheResultin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
teams- the teams
-
clearCache
public void clearCache()Clears the cache for all teams.The
EntityCacheandFinderCacheare both cleared by this method.- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>- Overrides:
clearCachein classcom.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
EntityCacheandFinderCacheare both cleared by this method.- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>- Overrides:
clearCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
clearCache
- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>- Overrides:
clearCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
clearCache
- Specified by:
clearCachein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
-
cacheUniqueFindersCache
-
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:
createin interfacecom.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:
removein interfacecom.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:
removein interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>- Overrides:
removein classcom.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:
removeImplin classcom.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:
updateImplin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Overrides:
updateImplin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
findByPrimaryKey
public com.liferay.portal.kernel.model.Team findByPrimaryKey(Serializable primaryKey) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the team with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelExceptionif it could not be found.- Specified by:
findByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>- Overrides:
findByPrimaryKeyin classcom.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 aNoSuchTeamExceptionif it could not be found.- Specified by:
findByPrimaryKeyin interfacecom.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
Returns the team with the primary key or returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>- Overrides:
fetchByPrimaryKeyin classcom.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
nullif 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 returnsnullif it could not be found.- Specified by:
fetchByPrimaryKeyin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
teamId- the primary key of the team- Returns:
- the team, or
nullif 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:
fetchByPrimaryKeysin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>- Overrides:
fetchByPrimaryKeysin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
findAll
Returns all the teams.- Specified by:
findAllin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Returns:
- the teams
-
findAll
Returns a range of all the teams.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findAllin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
start- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of teams
-
findAll
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findAllin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
start- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of teams
-
findAll
public List<com.liferay.portal.kernel.model.Team> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
findAllin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
start- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of teams
-
removeAll
public void removeAll()Removes all the teams from the database.- Specified by:
removeAllin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
-
countAll
public int countAll()Returns the number of teams.- Specified by:
countAllin interfacecom.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:
getUserPrimaryKeysin interfacecom.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
Returns all the users associated with the team.- Specified by:
getUsersin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the team- Returns:
- the users associated with the team
-
getUsers
Returns a range of all the users associated with the team.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
getUsersin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of users associated with the team
-
getUsers
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
getUsersin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of users associated with the team
-
getUsersSize
public int getUsersSize(long pk) Returns the number of users associated with the team.- Specified by:
getUsersSizein interfacecom.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) Returnstrueif the user is associated with the team.- Specified by:
containsUserin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserPK- the primary key of the user- Returns:
trueif the user is associated with the team;falseotherwise
-
containsUsers
public boolean containsUsers(long pk) Returnstrueif the team has any users associated with it.- Specified by:
containsUsersin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the team to check for associations with users- Returns:
trueif the team has any users associated with it;falseotherwise
-
addUser
public boolean addUser(long pk, long userPK) Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserPK- the primary key of the user- Returns:
trueif an association between the team and the user was added;falseif they were already associated
-
addUser
public boolean addUser(long pk, com.liferay.portal.kernel.model.User user) Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuser- the user- Returns:
trueif an association between the team and the user was added;falseif they were already associated
-
addUsers
public boolean addUsers(long pk, long[] userPKs) Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUsersin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserPKs- the primary keys of the users- Returns:
trueif at least one association between the team and the users was added;falseif they were all already associated
-
addUsers
Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUsersin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamusers- the users- Returns:
trueif at least one association between the team and the users was added;falseif they were all already associated
-
clearUsers
public void clearUsers(long pk) Clears all associations between the team and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearUsersin interfacecom.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:
removeUserin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserPK- 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:
removeUserin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuser- 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:
removeUsersin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserPKs- the primary keys of the users
-
removeUsers
Removes the association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeUsersin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamusers- 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:
setUsersin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserPKs- the primary keys of the users to be associated with the team
-
setUsers
Sets the users associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setUsersin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamusers- 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:
getUserGroupPrimaryKeysin interfacecom.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
Returns all the user groups associated with the team.- Specified by:
getUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the team- Returns:
- the user groups associated with the team
-
getUserGroups
Returns a range of all the user groups associated with the team.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
getUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)- Returns:
- the range of user groups associated with the team
-
getUserGroups
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromTeamModelImpl.- Specified by:
getUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamstart- the lower bound of the range of teamsend- the upper bound of the range of teams (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of user groups associated with the team
-
getUserGroupsSize
public int getUserGroupsSize(long pk) Returns the number of user groups associated with the team.- Specified by:
getUserGroupsSizein interfacecom.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) Returnstrueif the user group is associated with the team.- Specified by:
containsUserGroupin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserGroupPK- the primary key of the user group- Returns:
trueif the user group is associated with the team;falseotherwise
-
containsUserGroups
public boolean containsUserGroups(long pk) Returnstrueif the team has any user groups associated with it.- Specified by:
containsUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the team to check for associations with user groups- Returns:
trueif the team has any user groups associated with it;falseotherwise
-
addUserGroup
public boolean addUserGroup(long pk, long userGroupPK) Adds an association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroupin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserGroupPK- the primary key of the user group- Returns:
trueif an association between the team and the user group was added;falseif they were already associated
-
addUserGroup
public boolean addUserGroup(long pk, com.liferay.portal.kernel.model.UserGroup userGroup) Adds an association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroupin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserGroup- the user group- Returns:
trueif an association between the team and the user group was added;falseif they were already associated
-
addUserGroups
public boolean addUserGroups(long pk, long[] userGroupPKs) Adds an association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserGroupPKs- the primary keys of the user groups- Returns:
trueif at least one association between the team and the user groups was added;falseif they were all already associated
-
addUserGroups
Adds an association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserGroups- the user groups- Returns:
trueif at least one association between the team and the user groups was added;falseif they were all already associated
-
clearUserGroups
public void clearUserGroups(long pk) Clears all associations between the team and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearUserGroupsin interfacecom.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:
removeUserGroupin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserGroupPK- 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:
removeUserGroupin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserGroup- 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:
removeUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserGroupPKs- the primary keys of the user groups
-
removeUserGroups
Removes the association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
removeUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserGroups- 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:
setUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserGroupPKs- the primary keys of the user groups to be associated with the team
-
setUserGroups
Sets the user groups associated with the team, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
setUserGroupsin interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence- Parameters:
pk- the primary key of the teamuserGroups- the user groups to be associated with the team
-
getBadColumnNames
- Specified by:
getBadColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>- Overrides:
getBadColumnNamesin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
getEntityCache
protected com.liferay.portal.kernel.dao.orm.EntityCache getEntityCache()- Overrides:
getEntityCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
getPKDBName
- Overrides:
getPKDBNamein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
getSelectSQL
- Overrides:
getSelectSQLin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
getCTColumnNames
public Set<String> getCTColumnNames(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) - Specified by:
getCTColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
-
getMappingTableNames
- Specified by:
getMappingTableNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
-
getTableColumnsMap
- Specified by:
getTableColumnsMapin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>- Overrides:
getTableColumnsMapin classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
getTableName
- Specified by:
getTableNamein interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNamesin interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
-
afterPropertiesSet
public void afterPropertiesSet()Initializes the team persistence. -
destroy
public void destroy() -
getFinderCache
protected com.liferay.portal.kernel.dao.orm.FinderCache getFinderCache()- Overrides:
getFinderCachein classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-