|
Liferay 6.2.0-ce-b2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<Team>
com.liferay.portal.service.persistence.TeamPersistenceImpl
public class TeamPersistenceImpl
The persistence implementation for the team service.
Caching information and settings can be found in portal.properties
TeamPersistence,
TeamUtil| Nested Class Summary | |
|---|---|
protected class |
TeamPersistenceImpl.AddUser
|
protected class |
TeamPersistenceImpl.AddUserGroup
|
protected class |
TeamPersistenceImpl.ClearUserGroups
|
protected class |
TeamPersistenceImpl.ClearUsers
|
protected class |
TeamPersistenceImpl.ContainsUser
|
protected class |
TeamPersistenceImpl.ContainsUserGroup
|
protected class |
TeamPersistenceImpl.RemoveUser
|
protected class |
TeamPersistenceImpl.RemoveUserGroup
|
| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
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 Summary | |
|---|---|
TeamPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
addUser(long pk,
long userPK)
Adds an association between the team and the user. |
void |
addUser(long pk,
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,
UserGroup userGroup)
Adds an association between the team and the user group. |
void |
addUserGroups(long pk,
List<UserGroup> userGroups)
Adds an association between the team and the user groups. |
void |
addUserGroups(long pk,
long[] userGroupPKs)
Adds an association between the team and the user groups. |
void |
addUsers(long pk,
List<User> users)
Adds an association between the team and the users. |
void |
addUsers(long pk,
long[] userPKs)
Adds an association between the team and the users. |
void |
afterPropertiesSet()
Initializes the team persistence. |
void |
cacheResult(List<Team> teams)
Caches the teams in the entity cache if it is enabled. |
void |
cacheResult(Team team)
Caches the team in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(Team team)
|
void |
clearCache()
Clears the cache for all teams. |
void |
clearCache(List<Team> teams)
Clears the cache for a List instances of this model. |
void |
clearCache(Team team)
Clears the cache for the team. |
protected void |
clearUniqueFindersCache(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,
String name)
Returns the number of teams where groupId = ? and name = ?. |
int |
countByGroupId(long groupId)
Returns the number of teams where groupId = ?. |
Team |
create(long teamId)
Creates a new team with the primary key. |
void |
destroy()
|
Team |
fetchByG_N(long groupId,
String name)
Returns the team where groupId = ? and name = ? or returns null if it could not be found. |
Team |
fetchByG_N(long groupId,
String name,
boolean retrieveFromCache)
Returns the team where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
Team |
fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first team in the ordered set where groupId = ?. |
Team |
fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last team in the ordered set where groupId = ?. |
Team |
fetchByPrimaryKey(long teamId)
Returns the team with the primary key or returns null if it could not be found. |
Team |
fetchByPrimaryKey(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 = ?. |
Team[] |
filterFindByGroupId_PrevAndNext(long teamId,
long groupId,
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 = ?. |
List<Team> |
filterFindByGroupId(long groupId)
Returns all the teams that the user has permission to view where groupId = ?. |
List<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<Team> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the teams that the user has permissions to view where groupId = ?. |
protected Team |
filterGetByGroupId_PrevAndNext(Session session,
Team team,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
List<Team> |
findAll()
Returns all the teams. |
List<Team> |
findAll(int start,
int end)
Returns a range of all the teams. |
List<Team> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the teams. |
Team |
findByG_N(long groupId,
String name)
Returns the team where groupId = ? and name = ? or throws a NoSuchTeamException if it could not be found. |
Team |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Returns the first team in the ordered set where groupId = ?. |
Team |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Returns the last team in the ordered set where groupId = ?. |
Team[] |
findByGroupId_PrevAndNext(long teamId,
long groupId,
OrderByComparator orderByComparator)
Returns the teams before and after the current team in the ordered set where groupId = ?. |
List<Team> |
findByGroupId(long groupId)
Returns all the teams where groupId = ?. |
List<Team> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the teams where groupId = ?. |
List<Team> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the teams where groupId = ?. |
Team |
findByPrimaryKey(long teamId)
Returns the team with the primary key or throws a NoSuchTeamException if it could not be found. |
Team |
findByPrimaryKey(Serializable primaryKey)
Returns the team with the primary key or throws a NoSuchModelException if it could not be found. |
protected Team |
getByGroupId_PrevAndNext(Session session,
Team team,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
|
List<UserGroup> |
getUserGroups(long pk)
Returns all the user groups associated with the team. |
List<UserGroup> |
getUserGroups(long pk,
int start,
int end)
Returns a range of all the user groups associated with the team. |
List<UserGroup> |
getUserGroups(long pk,
int start,
int end,
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. |
List<User> |
getUsers(long pk)
Returns all the users associated with the team. |
List<User> |
getUsers(long pk,
int start,
int end)
Returns a range of all the users associated with the team. |
List<User> |
getUsers(long pk,
int start,
int end,
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. |
Team |
remove(long teamId)
Removes the team with the primary key from the database. |
Team |
remove(Serializable primaryKey)
Removes the team with the primary key from the database. |
void |
removeAll()
Removes all the teams from the database. |
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. |
protected Team |
removeImpl(Team team)
Removes the model instance from the database. |
void |
removeUser(long pk,
long userPK)
Removes the association between the team and the user. |
void |
removeUser(long pk,
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,
UserGroup userGroup)
Removes the association between the team and the user group. |
void |
removeUserGroups(long pk,
List<UserGroup> userGroups)
Removes the association between the team and the user groups. |
void |
removeUserGroups(long pk,
long[] userGroupPKs)
Removes the association between the team and the user groups. |
void |
removeUsers(long pk,
List<User> users)
Removes the association between the team and the users. |
void |
removeUsers(long pk,
long[] userPKs)
Removes the association between the team and the users. |
void |
setUserGroups(long pk,
List<UserGroup> userGroups)
Sets the user groups associated with the team, removing and adding associations as necessary. |
void |
setUserGroups(long pk,
long[] userGroupPKs)
Sets the user groups associated with the team, removing and adding associations as necessary. |
void |
setUsers(long pk,
List<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 Team |
toUnwrappedModel(Team team)
|
Team |
updateImpl(Team team)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| 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.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_FETCH_BY_G_N
public static final FinderPath FINDER_PATH_COUNT_BY_G_N
public static final FinderPath FINDER_PATH_GET_USERS
public static final FinderPath FINDER_PATH_GET_USERS_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_USER
public static final FinderPath FINDER_PATH_GET_USERGROUPS
public static final FinderPath FINDER_PATH_GET_USERGROUPS_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_USERGROUP
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
protected TeamPersistenceImpl.ContainsUser containsUser
protected TeamPersistenceImpl.AddUser addUser
protected TeamPersistenceImpl.ClearUsers clearUsers
protected TeamPersistenceImpl.RemoveUser removeUser
@BeanReference(type=UserGroupPersistence.class) protected UserGroupPersistence userGroupPersistence
protected TeamPersistenceImpl.ContainsUserGroup containsUserGroup
protected TeamPersistenceImpl.AddUserGroup addUserGroup
protected TeamPersistenceImpl.ClearUserGroups clearUserGroups
protected TeamPersistenceImpl.RemoveUserGroup removeUserGroup
| Constructor Detail |
|---|
public TeamPersistenceImpl()
| Method Detail |
|---|
public List<Team> findByGroupId(long groupId)
throws SystemException
findByGroupId in interface TeamPersistencegroupId - the group ID
SystemException - if a system exception occurred
public List<Team> findByGroupId(long groupId,
int start,
int end)
throws 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 TeamPersistencegroupId - the group IDstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)
SystemException - if a system exception occurred
public List<Team> findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
throws 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 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)
SystemException - if a system exception occurred
public Team findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws NoSuchTeamException,
SystemException
findByGroupId_First in interface TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTeamException - if a matching team could not be found
SystemException - if a system exception occurred
public Team fetchByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws SystemException
fetchByGroupId_First in interface TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching team could not be found
SystemException - if a system exception occurred
public Team findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws NoSuchTeamException,
SystemException
findByGroupId_Last in interface TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTeamException - if a matching team could not be found
SystemException - if a system exception occurred
public Team fetchByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws SystemException
fetchByGroupId_Last in interface TeamPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching team could not be found
SystemException - if a system exception occurred
public Team[] findByGroupId_PrevAndNext(long teamId,
long groupId,
OrderByComparator orderByComparator)
throws NoSuchTeamException,
SystemException
findByGroupId_PrevAndNext in interface TeamPersistenceteamId - the primary key of the current teamgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTeamException - if a team with the primary key could not be found
SystemException - if a system exception occurred
protected Team getByGroupId_PrevAndNext(Session session,
Team team,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
public List<Team> filterFindByGroupId(long groupId)
throws SystemException
filterFindByGroupId in interface TeamPersistencegroupId - the group ID
SystemException - if a system exception occurred
public List<Team> filterFindByGroupId(long groupId,
int start,
int end)
throws 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 TeamPersistencegroupId - the group IDstart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)
SystemException - if a system exception occurred
public List<Team> filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
throws 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 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)
SystemException - if a system exception occurred
public Team[] filterFindByGroupId_PrevAndNext(long teamId,
long groupId,
OrderByComparator orderByComparator)
throws NoSuchTeamException,
SystemException
filterFindByGroupId_PrevAndNext in interface TeamPersistenceteamId - the primary key of the current teamgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTeamException - if a team with the primary key could not be found
SystemException - if a system exception occurred
protected Team filterGetByGroupId_PrevAndNext(Session session,
Team team,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
public void removeByGroupId(long groupId)
throws SystemException
removeByGroupId in interface TeamPersistencegroupId - the group ID
SystemException - if a system exception occurred
public int countByGroupId(long groupId)
throws SystemException
countByGroupId in interface TeamPersistencegroupId - the group ID
SystemException - if a system exception occurred
public int filterCountByGroupId(long groupId)
throws SystemException
filterCountByGroupId in interface TeamPersistencegroupId - the group ID
SystemException - if a system exception occurred
public Team findByG_N(long groupId,
String name)
throws NoSuchTeamException,
SystemException
NoSuchTeamException if it could not be found.
findByG_N in interface TeamPersistencegroupId - the group IDname - the name
NoSuchTeamException - if a matching team could not be found
SystemException - if a system exception occurred
public Team fetchByG_N(long groupId,
String name)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByG_N in interface TeamPersistencegroupId - the group IDname - the name
null if a matching team could not be found
SystemException - if a system exception occurred
public Team fetchByG_N(long groupId,
String name,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByG_N in interface TeamPersistencegroupId - the group IDname - the nameretrieveFromCache - whether to use the finder cache
null if a matching team could not be found
SystemException - if a system exception occurred
public Team removeByG_N(long groupId,
String name)
throws NoSuchTeamException,
SystemException
removeByG_N in interface TeamPersistencegroupId - the group IDname - the name
SystemException - if a system exception occurred
NoSuchTeamException
public int countByG_N(long groupId,
String name)
throws SystemException
countByG_N in interface TeamPersistencegroupId - the group IDname - the name
SystemException - if a system exception occurredpublic void cacheResult(Team team)
cacheResult in interface TeamPersistenceteam - the teampublic void cacheResult(List<Team> teams)
cacheResult in interface TeamPersistenceteams - the teamspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<Team>clearCache in class BasePersistenceImpl<Team>public void clearCache(Team team)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<Team>clearCache in class BasePersistenceImpl<Team>team - the instance of this model to clear the cache forpublic void clearCache(List<Team> teams)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<Team>clearCache in class BasePersistenceImpl<Team>teams - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(Team team)
protected void clearUniqueFindersCache(Team team)
public Team create(long teamId)
create in interface TeamPersistenceteamId - the primary key for the new team
public Team remove(long teamId)
throws NoSuchTeamException,
SystemException
remove in interface TeamPersistenceteamId - the primary key of the team
NoSuchTeamException - if a team with the primary key could not be found
SystemException - if a system exception occurred
public Team remove(Serializable primaryKey)
throws NoSuchTeamException,
SystemException
remove in interface BasePersistence<Team>remove in class BasePersistenceImpl<Team>primaryKey - the primary key of the team
NoSuchTeamException - if a team with the primary key could not be found
SystemException - if a system exception occurred
protected Team removeImpl(Team team)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<Team>team - the model instance to remove
SystemException - if a system exception occurred
public Team updateImpl(Team team)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface TeamPersistenceupdateImpl in class BasePersistenceImpl<Team>team - the model instance to update
SystemException - if a system exception occurredprotected Team toUnwrappedModel(Team team)
public Team findByPrimaryKey(Serializable primaryKey)
throws NoSuchTeamException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<Team>findByPrimaryKey in class BasePersistenceImpl<Team>primaryKey - the primary key of the team
NoSuchTeamException - if a team with the primary key could not be found
SystemException - if a system exception occurred
public Team findByPrimaryKey(long teamId)
throws NoSuchTeamException,
SystemException
NoSuchTeamException if it could not be found.
findByPrimaryKey in interface TeamPersistenceteamId - the primary key of the team
NoSuchTeamException - if a team with the primary key could not be found
SystemException - if a system exception occurred
public Team fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<Team>fetchByPrimaryKey in class BasePersistenceImpl<Team>primaryKey - the primary key of the team
null if a team with the primary key could not be found
SystemException - if a system exception occurred
public Team fetchByPrimaryKey(long teamId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface TeamPersistenceteamId - the primary key of the team
null if a team with the primary key could not be found
SystemException - if a system exception occurred
public List<Team> findAll()
throws SystemException
findAll in interface TeamPersistenceSystemException - if a system exception occurred
public List<Team> findAll(int start,
int end)
throws 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 TeamPersistencestart - the lower bound of the range of teamsend - the upper bound of the range of teams (not inclusive)
SystemException - if a system exception occurred
public List<Team> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws 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 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)
SystemException - if a system exception occurred
public void removeAll()
throws SystemException
removeAll in interface TeamPersistenceSystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface TeamPersistenceSystemException - if a system exception occurred
public List<User> getUsers(long pk)
throws SystemException
getUsers in interface TeamPersistencepk - the primary key of the team
SystemException - if a system exception occurred
public List<User> getUsers(long pk,
int start,
int end)
throws 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 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)
SystemException - if a system exception occurred
public List<User> getUsers(long pk,
int start,
int end,
OrderByComparator orderByComparator)
throws 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 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)
SystemException - if a system exception occurred
public int getUsersSize(long pk)
throws SystemException
getUsersSize in interface TeamPersistencepk - the primary key of the team
SystemException - if a system exception occurred
public boolean containsUser(long pk,
long userPK)
throws SystemException
true if the user is associated with the team.
containsUser in interface TeamPersistencepk - the primary key of the teamuserPK - the primary key of the user
true if the user is associated with the team; false otherwise
SystemException - if a system exception occurred
public boolean containsUsers(long pk)
throws SystemException
true if the team has any users associated with it.
containsUsers in interface TeamPersistencepk - the primary key of the team to check for associations with users
true if the team has any users associated with it; false otherwise
SystemException - if a system exception occurred
public void addUser(long pk,
long userPK)
throws SystemException
addUser in interface TeamPersistencepk - the primary key of the teamuserPK - the primary key of the user
SystemException - if a system exception occurred
public void addUser(long pk,
User user)
throws SystemException
addUser in interface TeamPersistencepk - the primary key of the teamuser - the user
SystemException - if a system exception occurred
public void addUsers(long pk,
long[] userPKs)
throws SystemException
addUsers in interface TeamPersistencepk - the primary key of the teamuserPKs - the primary keys of the users
SystemException - if a system exception occurred
public void addUsers(long pk,
List<User> users)
throws SystemException
addUsers in interface TeamPersistencepk - the primary key of the teamusers - the users
SystemException - if a system exception occurred
public void clearUsers(long pk)
throws SystemException
clearUsers in interface TeamPersistencepk - the primary key of the team to clear the associated users from
SystemException - if a system exception occurred
public void removeUser(long pk,
long userPK)
throws SystemException
removeUser in interface TeamPersistencepk - the primary key of the teamuserPK - the primary key of the user
SystemException - if a system exception occurred
public void removeUser(long pk,
User user)
throws SystemException
removeUser in interface TeamPersistencepk - the primary key of the teamuser - the user
SystemException - if a system exception occurred
public void removeUsers(long pk,
long[] userPKs)
throws SystemException
removeUsers in interface TeamPersistencepk - the primary key of the teamuserPKs - the primary keys of the users
SystemException - if a system exception occurred
public void removeUsers(long pk,
List<User> users)
throws SystemException
removeUsers in interface TeamPersistencepk - the primary key of the teamusers - the users
SystemException - if a system exception occurred
public void setUsers(long pk,
long[] userPKs)
throws SystemException
setUsers in interface TeamPersistencepk - the primary key of the teamuserPKs - the primary keys of the users to be associated with the team
SystemException - if a system exception occurred
public void setUsers(long pk,
List<User> users)
throws SystemException
setUsers in interface TeamPersistencepk - the primary key of the teamusers - the users to be associated with the team
SystemException - if a system exception occurred
public List<UserGroup> getUserGroups(long pk)
throws SystemException
getUserGroups in interface TeamPersistencepk - the primary key of the team
SystemException - if a system exception occurred
public List<UserGroup> getUserGroups(long pk,
int start,
int end)
throws 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 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)
SystemException - if a system exception occurred
public List<UserGroup> getUserGroups(long pk,
int start,
int end,
OrderByComparator orderByComparator)
throws 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 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)
SystemException - if a system exception occurred
public int getUserGroupsSize(long pk)
throws SystemException
getUserGroupsSize in interface TeamPersistencepk - the primary key of the team
SystemException - if a system exception occurred
public boolean containsUserGroup(long pk,
long userGroupPK)
throws SystemException
true if the user group is associated with the team.
containsUserGroup in interface TeamPersistencepk - the primary key of the teamuserGroupPK - the primary key of the user group
true if the user group is associated with the team; false otherwise
SystemException - if a system exception occurred
public boolean containsUserGroups(long pk)
throws SystemException
true if the team has any user groups associated with it.
containsUserGroups in interface TeamPersistencepk - the primary key of the team to check for associations with user groups
true if the team has any user groups associated with it; false otherwise
SystemException - if a system exception occurred
public void addUserGroup(long pk,
long userGroupPK)
throws SystemException
addUserGroup in interface TeamPersistencepk - the primary key of the teamuserGroupPK - the primary key of the user group
SystemException - if a system exception occurred
public void addUserGroup(long pk,
UserGroup userGroup)
throws SystemException
addUserGroup in interface TeamPersistencepk - the primary key of the teamuserGroup - the user group
SystemException - if a system exception occurred
public void addUserGroups(long pk,
long[] userGroupPKs)
throws SystemException
addUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroupPKs - the primary keys of the user groups
SystemException - if a system exception occurred
public void addUserGroups(long pk,
List<UserGroup> userGroups)
throws SystemException
addUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroups - the user groups
SystemException - if a system exception occurred
public void clearUserGroups(long pk)
throws SystemException
clearUserGroups in interface TeamPersistencepk - the primary key of the team to clear the associated user groups from
SystemException - if a system exception occurred
public void removeUserGroup(long pk,
long userGroupPK)
throws SystemException
removeUserGroup in interface TeamPersistencepk - the primary key of the teamuserGroupPK - the primary key of the user group
SystemException - if a system exception occurred
public void removeUserGroup(long pk,
UserGroup userGroup)
throws SystemException
removeUserGroup in interface TeamPersistencepk - the primary key of the teamuserGroup - the user group
SystemException - if a system exception occurred
public void removeUserGroups(long pk,
long[] userGroupPKs)
throws SystemException
removeUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroupPKs - the primary keys of the user groups
SystemException - if a system exception occurred
public void removeUserGroups(long pk,
List<UserGroup> userGroups)
throws SystemException
removeUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroups - the user groups
SystemException - if a system exception occurred
public void setUserGroups(long pk,
long[] userGroupPKs)
throws SystemException
setUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroupPKs - the primary keys of the user groups to be associated with the team
SystemException - if a system exception occurred
public void setUserGroups(long pk,
List<UserGroup> userGroups)
throws SystemException
setUserGroups in interface TeamPersistencepk - the primary key of the teamuserGroups - the user groups to be associated with the team
SystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.2.0-ce-b2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||