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

com.liferay.portal.kernel.service.persistence.ResourceTypePermissionPersistence 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.NoSuchResourceTypePermissionException;
import com.liferay.portal.kernel.model.ResourceTypePermission;

import java.io.Serializable;

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

/**
 * The persistence interface for the resource type permission service.
 *
 * 

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

* * @author Brian Wing Shun Chan * @see ResourceTypePermissionUtil * @deprecated As of Judson (7.1.x), with no direct replacement * @generated */ @Deprecated @ProviderType public interface ResourceTypePermissionPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link ResourceTypePermissionUtil} to access the resource type permission persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ @Override public Map fetchByPrimaryKeys( Set primaryKeys); /** * Returns all the resource type permissions where roleId = ?. * * @param roleId the role ID * @return the matching resource type permissions */ public java.util.List findByRoleId(long roleId); /** * Returns a range of all the resource type permissions where roleId = ?. * *

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

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

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

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

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

* * @param roleId the role ID * @param start the lower bound of the range of resource type permissions * @param end the upper bound of the range of resource type permissions (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 resource type permissions */ public java.util.List findByRoleId( long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first resource type permission in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching resource type permission * @throws NoSuchResourceTypePermissionException if a matching resource type permission could not be found */ public ResourceTypePermission findByRoleId_First( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchResourceTypePermissionException; /** * Returns the first resource type permission in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching resource type permission, or null if a matching resource type permission could not be found */ public ResourceTypePermission fetchByRoleId_First( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last resource type permission in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching resource type permission * @throws NoSuchResourceTypePermissionException if a matching resource type permission could not be found */ public ResourceTypePermission findByRoleId_Last( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchResourceTypePermissionException; /** * Returns the last resource type permission in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching resource type permission, or null if a matching resource type permission could not be found */ public ResourceTypePermission fetchByRoleId_Last( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the resource type permissions before and after the current resource type permission in the ordered set where roleId = ?. * * @param resourceTypePermissionId the primary key of the current resource type permission * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next resource type permission * @throws NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found */ public ResourceTypePermission[] findByRoleId_PrevAndNext( long resourceTypePermissionId, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchResourceTypePermissionException; /** * Removes all the resource type permissions where roleId = ? from the database. * * @param roleId the role ID */ public void removeByRoleId(long roleId); /** * Returns the number of resource type permissions where roleId = ?. * * @param roleId the role ID * @return the number of matching resource type permissions */ public int countByRoleId(long roleId); /** * Returns all the resource type permissions where companyId = ? and name = ? and roleId = ?. * * @param companyId the company ID * @param name the name * @param roleId the role ID * @return the matching resource type permissions */ public java.util.List findByC_N_R( long companyId, String name, long roleId); /** * Returns a range of all the resource type permissions where companyId = ? and name = ? and roleId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl. 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 name the name * @param roleId the role ID * @param start the lower bound of the range of resource type permissions * @param end the upper bound of the range of resource type permissions (not inclusive) * @return the range of matching resource type permissions */ public java.util.List findByC_N_R( long companyId, String name, long roleId, int start, int end); /** * Returns an ordered range of all the resource type permissions where companyId = ? and name = ? and roleId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl. 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 name the name * @param roleId the role ID * @param start the lower bound of the range of resource type permissions * @param end the upper bound of the range of resource type permissions (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching resource type permissions */ public java.util.List findByC_N_R( long companyId, String name, long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the resource type permissions where companyId = ? and name = ? and roleId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from ResourceTypePermissionModelImpl. 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 name the name * @param roleId the role ID * @param start the lower bound of the range of resource type permissions * @param end the upper bound of the range of resource type permissions (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 resource type permissions */ public java.util.List findByC_N_R( long companyId, String name, long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Returns the first resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. * * @param companyId the company ID * @param name the name * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching resource type permission * @throws NoSuchResourceTypePermissionException if a matching resource type permission could not be found */ public ResourceTypePermission findByC_N_R_First( long companyId, String name, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchResourceTypePermissionException; /** * Returns the first resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. * * @param companyId the company ID * @param name the name * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching resource type permission, or null if a matching resource type permission could not be found */ public ResourceTypePermission fetchByC_N_R_First( long companyId, String name, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. * * @param companyId the company ID * @param name the name * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching resource type permission * @throws NoSuchResourceTypePermissionException if a matching resource type permission could not be found */ public ResourceTypePermission findByC_N_R_Last( long companyId, String name, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchResourceTypePermissionException; /** * Returns the last resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. * * @param companyId the company ID * @param name the name * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching resource type permission, or null if a matching resource type permission could not be found */ public ResourceTypePermission fetchByC_N_R_Last( long companyId, String name, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the resource type permissions before and after the current resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. * * @param resourceTypePermissionId the primary key of the current resource type permission * @param companyId the company ID * @param name the name * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next resource type permission * @throws NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found */ public ResourceTypePermission[] findByC_N_R_PrevAndNext( long resourceTypePermissionId, long companyId, String name, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchResourceTypePermissionException; /** * Removes all the resource type permissions where companyId = ? and name = ? and roleId = ? from the database. * * @param companyId the company ID * @param name the name * @param roleId the role ID */ public void removeByC_N_R(long companyId, String name, long roleId); /** * Returns the number of resource type permissions where companyId = ? and name = ? and roleId = ?. * * @param companyId the company ID * @param name the name * @param roleId the role ID * @return the number of matching resource type permissions */ public int countByC_N_R(long companyId, String name, long roleId); /** * Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or throws a NoSuchResourceTypePermissionException if it could not be found. * * @param companyId the company ID * @param groupId the group ID * @param name the name * @param roleId the role ID * @return the matching resource type permission * @throws NoSuchResourceTypePermissionException if a matching resource type permission could not be found */ public ResourceTypePermission findByC_G_N_R( long companyId, long groupId, String name, long roleId) throws NoSuchResourceTypePermissionException; /** * Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or returns null if it could not be found. Uses the finder cache. * * @param companyId the company ID * @param groupId the group ID * @param name the name * @param roleId the role ID * @return the matching resource type permission, or null if a matching resource type permission could not be found */ public ResourceTypePermission fetchByC_G_N_R( long companyId, long groupId, String name, long roleId); /** * Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or returns null if it could not be found, optionally using the finder cache. * * @param companyId the company ID * @param groupId the group ID * @param name the name * @param roleId the role ID * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching resource type permission, or null if a matching resource type permission could not be found */ public ResourceTypePermission fetchByC_G_N_R( long companyId, long groupId, String name, long roleId, boolean retrieveFromCache); /** * Removes the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? from the database. * * @param companyId the company ID * @param groupId the group ID * @param name the name * @param roleId the role ID * @return the resource type permission that was removed */ public ResourceTypePermission removeByC_G_N_R( long companyId, long groupId, String name, long roleId) throws NoSuchResourceTypePermissionException; /** * Returns the number of resource type permissions where companyId = ? and groupId = ? and name = ? and roleId = ?. * * @param companyId the company ID * @param groupId the group ID * @param name the name * @param roleId the role ID * @return the number of matching resource type permissions */ public int countByC_G_N_R( long companyId, long groupId, String name, long roleId); /** * Caches the resource type permission in the entity cache if it is enabled. * * @param resourceTypePermission the resource type permission */ public void cacheResult(ResourceTypePermission resourceTypePermission); /** * Caches the resource type permissions in the entity cache if it is enabled. * * @param resourceTypePermissions the resource type permissions */ public void cacheResult( java.util.List resourceTypePermissions); /** * Creates a new resource type permission with the primary key. Does not add the resource type permission to the database. * * @param resourceTypePermissionId the primary key for the new resource type permission * @return the new resource type permission */ public ResourceTypePermission create(long resourceTypePermissionId); /** * Removes the resource type permission with the primary key from the database. Also notifies the appropriate model listeners. * * @param resourceTypePermissionId the primary key of the resource type permission * @return the resource type permission that was removed * @throws NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found */ public ResourceTypePermission remove(long resourceTypePermissionId) throws NoSuchResourceTypePermissionException; public ResourceTypePermission updateImpl( ResourceTypePermission resourceTypePermission); /** * Returns the resource type permission with the primary key or throws a NoSuchResourceTypePermissionException if it could not be found. * * @param resourceTypePermissionId the primary key of the resource type permission * @return the resource type permission * @throws NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found */ public ResourceTypePermission findByPrimaryKey( long resourceTypePermissionId) throws NoSuchResourceTypePermissionException; /** * Returns the resource type permission with the primary key or returns null if it could not be found. * * @param resourceTypePermissionId the primary key of the resource type permission * @return the resource type permission, or null if a resource type permission with the primary key could not be found */ public ResourceTypePermission fetchByPrimaryKey( long resourceTypePermissionId); /** * Returns all the resource type permissions. * * @return the resource type permissions */ public java.util.List findAll(); /** * Returns a range of all the resource type permissions. * *

* 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 ResourceTypePermissionModelImpl. 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 resource type permissions * @param end the upper bound of the range of resource type permissions (not inclusive) * @return the range of resource type permissions */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the resource type permissions. * *

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

* 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 ResourceTypePermissionModelImpl. 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 resource type permissions * @param end the upper bound of the range of resource type permissions (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 resource type permissions */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean retrieveFromCache); /** * Removes all the resource type permissions from the database. */ public void removeAll(); /** * Returns the number of resource type permissions. * * @return the number of resource type permissions */ public int countAll(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy