|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TeamPersistence
The persistence interface for the team service.
Never modify or reference this interface directly. Always use TeamUtil
to access the team persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
Caching information and settings can be found in portal.properties
TeamPersistenceImpl
,
TeamUtil
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 |
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 |
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. |
void |
clearUsers(long pk)
Clears all associations between the team and its users. |
boolean |
containsUser(long pk,
long userPK)
Determines whether the user is associated with the team. |
boolean |
containsUsers(long pk)
Determines whether the team has any users associated with it. |
int |
countAll()
Counts all the teams. |
int |
countByG_N(long groupId,
String name)
Counts all the teams where groupId = ? and name = ?. |
int |
countByGroupId(long groupId)
Counts all the teams where groupId = ?. |
Team |
create(long teamId)
Creates a new team with the primary key. |
Team |
fetchByG_N(long groupId,
String name)
Finds the team where groupId = ? and name = ? or returns null if it could not be found. |
Team |
fetchByG_N(long groupId,
String name,
boolean retrieveFromCache)
Finds the team where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
Team |
fetchByPrimaryKey(long teamId)
Finds the team with the primary key or returns null if it could not be found. |
int |
filterCountByG_N(long groupId,
String name)
Filters by the user's permissions and counts all the teams where groupId = ? and name = ?. |
int |
filterCountByGroupId(long groupId)
Filters by the user's permissions and counts all the teams where groupId = ?. |
List<Team> |
filterFindByGroupId(long groupId)
Filters by the user's permissions and finds all the teams where groupId = ?. |
List<Team> |
filterFindByGroupId(long groupId,
int start,
int end)
Filters by the user's permissions and finds a range of all the teams where groupId = ?. |
List<Team> |
filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Filters by the user's permissions and finds an ordered range of all the teams where groupId = ?. |
List<Team> |
findAll()
Finds all the teams. |
List<Team> |
findAll(int start,
int end)
Finds a range of all the teams. |
List<Team> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the teams. |
Team |
findByG_N(long groupId,
String name)
Finds the team where groupId = ? and name = ? or throws a NoSuchTeamException if it could not be found. |
Team |
findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
Finds the first team in the ordered set where groupId = ?. |
Team |
findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
Finds the last team in the ordered set where groupId = ?. |
Team[] |
findByGroupId_PrevAndNext(long teamId,
long groupId,
OrderByComparator orderByComparator)
Finds the teams before and after the current team in the ordered set where groupId = ?. |
List<Team> |
findByGroupId(long groupId)
Finds all the teams where groupId = ?. |
List<Team> |
findByGroupId(long groupId,
int start,
int end)
Finds a range of all the teams where groupId = ?. |
List<Team> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the teams where groupId = ?. |
Team |
findByPrimaryKey(long teamId)
Finds the team with the primary key or throws a NoSuchTeamException if it could not be found. |
List<User> |
getUsers(long pk)
Gets all the users associated with the team. |
List<User> |
getUsers(long pk,
int start,
int end)
Gets a range of all the users associated with the team. |
List<User> |
getUsers(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Gets an ordered range of all the users associated with the team. |
int |
getUsersSize(long pk)
Gets the number of users associated with the team. |
Team |
remove(long teamId)
Removes the team with the primary key from the database. |
void |
removeAll()
Removes all the teams from the database. |
void |
removeByG_N(long groupId,
String name)
Removes the team where groupId = ? and name = ? from the database. |
void |
removeByGroupId(long groupId)
Removes all the teams where groupId = ? from the database. |
void |
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 |
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 |
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. |
Team |
updateImpl(Team team,
boolean merge)
|
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
Method Detail |
---|
void cacheResult(Team team)
team
- the team to cachevoid cacheResult(List<Team> teams)
teams
- the teams to cacheTeam create(long teamId)
teamId
- the primary key for the new team
Team remove(long teamId) throws NoSuchTeamException, SystemException
teamId
- the primary key of the team to remove
NoSuchTeamException
- if a team with the primary key could not be found
SystemException
- if a system exception occurredTeam updateImpl(Team team, boolean merge) throws SystemException
SystemException
Team findByPrimaryKey(long teamId) throws NoSuchTeamException, SystemException
NoSuchTeamException
if it could not be found.
teamId
- the primary key of the team to find
NoSuchTeamException
- if a team with the primary key could not be found
SystemException
- if a system exception occurredTeam fetchByPrimaryKey(long teamId) throws SystemException
null
if it could not be found.
teamId
- the primary key of the team to find
null
if a team with the primary key could not be found
SystemException
- if a system exception occurredList<Team> findByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredList<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.
groupId
- the group id to search withstart
- the lower bound of the range of teams to returnend
- the upper bound of the range of teams to return (not inclusive)
SystemException
- if a system exception occurredList<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.
groupId
- the group id to search withstart
- the lower bound of the range of teams to returnend
- the upper bound of the range of teams to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredTeam findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchTeamException, 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.
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchTeamException
- if a matching team could not be found
SystemException
- if a system exception occurredTeam findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchTeamException, 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.
groupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchTeamException
- if a matching team could not be found
SystemException
- if a system exception occurredTeam[] findByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator orderByComparator) throws NoSuchTeamException, 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.
teamId
- the primary key of the current teamgroupId
- the group id to search withorderByComparator
- the comparator to order the set by
NoSuchTeamException
- if a team with the primary key could not be found
SystemException
- if a system exception occurredList<Team> filterFindByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredList<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.
groupId
- the group id to search withstart
- the lower bound of the range of teams to returnend
- the upper bound of the range of teams to return (not inclusive)
SystemException
- if a system exception occurredList<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.
groupId
- the group id to search withstart
- the lower bound of the range of teams to returnend
- the upper bound of the range of teams to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredTeam findByG_N(long groupId, String name) throws NoSuchTeamException, SystemException
NoSuchTeamException
if it could not be found.
groupId
- the group id to search withname
- the name to search with
NoSuchTeamException
- if a matching team could not be found
SystemException
- if a system exception occurredTeam fetchByG_N(long groupId, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
groupId
- the group id to search withname
- the name to search with
null
if a matching team could not be found
SystemException
- if a system exception occurredTeam fetchByG_N(long groupId, String name, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
groupId
- the group id to search withname
- the name to search with
null
if a matching team could not be found
SystemException
- if a system exception occurredList<Team> findAll() throws SystemException
SystemException
- if a system exception occurredList<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.
start
- the lower bound of the range of teams to returnend
- the upper bound of the range of teams to return (not inclusive)
SystemException
- if a system exception occurredList<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.
start
- the lower bound of the range of teams to returnend
- the upper bound of the range of teams to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredvoid removeByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredvoid removeByG_N(long groupId, String name) throws NoSuchTeamException, SystemException
groupId
- the group id to search withname
- the name to search with
SystemException
- if a system exception occurred
NoSuchTeamException
void removeAll() throws SystemException
SystemException
- if a system exception occurredint countByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredint filterCountByGroupId(long groupId) throws SystemException
groupId
- the group id to search with
SystemException
- if a system exception occurredint countByG_N(long groupId, String name) throws SystemException
groupId
- the group id to search withname
- the name to search with
SystemException
- if a system exception occurredint filterCountByG_N(long groupId, String name) throws SystemException
groupId
- the group id to search withname
- the name to search with
SystemException
- if a system exception occurredint countAll() throws SystemException
SystemException
- if a system exception occurredList<User> getUsers(long pk) throws SystemException
pk
- the primary key of the team to get the associated users for
SystemException
- if a system exception occurredList<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.
pk
- the primary key of the team to get the associated users forstart
- the lower bound of the range of teams to returnend
- the upper bound of the range of teams to return (not inclusive)
SystemException
- if a system exception occurredList<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.
pk
- the primary key of the team to get the associated users forstart
- the lower bound of the range of teams to returnend
- the upper bound of the range of teams to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredint getUsersSize(long pk) throws SystemException
pk
- the primary key of the team to get the number of associated users for
SystemException
- if a system exception occurredboolean containsUser(long pk, long userPK) throws SystemException
pk
- the primary key of the teamuserPK
- the primary key of the user
SystemException
- if a system exception occurredboolean containsUsers(long pk) throws SystemException
pk
- the primary key of the team to check for associations with users
SystemException
- if a system exception occurredvoid addUser(long pk, long userPK) throws SystemException
pk
- the primary key of the teamuserPK
- the primary key of the user
SystemException
- if a system exception occurredvoid addUser(long pk, User user) throws SystemException
pk
- the primary key of the teamuser
- the user
SystemException
- if a system exception occurredvoid addUsers(long pk, long[] userPKs) throws SystemException
pk
- the primary key of the teamuserPKs
- the primary keys of the users
SystemException
- if a system exception occurredvoid addUsers(long pk, List<User> users) throws SystemException
pk
- the primary key of the teamusers
- the users
SystemException
- if a system exception occurredvoid clearUsers(long pk) throws SystemException
pk
- the primary key of the team to clear the associated users from
SystemException
- if a system exception occurredvoid removeUser(long pk, long userPK) throws SystemException
pk
- the primary key of the teamuserPK
- the primary key of the user
SystemException
- if a system exception occurredvoid removeUser(long pk, User user) throws SystemException
pk
- the primary key of the teamuser
- the user
SystemException
- if a system exception occurredvoid removeUsers(long pk, long[] userPKs) throws SystemException
pk
- the primary key of the teamuserPKs
- the primary keys of the users
SystemException
- if a system exception occurredvoid removeUsers(long pk, List<User> users) throws SystemException
pk
- the primary key of the teamusers
- the users
SystemException
- if a system exception occurredvoid setUsers(long pk, long[] userPKs) throws SystemException
pk
- the primary key of the team to set the associations foruserPKs
- the primary keys of the users to be associated with the team
SystemException
- if a system exception occurredvoid setUsers(long pk, List<User> users) throws SystemException
pk
- the primary key of the team to set the associations forusers
- the users to be associated with the team
SystemException
- if a system exception occurred
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |