|
Liferay 6.1.2-ce-ga3 | |||||||||
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.
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,
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, getClassLoader, getDataSource, getDB, 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 |
---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, 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_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_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_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=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=LayoutBranchPersistence.class) protected LayoutBranchPersistence layoutBranchPersistence
@BeanReference(type=LayoutPrototypePersistence.class) protected LayoutPrototypePersistence layoutPrototypePersistence
@BeanReference(type=LayoutRevisionPersistence.class) protected LayoutRevisionPersistence layoutRevisionPersistence
@BeanReference(type=LayoutSetPersistence.class) protected LayoutSetPersistence layoutSetPersistence
@BeanReference(type=LayoutSetBranchPersistence.class) protected LayoutSetBranchPersistence layoutSetBranchPersistence
@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=PortalPreferencesPersistence.class) protected PortalPreferencesPersistence portalPreferencesPersistence
@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=RepositoryPersistence.class) protected RepositoryPersistence repositoryPersistence
@BeanReference(type=RepositoryEntryPersistence.class) protected RepositoryEntryPersistence repositoryEntryPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=ResourceActionPersistence.class) protected ResourceActionPersistence resourceActionPersistence
@BeanReference(type=ResourceBlockPersistence.class) protected ResourceBlockPersistence resourceBlockPersistence
@BeanReference(type=ResourceBlockPermissionPersistence.class) protected ResourceBlockPermissionPersistence resourceBlockPermissionPersistence
@BeanReference(type=ResourceCodePersistence.class) protected ResourceCodePersistence resourceCodePersistence
@BeanReference(type=ResourcePermissionPersistence.class) protected ResourcePermissionPersistence resourcePermissionPersistence
@BeanReference(type=ResourceTypePermissionPersistence.class) protected ResourceTypePermissionPersistence resourceTypePermissionPersistence
@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=TeamPersistence.class) protected TeamPersistence teamPersistence
@BeanReference(type=TicketPersistence.class) protected TicketPersistence ticketPersistence
@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=UserNotificationEventPersistence.class) protected UserNotificationEventPersistence userNotificationEventPersistence
@BeanReference(type=UserTrackerPersistence.class) protected UserTrackerPersistence userTrackerPersistence
@BeanReference(type=UserTrackerPathPersistence.class) protected UserTrackerPathPersistence userTrackerPathPersistence
@BeanReference(type=VirtualHostPersistence.class) protected VirtualHostPersistence virtualHostPersistence
@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
protected TeamPersistenceImpl.ContainsUserGroup containsUserGroup
protected TeamPersistenceImpl.AddUserGroup addUserGroup
protected TeamPersistenceImpl.ClearUserGroups clearUserGroups
protected TeamPersistenceImpl.RemoveUserGroup removeUserGroup
Constructor Detail |
---|
public TeamPersistenceImpl()
Method Detail |
---|
public void cacheResult(Team team)
cacheResult
in interface TeamPersistence
team
- the teampublic void cacheResult(List<Team> teams)
cacheResult
in interface TeamPersistence
teams
- 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 TeamPersistence
teamId
- the primary key for the new team
public Team remove(long teamId) throws NoSuchTeamException, SystemException
remove
in interface TeamPersistence
teamId
- the primary key of the team
NoSuchTeamException
- if a team with the primary key could not be found
SystemException
- if a system exception occurredpublic 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 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
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
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
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
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
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 IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (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 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 occurredpublic Team findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchTeamException, SystemException
findByGroupId_First
in interface TeamPersistence
groupId
- 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 occurredpublic Team fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_First
in interface TeamPersistence
groupId
- 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 occurredpublic Team findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchTeamException, SystemException
findByGroupId_Last
in interface TeamPersistence
groupId
- 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 occurredpublic Team fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_Last
in interface TeamPersistence
groupId
- 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 occurredpublic Team[] findByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator orderByComparator) throws NoSuchTeamException, SystemException
findByGroupId_PrevAndNext
in interface TeamPersistence
teamId
- 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 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
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 IDstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (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 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 occurredpublic Team[] filterFindByGroupId_PrevAndNext(long teamId, long groupId, OrderByComparator orderByComparator) throws NoSuchTeamException, SystemException
filterFindByGroupId_PrevAndNext
in interface TeamPersistence
teamId
- 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 occurredprotected Team filterGetByGroupId_PrevAndNext(Session session, Team team, long groupId, OrderByComparator orderByComparator, boolean previous)
public 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 IDname
- the name
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 IDname
- the name
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 IDname
- the nameretrieveFromCache
- whether to use the finder cache
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 teamsend
- the upper bound of the range of teams (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 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 occurredpublic void removeByGroupId(long groupId) throws SystemException
removeByGroupId
in interface TeamPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic Team removeByG_N(long groupId, String name) throws NoSuchTeamException, SystemException
removeByG_N
in interface TeamPersistence
groupId
- the group IDname
- the name
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
SystemException
- if a system exception occurredpublic int filterCountByGroupId(long groupId) throws SystemException
filterCountByGroupId
in interface TeamPersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic int countByG_N(long groupId, String name) throws SystemException
countByG_N
in interface TeamPersistence
groupId
- the group IDname
- the name
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
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 teamstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (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 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 occurredpublic int getUsersSize(long pk) throws SystemException
getUsersSize
in interface TeamPersistence
pk
- the primary key of the team
SystemException
- if a system exception occurredpublic boolean containsUser(long pk, long userPK) throws SystemException
true
if the user is associated with the team.
containsUser
in interface TeamPersistence
pk
- 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 occurredpublic boolean containsUsers(long pk) throws SystemException
true
if the team has any users associated with it.
containsUsers
in interface TeamPersistence
pk
- 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 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 teamuserPKs
- 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 teamusers
- the users to be associated with the team
SystemException
- if a system exception occurredpublic List<UserGroup> getUserGroups(long pk) throws SystemException
getUserGroups
in interface TeamPersistence
pk
- the primary key of the team
SystemException
- if a system exception occurredpublic 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.
getUserGroups
in interface TeamPersistence
pk
- the primary key of the teamstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)
SystemException
- if a system exception occurredpublic 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.
getUserGroups
in interface TeamPersistence
pk
- the primary key of the teamstart
- the lower bound of the range of teamsend
- the upper bound of the range of teams (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic int getUserGroupsSize(long pk) throws SystemException
getUserGroupsSize
in interface TeamPersistence
pk
- the primary key of the team
SystemException
- if a system exception occurredpublic boolean containsUserGroup(long pk, long userGroupPK) throws SystemException
true
if the user group is associated with the team.
containsUserGroup
in interface TeamPersistence
pk
- 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 occurredpublic boolean containsUserGroups(long pk) throws SystemException
true
if the team has any user groups associated with it.
containsUserGroups
in interface TeamPersistence
pk
- 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 occurredpublic void addUserGroup(long pk, long userGroupPK) throws SystemException
addUserGroup
in interface TeamPersistence
pk
- the primary key of the teamuserGroupPK
- the primary key of the user group
SystemException
- if a system exception occurredpublic void addUserGroup(long pk, UserGroup userGroup) throws SystemException
addUserGroup
in interface TeamPersistence
pk
- the primary key of the teamuserGroup
- the user group
SystemException
- if a system exception occurredpublic void addUserGroups(long pk, long[] userGroupPKs) throws SystemException
addUserGroups
in interface TeamPersistence
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groups
SystemException
- if a system exception occurredpublic void addUserGroups(long pk, List<UserGroup> userGroups) throws SystemException
addUserGroups
in interface TeamPersistence
pk
- the primary key of the teamuserGroups
- the user groups
SystemException
- if a system exception occurredpublic void clearUserGroups(long pk) throws SystemException
clearUserGroups
in interface TeamPersistence
pk
- the primary key of the team to clear the associated user groups from
SystemException
- if a system exception occurredpublic void removeUserGroup(long pk, long userGroupPK) throws SystemException
removeUserGroup
in interface TeamPersistence
pk
- the primary key of the teamuserGroupPK
- the primary key of the user group
SystemException
- if a system exception occurredpublic void removeUserGroup(long pk, UserGroup userGroup) throws SystemException
removeUserGroup
in interface TeamPersistence
pk
- the primary key of the teamuserGroup
- the user group
SystemException
- if a system exception occurredpublic void removeUserGroups(long pk, long[] userGroupPKs) throws SystemException
removeUserGroups
in interface TeamPersistence
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groups
SystemException
- if a system exception occurredpublic void removeUserGroups(long pk, List<UserGroup> userGroups) throws SystemException
removeUserGroups
in interface TeamPersistence
pk
- the primary key of the teamuserGroups
- the user groups
SystemException
- if a system exception occurredpublic void setUserGroups(long pk, long[] userGroupPKs) throws SystemException
setUserGroups
in interface TeamPersistence
pk
- the primary key of the teamuserGroupPKs
- the primary keys of the user groups to be associated with the team
SystemException
- if a system exception occurredpublic void setUserGroups(long pk, List<UserGroup> userGroups) throws SystemException
setUserGroups
in interface TeamPersistence
pk
- 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.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |