public class TeamPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Team>
implements com.liferay.portal.service.persistence.TeamPersistence
Caching information and settings can be found in portal.properties
TeamPersistence,
TeamUtil| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FINDER_CLASS_NAME_ENTITY |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_G_N |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_GROUPID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_G_N |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID |
protected com.liferay.portal.service.persistence.impl.TableMapper<com.liferay.portal.model.Team,com.liferay.portal.model.UserGroup> |
teamToUserGroupTableMapper |
protected com.liferay.portal.service.persistence.impl.TableMapper<com.liferay.portal.model.Team,com.liferay.portal.model.User> |
teamToUserTableMapper |
protected com.liferay.portal.service.persistence.UserGroupPersistence |
userGroupPersistence |
protected com.liferay.portal.service.persistence.UserPersistence |
userPersistence |
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, 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 and Description |
|---|
TeamPersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(long pk,
long userPK)
Adds an association between the team and the user.
|
void |
addUser(long pk,
com.liferay.portal.model.User user)
Adds an association between the team and the user.
|
void |
addUserGroup(long pk,
long userGroupPK)
Adds an association between the team and the user group.
|
void |
addUserGroup(long pk,
com.liferay.portal.model.UserGroup userGroup)
Adds an association between the team and the user group.
|
void |
addUserGroups(long pk,
java.util.List<com.liferay.portal.model.UserGroup> userGroups)
Adds an association between the team and the user groups.
|
void |
addUserGroups(long pk,
long[] userGroupPKs)
Adds an association between the team and the user groups.
|
void |
addUsers(long pk,
java.util.List<com.liferay.portal.model.User> users)
Adds an association between the team and the users.
|
void |
addUsers(long pk,
long[] userPKs)
Adds an association between the team and the users.
|
void |
afterPropertiesSet()
Initializes the team persistence.
|
void |
cacheResult(java.util.List<com.liferay.portal.model.Team> teams)
Caches the teams in the entity cache if it is enabled.
|
void |
cacheResult(com.liferay.portal.model.Team team)
Caches the team in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(com.liferay.portal.model.Team team) |
void |
clearCache()
Clears the cache for all teams.
|
void |
clearCache(java.util.List<com.liferay.portal.model.Team> teams) |
void |
clearCache(com.liferay.portal.model.Team team)
Clears the cache for the team.
|
protected void |
clearUniqueFindersCache(com.liferay.portal.model.Team team) |
void |
clearUserGroups(long pk)
Clears all associations between the team and its user groups.
|
void |
clearUsers(long pk)
Clears all associations between the team and its users.
|
boolean |
containsUser(long pk,
long userPK)
Returns
true if the user is associated with the team. |
boolean |
containsUserGroup(long pk,
long userGroupPK)
Returns
true if the user group is associated with the team. |
boolean |
containsUserGroups(long pk)
Returns
true if the team has any user groups associated with it. |
boolean |
containsUsers(long pk)
Returns
true if the team has any users associated with it. |
int |
countAll()
Returns the number of teams.
|
int |
countByG_N(long groupId,
java.lang.String name)
Returns the number of teams where groupId = ? and name = ?.
|
int |
countByGroupId(long groupId)
Returns the number of teams where groupId = ?.
|
com.liferay.portal.model.Team |
create(long teamId)
Creates a new team with the primary key.
|
void |
destroy() |
com.liferay.portal.model.Team |
fetchByG_N(long groupId,
java.lang.String name)
Returns the team where groupId = ? and name = ? or returns
null if it could not be found. |
com.liferay.portal.model.Team |
fetchByG_N(long groupId,
java.lang.String name,
boolean retrieveFromCache)
Returns the team where groupId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
com.liferay.portal.model.Team |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first team in the ordered set where groupId = ?.
|
com.liferay.portal.model.Team |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last team in the ordered set where groupId = ?.
|
com.liferay.portal.model.Team |
fetchByPrimaryKey(long teamId)
Returns the team with the primary key or returns
null if it could not be found. |
com.liferay.portal.model.Team |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the team with the primary key or returns
null if it could not be found. |
int |
filterCountByGroupId(long groupId)
Returns the number of teams that the user has permission to view where groupId = ?.
|
com.liferay.portal.model.Team[] |
filterFindByGroupId_PrevAndNext(long teamId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator 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 = ?.
|
java.util.List<com.liferay.portal.model.Team> |
filterFindByGroupId(long groupId)
Returns all the teams that the user has permission to view where groupId = ?.
|
java.util.List<com.liferay.portal.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 = ?.
|
java.util.List<com.liferay.portal.model.Team> |
filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the teams that the user has permissions to view where groupId = ?.
|
protected com.liferay.portal.model.Team |
filterGetByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Team team,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous) |
java.util.List<com.liferay.portal.model.Team> |
findAll()
Returns all the teams.
|
java.util.List<com.liferay.portal.model.Team> |
findAll(int start,
int end)
Returns a range of all the teams.
|
java.util.List<com.liferay.portal.model.Team> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the teams.
|
com.liferay.portal.model.Team |
findByG_N(long groupId,
java.lang.String name)
Returns the team where groupId = ? and name = ? or throws a
NoSuchTeamException if it could not be found. |
com.liferay.portal.model.Team |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first team in the ordered set where groupId = ?.
|
com.liferay.portal.model.Team |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last team in the ordered set where groupId = ?.
|
com.liferay.portal.model.Team[] |
findByGroupId_PrevAndNext(long teamId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the teams before and after the current team in the ordered set where groupId = ?.
|
java.util.List<com.liferay.portal.model.Team> |
findByGroupId(long groupId)
Returns all the teams where groupId = ?.
|
java.util.List<com.liferay.portal.model.Team> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the teams where groupId = ?.
|
java.util.List<com.liferay.portal.model.Team> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the teams where groupId = ?.
|
com.liferay.portal.model.Team |
findByPrimaryKey(long teamId)
Returns the team with the primary key or throws a
NoSuchTeamException if it could not be found. |
com.liferay.portal.model.Team |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the team with the primary key or throws a
NoSuchModelException if it could not be found. |
protected com.liferay.portal.model.Team |
getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Team team,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous) |
java.util.List<com.liferay.portal.model.UserGroup> |
getUserGroups(long pk)
Returns all the user groups associated with the team.
|
java.util.List<com.liferay.portal.model.UserGroup> |
getUserGroups(long pk,
int start,
int end)
Returns a range of all the user groups associated with the team.
|
java.util.List<com.liferay.portal.model.UserGroup> |
getUserGroups(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator 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.
|
java.util.List<com.liferay.portal.model.User> |
getUsers(long pk)
Returns all the users associated with the team.
|
java.util.List<com.liferay.portal.model.User> |
getUsers(long pk,
int start,
int end)
Returns a range of all the users associated with the team.
|
java.util.List<com.liferay.portal.model.User> |
getUsers(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator 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.model.Team |
remove(long teamId)
Removes the team with the primary key from the database.
|
com.liferay.portal.model.Team |
remove(java.io.Serializable primaryKey)
Removes the team with the primary key from the database.
|
void |
removeAll()
Removes all the teams from the database.
|
com.liferay.portal.model.Team |
removeByG_N(long groupId,
java.lang.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.
|
protected com.liferay.portal.model.Team |
removeImpl(com.liferay.portal.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.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.model.UserGroup userGroup)
Removes the association between the team and the user group.
|
void |
removeUserGroups(long pk,
java.util.List<com.liferay.portal.model.UserGroup> userGroups)
Removes the association between the team and the user groups.
|
void |
removeUserGroups(long pk,
long[] userGroupPKs)
Removes the association between the team and the user groups.
|
void |
removeUsers(long pk,
java.util.List<com.liferay.portal.model.User> users)
Removes the association between the team and the users.
|
void |
removeUsers(long pk,
long[] userPKs)
Removes the association between the team and the users.
|
void |
setUserGroups(long pk,
java.util.List<com.liferay.portal.model.UserGroup> userGroups)
Sets the user groups associated with the team, removing and adding associations as necessary.
|
void |
setUserGroups(long pk,
long[] userGroupPKs)
Sets the user groups associated with the team, removing and adding associations as necessary.
|
void |
setUsers(long pk,
java.util.List<com.liferay.portal.model.User> users)
Sets the users associated with the team, removing and adding associations as necessary.
|
void |
setUsers(long pk,
long[] userPKs)
Sets the users associated with the team, removing and adding associations as necessary.
|
protected com.liferay.portal.model.Team |
toUnwrappedModel(com.liferay.portal.model.Team team) |
com.liferay.portal.model.Team |
updateImpl(com.liferay.portal.model.Team team) |
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImplclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, updatepublic static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_G_N
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_N
@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class) protected com.liferay.portal.service.persistence.UserPersistence userPersistence
protected com.liferay.portal.service.persistence.impl.TableMapper<com.liferay.portal.model.Team,com.liferay.portal.model.User> teamToUserTableMapper
@BeanReference(type=com.liferay.portal.service.persistence.UserGroupPersistence.class) protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence
protected com.liferay.portal.service.persistence.impl.TableMapper<com.liferay.portal.model.Team,com.liferay.portal.model.UserGroup> teamToUserGroupTableMapper
public java.util.List<com.liferay.portal.model.Team> findByGroupId(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
findByGroupId in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Team> findByGroupId(long groupId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByGroupId in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Team> findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByGroupId in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - 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 (optionally null)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchTeamException,
com.liferay.portal.kernel.exception.SystemException
findByGroupId_First in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.NoSuchTeamException - if a matching team could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByGroupId_First in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching team could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchTeamException,
com.liferay.portal.kernel.exception.SystemException
findByGroupId_Last in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.NoSuchTeamException - if a matching team could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByGroupId_Last in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching team could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team[] findByGroupId_PrevAndNext(long teamId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchTeamException,
com.liferay.portal.kernel.exception.SystemException
findByGroupId_PrevAndNext in interface com.liferay.portal.service.persistence.TeamPersistenceteamId - the primary key of the current teamgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.NoSuchTeamException - if a team with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portal.model.Team getByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Team team,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
filterFindByGroupId in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(long groupId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
filterFindByGroupId in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
filterFindByGroupId in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - 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 (optionally null)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team[] filterFindByGroupId_PrevAndNext(long teamId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.NoSuchTeamException,
com.liferay.portal.kernel.exception.SystemException
filterFindByGroupId_PrevAndNext in interface com.liferay.portal.service.persistence.TeamPersistenceteamId - the primary key of the current teamgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portal.NoSuchTeamException - if a team with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portal.model.Team filterGetByGroupId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portal.model.Team team,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public void removeByGroupId(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
removeByGroupId in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countByGroupId(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
countByGroupId in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int filterCountByGroupId(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
filterCountByGroupId in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team findByG_N(long groupId,
java.lang.String name)
throws com.liferay.portal.NoSuchTeamException,
com.liferay.portal.kernel.exception.SystemException
NoSuchTeamException if it could not be found.findByG_N in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDname - the namecom.liferay.portal.NoSuchTeamException - if a matching team could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team fetchByG_N(long groupId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found. Uses the finder cache.fetchByG_N in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDname - the namenull if a matching team could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team fetchByG_N(long groupId,
java.lang.String name,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found, optionally using the finder cache.fetchByG_N in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDname - the nameretrieveFromCache - whether to use the finder cachenull if a matching team could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team removeByG_N(long groupId,
java.lang.String name)
throws com.liferay.portal.NoSuchTeamException,
com.liferay.portal.kernel.exception.SystemException
removeByG_N in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDname - the namecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredcom.liferay.portal.NoSuchTeamExceptionpublic int countByG_N(long groupId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
countByG_N in interface com.liferay.portal.service.persistence.TeamPersistencegroupId - the group IDname - the namecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void cacheResult(com.liferay.portal.model.Team team)
cacheResult in interface com.liferay.portal.service.persistence.TeamPersistenceteam - the teampublic void cacheResult(java.util.List<com.liferay.portal.model.Team> teams)
cacheResult in interface com.liferay.portal.service.persistence.TeamPersistenceteams - the teamspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Team>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Team>public void clearCache(com.liferay.portal.model.Team team)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Team>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Team>public void clearCache(java.util.List<com.liferay.portal.model.Team> teams)
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Team>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Team>protected void cacheUniqueFindersCache(com.liferay.portal.model.Team team)
protected void clearUniqueFindersCache(com.liferay.portal.model.Team team)
public com.liferay.portal.model.Team create(long teamId)
create in interface com.liferay.portal.service.persistence.TeamPersistenceteamId - the primary key for the new teampublic com.liferay.portal.model.Team remove(long teamId)
throws com.liferay.portal.NoSuchTeamException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portal.service.persistence.TeamPersistenceteamId - the primary key of the teamcom.liferay.portal.NoSuchTeamException - if a team with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team remove(java.io.Serializable primaryKey)
throws com.liferay.portal.NoSuchTeamException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Team>remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Team>primaryKey - the primary key of the teamcom.liferay.portal.NoSuchTeamException - if a team with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portal.model.Team removeImpl(com.liferay.portal.model.Team team)
throws com.liferay.portal.kernel.exception.SystemException
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Team>com.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.model.Team updateImpl(com.liferay.portal.model.Team team)
throws com.liferay.portal.kernel.exception.SystemException
updateImpl in interface com.liferay.portal.service.persistence.TeamPersistenceupdateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Team>com.liferay.portal.kernel.exception.SystemExceptionprotected com.liferay.portal.model.Team toUnwrappedModel(com.liferay.portal.model.Team team)
public com.liferay.portal.model.Team findByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portal.NoSuchTeamException,
com.liferay.portal.kernel.exception.SystemException
NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Team>findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Team>primaryKey - the primary key of the teamcom.liferay.portal.NoSuchTeamException - if a team with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team findByPrimaryKey(long teamId)
throws com.liferay.portal.NoSuchTeamException,
com.liferay.portal.kernel.exception.SystemException
NoSuchTeamException if it could not be found.findByPrimaryKey in interface com.liferay.portal.service.persistence.TeamPersistenceteamId - the primary key of the teamcom.liferay.portal.NoSuchTeamException - if a team with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team fetchByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Team>fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Team>primaryKey - the primary key of the teamnull if a team with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portal.model.Team fetchByPrimaryKey(long teamId)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.service.persistence.TeamPersistenceteamId - the primary key of the teamnull if a team with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Team> findAll()
throws com.liferay.portal.kernel.exception.SystemException
findAll in interface com.liferay.portal.service.persistence.TeamPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Team> findAll(int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface com.liferay.portal.service.persistence.TeamPersistencestart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.Team> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface com.liferay.portal.service.persistence.TeamPersistencestart - 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 (optionally null)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeAll()
throws com.liferay.portal.kernel.exception.SystemException
removeAll in interface com.liferay.portal.service.persistence.TeamPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countAll()
throws com.liferay.portal.kernel.exception.SystemException
countAll in interface com.liferay.portal.service.persistence.TeamPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getUsers(long pk)
throws com.liferay.portal.kernel.exception.SystemException
getUsers in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getUsers(long pk,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getUsers in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.User> getUsers(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getUsers in interface com.liferay.portal.service.persistence.TeamPersistencepk - 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 (optionally null)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getUsersSize(long pk)
throws com.liferay.portal.kernel.exception.SystemException
getUsersSize in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic boolean containsUser(long pk,
long userPK)
throws com.liferay.portal.kernel.exception.SystemException
true if the user is associated with the team.containsUser in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserPK - the primary key of the usertrue if the user is associated with the team; false otherwisecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic boolean containsUsers(long pk)
throws com.liferay.portal.kernel.exception.SystemException
true if the team has any users associated with it.containsUsers in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the team to check for associations with userstrue if the team has any users associated with it; false otherwisecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addUser(long pk,
long userPK)
throws com.liferay.portal.kernel.exception.SystemException
addUser in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserPK - the primary key of the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addUser(long pk,
com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException
addUser in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuser - the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addUsers(long pk,
long[] userPKs)
throws com.liferay.portal.kernel.exception.SystemException
addUsers in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserPKs - the primary keys of the userscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addUsers(long pk,
java.util.List<com.liferay.portal.model.User> users)
throws com.liferay.portal.kernel.exception.SystemException
addUsers in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamusers - the userscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void clearUsers(long pk)
throws com.liferay.portal.kernel.exception.SystemException
clearUsers in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the team to clear the associated users fromcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeUser(long pk,
long userPK)
throws com.liferay.portal.kernel.exception.SystemException
removeUser in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserPK - the primary key of the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeUser(long pk,
com.liferay.portal.model.User user)
throws com.liferay.portal.kernel.exception.SystemException
removeUser in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuser - the usercom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeUsers(long pk,
long[] userPKs)
throws com.liferay.portal.kernel.exception.SystemException
removeUsers in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserPKs - the primary keys of the userscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeUsers(long pk,
java.util.List<com.liferay.portal.model.User> users)
throws com.liferay.portal.kernel.exception.SystemException
removeUsers in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamusers - the userscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void setUsers(long pk,
long[] userPKs)
throws com.liferay.portal.kernel.exception.SystemException
setUsers in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserPKs - the primary keys of the users to be associated with the teamcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void setUsers(long pk,
java.util.List<com.liferay.portal.model.User> users)
throws com.liferay.portal.kernel.exception.SystemException
setUsers in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamusers - the users to be associated with the teamcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(long pk)
throws com.liferay.portal.kernel.exception.SystemException
getUserGroups in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(long pk,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getUserGroups in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portal.model.UserGroup> getUserGroups(long pk,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TeamModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getUserGroups in interface com.liferay.portal.service.persistence.TeamPersistencepk - 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 (optionally null)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getUserGroupsSize(long pk)
throws com.liferay.portal.kernel.exception.SystemException
getUserGroupsSize in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic boolean containsUserGroup(long pk,
long userGroupPK)
throws com.liferay.portal.kernel.exception.SystemException
true if the user group is associated with the team.containsUserGroup in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserGroupPK - the primary key of the user grouptrue if the user group is associated with the team; false otherwisecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic boolean containsUserGroups(long pk)
throws com.liferay.portal.kernel.exception.SystemException
true if the team has any user groups associated with it.containsUserGroups in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the team to check for associations with user groupstrue if the team has any user groups associated with it; false otherwisecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addUserGroup(long pk,
long userGroupPK)
throws com.liferay.portal.kernel.exception.SystemException
addUserGroup in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserGroupPK - the primary key of the user groupcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addUserGroup(long pk,
com.liferay.portal.model.UserGroup userGroup)
throws com.liferay.portal.kernel.exception.SystemException
addUserGroup in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserGroup - the user groupcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addUserGroups(long pk,
long[] userGroupPKs)
throws com.liferay.portal.kernel.exception.SystemException
addUserGroups in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserGroupPKs - the primary keys of the user groupscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addUserGroups(long pk,
java.util.List<com.liferay.portal.model.UserGroup> userGroups)
throws com.liferay.portal.kernel.exception.SystemException
addUserGroups in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserGroups - the user groupscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void clearUserGroups(long pk)
throws com.liferay.portal.kernel.exception.SystemException
clearUserGroups in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the team to clear the associated user groups fromcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeUserGroup(long pk,
long userGroupPK)
throws com.liferay.portal.kernel.exception.SystemException
removeUserGroup in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserGroupPK - the primary key of the user groupcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeUserGroup(long pk,
com.liferay.portal.model.UserGroup userGroup)
throws com.liferay.portal.kernel.exception.SystemException
removeUserGroup in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserGroup - the user groupcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeUserGroups(long pk,
long[] userGroupPKs)
throws com.liferay.portal.kernel.exception.SystemException
removeUserGroups in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserGroupPKs - the primary keys of the user groupscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeUserGroups(long pk,
java.util.List<com.liferay.portal.model.UserGroup> userGroups)
throws com.liferay.portal.kernel.exception.SystemException
removeUserGroups in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserGroups - the user groupscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void setUserGroups(long pk,
long[] userGroupPKs)
throws com.liferay.portal.kernel.exception.SystemException
setUserGroups in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserGroupPKs - the primary keys of the user groups to be associated with the teamcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void setUserGroups(long pk,
java.util.List<com.liferay.portal.model.UserGroup> userGroups)
throws com.liferay.portal.kernel.exception.SystemException
setUserGroups in interface com.liferay.portal.service.persistence.TeamPersistencepk - the primary key of the teamuserGroups - the user groups to be associated with the teamcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()