001 /** 002 * Copyright (c) 2000-present 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 com.liferay.portal.service.persistence.impl.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 = ?. 043 * 044 * @param roleId the role ID 045 * @return the matching resource type permissions 046 */ 047 public java.util.List<ResourceTypePermission> findByRoleId(long roleId); 048 049 /** 050 * Returns a range of all the resource type permissions where roleId = ?. 051 * 052 * <p> 053 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 054 * </p> 055 * 056 * @param roleId the role ID 057 * @param start the lower bound of the range of resource type permissions 058 * @param end the upper bound of the range of resource type permissions (not inclusive) 059 * @return the range of matching resource type permissions 060 */ 061 public java.util.List<ResourceTypePermission> findByRoleId(long roleId, 062 int start, int end); 063 064 /** 065 * Returns an ordered range of all the resource type permissions where roleId = ?. 066 * 067 * <p> 068 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 069 * </p> 070 * 071 * @param roleId the role ID 072 * @param start the lower bound of the range of resource type permissions 073 * @param end the upper bound of the range of resource type permissions (not inclusive) 074 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 075 * @return the ordered range of matching resource type permissions 076 */ 077 public java.util.List<ResourceTypePermission> findByRoleId(long roleId, 078 int start, int end, 079 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator); 080 081 /** 082 * Returns an ordered range of all the resource type permissions where roleId = ?. 083 * 084 * <p> 085 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 086 * </p> 087 * 088 * @param roleId the role ID 089 * @param start the lower bound of the range of resource type permissions 090 * @param end the upper bound of the range of resource type permissions (not inclusive) 091 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 092 * @param retrieveFromCache whether to retrieve from the finder cache 093 * @return the ordered range of matching resource type permissions 094 */ 095 public java.util.List<ResourceTypePermission> findByRoleId(long roleId, 096 int start, int end, 097 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator, 098 boolean retrieveFromCache); 099 100 /** 101 * Returns the first resource type permission in the ordered set where roleId = ?. 102 * 103 * @param roleId the role ID 104 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 105 * @return the first matching resource type permission 106 * @throws NoSuchResourceTypePermissionException if a matching resource type permission could not be found 107 */ 108 public ResourceTypePermission findByRoleId_First(long roleId, 109 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator) 110 throws com.liferay.portal.exception.NoSuchResourceTypePermissionException; 111 112 /** 113 * Returns the first resource type permission in the ordered set where roleId = ?. 114 * 115 * @param roleId the role ID 116 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 117 * @return the first matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 118 */ 119 public ResourceTypePermission fetchByRoleId_First(long roleId, 120 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator); 121 122 /** 123 * Returns the last resource type permission in the ordered set where roleId = ?. 124 * 125 * @param roleId the role ID 126 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 127 * @return the last matching resource type permission 128 * @throws NoSuchResourceTypePermissionException if a matching resource type permission could not be found 129 */ 130 public ResourceTypePermission findByRoleId_Last(long roleId, 131 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator) 132 throws com.liferay.portal.exception.NoSuchResourceTypePermissionException; 133 134 /** 135 * Returns the last resource type permission in the ordered set where roleId = ?. 136 * 137 * @param roleId the role ID 138 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 139 * @return the last matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 140 */ 141 public ResourceTypePermission fetchByRoleId_Last(long roleId, 142 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator); 143 144 /** 145 * Returns the resource type permissions before and after the current resource type permission in the ordered set where roleId = ?. 146 * 147 * @param resourceTypePermissionId the primary key of the current resource type permission 148 * @param roleId the role ID 149 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 150 * @return the previous, current, and next resource type permission 151 * @throws NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found 152 */ 153 public ResourceTypePermission[] findByRoleId_PrevAndNext( 154 long resourceTypePermissionId, long roleId, 155 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator) 156 throws com.liferay.portal.exception.NoSuchResourceTypePermissionException; 157 158 /** 159 * Removes all the resource type permissions where roleId = ? from the database. 160 * 161 * @param roleId the role ID 162 */ 163 public void removeByRoleId(long roleId); 164 165 /** 166 * Returns the number of resource type permissions where roleId = ?. 167 * 168 * @param roleId the role ID 169 * @return the number of matching resource type permissions 170 */ 171 public int countByRoleId(long roleId); 172 173 /** 174 * Returns all the resource type permissions where companyId = ? and name = ? and roleId = ?. 175 * 176 * @param companyId the company ID 177 * @param name the name 178 * @param roleId the role ID 179 * @return the matching resource type permissions 180 */ 181 public java.util.List<ResourceTypePermission> findByC_N_R(long companyId, 182 java.lang.String name, long roleId); 183 184 /** 185 * Returns a range of all the resource type permissions where companyId = ? and name = ? and roleId = ?. 186 * 187 * <p> 188 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 189 * </p> 190 * 191 * @param companyId the company ID 192 * @param name the name 193 * @param roleId the role ID 194 * @param start the lower bound of the range of resource type permissions 195 * @param end the upper bound of the range of resource type permissions (not inclusive) 196 * @return the range of matching resource type permissions 197 */ 198 public java.util.List<ResourceTypePermission> findByC_N_R(long companyId, 199 java.lang.String name, long roleId, int start, int end); 200 201 /** 202 * Returns an ordered range of all the resource type permissions where companyId = ? and name = ? and roleId = ?. 203 * 204 * <p> 205 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 206 * </p> 207 * 208 * @param companyId the company ID 209 * @param name the name 210 * @param roleId the role ID 211 * @param start the lower bound of the range of resource type permissions 212 * @param end the upper bound of the range of resource type permissions (not inclusive) 213 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 214 * @return the ordered range of matching resource type permissions 215 */ 216 public java.util.List<ResourceTypePermission> findByC_N_R(long companyId, 217 java.lang.String name, long roleId, int start, int end, 218 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator); 219 220 /** 221 * Returns an ordered range of all the resource type permissions where companyId = ? and name = ? and roleId = ?. 222 * 223 * <p> 224 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 225 * </p> 226 * 227 * @param companyId the company ID 228 * @param name the name 229 * @param roleId the role ID 230 * @param start the lower bound of the range of resource type permissions 231 * @param end the upper bound of the range of resource type permissions (not inclusive) 232 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 233 * @param retrieveFromCache whether to retrieve from the finder cache 234 * @return the ordered range of matching resource type permissions 235 */ 236 public java.util.List<ResourceTypePermission> findByC_N_R(long companyId, 237 java.lang.String name, long roleId, int start, int end, 238 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator, 239 boolean retrieveFromCache); 240 241 /** 242 * Returns the first resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. 243 * 244 * @param companyId the company ID 245 * @param name the name 246 * @param roleId the role ID 247 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 248 * @return the first matching resource type permission 249 * @throws NoSuchResourceTypePermissionException if a matching resource type permission could not be found 250 */ 251 public ResourceTypePermission findByC_N_R_First(long companyId, 252 java.lang.String name, long roleId, 253 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator) 254 throws com.liferay.portal.exception.NoSuchResourceTypePermissionException; 255 256 /** 257 * Returns the first resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. 258 * 259 * @param companyId the company ID 260 * @param name the name 261 * @param roleId the role ID 262 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 263 * @return the first matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 264 */ 265 public ResourceTypePermission fetchByC_N_R_First(long companyId, 266 java.lang.String name, long roleId, 267 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator); 268 269 /** 270 * Returns the last resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. 271 * 272 * @param companyId the company ID 273 * @param name the name 274 * @param roleId the role ID 275 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 276 * @return the last matching resource type permission 277 * @throws NoSuchResourceTypePermissionException if a matching resource type permission could not be found 278 */ 279 public ResourceTypePermission findByC_N_R_Last(long companyId, 280 java.lang.String name, long roleId, 281 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator) 282 throws com.liferay.portal.exception.NoSuchResourceTypePermissionException; 283 284 /** 285 * Returns the last resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. 286 * 287 * @param companyId the company ID 288 * @param name the name 289 * @param roleId the role ID 290 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 291 * @return the last matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 292 */ 293 public ResourceTypePermission fetchByC_N_R_Last(long companyId, 294 java.lang.String name, long roleId, 295 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator); 296 297 /** 298 * Returns the resource type permissions before and after the current resource type permission in the ordered set where companyId = ? and name = ? and roleId = ?. 299 * 300 * @param resourceTypePermissionId the primary key of the current resource type permission 301 * @param companyId the company ID 302 * @param name the name 303 * @param roleId the role ID 304 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 305 * @return the previous, current, and next resource type permission 306 * @throws NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found 307 */ 308 public ResourceTypePermission[] findByC_N_R_PrevAndNext( 309 long resourceTypePermissionId, long companyId, java.lang.String name, 310 long roleId, 311 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator) 312 throws com.liferay.portal.exception.NoSuchResourceTypePermissionException; 313 314 /** 315 * Removes all the resource type permissions where companyId = ? and name = ? and roleId = ? from the database. 316 * 317 * @param companyId the company ID 318 * @param name the name 319 * @param roleId the role ID 320 */ 321 public void removeByC_N_R(long companyId, java.lang.String name, long roleId); 322 323 /** 324 * Returns the number of resource type permissions where companyId = ? and name = ? and roleId = ?. 325 * 326 * @param companyId the company ID 327 * @param name the name 328 * @param roleId the role ID 329 * @return the number of matching resource type permissions 330 */ 331 public int countByC_N_R(long companyId, java.lang.String name, long roleId); 332 333 /** 334 * Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or throws a {@link NoSuchResourceTypePermissionException} if it could not be found. 335 * 336 * @param companyId the company ID 337 * @param groupId the group ID 338 * @param name the name 339 * @param roleId the role ID 340 * @return the matching resource type permission 341 * @throws NoSuchResourceTypePermissionException if a matching resource type permission could not be found 342 */ 343 public ResourceTypePermission findByC_G_N_R(long companyId, long groupId, 344 java.lang.String name, long roleId) 345 throws com.liferay.portal.exception.NoSuchResourceTypePermissionException; 346 347 /** 348 * Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 349 * 350 * @param companyId the company ID 351 * @param groupId the group ID 352 * @param name the name 353 * @param roleId the role ID 354 * @return the matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 355 */ 356 public ResourceTypePermission fetchByC_G_N_R(long companyId, long groupId, 357 java.lang.String name, long roleId); 358 359 /** 360 * Returns the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 361 * 362 * @param companyId the company ID 363 * @param groupId the group ID 364 * @param name the name 365 * @param roleId the role ID 366 * @param retrieveFromCache whether to retrieve from the finder cache 367 * @return the matching resource type permission, or <code>null</code> if a matching resource type permission could not be found 368 */ 369 public ResourceTypePermission fetchByC_G_N_R(long companyId, long groupId, 370 java.lang.String name, long roleId, boolean retrieveFromCache); 371 372 /** 373 * Removes the resource type permission where companyId = ? and groupId = ? and name = ? and roleId = ? from the database. 374 * 375 * @param companyId the company ID 376 * @param groupId the group ID 377 * @param name the name 378 * @param roleId the role ID 379 * @return the resource type permission that was removed 380 */ 381 public ResourceTypePermission removeByC_G_N_R(long companyId, long groupId, 382 java.lang.String name, long roleId) 383 throws com.liferay.portal.exception.NoSuchResourceTypePermissionException; 384 385 /** 386 * Returns the number of resource type permissions where companyId = ? and groupId = ? and name = ? and roleId = ?. 387 * 388 * @param companyId the company ID 389 * @param groupId the group ID 390 * @param name the name 391 * @param roleId the role ID 392 * @return the number of matching resource type permissions 393 */ 394 public int countByC_G_N_R(long companyId, long groupId, 395 java.lang.String name, long roleId); 396 397 /** 398 * Caches the resource type permission in the entity cache if it is enabled. 399 * 400 * @param resourceTypePermission the resource type permission 401 */ 402 public void cacheResult(ResourceTypePermission resourceTypePermission); 403 404 /** 405 * Caches the resource type permissions in the entity cache if it is enabled. 406 * 407 * @param resourceTypePermissions the resource type permissions 408 */ 409 public void cacheResult( 410 java.util.List<ResourceTypePermission> resourceTypePermissions); 411 412 /** 413 * Creates a new resource type permission with the primary key. Does not add the resource type permission to the database. 414 * 415 * @param resourceTypePermissionId the primary key for the new resource type permission 416 * @return the new resource type permission 417 */ 418 public ResourceTypePermission create(long resourceTypePermissionId); 419 420 /** 421 * Removes the resource type permission with the primary key from the database. Also notifies the appropriate model listeners. 422 * 423 * @param resourceTypePermissionId the primary key of the resource type permission 424 * @return the resource type permission that was removed 425 * @throws NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found 426 */ 427 public ResourceTypePermission remove(long resourceTypePermissionId) 428 throws com.liferay.portal.exception.NoSuchResourceTypePermissionException; 429 430 public ResourceTypePermission updateImpl( 431 ResourceTypePermission resourceTypePermission); 432 433 /** 434 * Returns the resource type permission with the primary key or throws a {@link NoSuchResourceTypePermissionException} if it could not be found. 435 * 436 * @param resourceTypePermissionId the primary key of the resource type permission 437 * @return the resource type permission 438 * @throws NoSuchResourceTypePermissionException if a resource type permission with the primary key could not be found 439 */ 440 public ResourceTypePermission findByPrimaryKey( 441 long resourceTypePermissionId) 442 throws com.liferay.portal.exception.NoSuchResourceTypePermissionException; 443 444 /** 445 * Returns the resource type permission with the primary key or returns <code>null</code> if it could not be found. 446 * 447 * @param resourceTypePermissionId the primary key of the resource type permission 448 * @return the resource type permission, or <code>null</code> if a resource type permission with the primary key could not be found 449 */ 450 public ResourceTypePermission fetchByPrimaryKey( 451 long resourceTypePermissionId); 452 453 @Override 454 public java.util.Map<java.io.Serializable, ResourceTypePermission> fetchByPrimaryKeys( 455 java.util.Set<java.io.Serializable> primaryKeys); 456 457 /** 458 * Returns all the resource type permissions. 459 * 460 * @return the resource type permissions 461 */ 462 public java.util.List<ResourceTypePermission> findAll(); 463 464 /** 465 * Returns a range of all the resource type permissions. 466 * 467 * <p> 468 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 469 * </p> 470 * 471 * @param start the lower bound of the range of resource type permissions 472 * @param end the upper bound of the range of resource type permissions (not inclusive) 473 * @return the range of resource type permissions 474 */ 475 public java.util.List<ResourceTypePermission> findAll(int start, int end); 476 477 /** 478 * Returns an ordered range of all the resource type permissions. 479 * 480 * <p> 481 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 482 * </p> 483 * 484 * @param start the lower bound of the range of resource type permissions 485 * @param end the upper bound of the range of resource type permissions (not inclusive) 486 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 487 * @return the ordered range of resource type permissions 488 */ 489 public java.util.List<ResourceTypePermission> findAll(int start, int end, 490 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator); 491 492 /** 493 * Returns an ordered range of all the resource type permissions. 494 * 495 * <p> 496 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 497 * </p> 498 * 499 * @param start the lower bound of the range of resource type permissions 500 * @param end the upper bound of the range of resource type permissions (not inclusive) 501 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 502 * @param retrieveFromCache whether to retrieve from the finder cache 503 * @return the ordered range of resource type permissions 504 */ 505 public java.util.List<ResourceTypePermission> findAll(int start, int end, 506 com.liferay.portal.kernel.util.OrderByComparator<ResourceTypePermission> orderByComparator, 507 boolean retrieveFromCache); 508 509 /** 510 * Removes all the resource type permissions from the database. 511 */ 512 public void removeAll(); 513 514 /** 515 * Returns the number of resource type permissions. 516 * 517 * @return the number of resource type permissions 518 */ 519 public int countAll(); 520 }