|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<Team> com.liferay.portal.service.persistence.TeamPersistenceImpl
public class TeamPersistenceImpl
The persistence implementation for the team service.
Never modify or reference this class directly. Always use TeamUtil
to access the team persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
TeamPersistence
,
TeamUtil
Nested Class Summary | |
---|---|
protected class |
TeamPersistenceImpl.AddUser
|
protected class |
TeamPersistenceImpl.ClearUsers
|
protected class |
TeamPersistenceImpl.ContainsUser
|
protected class |
TeamPersistenceImpl.RemoveUser
|
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, 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 |
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. |
void |
clearCache()
Clears the cache for all teams. |
void |
clearCache(Team team)
Clears the cache for the team. |
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. |
Team |
fetchByPrimaryKey(Serializable primaryKey)
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. |
Team |
findByPrimaryKey(Serializable primaryKey)
Finds 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<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. |
Team |
remove(Serializable primaryKey)
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. |
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 |
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. |
protected Team |
toUnwrappedModel(Team team)
|
Team |
updateImpl(Team team,
boolean merge)
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, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_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_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
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
@BeanReference(type=AccountPersistence.class) protected AccountPersistence accountPersistence
@BeanReference(type=AddressPersistence.class) protected AddressPersistence addressPersistence
@BeanReference(type=BrowserTrackerPersistence.class) protected BrowserTrackerPersistence browserTrackerPersistence
@BeanReference(type=ClassNamePersistence.class) protected ClassNamePersistence classNamePersistence
@BeanReference(type=ClusterGroupPersistence.class) protected ClusterGroupPersistence clusterGroupPersistence
@BeanReference(type=CompanyPersistence.class) protected CompanyPersistence companyPersistence
@BeanReference(type=ContactPersistence.class) protected ContactPersistence contactPersistence
@BeanReference(type=CountryPersistence.class) protected CountryPersistence countryPersistence
@BeanReference(type=EmailAddressPersistence.class) protected EmailAddressPersistence emailAddressPersistence
@BeanReference(type=GroupPersistence.class) protected GroupPersistence groupPersistence
@BeanReference(type=ImagePersistence.class) protected ImagePersistence imagePersistence
@BeanReference(type=LayoutPersistence.class) protected LayoutPersistence layoutPersistence
@BeanReference(type=LayoutPrototypePersistence.class) protected LayoutPrototypePersistence layoutPrototypePersistence
@BeanReference(type=LayoutSetPersistence.class) protected LayoutSetPersistence layoutSetPersistence
@BeanReference(type=LayoutSetPrototypePersistence.class) protected LayoutSetPrototypePersistence layoutSetPrototypePersistence
@BeanReference(type=ListTypePersistence.class) protected ListTypePersistence listTypePersistence
@BeanReference(type=LockPersistence.class) protected LockPersistence lockPersistence
@BeanReference(type=MembershipRequestPersistence.class) protected MembershipRequestPersistence membershipRequestPersistence
@BeanReference(type=OrganizationPersistence.class) protected OrganizationPersistence organizationPersistence
@BeanReference(type=OrgGroupPermissionPersistence.class) protected OrgGroupPermissionPersistence orgGroupPermissionPersistence
@BeanReference(type=OrgGroupRolePersistence.class) protected OrgGroupRolePersistence orgGroupRolePersistence
@BeanReference(type=OrgLaborPersistence.class) protected OrgLaborPersistence orgLaborPersistence
@BeanReference(type=PasswordPolicyPersistence.class) protected PasswordPolicyPersistence passwordPolicyPersistence
@BeanReference(type=PasswordPolicyRelPersistence.class) protected PasswordPolicyRelPersistence passwordPolicyRelPersistence
@BeanReference(type=PasswordTrackerPersistence.class) protected PasswordTrackerPersistence passwordTrackerPersistence
@BeanReference(type=PermissionPersistence.class) protected PermissionPersistence permissionPersistence
@BeanReference(type=PhonePersistence.class) protected PhonePersistence phonePersistence
@BeanReference(type=PluginSettingPersistence.class) protected PluginSettingPersistence pluginSettingPersistence
@BeanReference(type=PortletPersistence.class) protected PortletPersistence portletPersistence
@BeanReference(type=PortletItemPersistence.class) protected PortletItemPersistence portletItemPersistence
@BeanReference(type=PortletPreferencesPersistence.class) protected PortletPreferencesPersistence portletPreferencesPersistence
@BeanReference(type=RegionPersistence.class) protected RegionPersistence regionPersistence
@BeanReference(type=ReleasePersistence.class) protected ReleasePersistence releasePersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=ResourceActionPersistence.class) protected ResourceActionPersistence resourceActionPersistence
@BeanReference(type=ResourceCodePersistence.class) protected ResourceCodePersistence resourceCodePersistence
@BeanReference(type=ResourcePermissionPersistence.class) protected ResourcePermissionPersistence resourcePermissionPersistence
@BeanReference(type=RolePersistence.class) protected RolePersistence rolePersistence
@BeanReference(type=ServiceComponentPersistence.class) protected ServiceComponentPersistence serviceComponentPersistence
@BeanReference(type=ShardPersistence.class) protected ShardPersistence shardPersistence
@BeanReference(type=SubscriptionPersistence.class) protected SubscriptionPersistence subscriptionPersistence
@BeanReference(type=TicketPersistence.class) protected TicketPersistence ticketPersistence
@BeanReference(type=TeamPersistence.class) protected TeamPersistence teamPersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
@BeanReference(type=UserGroupPersistence.class) protected UserGroupPersistence userGroupPersistence
@BeanReference(type=UserGroupGroupRolePersistence.class) protected UserGroupGroupRolePersistence userGroupGroupRolePersistence
@BeanReference(type=UserGroupRolePersistence.class) protected UserGroupRolePersistence userGroupRolePersistence
@BeanReference(type=UserIdMapperPersistence.class) protected UserIdMapperPersistence userIdMapperPersistence
@BeanReference(type=UserTrackerPersistence.class) protected UserTrackerPersistence userTrackerPersistence
@BeanReference(type=UserTrackerPathPersistence.class) protected UserTrackerPathPersistence userTrackerPathPersistence
@BeanReference(type=WebDAVPropsPersistence.class) protected WebDAVPropsPersistence webDAVPropsPersistence
@BeanReference(type=WebsitePersistence.class) protected WebsitePersistence websitePersistence
@BeanReference(type=WorkflowDefinitionLinkPersistence.class) protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence
@BeanReference(type=WorkflowInstanceLinkPersistence.class) protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence
protected TeamPersistenceImpl.ContainsUser containsUser
protected TeamPersistenceImpl.AddUser addUser
protected TeamPersistenceImpl.ClearUsers clearUsers
protected TeamPersistenceImpl.RemoveUser removeUser
Constructor Detail |
---|
public TeamPersistenceImpl()
Method Detail |
---|
public void cacheResult(Team team)
cacheResult
in interface TeamPersistence
team
- the team to cachepublic void cacheResult(List<Team> teams)
cacheResult
in interface TeamPersistence
teams
- the teams to cachepublic 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 Team create(long teamId)
create
in interface TeamPersistence
teamId
- the primary key for the new team
public Team remove(Serializable primaryKey) throws NoSuchModelException, SystemException
remove
in interface BasePersistence<Team>
remove
in class BasePersistenceImpl<Team>
primaryKey
- the primary key of the team to remove
NoSuchModelException
- if a team with the primary key could not be found
SystemException
- if a system exception occurredpublic Team remove(long teamId) throws NoSuchTeamException, SystemException
remove
in interface TeamPersistence
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 occurredprotected Team removeImpl(Team team) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.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 occurredpublic Team updateImpl(Team team, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface TeamPersistence
updateImpl
in class BasePersistenceImpl<Team>
team
- the model instance to updatemerge
- whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredprotected Team toUnwrappedModel(Team team)
public Team findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, 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 to find
NoSuchModelException
- if a team with the primary key could not be found
SystemException
- if a system exception occurredpublic Team findByPrimaryKey(long teamId) throws NoSuchTeamException, SystemException
NoSuchTeamException
if it could not be found.
findByPrimaryKey
in interface TeamPersistence
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 occurredpublic 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 to find
null
if a team with the primary key could not be found
SystemException
- if a system exception occurredpublic Team fetchByPrimaryKey(long teamId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface TeamPersistence
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 occurredpublic List<Team> findByGroupId(long groupId) throws SystemException
findByGroupId
in interface TeamPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic 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.
findByGroupId
in interface TeamPersistence
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 occurredpublic 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.
findByGroupId
in interface TeamPersistence
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 occurredpublic Team 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.
findByGroupId_First
in interface TeamPersistence
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 occurredpublic Team 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.
findByGroupId_Last
in interface TeamPersistence
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 occurredpublic Team[] 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.
findByGroupId_PrevAndNext
in interface TeamPersistence
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 occurredprotected Team getByGroupId_PrevAndNext(Session session, Team team, long groupId, OrderByComparator orderByComparator, boolean previous)
public List<Team> filterFindByGroupId(long groupId) throws SystemException
filterFindByGroupId
in interface TeamPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic 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.
filterFindByGroupId
in interface TeamPersistence
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 occurredpublic 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.
filterFindByGroupId
in interface TeamPersistence
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 occurredpublic Team findByG_N(long groupId, String name) throws NoSuchTeamException, SystemException
NoSuchTeamException
if it could not be found.
findByG_N
in interface TeamPersistence
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 occurredpublic Team fetchByG_N(long groupId, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByG_N
in interface TeamPersistence
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 occurredpublic 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 TeamPersistence
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 occurredpublic List<Team> findAll() throws SystemException
findAll
in interface TeamPersistence
SystemException
- if a system exception occurredpublic 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.
findAll
in interface TeamPersistence
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 occurredpublic 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.
findAll
in interface TeamPersistence
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 occurredpublic void removeByGroupId(long groupId) throws SystemException
removeByGroupId
in interface TeamPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic void removeByG_N(long groupId, String name) throws NoSuchTeamException, SystemException
removeByG_N
in interface TeamPersistence
groupId
- the group id to search withname
- the name to search with
SystemException
- if a system exception occurred
NoSuchTeamException
public void removeAll() throws SystemException
removeAll
in interface TeamPersistence
SystemException
- if a system exception occurredpublic int countByGroupId(long groupId) throws SystemException
countByGroupId
in interface TeamPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic int filterCountByGroupId(long groupId) throws SystemException
filterCountByGroupId
in interface TeamPersistence
groupId
- the group id to search with
SystemException
- if a system exception occurredpublic int countByG_N(long groupId, String name) throws SystemException
countByG_N
in interface TeamPersistence
groupId
- the group id to search withname
- the name to search with
SystemException
- if a system exception occurredpublic int filterCountByG_N(long groupId, String name) throws SystemException
filterCountByG_N
in interface TeamPersistence
groupId
- the group id to search withname
- the name to search with
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface TeamPersistence
SystemException
- if a system exception occurredpublic List<User> getUsers(long pk) throws SystemException
getUsers
in interface TeamPersistence
pk
- the primary key of the team to get the associated users for
SystemException
- if a system exception occurredpublic 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.
getUsers
in interface TeamPersistence
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 occurredpublic 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.
getUsers
in interface TeamPersistence
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 occurredpublic int getUsersSize(long pk) throws SystemException
getUsersSize
in interface TeamPersistence
pk
- the primary key of the team to get the number of associated users for
SystemException
- if a system exception occurredpublic boolean containsUser(long pk, long userPK) throws SystemException
containsUser
in interface TeamPersistence
pk
- the primary key of the teamuserPK
- the primary key of the user
SystemException
- if a system exception occurredpublic boolean containsUsers(long pk) throws SystemException
containsUsers
in interface TeamPersistence
pk
- the primary key of the team to check for associations with users
SystemException
- if a system exception occurredpublic void addUser(long pk, long userPK) throws SystemException
addUser
in interface TeamPersistence
pk
- the primary key of the teamuserPK
- the primary key of the user
SystemException
- if a system exception occurredpublic void addUser(long pk, User user) throws SystemException
addUser
in interface TeamPersistence
pk
- the primary key of the teamuser
- the user
SystemException
- if a system exception occurredpublic void addUsers(long pk, long[] userPKs) throws SystemException
addUsers
in interface TeamPersistence
pk
- the primary key of the teamuserPKs
- the primary keys of the users
SystemException
- if a system exception occurredpublic void addUsers(long pk, List<User> users) throws SystemException
addUsers
in interface TeamPersistence
pk
- the primary key of the teamusers
- the users
SystemException
- if a system exception occurredpublic void clearUsers(long pk) throws SystemException
clearUsers
in interface TeamPersistence
pk
- the primary key of the team to clear the associated users from
SystemException
- if a system exception occurredpublic void removeUser(long pk, long userPK) throws SystemException
removeUser
in interface TeamPersistence
pk
- the primary key of the teamuserPK
- the primary key of the user
SystemException
- if a system exception occurredpublic void removeUser(long pk, User user) throws SystemException
removeUser
in interface TeamPersistence
pk
- the primary key of the teamuser
- the user
SystemException
- if a system exception occurredpublic void removeUsers(long pk, long[] userPKs) throws SystemException
removeUsers
in interface TeamPersistence
pk
- the primary key of the teamuserPKs
- the primary keys of the users
SystemException
- if a system exception occurredpublic void removeUsers(long pk, List<User> users) throws SystemException
removeUsers
in interface TeamPersistence
pk
- the primary key of the teamusers
- the users
SystemException
- if a system exception occurredpublic void setUsers(long pk, long[] userPKs) throws SystemException
setUsers
in interface TeamPersistence
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 occurredpublic void setUsers(long pk, List<User> users) throws SystemException
setUsers
in interface TeamPersistence
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 occurredpublic void afterPropertiesSet()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |