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