001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.model.ResourceTypePermission;
020    
021    /**
022     * The persistence interface for the resource type permission service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see ResourceTypePermissionPersistenceImpl
030     * @see ResourceTypePermissionUtil
031     * @generated
032     */
033    @ProviderType
034    public interface ResourceTypePermissionPersistence extends BasePersistence<ResourceTypePermission> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link ResourceTypePermissionUtil} to access the resource type permission persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the resource type permissions where roleId = &#63;.
043            *
044            * @param roleId the role ID
045            * @return the matching resource type permissions
046            * @throws SystemException if a system exception occurred
047            */
048            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId(
049                    long roleId) throws com.liferay.portal.kernel.exception.SystemException;
050    
051            /**
052            * Returns a range of all the resource type permissions where roleId = &#63;.
053            *
054            * <p>
055            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceTypePermissionModelImpl}. If both <code>orderByComparator</code> 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.
056            * </p>
057            *
058            * @param roleId the role ID
059            * @param start the lower bound of the range of resource type permissions
060            * @param end the upper bound of the range of resource type permissions (not inclusive)
061            * @return the range of matching resource type permissions
062            * @throws SystemException if a system exception occurred
063            */
064            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId(
065                    long roleId, int start, int end)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            /**
069            * Returns an ordered range of all the resource type permissions where roleId = &#63;.
070            *
071            * <p>
072            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceTypePermissionModelImpl}. If both <code>orderByComparator</code> 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.
073            * </p>
074            *
075            * @param roleId the role ID
076            * @param start the lower bound of the range of resource type permissions
077            * @param end the upper bound of the range of resource type permissions (not inclusive)
078            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
079            * @return the ordered range of matching resource type permissions
080            * @throws SystemException if a system exception occurred
081            */
082            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByRoleId(
083                    long roleId, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Returns the first resource type permission in the ordered set where roleId = &#63;.
089            *
090            * @param roleId the role ID
091            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
092            * @return the first matching resource type permission
093            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
094            * @throws SystemException if a system exception occurred
095            */
096            public com.liferay.portal.model.ResourceTypePermission findByRoleId_First(
097                    long roleId,
098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            /**
103            * Returns the first resource type permission in the ordered set where roleId = &#63;.
104            *
105            * @param roleId the role ID
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
108            * @throws SystemException if a system exception occurred
109            */
110            public com.liferay.portal.model.ResourceTypePermission fetchByRoleId_First(
111                    long roleId,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns the last resource type permission in the ordered set where roleId = &#63;.
117            *
118            * @param roleId the role ID
119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
120            * @return the last matching resource type permission
121            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
122            * @throws SystemException if a system exception occurred
123            */
124            public com.liferay.portal.model.ResourceTypePermission findByRoleId_Last(
125                    long roleId,
126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
128                            com.liferay.portal.kernel.exception.SystemException;
129    
130            /**
131            * Returns the last resource type permission in the ordered set where roleId = &#63;.
132            *
133            * @param roleId the role ID
134            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
135            * @return the last matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
136            * @throws SystemException if a system exception occurred
137            */
138            public com.liferay.portal.model.ResourceTypePermission fetchByRoleId_Last(
139                    long roleId,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the resource type permissions before and after the current resource type permission in the ordered set where roleId = &#63;.
145            *
146            * @param resourceTypePermissionId the primary key of the current resource type permission
147            * @param roleId the role ID
148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
149            * @return the previous, current, and next resource type permission
150            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public com.liferay.portal.model.ResourceTypePermission[] findByRoleId_PrevAndNext(
154                    long resourceTypePermissionId, long roleId,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
157                            com.liferay.portal.kernel.exception.SystemException;
158    
159            /**
160            * Removes all the resource type permissions where roleId = &#63; from the database.
161            *
162            * @param roleId the role ID
163            * @throws SystemException if a system exception occurred
164            */
165            public void removeByRoleId(long roleId)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns the number of resource type permissions where roleId = &#63;.
170            *
171            * @param roleId the role ID
172            * @return the number of matching resource type permissions
173            * @throws SystemException if a system exception occurred
174            */
175            public int countByRoleId(long roleId)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
180            *
181            * @param companyId the company ID
182            * @param name the name
183            * @param roleId the role ID
184            * @return the matching resource type permissions
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R(
188                    long companyId, java.lang.String name, long roleId)
189                    throws com.liferay.portal.kernel.exception.SystemException;
190    
191            /**
192            * Returns a range of all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
193            *
194            * <p>
195            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceTypePermissionModelImpl}. If both <code>orderByComparator</code> 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.
196            * </p>
197            *
198            * @param companyId the company ID
199            * @param name the name
200            * @param roleId the role ID
201            * @param start the lower bound of the range of resource type permissions
202            * @param end the upper bound of the range of resource type permissions (not inclusive)
203            * @return the range of matching resource type permissions
204            * @throws SystemException if a system exception occurred
205            */
206            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R(
207                    long companyId, java.lang.String name, long roleId, int start, int end)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Returns an ordered range of all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
212            *
213            * <p>
214            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceTypePermissionModelImpl}. If both <code>orderByComparator</code> 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.
215            * </p>
216            *
217            * @param companyId the company ID
218            * @param name the name
219            * @param roleId the role ID
220            * @param start the lower bound of the range of resource type permissions
221            * @param end the upper bound of the range of resource type permissions (not inclusive)
222            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
223            * @return the ordered range of matching resource type permissions
224            * @throws SystemException if a system exception occurred
225            */
226            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findByC_N_R(
227                    long companyId, java.lang.String name, long roleId, int start, int end,
228                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229                    throws com.liferay.portal.kernel.exception.SystemException;
230    
231            /**
232            * Returns the first resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
233            *
234            * @param companyId the company ID
235            * @param name the name
236            * @param roleId the role ID
237            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
238            * @return the first matching resource type permission
239            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portal.model.ResourceTypePermission findByC_N_R_First(
243                    long companyId, java.lang.String name, long roleId,
244                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
246                            com.liferay.portal.kernel.exception.SystemException;
247    
248            /**
249            * Returns the first resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
250            *
251            * @param companyId the company ID
252            * @param name the name
253            * @param roleId the role ID
254            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
255            * @return the first matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
256            * @throws SystemException if a system exception occurred
257            */
258            public com.liferay.portal.model.ResourceTypePermission fetchByC_N_R_First(
259                    long companyId, java.lang.String name, long roleId,
260                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            /**
264            * Returns the last resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
265            *
266            * @param companyId the company ID
267            * @param name the name
268            * @param roleId the role ID
269            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
270            * @return the last matching resource type permission
271            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
272            * @throws SystemException if a system exception occurred
273            */
274            public com.liferay.portal.model.ResourceTypePermission findByC_N_R_Last(
275                    long companyId, java.lang.String name, long roleId,
276                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
278                            com.liferay.portal.kernel.exception.SystemException;
279    
280            /**
281            * Returns the last resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
282            *
283            * @param companyId the company ID
284            * @param name the name
285            * @param roleId the role ID
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the last matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
288            * @throws SystemException if a system exception occurred
289            */
290            public com.liferay.portal.model.ResourceTypePermission fetchByC_N_R_Last(
291                    long companyId, java.lang.String name, long roleId,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException;
294    
295            /**
296            * Returns the resource type permissions before and after the current resource type permission in the ordered set where companyId = &#63; and name = &#63; and roleId = &#63;.
297            *
298            * @param resourceTypePermissionId the primary key of the current resource type permission
299            * @param companyId the company ID
300            * @param name the name
301            * @param roleId the role ID
302            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
303            * @return the previous, current, and next resource type permission
304            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found
305            * @throws SystemException if a system exception occurred
306            */
307            public com.liferay.portal.model.ResourceTypePermission[] findByC_N_R_PrevAndNext(
308                    long resourceTypePermissionId, long companyId, java.lang.String name,
309                    long roleId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
312                            com.liferay.portal.kernel.exception.SystemException;
313    
314            /**
315            * Removes all the resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63; from the database.
316            *
317            * @param companyId the company ID
318            * @param name the name
319            * @param roleId the role ID
320            * @throws SystemException if a system exception occurred
321            */
322            public void removeByC_N_R(long companyId, java.lang.String name, long roleId)
323                    throws com.liferay.portal.kernel.exception.SystemException;
324    
325            /**
326            * Returns the number of resource type permissions where companyId = &#63; and name = &#63; and roleId = &#63;.
327            *
328            * @param companyId the company ID
329            * @param name the name
330            * @param roleId the role ID
331            * @return the number of matching resource type permissions
332            * @throws SystemException if a system exception occurred
333            */
334            public int countByC_N_R(long companyId, java.lang.String name, long roleId)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            /**
338            * Returns the resource type permission where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63; or throws a {@link com.liferay.portal.NoSuchResourceTypePermissionException} if it could not be found.
339            *
340            * @param companyId the company ID
341            * @param groupId the group ID
342            * @param name the name
343            * @param roleId the role ID
344            * @return the matching resource type permission
345            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a matching resource type permission could not be found
346            * @throws SystemException if a system exception occurred
347            */
348            public com.liferay.portal.model.ResourceTypePermission findByC_G_N_R(
349                    long companyId, long groupId, java.lang.String name, long roleId)
350                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
351                            com.liferay.portal.kernel.exception.SystemException;
352    
353            /**
354            * Returns the resource type permission where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
355            *
356            * @param companyId the company ID
357            * @param groupId the group ID
358            * @param name the name
359            * @param roleId the role ID
360            * @return the matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portal.model.ResourceTypePermission fetchByC_G_N_R(
364                    long companyId, long groupId, java.lang.String name, long roleId)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * Returns the resource type permission where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
369            *
370            * @param companyId the company ID
371            * @param groupId the group ID
372            * @param name the name
373            * @param roleId the role ID
374            * @param retrieveFromCache whether to use the finder cache
375            * @return the matching resource type permission, or <code>null</code> if a matching resource type permission could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portal.model.ResourceTypePermission fetchByC_G_N_R(
379                    long companyId, long groupId, java.lang.String name, long roleId,
380                    boolean retrieveFromCache)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            /**
384            * Removes the resource type permission where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63; from the database.
385            *
386            * @param companyId the company ID
387            * @param groupId the group ID
388            * @param name the name
389            * @param roleId the role ID
390            * @return the resource type permission that was removed
391            * @throws SystemException if a system exception occurred
392            */
393            public com.liferay.portal.model.ResourceTypePermission removeByC_G_N_R(
394                    long companyId, long groupId, java.lang.String name, long roleId)
395                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
396                            com.liferay.portal.kernel.exception.SystemException;
397    
398            /**
399            * Returns the number of resource type permissions where companyId = &#63; and groupId = &#63; and name = &#63; and roleId = &#63;.
400            *
401            * @param companyId the company ID
402            * @param groupId the group ID
403            * @param name the name
404            * @param roleId the role ID
405            * @return the number of matching resource type permissions
406            * @throws SystemException if a system exception occurred
407            */
408            public int countByC_G_N_R(long companyId, long groupId,
409                    java.lang.String name, long roleId)
410                    throws com.liferay.portal.kernel.exception.SystemException;
411    
412            /**
413            * Caches the resource type permission in the entity cache if it is enabled.
414            *
415            * @param resourceTypePermission the resource type permission
416            */
417            public void cacheResult(
418                    com.liferay.portal.model.ResourceTypePermission resourceTypePermission);
419    
420            /**
421            * Caches the resource type permissions in the entity cache if it is enabled.
422            *
423            * @param resourceTypePermissions the resource type permissions
424            */
425            public void cacheResult(
426                    java.util.List<com.liferay.portal.model.ResourceTypePermission> resourceTypePermissions);
427    
428            /**
429            * Creates a new resource type permission with the primary key. Does not add the resource type permission to the database.
430            *
431            * @param resourceTypePermissionId the primary key for the new resource type permission
432            * @return the new resource type permission
433            */
434            public com.liferay.portal.model.ResourceTypePermission create(
435                    long resourceTypePermissionId);
436    
437            /**
438            * Removes the resource type permission with the primary key from the database. Also notifies the appropriate model listeners.
439            *
440            * @param resourceTypePermissionId the primary key of the resource type permission
441            * @return the resource type permission that was removed
442            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found
443            * @throws SystemException if a system exception occurred
444            */
445            public com.liferay.portal.model.ResourceTypePermission remove(
446                    long resourceTypePermissionId)
447                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
448                            com.liferay.portal.kernel.exception.SystemException;
449    
450            public com.liferay.portal.model.ResourceTypePermission updateImpl(
451                    com.liferay.portal.model.ResourceTypePermission resourceTypePermission)
452                    throws com.liferay.portal.kernel.exception.SystemException;
453    
454            /**
455            * Returns the resource type permission with the primary key or throws a {@link com.liferay.portal.NoSuchResourceTypePermissionException} if it could not be found.
456            *
457            * @param resourceTypePermissionId the primary key of the resource type permission
458            * @return the resource type permission
459            * @throws com.liferay.portal.NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found
460            * @throws SystemException if a system exception occurred
461            */
462            public com.liferay.portal.model.ResourceTypePermission findByPrimaryKey(
463                    long resourceTypePermissionId)
464                    throws com.liferay.portal.NoSuchResourceTypePermissionException,
465                            com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns the resource type permission with the primary key or returns <code>null</code> if it could not be found.
469            *
470            * @param resourceTypePermissionId the primary key of the resource type permission
471            * @return the resource type permission, or <code>null</code> if a resource type permission with the primary key could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public com.liferay.portal.model.ResourceTypePermission fetchByPrimaryKey(
475                    long resourceTypePermissionId)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            /**
479            * Returns all the resource type permissions.
480            *
481            * @return the resource type permissions
482            * @throws SystemException if a system exception occurred
483            */
484            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll()
485                    throws com.liferay.portal.kernel.exception.SystemException;
486    
487            /**
488            * Returns a range of all the resource type permissions.
489            *
490            * <p>
491            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceTypePermissionModelImpl}. If both <code>orderByComparator</code> 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.
492            * </p>
493            *
494            * @param start the lower bound of the range of resource type permissions
495            * @param end the upper bound of the range of resource type permissions (not inclusive)
496            * @return the range of resource type permissions
497            * @throws SystemException if a system exception occurred
498            */
499            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll(
500                    int start, int end)
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    
503            /**
504            * Returns an ordered range of all the resource type permissions.
505            *
506            * <p>
507            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.ResourceTypePermissionModelImpl}. If both <code>orderByComparator</code> 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.
508            * </p>
509            *
510            * @param start the lower bound of the range of resource type permissions
511            * @param end the upper bound of the range of resource type permissions (not inclusive)
512            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
513            * @return the ordered range of resource type permissions
514            * @throws SystemException if a system exception occurred
515            */
516            public java.util.List<com.liferay.portal.model.ResourceTypePermission> findAll(
517                    int start, int end,
518                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            /**
522            * Removes all the resource type permissions from the database.
523            *
524            * @throws SystemException if a system exception occurred
525            */
526            public void removeAll()
527                    throws com.liferay.portal.kernel.exception.SystemException;
528    
529            /**
530            * Returns the number of resource type permissions.
531            *
532            * @return the number of resource type permissions
533            * @throws SystemException if a system exception occurred
534            */
535            public int countAll()
536                    throws com.liferay.portal.kernel.exception.SystemException;
537    }