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 String
static final String
static final String
protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,
com.liferay.portal.kernel.model.UserGroup> protected com.liferay.portal.kernel.service.persistence.impl.TableMapper<com.liferay.portal.kernel.model.Team,
com.liferay.portal.kernel.model.User> protected com.liferay.portal.kernel.service.persistence.UserGroupPersistence
protected com.liferay.portal.kernel.service.persistence.UserPersistence
Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, databaseInMaxParameters, dbColumnNames, dummyEntityCache, dummyFinderCache, entityCacheEnabled, FINDER_ARGS_EMPTY, finderCacheEnabled, NULL_SAFE_STRING_COMPARATOR, nullModel, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addUser
(long pk, long userPK) Adds an association between the team and the user.boolean
addUser
(long pk, com.liferay.portal.kernel.model.User user) Adds an association between the team and the user.boolean
addUserGroup
(long pk, long userGroupPK) Adds an association between the team and the user group.boolean
addUserGroup
(long pk, com.liferay.portal.kernel.model.UserGroup userGroup) Adds an association between the team and the user group.boolean
addUserGroups
(long pk, long[] userGroupPKs) Adds an association between the team and the user groups.boolean
addUserGroups
(long pk, List<com.liferay.portal.kernel.model.UserGroup> userGroups) Adds an association between the team and the user groups.boolean
addUsers
(long pk, long[] userPKs) Adds an association between the team and the users.boolean
Adds an association between the team and the users.void
Initializes the team persistence.void
cacheResult
(com.liferay.portal.kernel.model.Team team) Caches the team in the entity cache if it is enabled.void
cacheResult
(List<com.liferay.portal.kernel.model.Team> teams) Caches the teams in the entity cache if it is enabled.protected void
cacheUniqueFindersCache
(TeamModelImpl teamModelImpl) void
Clears the cache for all teams.void
clearCache
(com.liferay.portal.kernel.model.Team team) Clears the cache for the team.void
clearCache
(List<com.liferay.portal.kernel.model.Team> teams) void
clearCache
(Set<Serializable> primaryKeys) void
clearUserGroups
(long pk) Clears all associations between the team and its user groups.void
clearUsers
(long pk) Clears all associations between the team and its users.boolean
containsUser
(long pk, long userPK) Returnstrue
if the user is associated with the team.boolean
containsUserGroup
(long pk, long userGroupPK) Returnstrue
if the user group is associated with the team.boolean
containsUserGroups
(long pk) Returnstrue
if the team has any user groups associated with it.boolean
containsUsers
(long pk) Returnstrue
if the team has any users associated with it.int
countAll()
Returns the number of teams.int
countByCompanyId
(long companyId) Returns the number of teams where companyId = ?.int
countByG_N
(long groupId, String name) Returns the number of teams where groupId = ? and name = ?.int
countByGroupId
(long groupId) Returns the number of teams where groupId = ?.int
countByUuid
(String uuid) Returns the number of teams where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of teams where uuid = ? and companyId = ?.int
countByUUID_G
(String uuid, long groupId) Returns the number of teams where uuid = ? and groupId = ?.com.liferay.portal.kernel.model.Team
create
(long teamId) Creates a new team with the primary key.void
destroy()
com.liferay.portal.kernel.model.Team
fetchByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the first team in the ordered set where companyId = ?.com.liferay.portal.kernel.model.Team
fetchByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where companyId = ?.com.liferay.portal.kernel.model.Team
fetchByG_N
(long groupId, String name) Returns the team where groupId = ? and name = ? or returnsnull
if it could not be found.com.liferay.portal.kernel.model.Team
fetchByG_N
(long groupId, String name, boolean useFinderCache) Returns the team where groupId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.Team
fetchByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the first team in the ordered set where groupId = ?.com.liferay.portal.kernel.model.Team
fetchByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where groupId = ?.com.liferay.portal.kernel.model.Team
fetchByPrimaryKey
(long teamId) Returns the team with the primary key or returnsnull
if it could not be found.com.liferay.portal.kernel.model.Team
fetchByPrimaryKey
(Serializable primaryKey) Returns the team with the primary key or returnsnull
if it could not be found.Map<Serializable,
com.liferay.portal.kernel.model.Team> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) com.liferay.portal.kernel.model.Team
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the first team in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.Team
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.Team
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the first team in the ordered set where uuid = ?.com.liferay.portal.kernel.model.Team
fetchByUUID_G
(String uuid, long groupId) Returns the team where uuid = ? and groupId = ? or returnsnull
if it could not be found.com.liferay.portal.kernel.model.Team
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the team where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.com.liferay.portal.kernel.model.Team
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where uuid = ?.int
filterCountByGroupId
(long groupId) Returns the number of teams that the user has permission to view where groupId = ?.List<com.liferay.portal.kernel.model.Team>
filterFindByGroupId
(long groupId) Returns all the teams that the user has permission to view where groupId = ?.List<com.liferay.portal.kernel.model.Team>
filterFindByGroupId
(long groupId, int start, int end) Returns a range of all the teams that the user has permission to view where groupId = ?.List<com.liferay.portal.kernel.model.Team>
filterFindByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns an ordered range of all the teams that the user has permissions to view where groupId = ?.com.liferay.portal.kernel.model.Team[]
filterFindByGroupId_PrevAndNext
(long teamId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the teams before and after the current team in the ordered set of teams that the user has permission to view where groupId = ?.protected com.liferay.portal.kernel.model.Team
filterGetByGroupId_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous) List<com.liferay.portal.kernel.model.Team>
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.Team
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the first team in the ordered set where companyId = ?.com.liferay.portal.kernel.model.Team
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where companyId = ?.com.liferay.portal.kernel.model.Team[]
findByCompanyId_PrevAndNext
(long teamId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the teams before and after the current team in the ordered set where companyId = ?.com.liferay.portal.kernel.model.Team
Returns the team where groupId = ? and name = ? or throws aNoSuchTeamException
if it could not be found.List<com.liferay.portal.kernel.model.Team>
findByGroupId
(long groupId) Returns all the teams where groupId = ?.List<com.liferay.portal.kernel.model.Team>
findByGroupId
(long groupId, int start, int end) Returns a range of all the teams where groupId = ?.List<com.liferay.portal.kernel.model.Team>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns an ordered range of all the teams where groupId = ?.List<com.liferay.portal.kernel.model.Team>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean useFinderCache) Returns an ordered range of all the teams where groupId = ?.com.liferay.portal.kernel.model.Team
findByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the first team in the ordered set where groupId = ?.com.liferay.portal.kernel.model.Team
findByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where groupId = ?.com.liferay.portal.kernel.model.Team[]
findByGroupId_PrevAndNext
(long teamId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the teams before and after the current team in the ordered set where groupId = ?.com.liferay.portal.kernel.model.Team
findByPrimaryKey
(long teamId) Returns the team with the primary key or throws aNoSuchTeamException
if it could not be found.com.liferay.portal.kernel.model.Team
findByPrimaryKey
(Serializable primaryKey) Returns the team with the primary key or throws acom.liferay.portal.kernel.exception.NoSuchModelException
if 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.Team
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the first team in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.Team
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.Team[]
findByUuid_C_PrevAndNext
(long teamId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the teams before and after the current team in the ordered set where uuid = ? and companyId = ?.com.liferay.portal.kernel.model.Team
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the first team in the ordered set where uuid = ?.com.liferay.portal.kernel.model.Team
findByUUID_G
(String uuid, long groupId) Returns the team where uuid = ? and groupId = ? or throws aNoSuchTeamException
if it could not be found.com.liferay.portal.kernel.model.Team
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the last team in the ordered set where uuid = ?.com.liferay.portal.kernel.model.Team[]
findByUuid_PrevAndNext
(long teamId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) Returns the teams before and after the current team in the ordered set where uuid = ?.protected com.liferay.portal.kernel.model.Team
getByCompanyId_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.Team
getByGroupId_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.Team
getByUuid_C_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous) protected com.liferay.portal.kernel.model.Team
getByUuid_PrevAndNext
(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.kernel.model.Team team, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator, boolean previous) getCTColumnNames
(com.liferay.portal.kernel.change.tracking.CTColumnResolutionType ctColumnResolutionType) protected com.liferay.portal.kernel.dao.orm.EntityCache
protected com.liferay.portal.kernel.dao.orm.FinderCache
protected String
protected String
long[]
getUserGroupPrimaryKeys
(long pk) Returns the primaryKeys of user groups associated with the team.List<com.liferay.portal.kernel.model.UserGroup>
getUserGroups
(long pk) Returns all the user groups associated with the team.List<com.liferay.portal.kernel.model.UserGroup>
getUserGroups
(long pk, int start, int end) Returns a range of all the user groups associated with the team.List<com.liferay.portal.kernel.model.UserGroup>
getUserGroups
(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.UserGroup> orderByComparator) Returns an ordered range of all the user groups associated with the team.int
getUserGroupsSize
(long pk) Returns the number of user groups associated with the team.long[]
getUserPrimaryKeys
(long pk) Returns the primaryKeys of users associated with the team.List<com.liferay.portal.kernel.model.User>
getUsers
(long pk) Returns all the users associated with the team.List<com.liferay.portal.kernel.model.User>
getUsers
(long pk, int start, int end) Returns a range of all the users associated with the team.List<com.liferay.portal.kernel.model.User>
getUsers
(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.User> orderByComparator) Returns an ordered range of all the users associated with the team.int
getUsersSize
(long pk) Returns the number of users associated with the team.com.liferay.portal.kernel.model.Team
remove
(long teamId) Removes the team with the primary key from the database.com.liferay.portal.kernel.model.Team
remove
(Serializable primaryKey) Removes the team with the primary key from the database.void
Removes all the teams from the database.void
removeByCompanyId
(long companyId) Removes all the teams where companyId = ? from the database.com.liferay.portal.kernel.model.Team
removeByG_N
(long groupId, String name) Removes the team where groupId = ? and name = ? from the database.void
removeByGroupId
(long groupId) Removes all the teams where groupId = ? from the database.void
removeByUuid
(String uuid) Removes all the teams where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the teams where uuid = ? and companyId = ? from the database.com.liferay.portal.kernel.model.Team
removeByUUID_G
(String uuid, long groupId) Removes the team where uuid = ? and groupId = ? from the database.protected com.liferay.portal.kernel.model.Team
removeImpl
(com.liferay.portal.kernel.model.Team team) void
removeUser
(long pk, long userPK) Removes the association between the team and the user.void
removeUser
(long pk, com.liferay.portal.kernel.model.User user) Removes the association between the team and the user.void
removeUserGroup
(long pk, long userGroupPK) Removes the association between the team and the user group.void
removeUserGroup
(long pk, com.liferay.portal.kernel.model.UserGroup userGroup) Removes the association between the team and the user group.void
removeUserGroups
(long pk, long[] userGroupPKs) Removes the association between the team and the user groups.void
removeUserGroups
(long pk, List<com.liferay.portal.kernel.model.UserGroup> userGroups) Removes the association between the team and the user groups.void
removeUsers
(long pk, long[] userPKs) Removes the association between the team and the users.void
removeUsers
(long pk, List<com.liferay.portal.kernel.model.User> users) Removes the association between the team and the users.void
setUserGroups
(long pk, long[] userGroupPKs) Sets the user groups associated with the team, removing and adding associations as necessary.void
setUserGroups
(long pk, List<com.liferay.portal.kernel.model.UserGroup> userGroups) Sets the user groups associated with the team, removing and adding associations as necessary.void
setUsers
(long pk, long[] userPKs) Sets the users associated with the team, removing and adding associations as necessary.void
Sets the users associated with the team, removing and adding associations as necessary.com.liferay.portal.kernel.model.Team
updateImpl
(com.liferay.portal.kernel.model.Team team) Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeByFunction, removeConjunction, setConfiguration, setDataSource, setDBColumnNames, setEntityCacheEnabled, setModelClass, setModelImplClass, setModelPKClass, setSessionFactory, setTable, unregisterListener, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Field Details
-
FINDER_CLASS_NAME_ENTITY
-
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:
findByUuid
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByUuid
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByUuid
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByUuid
in 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_First
in 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_First
in 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
null
if a matching team could not be found
-
findByUuid_Last
public com.liferay.portal.kernel.model.Team findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the last team in the ordered set where uuid = ?.- Specified by:
findByUuid_Last
in 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_Last
in 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
null
if a matching team could not be found
-
findByUuid_PrevAndNext
public com.liferay.portal.kernel.model.Team[] findByUuid_PrevAndNext(long teamId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the teams before and after the current team in the ordered set where uuid = ?.- Specified by:
findByUuid_PrevAndNext
in 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:
removeByUuid
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of teams where uuid = ?.- Specified by:
countByUuid
in 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 aNoSuchTeamException
if it could not be found.- Specified by:
findByUUID_G
in 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 returnsnull
if it could not be found. Uses the finder cache.- Specified by:
fetchByUUID_G
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching team, or
null
if a matching team could not be found
-
fetchByUUID_G
public com.liferay.portal.kernel.model.Team fetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the team where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Specified by:
fetchByUUID_G
in 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
null
if a matching team could not be found
-
removeByUUID_G
public com.liferay.portal.kernel.model.Team removeByUUID_G(String uuid, long groupId) throws com.liferay.portal.kernel.exception.NoSuchTeamException Removes the team where uuid = ? and groupId = ? from the database.- Specified by:
removeByUUID_G
in 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_G
in 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_C
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByUuid_C
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByUuid_C
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByUuid_C
in 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_First
in 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_First
in 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
null
if a matching team could not be found
-
findByUuid_C_Last
public com.liferay.portal.kernel.model.Team findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the last team in the ordered set where uuid = ? and companyId = ?.- Specified by:
findByUuid_C_Last
in 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_Last
in 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
null
if a matching team could not be found
-
findByUuid_C_PrevAndNext
public com.liferay.portal.kernel.model.Team[] findByUuid_C_PrevAndNext(long teamId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the teams before and after the current team in the ordered set where uuid = ? and companyId = ?.- Specified by:
findByUuid_C_PrevAndNext
in 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_C
in 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_C
in 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:
findByCompanyId
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByCompanyId
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByCompanyId
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByCompanyId
in 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_First
in 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_First
in 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
null
if a matching team could not be found
-
findByCompanyId_Last
public com.liferay.portal.kernel.model.Team findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the last team in the ordered set where companyId = ?.- Specified by:
findByCompanyId_Last
in 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_Last
in 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
null
if a matching team could not be found
-
findByCompanyId_PrevAndNext
public com.liferay.portal.kernel.model.Team[] findByCompanyId_PrevAndNext(long teamId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the teams before and after the current team in the ordered set where companyId = ?.- Specified by:
findByCompanyId_PrevAndNext
in 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:
removeByCompanyId
in 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:
countByCompanyId
in 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:
findByGroupId
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByGroupId
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByGroupId
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findByGroupId
in 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_First
in 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_First
in 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
null
if a matching team could not be found
-
findByGroupId_Last
public com.liferay.portal.kernel.model.Team findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the last team in the ordered set where groupId = ?.- Specified by:
findByGroupId_Last
in 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_Last
in 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
null
if a matching team could not be found
-
findByGroupId_PrevAndNext
public com.liferay.portal.kernel.model.Team[] findByGroupId_PrevAndNext(long teamId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Team> orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchTeamException Returns the teams before and after the current team in the ordered set where groupId = ?.- Specified by:
findByGroupId_PrevAndNext
in 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:
filterFindByGroupId
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
filterFindByGroupId
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
filterFindByGroupId
in 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_PrevAndNext
in 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:
removeByGroupId
in 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:
countByGroupId
in 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:
filterCountByGroupId
in 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 aNoSuchTeamException
if it could not be found.- Specified by:
findByG_N
in 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 returnsnull
if it could not be found. Uses the finder cache.- Specified by:
fetchByG_N
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
groupId
- the group IDname
- the name- Returns:
- the matching team, or
null
if a matching team could not be found
-
fetchByG_N
public com.liferay.portal.kernel.model.Team fetchByG_N(long groupId, String name, boolean useFinderCache) Returns the team where groupId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.- Specified by:
fetchByG_N
in 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
null
if a matching team could not be found
-
removeByG_N
public com.liferay.portal.kernel.model.Team removeByG_N(long groupId, String name) throws com.liferay.portal.kernel.exception.NoSuchTeamException Removes the team where groupId = ? and name = ? from the database.- Specified by:
removeByG_N
in 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_N
in 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:
cacheResult
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Overrides:
cacheResult
in 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:
cacheResult
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
teams
- the teams
-
clearCache
public void clearCache()Clears the cache for all teams.The
EntityCache
andFinderCache
are both cleared by this method.- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
- Overrides:
clearCache
in 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
EntityCache
andFinderCache
are both cleared by this method.- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
clearCache
- Specified by:
clearCache
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
- Overrides:
clearCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
clearCache
- Specified by:
clearCache
in 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:
create
in 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:
remove
in 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:
remove
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
- Overrides:
remove
in 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:
removeImpl
in 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:
updateImpl
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Overrides:
updateImpl
in 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.NoSuchModelException
if it could not be found.- Specified by:
findByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
- Overrides:
findByPrimaryKey
in 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 aNoSuchTeamException
if it could not be found.- Specified by:
findByPrimaryKey
in 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 returnsnull
if it could not be found.- Specified by:
fetchByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
- Overrides:
fetchByPrimaryKey
in 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
null
if a team with the primary key could not be found
-
fetchByPrimaryKey
public com.liferay.portal.kernel.model.Team fetchByPrimaryKey(long teamId) Returns the team with the primary key or returnsnull
if it could not be found.- Specified by:
fetchByPrimaryKey
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
teamId
- the primary key of the team- Returns:
- the team, or
null
if a team with the primary key could not be found
-
fetchByPrimaryKeys
public Map<Serializable,com.liferay.portal.kernel.model.Team> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - Specified by:
fetchByPrimaryKeys
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
- Overrides:
fetchByPrimaryKeys
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
findAll
Returns all the teams.- Specified by:
findAll
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findAll
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findAll
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
findAll
in 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:
removeAll
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
-
countAll
public int countAll()Returns the number of teams.- Specified by:
countAll
in 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:
getUserPrimaryKeys
in 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:
getUsers
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
getUsers
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
getUsers
in 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:
getUsersSize
in 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) Returnstrue
if the user is associated with the team.- Specified by:
containsUser
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the teamuserPK
- the primary key of the user- Returns:
true
if the user is associated with the team;false
otherwise
-
containsUsers
public boolean containsUsers(long pk) Returnstrue
if the team has any users associated with it.- Specified by:
containsUsers
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the team to check for associations with users- Returns:
true
if the team has any users associated with it;false
otherwise
-
addUser
public boolean addUser(long pk, long userPK) Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUser
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the teamuserPK
- the primary key of the user- Returns:
true
if an association between the team and the user was added;false
if they were already associated
-
addUser
public boolean addUser(long pk, com.liferay.portal.kernel.model.User user) Adds an association between the team and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUser
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the teamuser
- the user- Returns:
true
if an association between the team and the user was added;false
if they were already associated
-
addUsers
public boolean addUsers(long pk, long[] userPKs) Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUsers
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the teamuserPKs
- the primary keys of the users- Returns:
true
if at least one association between the team and the users was added;false
if they were all already associated
-
addUsers
Adds an association between the team and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUsers
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the teamusers
- the users- Returns:
true
if at least one association between the team and the users was added;false
if they were all already associated
-
clearUsers
public void clearUsers(long pk) Clears all associations between the team and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearUsers
in 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:
removeUser
in 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:
removeUser
in 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:
removeUsers
in 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:
removeUsers
in 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:
setUsers
in 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:
setUsers
in 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:
getUserGroupPrimaryKeys
in 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:
getUserGroups
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
getUserGroups
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromTeamModelImpl
.- Specified by:
getUserGroups
in 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:
getUserGroupsSize
in 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) Returnstrue
if the user group is associated with the team.- Specified by:
containsUserGroup
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the teamuserGroupPK
- the primary key of the user group- Returns:
true
if the user group is associated with the team;false
otherwise
-
containsUserGroups
public boolean containsUserGroups(long pk) Returnstrue
if the team has any user groups associated with it.- Specified by:
containsUserGroups
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the team to check for associations with user groups- Returns:
true
if the team has any user groups associated with it;false
otherwise
-
addUserGroup
public boolean addUserGroup(long pk, long userGroupPK) Adds an association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroup
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the teamuserGroupPK
- the primary key of the user group- Returns:
true
if an association between the team and the user group was added;false
if they were already associated
-
addUserGroup
public boolean addUserGroup(long pk, com.liferay.portal.kernel.model.UserGroup userGroup) Adds an association between the team and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroup
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the teamuserGroup
- the user group- Returns:
true
if an association between the team and the user group was added;false
if they were already associated
-
addUserGroups
public boolean addUserGroups(long pk, long[] userGroupPKs) Adds an association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroups
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groups- Returns:
true
if at least one association between the team and the user groups was added;false
if they were all already associated
-
addUserGroups
Adds an association between the team and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
addUserGroups
in interfacecom.liferay.portal.kernel.service.persistence.TeamPersistence
- Parameters:
pk
- the primary key of the teamuserGroups
- the user groups- Returns:
true
if at least one association between the team and the user groups was added;false
if they were all already associated
-
clearUserGroups
public void clearUserGroups(long pk) Clears all associations between the team and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Specified by:
clearUserGroups
in 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:
removeUserGroup
in 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:
removeUserGroup
in 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:
removeUserGroups
in 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:
removeUserGroups
in 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:
setUserGroups
in 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:
setUserGroups
in 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:
getBadColumnNames
in interfacecom.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.portal.kernel.model.Team>
- Overrides:
getBadColumnNames
in 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:
getEntityCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
getPKDBName
- Overrides:
getPKDBName
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
getSelectSQL
- Overrides:
getSelectSQL
in 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:
getCTColumnNames
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
-
getMappingTableNames
- Specified by:
getMappingTableNames
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
-
getTableColumnsMap
- Specified by:
getTableColumnsMap
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
- Overrides:
getTableColumnsMap
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-
getTableName
- Specified by:
getTableName
in interfacecom.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.portal.kernel.model.Team>
-
getUniqueIndexColumnNames
- Specified by:
getUniqueIndexColumnNames
in 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:
getFinderCache
in classcom.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.kernel.model.Team>
-