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

com.liferay.portal.kernel.service.persistence.RolePersistence 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.NoSuchRoleException;
import com.liferay.portal.kernel.model.Role;

import java.io.Serializable;

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

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

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

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

* 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 RoleModelImpl. 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 uuid the uuid * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles */ public java.util.List findByUuid(String uuid, int start, int end); /** * Returns an ordered range of all the roles where uuid = ?. * *

* 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 RoleModelImpl. 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 uuid the uuid * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles */ public java.util.List findByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the roles where uuid = ?. * *

* 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 RoleModelImpl. 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 uuid the uuid * @param start the lower bound of the range of roles * @param end the upper bound of the range of 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 roles */ public java.util.List findByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first role in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the first role in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role, or null if a matching role could not be found */ public Role fetchByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last role in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the last role in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role, or null if a matching role could not be found */ public Role fetchByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set where uuid = ?. * * @param roleId the primary key of the current role * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] findByUuid_PrevAndNext( long roleId, String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns all the roles that the user has permission to view where uuid = ?. * * @param uuid the uuid * @return the matching roles that the user has permission to view */ public java.util.List filterFindByUuid(String uuid); /** * Returns a range of all the roles that the user has permission to view where uuid = ?. * *

* 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 RoleModelImpl. 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 uuid the uuid * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles that the user has permission to view */ public java.util.List filterFindByUuid( String uuid, int start, int end); /** * Returns an ordered range of all the roles that the user has permissions to view where uuid = ?. * *

* 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 RoleModelImpl. 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 uuid the uuid * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles that the user has permission to view */ public java.util.List filterFindByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where uuid = ?. * * @param roleId the primary key of the current role * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] filterFindByUuid_PrevAndNext( long roleId, String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Removes all the roles where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(String uuid); /** * Returns the number of roles where uuid = ?. * * @param uuid the uuid * @return the number of matching roles */ public int countByUuid(String uuid); /** * Returns the number of roles that the user has permission to view where uuid = ?. * * @param uuid the uuid * @return the number of matching roles that the user has permission to view */ public int filterCountByUuid(String uuid); /** * Returns all the roles where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching roles */ public java.util.List findByUuid_C(String uuid, long companyId); /** * Returns a range of all the roles where uuid = ? and companyId = ?. * *

* 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 RoleModelImpl. 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 uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the roles where uuid = ? and companyId = ?. * *

* 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 RoleModelImpl. 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 uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the roles where uuid = ? and companyId = ?. * *

* 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 RoleModelImpl. 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 uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of roles * @param end the upper bound of the range of 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 roles */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first role in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the first role in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role, or null if a matching role could not be found */ public Role fetchByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last role in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the last role in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role, or null if a matching role could not be found */ public Role fetchByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set where uuid = ? and companyId = ?. * * @param roleId the primary key of the current role * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] findByUuid_C_PrevAndNext( long roleId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns all the roles that the user has permission to view where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching roles that the user has permission to view */ public java.util.List filterFindByUuid_C(String uuid, long companyId); /** * Returns a range of all the roles that the user has permission to view where uuid = ? and companyId = ?. * *

* 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 RoleModelImpl. 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 uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles that the user has permission to view */ public java.util.List filterFindByUuid_C( String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the roles that the user has permissions to view where uuid = ? and companyId = ?. * *

* 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 RoleModelImpl. 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 uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles that the user has permission to view */ public java.util.List filterFindByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where uuid = ? and companyId = ?. * * @param roleId the primary key of the current role * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] filterFindByUuid_C_PrevAndNext( long roleId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Removes all the roles where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public void removeByUuid_C(String uuid, long companyId); /** * Returns the number of roles where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching roles */ public int countByUuid_C(String uuid, long companyId); /** * Returns the number of roles that the user has permission to view where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching roles that the user has permission to view */ public int filterCountByUuid_C(String uuid, long companyId); /** * Returns all the roles where companyId = ?. * * @param companyId the company ID * @return the matching roles */ public java.util.List findByCompanyId(long companyId); /** * Returns a range of all the roles where companyId = ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles */ public java.util.List findByCompanyId( long companyId, int start, int end); /** * Returns an ordered range of all the roles where companyId = ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles */ public java.util.List findByCompanyId( long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the roles where companyId = ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param start the lower bound of the range of roles * @param end the upper bound of the range of 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 roles */ public java.util.List findByCompanyId( long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first role in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByCompanyId_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the first role in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role, or null if a matching role could not be found */ public Role fetchByCompanyId_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last role in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByCompanyId_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the last role in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role, or null if a matching role could not be found */ public Role fetchByCompanyId_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set where companyId = ?. * * @param roleId the primary key of the current role * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] findByCompanyId_PrevAndNext( long roleId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns all the roles that the user has permission to view where companyId = ?. * * @param companyId the company ID * @return the matching roles that the user has permission to view */ public java.util.List filterFindByCompanyId(long companyId); /** * Returns a range of all the roles that the user has permission to view where companyId = ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles that the user has permission to view */ public java.util.List filterFindByCompanyId( long companyId, int start, int end); /** * Returns an ordered range of all the roles that the user has permissions to view where companyId = ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles that the user has permission to view */ public java.util.List filterFindByCompanyId( long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where companyId = ?. * * @param roleId the primary key of the current role * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] filterFindByCompanyId_PrevAndNext( long roleId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Removes all the roles where companyId = ? from the database. * * @param companyId the company ID */ public void removeByCompanyId(long companyId); /** * Returns the number of roles where companyId = ?. * * @param companyId the company ID * @return the number of matching roles */ public int countByCompanyId(long companyId); /** * Returns the number of roles that the user has permission to view where companyId = ?. * * @param companyId the company ID * @return the number of matching roles that the user has permission to view */ public int filterCountByCompanyId(long companyId); /** * Returns all the roles where name = ?. * * @param name the name * @return the matching roles */ public java.util.List findByName(String name); /** * Returns a range of all the roles where name = ?. * *

* 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 RoleModelImpl. 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 name the name * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles */ public java.util.List findByName(String name, int start, int end); /** * Returns an ordered range of all the roles where name = ?. * *

* 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 RoleModelImpl. 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 name the name * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles */ public java.util.List findByName( String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the roles where name = ?. * *

* 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 RoleModelImpl. 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 name the name * @param start the lower bound of the range of roles * @param end the upper bound of the range of 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 roles */ public java.util.List findByName( String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first role in the ordered set where name = ?. * * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByName_First( String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the first role in the ordered set where name = ?. * * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role, or null if a matching role could not be found */ public Role fetchByName_First( String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last role in the ordered set where name = ?. * * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByName_Last( String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the last role in the ordered set where name = ?. * * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role, or null if a matching role could not be found */ public Role fetchByName_Last( String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set where name = ?. * * @param roleId the primary key of the current role * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] findByName_PrevAndNext( long roleId, String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns all the roles that the user has permission to view where name = ?. * * @param name the name * @return the matching roles that the user has permission to view */ public java.util.List filterFindByName(String name); /** * Returns a range of all the roles that the user has permission to view where name = ?. * *

* 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 RoleModelImpl. 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 name the name * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles that the user has permission to view */ public java.util.List filterFindByName( String name, int start, int end); /** * Returns an ordered range of all the roles that the user has permissions to view where name = ?. * *

* 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 RoleModelImpl. 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 name the name * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles that the user has permission to view */ public java.util.List filterFindByName( String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where name = ?. * * @param roleId the primary key of the current role * @param name the name * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] filterFindByName_PrevAndNext( long roleId, String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Removes all the roles where name = ? from the database. * * @param name the name */ public void removeByName(String name); /** * Returns the number of roles where name = ?. * * @param name the name * @return the number of matching roles */ public int countByName(String name); /** * Returns the number of roles that the user has permission to view where name = ?. * * @param name the name * @return the number of matching roles that the user has permission to view */ public int filterCountByName(String name); /** * Returns all the roles where type = ?. * * @param type the type * @return the matching roles */ public java.util.List findByType(int type); /** * Returns a range of all the roles where type = ?. * *

* 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 RoleModelImpl. 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 type the type * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles */ public java.util.List findByType(int type, int start, int end); /** * Returns an ordered range of all the roles where type = ?. * *

* 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 RoleModelImpl. 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 type the type * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles */ public java.util.List findByType( int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the roles where type = ?. * *

* 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 RoleModelImpl. 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 type the type * @param start the lower bound of the range of roles * @param end the upper bound of the range of 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 roles */ public java.util.List findByType( int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first role in the ordered set where type = ?. * * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByType_First( int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the first role in the ordered set where type = ?. * * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role, or null if a matching role could not be found */ public Role fetchByType_First( int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last role in the ordered set where type = ?. * * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByType_Last( int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the last role in the ordered set where type = ?. * * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role, or null if a matching role could not be found */ public Role fetchByType_Last( int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set where type = ?. * * @param roleId the primary key of the current role * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] findByType_PrevAndNext( long roleId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns all the roles that the user has permission to view where type = ?. * * @param type the type * @return the matching roles that the user has permission to view */ public java.util.List filterFindByType(int type); /** * Returns a range of all the roles that the user has permission to view where type = ?. * *

* 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 RoleModelImpl. 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 type the type * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles that the user has permission to view */ public java.util.List filterFindByType(int type, int start, int end); /** * Returns an ordered range of all the roles that the user has permissions to view where type = ?. * *

* 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 RoleModelImpl. 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 type the type * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles that the user has permission to view */ public java.util.List filterFindByType( int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where type = ?. * * @param roleId the primary key of the current role * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] filterFindByType_PrevAndNext( long roleId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Removes all the roles where type = ? from the database. * * @param type the type */ public void removeByType(int type); /** * Returns the number of roles where type = ?. * * @param type the type * @return the number of matching roles */ public int countByType(int type); /** * Returns the number of roles that the user has permission to view where type = ?. * * @param type the type * @return the number of matching roles that the user has permission to view */ public int filterCountByType(int type); /** * Returns all the roles where subtype = ?. * * @param subtype the subtype * @return the matching roles */ public java.util.List findBySubtype(String subtype); /** * Returns a range of all the roles where subtype = ?. * *

* 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 RoleModelImpl. 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 subtype the subtype * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles */ public java.util.List findBySubtype( String subtype, int start, int end); /** * Returns an ordered range of all the roles where subtype = ?. * *

* 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 RoleModelImpl. 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 subtype the subtype * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles */ public java.util.List findBySubtype( String subtype, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the roles where subtype = ?. * *

* 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 RoleModelImpl. 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 subtype the subtype * @param start the lower bound of the range of roles * @param end the upper bound of the range of 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 roles */ public java.util.List findBySubtype( String subtype, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first role in the ordered set where subtype = ?. * * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findBySubtype_First( String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the first role in the ordered set where subtype = ?. * * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role, or null if a matching role could not be found */ public Role fetchBySubtype_First( String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last role in the ordered set where subtype = ?. * * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findBySubtype_Last( String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the last role in the ordered set where subtype = ?. * * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role, or null if a matching role could not be found */ public Role fetchBySubtype_Last( String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set where subtype = ?. * * @param roleId the primary key of the current role * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] findBySubtype_PrevAndNext( long roleId, String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns all the roles that the user has permission to view where subtype = ?. * * @param subtype the subtype * @return the matching roles that the user has permission to view */ public java.util.List filterFindBySubtype(String subtype); /** * Returns a range of all the roles that the user has permission to view where subtype = ?. * *

* 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 RoleModelImpl. 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 subtype the subtype * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles that the user has permission to view */ public java.util.List filterFindBySubtype( String subtype, int start, int end); /** * Returns an ordered range of all the roles that the user has permissions to view where subtype = ?. * *

* 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 RoleModelImpl. 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 subtype the subtype * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles that the user has permission to view */ public java.util.List filterFindBySubtype( String subtype, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where subtype = ?. * * @param roleId the primary key of the current role * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] filterFindBySubtype_PrevAndNext( long roleId, String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Removes all the roles where subtype = ? from the database. * * @param subtype the subtype */ public void removeBySubtype(String subtype); /** * Returns the number of roles where subtype = ?. * * @param subtype the subtype * @return the number of matching roles */ public int countBySubtype(String subtype); /** * Returns the number of roles that the user has permission to view where subtype = ?. * * @param subtype the subtype * @return the number of matching roles that the user has permission to view */ public int filterCountBySubtype(String subtype); /** * Returns the role where companyId = ? and name = ? or throws a NoSuchRoleException if it could not be found. * * @param companyId the company ID * @param name the name * @return the matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByC_N(long companyId, String name) throws NoSuchRoleException; /** * Returns the role where companyId = ? and name = ? or returns null if it could not be found. Uses the finder cache. * * @param companyId the company ID * @param name the name * @return the matching role, or null if a matching role could not be found */ public Role fetchByC_N(long companyId, String name); /** * Returns the role where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. * * @param companyId the company ID * @param name the name * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching role, or null if a matching role could not be found */ public Role fetchByC_N( long companyId, String name, boolean retrieveFromCache); /** * Removes the role where companyId = ? and name = ? from the database. * * @param companyId the company ID * @param name the name * @return the role that was removed */ public Role removeByC_N(long companyId, String name) throws NoSuchRoleException; /** * Returns the number of roles where companyId = ? and name = ?. * * @param companyId the company ID * @param name the name * @return the number of matching roles */ public int countByC_N(long companyId, String name); /** * Returns all the roles where companyId = ? and type = ?. * * @param companyId the company ID * @param type the type * @return the matching roles */ public java.util.List findByC_T(long companyId, int type); /** * Returns a range of all the roles where companyId = ? and type = ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param type the type * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles */ public java.util.List findByC_T( long companyId, int type, int start, int end); /** * Returns an ordered range of all the roles where companyId = ? and type = ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param type the type * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles */ public java.util.List findByC_T( long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the roles where companyId = ? and type = ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param type the type * @param start the lower bound of the range of roles * @param end the upper bound of the range of 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 roles */ public java.util.List findByC_T( long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first role in the ordered set where companyId = ? and type = ?. * * @param companyId the company ID * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByC_T_First( long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the first role in the ordered set where companyId = ? and type = ?. * * @param companyId the company ID * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role, or null if a matching role could not be found */ public Role fetchByC_T_First( long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last role in the ordered set where companyId = ? and type = ?. * * @param companyId the company ID * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByC_T_Last( long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the last role in the ordered set where companyId = ? and type = ?. * * @param companyId the company ID * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role, or null if a matching role could not be found */ public Role fetchByC_T_Last( long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set where companyId = ? and type = ?. * * @param roleId the primary key of the current role * @param companyId the company ID * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] findByC_T_PrevAndNext( long roleId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns all the roles that the user has permission to view where companyId = ? and type = ?. * * @param companyId the company ID * @param type the type * @return the matching roles that the user has permission to view */ public java.util.List filterFindByC_T(long companyId, int type); /** * Returns a range of all the roles that the user has permission to view where companyId = ? and type = ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param type the type * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles that the user has permission to view */ public java.util.List filterFindByC_T( long companyId, int type, int start, int end); /** * Returns an ordered range of all the roles that the user has permissions to view where companyId = ? and type = ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param type the type * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles that the user has permission to view */ public java.util.List filterFindByC_T( long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where companyId = ? and type = ?. * * @param roleId the primary key of the current role * @param companyId the company ID * @param type the type * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] filterFindByC_T_PrevAndNext( long roleId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns all the roles that the user has permission to view where companyId = ? and type = any ?. * * @param companyId the company ID * @param types the types * @return the matching roles that the user has permission to view */ public java.util.List filterFindByC_T(long companyId, int[] types); /** * Returns a range of all the roles that the user has permission to view where companyId = ? and type = any ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param types the types * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles that the user has permission to view */ public java.util.List filterFindByC_T( long companyId, int[] types, int start, int end); /** * Returns an ordered range of all the roles that the user has permission to view where companyId = ? and type = any ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param types the types * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles that the user has permission to view */ public java.util.List filterFindByC_T( long companyId, int[] types, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns all the roles where companyId = ? and type = any ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param types the types * @return the matching roles */ public java.util.List findByC_T(long companyId, int[] types); /** * Returns a range of all the roles where companyId = ? and type = any ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param types the types * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles */ public java.util.List findByC_T( long companyId, int[] types, int start, int end); /** * Returns an ordered range of all the roles where companyId = ? and type = any ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param types the types * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles */ public java.util.List findByC_T( long companyId, int[] types, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the roles where companyId = ? and type = ?, optionally using the finder cache. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param type the type * @param start the lower bound of the range of roles * @param end the upper bound of the range of 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 roles */ public java.util.List findByC_T( long companyId, int[] types, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Removes all the roles where companyId = ? and type = ? from the database. * * @param companyId the company ID * @param type the type */ public void removeByC_T(long companyId, int type); /** * Returns the number of roles where companyId = ? and type = ?. * * @param companyId the company ID * @param type the type * @return the number of matching roles */ public int countByC_T(long companyId, int type); /** * Returns the number of roles where companyId = ? and type = any ?. * * @param companyId the company ID * @param types the types * @return the number of matching roles */ public int countByC_T(long companyId, int[] types); /** * Returns the number of roles that the user has permission to view where companyId = ? and type = ?. * * @param companyId the company ID * @param type the type * @return the number of matching roles that the user has permission to view */ public int filterCountByC_T(long companyId, int type); /** * Returns the number of roles that the user has permission to view where companyId = ? and type = any ?. * * @param companyId the company ID * @param types the types * @return the number of matching roles that the user has permission to view */ public int filterCountByC_T(long companyId, int[] types); /** * Returns all the roles where type = ? and subtype = ?. * * @param type the type * @param subtype the subtype * @return the matching roles */ public java.util.List findByT_S(int type, String subtype); /** * Returns a range of all the roles where type = ? and subtype = ?. * *

* 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 RoleModelImpl. 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 type the type * @param subtype the subtype * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles */ public java.util.List findByT_S( int type, String subtype, int start, int end); /** * Returns an ordered range of all the roles where type = ? and subtype = ?. * *

* 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 RoleModelImpl. 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 type the type * @param subtype the subtype * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles */ public java.util.List findByT_S( int type, String subtype, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the roles where type = ? and subtype = ?. * *

* 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 RoleModelImpl. 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 type the type * @param subtype the subtype * @param start the lower bound of the range of roles * @param end the upper bound of the range of 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 roles */ public java.util.List findByT_S( int type, String subtype, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first role in the ordered set where type = ? and subtype = ?. * * @param type the type * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByT_S_First( int type, String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the first role in the ordered set where type = ? and subtype = ?. * * @param type the type * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching role, or null if a matching role could not be found */ public Role fetchByT_S_First( int type, String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last role in the ordered set where type = ? and subtype = ?. * * @param type the type * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByT_S_Last( int type, String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns the last role in the ordered set where type = ? and subtype = ?. * * @param type the type * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching role, or null if a matching role could not be found */ public Role fetchByT_S_Last( int type, String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set where type = ? and subtype = ?. * * @param roleId the primary key of the current role * @param type the type * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] findByT_S_PrevAndNext( long roleId, int type, String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Returns all the roles that the user has permission to view where type = ? and subtype = ?. * * @param type the type * @param subtype the subtype * @return the matching roles that the user has permission to view */ public java.util.List filterFindByT_S(int type, String subtype); /** * Returns a range of all the roles that the user has permission to view where type = ? and subtype = ?. * *

* 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 RoleModelImpl. 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 type the type * @param subtype the subtype * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles that the user has permission to view */ public java.util.List filterFindByT_S( int type, String subtype, int start, int end); /** * Returns an ordered range of all the roles that the user has permissions to view where type = ? and subtype = ?. * *

* 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 RoleModelImpl. 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 type the type * @param subtype the subtype * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles that the user has permission to view */ public java.util.List filterFindByT_S( int type, String subtype, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the roles before and after the current role in the ordered set of roles that the user has permission to view where type = ? and subtype = ?. * * @param roleId the primary key of the current role * @param type the type * @param subtype the subtype * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role[] filterFindByT_S_PrevAndNext( long roleId, int type, String subtype, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchRoleException; /** * Removes all the roles where type = ? and subtype = ? from the database. * * @param type the type * @param subtype the subtype */ public void removeByT_S(int type, String subtype); /** * Returns the number of roles where type = ? and subtype = ?. * * @param type the type * @param subtype the subtype * @return the number of matching roles */ public int countByT_S(int type, String subtype); /** * Returns the number of roles that the user has permission to view where type = ? and subtype = ?. * * @param type the type * @param subtype the subtype * @return the number of matching roles that the user has permission to view */ public int filterCountByT_S(int type, String subtype); /** * Returns all the roles where companyId = ? and classNameId = ? and classPK = any ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param classNameId the class name ID * @param classPKs the class pks * @return the matching roles */ public java.util.List findByC_C_C( long companyId, long classNameId, long[] classPKs); /** * Returns a range of all the roles where companyId = ? and classNameId = ? and classPK = any ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param classNameId the class name ID * @param classPKs the class pks * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of matching roles */ public java.util.List findByC_C_C( long companyId, long classNameId, long[] classPKs, int start, int end); /** * Returns an ordered range of all the roles where companyId = ? and classNameId = ? and classPK = any ?. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param classNameId the class name ID * @param classPKs the class pks * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching roles */ public java.util.List findByC_C_C( long companyId, long classNameId, long[] classPKs, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the roles where companyId = ? and classNameId = ? and classPK = ?, optionally using the finder cache. * *

* 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 RoleModelImpl. 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 companyId the company ID * @param classNameId the class name ID * @param classPK the class pk * @param start the lower bound of the range of roles * @param end the upper bound of the range of 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 roles */ public java.util.List findByC_C_C( long companyId, long classNameId, long[] classPKs, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the role where companyId = ? and classNameId = ? and classPK = ? or throws a NoSuchRoleException if it could not be found. * * @param companyId the company ID * @param classNameId the class name ID * @param classPK the class pk * @return the matching role * @throws NoSuchRoleException if a matching role could not be found */ public Role findByC_C_C(long companyId, long classNameId, long classPK) throws NoSuchRoleException; /** * Returns the role where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache. * * @param companyId the company ID * @param classNameId the class name ID * @param classPK the class pk * @return the matching role, or null if a matching role could not be found */ public Role fetchByC_C_C(long companyId, long classNameId, long classPK); /** * Returns the role where companyId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache. * * @param companyId the company ID * @param classNameId the class name ID * @param classPK the class pk * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching role, or null if a matching role could not be found */ public Role fetchByC_C_C( long companyId, long classNameId, long classPK, boolean retrieveFromCache); /** * Removes the role where companyId = ? and classNameId = ? and classPK = ? from the database. * * @param companyId the company ID * @param classNameId the class name ID * @param classPK the class pk * @return the role that was removed */ public Role removeByC_C_C(long companyId, long classNameId, long classPK) throws NoSuchRoleException; /** * Returns the number of roles where companyId = ? and classNameId = ? and classPK = ?. * * @param companyId the company ID * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching roles */ public int countByC_C_C(long companyId, long classNameId, long classPK); /** * Returns the number of roles where companyId = ? and classNameId = ? and classPK = any ?. * * @param companyId the company ID * @param classNameId the class name ID * @param classPKs the class pks * @return the number of matching roles */ public int countByC_C_C(long companyId, long classNameId, long[] classPKs); /** * Returns the number of roles that the user has permission to view where companyId = ? and classNameId = ? and classPK = ?. * * @param companyId the company ID * @param classNameId the class name ID * @param classPK the class pk * @return the number of matching roles that the user has permission to view */ public int filterCountByC_C_C( long companyId, long classNameId, long classPK); /** * Returns the number of roles that the user has permission to view where companyId = ? and classNameId = ? and classPK = any ?. * * @param companyId the company ID * @param classNameId the class name ID * @param classPKs the class pks * @return the number of matching roles that the user has permission to view */ public int filterCountByC_C_C( long companyId, long classNameId, long[] classPKs); /** * Caches the role in the entity cache if it is enabled. * * @param role the role */ public void cacheResult(Role role); /** * Caches the roles in the entity cache if it is enabled. * * @param roles the roles */ public void cacheResult(java.util.List roles); /** * Creates a new role with the primary key. Does not add the role to the database. * * @param roleId the primary key for the new role * @return the new role */ public Role create(long roleId); /** * Removes the role with the primary key from the database. Also notifies the appropriate model listeners. * * @param roleId the primary key of the role * @return the role that was removed * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role remove(long roleId) throws NoSuchRoleException; public Role updateImpl(Role role); /** * Returns the role with the primary key or throws a NoSuchRoleException if it could not be found. * * @param roleId the primary key of the role * @return the role * @throws NoSuchRoleException if a role with the primary key could not be found */ public Role findByPrimaryKey(long roleId) throws NoSuchRoleException; /** * Returns the role with the primary key or returns null if it could not be found. * * @param roleId the primary key of the role * @return the role, or null if a role with the primary key could not be found */ public Role fetchByPrimaryKey(long roleId); /** * Returns all the roles. * * @return the roles */ public java.util.List findAll(); /** * Returns a range of all the 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 RoleModelImpl. 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 roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of roles */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the 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 RoleModelImpl. 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 roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of roles */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the 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 RoleModelImpl. 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 roles * @param end the upper bound of the range of 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 roles */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Removes all the roles from the database. */ public void removeAll(); /** * Returns the number of roles. * * @return the number of roles */ public int countAll(); /** * Returns the primaryKeys of groups associated with the role. * * @param pk the primary key of the role * @return long[] of the primaryKeys of groups associated with the role */ public long[] getGroupPrimaryKeys(long pk); /** * Returns all the groups associated with the role. * * @param pk the primary key of the role * @return the groups associated with the role */ public java.util.List getGroups( long pk); /** * Returns a range of all the groups associated with the role. * *

* 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 RoleModelImpl. 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 pk the primary key of the role * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of groups associated with the role */ public java.util.List getGroups( long pk, int start, int end); /** * Returns an ordered range of all the groups associated with the role. * *

* 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 RoleModelImpl. 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 pk the primary key of the role * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of groups associated with the role */ public java.util.List getGroups( long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the number of groups associated with the role. * * @param pk the primary key of the role * @return the number of groups associated with the role */ public int getGroupsSize(long pk); /** * Returns true if the group is associated with the role. * * @param pk the primary key of the role * @param groupPK the primary key of the group * @return true if the group is associated with the role; false otherwise */ public boolean containsGroup(long pk, long groupPK); /** * Returns true if the role has any groups associated with it. * * @param pk the primary key of the role to check for associations with groups * @return true if the role has any groups associated with it; false otherwise */ public boolean containsGroups(long pk); /** * Adds an association between the role and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param groupPK the primary key of the group */ public void addGroup(long pk, long groupPK); /** * Adds an association between the role and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param group the group */ public void addGroup(long pk, com.liferay.portal.kernel.model.Group group); /** * Adds an association between the role and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param groupPKs the primary keys of the groups */ public void addGroups(long pk, long[] groupPKs); /** * Adds an association between the role and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param groups the groups */ public void addGroups( long pk, java.util.List groups); /** * Clears all associations between the role and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role to clear the associated groups from */ public void clearGroups(long pk); /** * Removes the association between the role and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param groupPK the primary key of the group */ public void removeGroup(long pk, long groupPK); /** * Removes the association between the role and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param group the group */ public void removeGroup( long pk, com.liferay.portal.kernel.model.Group group); /** * Removes the association between the role and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param groupPKs the primary keys of the groups */ public void removeGroups(long pk, long[] groupPKs); /** * Removes the association between the role and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param groups the groups */ public void removeGroups( long pk, java.util.List groups); /** * Sets the groups associated with the role, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param groupPKs the primary keys of the groups to be associated with the role */ public void setGroups(long pk, long[] groupPKs); /** * Sets the groups associated with the role, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param groups the groups to be associated with the role */ public void setGroups( long pk, java.util.List groups); /** * Returns the primaryKeys of users associated with the role. * * @param pk the primary key of the role * @return long[] of the primaryKeys of users associated with the role */ public long[] getUserPrimaryKeys(long pk); /** * Returns all the users associated with the role. * * @param pk the primary key of the role * @return the users associated with the role */ public java.util.List getUsers( long pk); /** * Returns a range of all the users associated with the role. * *

* 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 RoleModelImpl. 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 pk the primary key of the role * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @return the range of users associated with the role */ public java.util.List getUsers( long pk, int start, int end); /** * Returns an ordered range of all the users associated with the role. * *

* 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 RoleModelImpl. 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 pk the primary key of the role * @param start the lower bound of the range of roles * @param end the upper bound of the range of roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of users associated with the role */ public java.util.List getUsers( long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the number of users associated with the role. * * @param pk the primary key of the role * @return the number of users associated with the role */ public int getUsersSize(long pk); /** * Returns true if the user is associated with the role. * * @param pk the primary key of the role * @param userPK the primary key of the user * @return true if the user is associated with the role; false otherwise */ public boolean containsUser(long pk, long userPK); /** * Returns true if the role has any users associated with it. * * @param pk the primary key of the role to check for associations with users * @return true if the role has any users associated with it; false otherwise */ public boolean containsUsers(long pk); /** * Adds an association between the role and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param userPK the primary key of the user */ public void addUser(long pk, long userPK); /** * Adds an association between the role and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param user the user */ public void addUser(long pk, com.liferay.portal.kernel.model.User user); /** * Adds an association between the role and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param userPKs the primary keys of the users */ public void addUsers(long pk, long[] userPKs); /** * Adds an association between the role and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param users the users */ public void addUsers( long pk, java.util.List users); /** * Clears all associations between the role and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role to clear the associated users from */ public void clearUsers(long pk); /** * Removes the association between the role and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param userPK the primary key of the user */ public void removeUser(long pk, long userPK); /** * Removes the association between the role and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param user the user */ public void removeUser(long pk, com.liferay.portal.kernel.model.User user); /** * Removes the association between the role and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param userPKs the primary keys of the users */ public void removeUsers(long pk, long[] userPKs); /** * Removes the association between the role and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param users the users */ public void removeUsers( long pk, java.util.List users); /** * Sets the users associated with the role, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param userPKs the primary keys of the users to be associated with the role */ public void setUsers(long pk, long[] userPKs); /** * Sets the users associated with the role, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache. * * @param pk the primary key of the role * @param users the users to be associated with the role */ public void setUsers( long pk, java.util.List users); @Override public Set getBadColumnNames(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy