All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.kernel.service.persistence.UserGroupGroupRolePersistence Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.portal.kernel.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.portal.kernel.exception.NoSuchUserGroupGroupRoleException;
import com.liferay.portal.kernel.model.UserGroupGroupRole;

import java.io.Serializable;

import java.util.Map;
import java.util.Set;

/**
 * The persistence interface for the user group group role service.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Brian Wing Shun Chan * @see UserGroupGroupRoleUtil * @generated */ @ProviderType public interface UserGroupGroupRolePersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link UserGroupGroupRoleUtil} to access the user group group role persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ @Override public Map fetchByPrimaryKeys( Set primaryKeys); /** * Returns all the user group group roles where userGroupId = ?. * * @param userGroupId the user group ID * @return the matching user group group roles */ public java.util.List findByUserGroupId( long userGroupId); /** * Returns a range of all the user group group roles where userGroupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param userGroupId the user group ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @return the range of matching user group group roles */ public java.util.List findByUserGroupId( long userGroupId, int start, int end); /** * Returns an ordered range of all the user group group roles where userGroupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param userGroupId the user group ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user group group roles */ public java.util.List findByUserGroupId( long userGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user group group roles where userGroupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param userGroupId the user group ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching user group group roles */ public java.util.List findByUserGroupId( long userGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first user group group role in the ordered set where userGroupId = ?. * * @param userGroupId the user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group group role * @throws NoSuchUserGroupGroupRoleException if a matching user group group role could not be found */ public UserGroupGroupRole findByUserGroupId_First( long userGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Returns the first user group group role in the ordered set where userGroupId = ?. * * @param userGroupId the user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group group role, or null if a matching user group group role could not be found */ public UserGroupGroupRole fetchByUserGroupId_First( long userGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last user group group role in the ordered set where userGroupId = ?. * * @param userGroupId the user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group group role * @throws NoSuchUserGroupGroupRoleException if a matching user group group role could not be found */ public UserGroupGroupRole findByUserGroupId_Last( long userGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Returns the last user group group role in the ordered set where userGroupId = ?. * * @param userGroupId the user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group group role, or null if a matching user group group role could not be found */ public UserGroupGroupRole fetchByUserGroupId_Last( long userGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user group group roles before and after the current user group group role in the ordered set where userGroupId = ?. * * @param userGroupGroupRolePK the primary key of the current user group group role * @param userGroupId the user group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group group role * @throws NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found */ public UserGroupGroupRole[] findByUserGroupId_PrevAndNext( UserGroupGroupRolePK userGroupGroupRolePK, long userGroupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Removes all the user group group roles where userGroupId = ? from the database. * * @param userGroupId the user group ID */ public void removeByUserGroupId(long userGroupId); /** * Returns the number of user group group roles where userGroupId = ?. * * @param userGroupId the user group ID * @return the number of matching user group group roles */ public int countByUserGroupId(long userGroupId); /** * Returns all the user group group roles where groupId = ?. * * @param groupId the group ID * @return the matching user group group roles */ public java.util.List findByGroupId(long groupId); /** * Returns a range of all the user group group roles where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @return the range of matching user group group roles */ public java.util.List findByGroupId( long groupId, int start, int end); /** * Returns an ordered range of all the user group group roles where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user group group roles */ public java.util.List findByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user group group roles where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching user group group roles */ public java.util.List findByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first user group group role in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group group role * @throws NoSuchUserGroupGroupRoleException if a matching user group group role could not be found */ public UserGroupGroupRole findByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Returns the first user group group role in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group group role, or null if a matching user group group role could not be found */ public UserGroupGroupRole fetchByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last user group group role in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group group role * @throws NoSuchUserGroupGroupRoleException if a matching user group group role could not be found */ public UserGroupGroupRole findByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Returns the last user group group role in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group group role, or null if a matching user group group role could not be found */ public UserGroupGroupRole fetchByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user group group roles before and after the current user group group role in the ordered set where groupId = ?. * * @param userGroupGroupRolePK the primary key of the current user group group role * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group group role * @throws NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found */ public UserGroupGroupRole[] findByGroupId_PrevAndNext( UserGroupGroupRolePK userGroupGroupRolePK, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Removes all the user group group roles where groupId = ? from the database. * * @param groupId the group ID */ public void removeByGroupId(long groupId); /** * Returns the number of user group group roles where groupId = ?. * * @param groupId the group ID * @return the number of matching user group group roles */ public int countByGroupId(long groupId); /** * Returns all the user group group roles where roleId = ?. * * @param roleId the role ID * @return the matching user group group roles */ public java.util.List findByRoleId(long roleId); /** * Returns a range of all the user group group roles where roleId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param roleId the role ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @return the range of matching user group group roles */ public java.util.List findByRoleId( long roleId, int start, int end); /** * Returns an ordered range of all the user group group roles where roleId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param roleId the role ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user group group roles */ public java.util.List findByRoleId( long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user group group roles where roleId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param roleId the role ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching user group group roles */ public java.util.List findByRoleId( long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first user group group role in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group group role * @throws NoSuchUserGroupGroupRoleException if a matching user group group role could not be found */ public UserGroupGroupRole findByRoleId_First( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Returns the first user group group role in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group group role, or null if a matching user group group role could not be found */ public UserGroupGroupRole fetchByRoleId_First( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last user group group role in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group group role * @throws NoSuchUserGroupGroupRoleException if a matching user group group role could not be found */ public UserGroupGroupRole findByRoleId_Last( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Returns the last user group group role in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group group role, or null if a matching user group group role could not be found */ public UserGroupGroupRole fetchByRoleId_Last( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user group group roles before and after the current user group group role in the ordered set where roleId = ?. * * @param userGroupGroupRolePK the primary key of the current user group group role * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group group role * @throws NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found */ public UserGroupGroupRole[] findByRoleId_PrevAndNext( UserGroupGroupRolePK userGroupGroupRolePK, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Removes all the user group group roles where roleId = ? from the database. * * @param roleId the role ID */ public void removeByRoleId(long roleId); /** * Returns the number of user group group roles where roleId = ?. * * @param roleId the role ID * @return the number of matching user group group roles */ public int countByRoleId(long roleId); /** * Returns all the user group group roles where userGroupId = ? and groupId = ?. * * @param userGroupId the user group ID * @param groupId the group ID * @return the matching user group group roles */ public java.util.List findByU_G( long userGroupId, long groupId); /** * Returns a range of all the user group group roles where userGroupId = ? and groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param userGroupId the user group ID * @param groupId the group ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @return the range of matching user group group roles */ public java.util.List findByU_G( long userGroupId, long groupId, int start, int end); /** * Returns an ordered range of all the user group group roles where userGroupId = ? and groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param userGroupId the user group ID * @param groupId the group ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user group group roles */ public java.util.List findByU_G( long userGroupId, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user group group roles where userGroupId = ? and groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param userGroupId the user group ID * @param groupId the group ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching user group group roles */ public java.util.List findByU_G( long userGroupId, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first user group group role in the ordered set where userGroupId = ? and groupId = ?. * * @param userGroupId the user group ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group group role * @throws NoSuchUserGroupGroupRoleException if a matching user group group role could not be found */ public UserGroupGroupRole findByU_G_First( long userGroupId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Returns the first user group group role in the ordered set where userGroupId = ? and groupId = ?. * * @param userGroupId the user group ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group group role, or null if a matching user group group role could not be found */ public UserGroupGroupRole fetchByU_G_First( long userGroupId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last user group group role in the ordered set where userGroupId = ? and groupId = ?. * * @param userGroupId the user group ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group group role * @throws NoSuchUserGroupGroupRoleException if a matching user group group role could not be found */ public UserGroupGroupRole findByU_G_Last( long userGroupId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Returns the last user group group role in the ordered set where userGroupId = ? and groupId = ?. * * @param userGroupId the user group ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group group role, or null if a matching user group group role could not be found */ public UserGroupGroupRole fetchByU_G_Last( long userGroupId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user group group roles before and after the current user group group role in the ordered set where userGroupId = ? and groupId = ?. * * @param userGroupGroupRolePK the primary key of the current user group group role * @param userGroupId the user group ID * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group group role * @throws NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found */ public UserGroupGroupRole[] findByU_G_PrevAndNext( UserGroupGroupRolePK userGroupGroupRolePK, long userGroupId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Removes all the user group group roles where userGroupId = ? and groupId = ? from the database. * * @param userGroupId the user group ID * @param groupId the group ID */ public void removeByU_G(long userGroupId, long groupId); /** * Returns the number of user group group roles where userGroupId = ? and groupId = ?. * * @param userGroupId the user group ID * @param groupId the group ID * @return the number of matching user group group roles */ public int countByU_G(long userGroupId, long groupId); /** * Returns all the user group group roles where groupId = ? and roleId = ?. * * @param groupId the group ID * @param roleId the role ID * @return the matching user group group roles */ public java.util.List findByG_R( long groupId, long roleId); /** * Returns a range of all the user group group roles where groupId = ? and roleId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param roleId the role ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @return the range of matching user group group roles */ public java.util.List findByG_R( long groupId, long roleId, int start, int end); /** * Returns an ordered range of all the user group group roles where groupId = ? and roleId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param roleId the role ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching user group group roles */ public java.util.List findByG_R( long groupId, long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user group group roles where groupId = ? and roleId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param groupId the group ID * @param roleId the role ID * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching user group group roles */ public java.util.List findByG_R( long groupId, long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first user group group role in the ordered set where groupId = ? and roleId = ?. * * @param groupId the group ID * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group group role * @throws NoSuchUserGroupGroupRoleException if a matching user group group role could not be found */ public UserGroupGroupRole findByG_R_First( long groupId, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Returns the first user group group role in the ordered set where groupId = ? and roleId = ?. * * @param groupId the group ID * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching user group group role, or null if a matching user group group role could not be found */ public UserGroupGroupRole fetchByG_R_First( long groupId, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last user group group role in the ordered set where groupId = ? and roleId = ?. * * @param groupId the group ID * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group group role * @throws NoSuchUserGroupGroupRoleException if a matching user group group role could not be found */ public UserGroupGroupRole findByG_R_Last( long groupId, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Returns the last user group group role in the ordered set where groupId = ? and roleId = ?. * * @param groupId the group ID * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching user group group role, or null if a matching user group group role could not be found */ public UserGroupGroupRole fetchByG_R_Last( long groupId, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the user group group roles before and after the current user group group role in the ordered set where groupId = ? and roleId = ?. * * @param userGroupGroupRolePK the primary key of the current user group group role * @param groupId the group ID * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next user group group role * @throws NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found */ public UserGroupGroupRole[] findByG_R_PrevAndNext( UserGroupGroupRolePK userGroupGroupRolePK, long groupId, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchUserGroupGroupRoleException; /** * Removes all the user group group roles where groupId = ? and roleId = ? from the database. * * @param groupId the group ID * @param roleId the role ID */ public void removeByG_R(long groupId, long roleId); /** * Returns the number of user group group roles where groupId = ? and roleId = ?. * * @param groupId the group ID * @param roleId the role ID * @return the number of matching user group group roles */ public int countByG_R(long groupId, long roleId); /** * Caches the user group group role in the entity cache if it is enabled. * * @param userGroupGroupRole the user group group role */ public void cacheResult(UserGroupGroupRole userGroupGroupRole); /** * Caches the user group group roles in the entity cache if it is enabled. * * @param userGroupGroupRoles the user group group roles */ public void cacheResult( java.util.List userGroupGroupRoles); /** * Creates a new user group group role with the primary key. Does not add the user group group role to the database. * * @param userGroupGroupRolePK the primary key for the new user group group role * @return the new user group group role */ public UserGroupGroupRole create(UserGroupGroupRolePK userGroupGroupRolePK); /** * Removes the user group group role with the primary key from the database. Also notifies the appropriate model listeners. * * @param userGroupGroupRolePK the primary key of the user group group role * @return the user group group role that was removed * @throws NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found */ public UserGroupGroupRole remove(UserGroupGroupRolePK userGroupGroupRolePK) throws NoSuchUserGroupGroupRoleException; public UserGroupGroupRole updateImpl(UserGroupGroupRole userGroupGroupRole); /** * Returns the user group group role with the primary key or throws a NoSuchUserGroupGroupRoleException if it could not be found. * * @param userGroupGroupRolePK the primary key of the user group group role * @return the user group group role * @throws NoSuchUserGroupGroupRoleException if a user group group role with the primary key could not be found */ public UserGroupGroupRole findByPrimaryKey( UserGroupGroupRolePK userGroupGroupRolePK) throws NoSuchUserGroupGroupRoleException; /** * Returns the user group group role with the primary key or returns null if it could not be found. * * @param userGroupGroupRolePK the primary key of the user group group role * @return the user group group role, or null if a user group group role with the primary key could not be found */ public UserGroupGroupRole fetchByPrimaryKey( UserGroupGroupRolePK userGroupGroupRolePK); /** * Returns all the user group group roles. * * @return the user group group roles */ public java.util.List findAll(); /** * Returns a range of all the user group group roles. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @return the range of user group group roles */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the user group group roles. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of user group group roles */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the user group group roles. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from UserGroupGroupRoleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param start the lower bound of the range of user group group roles * @param end the upper bound of the range of user group group roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of user group group roles */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Removes all the user group group roles from the database. */ public void removeAll(); /** * Returns the number of user group group roles. * * @return the number of user group group roles */ public int countAll(); public Set getCompoundPKColumnNames(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy