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.ResourceBlockPermission; 020 021 /** 022 * The persistence interface for the resource block 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.ResourceBlockPermissionPersistenceImpl 030 * @see ResourceBlockPermissionUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface ResourceBlockPermissionPersistence extends BasePersistence<ResourceBlockPermission> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link ResourceBlockPermissionUtil} to access the resource block permission persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Returns all the resource block permissions where resourceBlockId = ?. 043 * 044 * @param resourceBlockId the resource block ID 045 * @return the matching resource block permissions 046 */ 047 public java.util.List<ResourceBlockPermission> findByResourceBlockId( 048 long resourceBlockId); 049 050 /** 051 * Returns a range of all the resource block permissions where resourceBlockId = ?. 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 ResourceBlockPermissionModelImpl}. 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 resourceBlockId the resource block ID 058 * @param start the lower bound of the range of resource block permissions 059 * @param end the upper bound of the range of resource block permissions (not inclusive) 060 * @return the range of matching resource block permissions 061 */ 062 public java.util.List<ResourceBlockPermission> findByResourceBlockId( 063 long resourceBlockId, int start, int end); 064 065 /** 066 * Returns an ordered range of all the resource block permissions where resourceBlockId = ?. 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 ResourceBlockPermissionModelImpl}. 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 resourceBlockId the resource block ID 073 * @param start the lower bound of the range of resource block permissions 074 * @param end the upper bound of the range of resource block 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 block permissions 077 */ 078 public java.util.List<ResourceBlockPermission> findByResourceBlockId( 079 long resourceBlockId, int start, int end, 080 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator); 081 082 /** 083 * Returns an ordered range of all the resource block permissions where resourceBlockId = ?. 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 ResourceBlockPermissionModelImpl}. 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 resourceBlockId the resource block ID 090 * @param start the lower bound of the range of resource block permissions 091 * @param end the upper bound of the range of resource block 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 block permissions 095 */ 096 public java.util.List<ResourceBlockPermission> findByResourceBlockId( 097 long resourceBlockId, int start, int end, 098 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator, 099 boolean retrieveFromCache); 100 101 /** 102 * Returns the first resource block permission in the ordered set where resourceBlockId = ?. 103 * 104 * @param resourceBlockId the resource block ID 105 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 106 * @return the first matching resource block permission 107 * @throws NoSuchResourceBlockPermissionException if a matching resource block permission could not be found 108 */ 109 public ResourceBlockPermission findByResourceBlockId_First( 110 long resourceBlockId, 111 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator) 112 throws com.liferay.portal.exception.NoSuchResourceBlockPermissionException; 113 114 /** 115 * Returns the first resource block permission in the ordered set where resourceBlockId = ?. 116 * 117 * @param resourceBlockId the resource block ID 118 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 119 * @return the first matching resource block permission, or <code>null</code> if a matching resource block permission could not be found 120 */ 121 public ResourceBlockPermission fetchByResourceBlockId_First( 122 long resourceBlockId, 123 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator); 124 125 /** 126 * Returns the last resource block permission in the ordered set where resourceBlockId = ?. 127 * 128 * @param resourceBlockId the resource block ID 129 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 130 * @return the last matching resource block permission 131 * @throws NoSuchResourceBlockPermissionException if a matching resource block permission could not be found 132 */ 133 public ResourceBlockPermission findByResourceBlockId_Last( 134 long resourceBlockId, 135 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator) 136 throws com.liferay.portal.exception.NoSuchResourceBlockPermissionException; 137 138 /** 139 * Returns the last resource block permission in the ordered set where resourceBlockId = ?. 140 * 141 * @param resourceBlockId the resource block ID 142 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 143 * @return the last matching resource block permission, or <code>null</code> if a matching resource block permission could not be found 144 */ 145 public ResourceBlockPermission fetchByResourceBlockId_Last( 146 long resourceBlockId, 147 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator); 148 149 /** 150 * Returns the resource block permissions before and after the current resource block permission in the ordered set where resourceBlockId = ?. 151 * 152 * @param resourceBlockPermissionId the primary key of the current resource block permission 153 * @param resourceBlockId the resource block ID 154 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 155 * @return the previous, current, and next resource block permission 156 * @throws NoSuchResourceBlockPermissionException if a resource block permission with the primary key could not be found 157 */ 158 public ResourceBlockPermission[] findByResourceBlockId_PrevAndNext( 159 long resourceBlockPermissionId, long resourceBlockId, 160 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator) 161 throws com.liferay.portal.exception.NoSuchResourceBlockPermissionException; 162 163 /** 164 * Removes all the resource block permissions where resourceBlockId = ? from the database. 165 * 166 * @param resourceBlockId the resource block ID 167 */ 168 public void removeByResourceBlockId(long resourceBlockId); 169 170 /** 171 * Returns the number of resource block permissions where resourceBlockId = ?. 172 * 173 * @param resourceBlockId the resource block ID 174 * @return the number of matching resource block permissions 175 */ 176 public int countByResourceBlockId(long resourceBlockId); 177 178 /** 179 * Returns all the resource block permissions where roleId = ?. 180 * 181 * @param roleId the role ID 182 * @return the matching resource block permissions 183 */ 184 public java.util.List<ResourceBlockPermission> findByRoleId(long roleId); 185 186 /** 187 * Returns a range of all the resource block permissions where roleId = ?. 188 * 189 * <p> 190 * 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 ResourceBlockPermissionModelImpl}. 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. 191 * </p> 192 * 193 * @param roleId the role ID 194 * @param start the lower bound of the range of resource block permissions 195 * @param end the upper bound of the range of resource block permissions (not inclusive) 196 * @return the range of matching resource block permissions 197 */ 198 public java.util.List<ResourceBlockPermission> findByRoleId(long roleId, 199 int start, int end); 200 201 /** 202 * Returns an ordered range of all the resource block permissions where 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 ResourceBlockPermissionModelImpl}. 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 roleId the role ID 209 * @param start the lower bound of the range of resource block permissions 210 * @param end the upper bound of the range of resource block permissions (not inclusive) 211 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 212 * @return the ordered range of matching resource block permissions 213 */ 214 public java.util.List<ResourceBlockPermission> findByRoleId(long roleId, 215 int start, int end, 216 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator); 217 218 /** 219 * Returns an ordered range of all the resource block permissions where roleId = ?. 220 * 221 * <p> 222 * 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 ResourceBlockPermissionModelImpl}. 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. 223 * </p> 224 * 225 * @param roleId the role ID 226 * @param start the lower bound of the range of resource block permissions 227 * @param end the upper bound of the range of resource block permissions (not inclusive) 228 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 229 * @param retrieveFromCache whether to retrieve from the finder cache 230 * @return the ordered range of matching resource block permissions 231 */ 232 public java.util.List<ResourceBlockPermission> findByRoleId(long roleId, 233 int start, int end, 234 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator, 235 boolean retrieveFromCache); 236 237 /** 238 * Returns the first resource block permission in the ordered set where roleId = ?. 239 * 240 * @param roleId the role ID 241 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 242 * @return the first matching resource block permission 243 * @throws NoSuchResourceBlockPermissionException if a matching resource block permission could not be found 244 */ 245 public ResourceBlockPermission findByRoleId_First(long roleId, 246 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator) 247 throws com.liferay.portal.exception.NoSuchResourceBlockPermissionException; 248 249 /** 250 * Returns the first resource block permission in the ordered set where roleId = ?. 251 * 252 * @param roleId the role ID 253 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 254 * @return the first matching resource block permission, or <code>null</code> if a matching resource block permission could not be found 255 */ 256 public ResourceBlockPermission fetchByRoleId_First(long roleId, 257 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator); 258 259 /** 260 * Returns the last resource block permission in the ordered set where roleId = ?. 261 * 262 * @param roleId the role ID 263 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 264 * @return the last matching resource block permission 265 * @throws NoSuchResourceBlockPermissionException if a matching resource block permission could not be found 266 */ 267 public ResourceBlockPermission findByRoleId_Last(long roleId, 268 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator) 269 throws com.liferay.portal.exception.NoSuchResourceBlockPermissionException; 270 271 /** 272 * Returns the last resource block permission in the ordered set where roleId = ?. 273 * 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 block permission, or <code>null</code> if a matching resource block permission could not be found 277 */ 278 public ResourceBlockPermission fetchByRoleId_Last(long roleId, 279 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator); 280 281 /** 282 * Returns the resource block permissions before and after the current resource block permission in the ordered set where roleId = ?. 283 * 284 * @param resourceBlockPermissionId the primary key of the current resource block permission 285 * @param roleId the role ID 286 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 287 * @return the previous, current, and next resource block permission 288 * @throws NoSuchResourceBlockPermissionException if a resource block permission with the primary key could not be found 289 */ 290 public ResourceBlockPermission[] findByRoleId_PrevAndNext( 291 long resourceBlockPermissionId, long roleId, 292 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator) 293 throws com.liferay.portal.exception.NoSuchResourceBlockPermissionException; 294 295 /** 296 * Removes all the resource block permissions where roleId = ? from the database. 297 * 298 * @param roleId the role ID 299 */ 300 public void removeByRoleId(long roleId); 301 302 /** 303 * Returns the number of resource block permissions where roleId = ?. 304 * 305 * @param roleId the role ID 306 * @return the number of matching resource block permissions 307 */ 308 public int countByRoleId(long roleId); 309 310 /** 311 * Returns the resource block permission where resourceBlockId = ? and roleId = ? or throws a {@link NoSuchResourceBlockPermissionException} if it could not be found. 312 * 313 * @param resourceBlockId the resource block ID 314 * @param roleId the role ID 315 * @return the matching resource block permission 316 * @throws NoSuchResourceBlockPermissionException if a matching resource block permission could not be found 317 */ 318 public ResourceBlockPermission findByR_R(long resourceBlockId, long roleId) 319 throws com.liferay.portal.exception.NoSuchResourceBlockPermissionException; 320 321 /** 322 * Returns the resource block permission where resourceBlockId = ? and roleId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 323 * 324 * @param resourceBlockId the resource block ID 325 * @param roleId the role ID 326 * @return the matching resource block permission, or <code>null</code> if a matching resource block permission could not be found 327 */ 328 public ResourceBlockPermission fetchByR_R(long resourceBlockId, long roleId); 329 330 /** 331 * Returns the resource block permission where resourceBlockId = ? and roleId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 332 * 333 * @param resourceBlockId the resource block ID 334 * @param roleId the role ID 335 * @param retrieveFromCache whether to retrieve from the finder cache 336 * @return the matching resource block permission, or <code>null</code> if a matching resource block permission could not be found 337 */ 338 public ResourceBlockPermission fetchByR_R(long resourceBlockId, 339 long roleId, boolean retrieveFromCache); 340 341 /** 342 * Removes the resource block permission where resourceBlockId = ? and roleId = ? from the database. 343 * 344 * @param resourceBlockId the resource block ID 345 * @param roleId the role ID 346 * @return the resource block permission that was removed 347 */ 348 public ResourceBlockPermission removeByR_R(long resourceBlockId, long roleId) 349 throws com.liferay.portal.exception.NoSuchResourceBlockPermissionException; 350 351 /** 352 * Returns the number of resource block permissions where resourceBlockId = ? and roleId = ?. 353 * 354 * @param resourceBlockId the resource block ID 355 * @param roleId the role ID 356 * @return the number of matching resource block permissions 357 */ 358 public int countByR_R(long resourceBlockId, long roleId); 359 360 /** 361 * Caches the resource block permission in the entity cache if it is enabled. 362 * 363 * @param resourceBlockPermission the resource block permission 364 */ 365 public void cacheResult(ResourceBlockPermission resourceBlockPermission); 366 367 /** 368 * Caches the resource block permissions in the entity cache if it is enabled. 369 * 370 * @param resourceBlockPermissions the resource block permissions 371 */ 372 public void cacheResult( 373 java.util.List<ResourceBlockPermission> resourceBlockPermissions); 374 375 /** 376 * Creates a new resource block permission with the primary key. Does not add the resource block permission to the database. 377 * 378 * @param resourceBlockPermissionId the primary key for the new resource block permission 379 * @return the new resource block permission 380 */ 381 public ResourceBlockPermission create(long resourceBlockPermissionId); 382 383 /** 384 * Removes the resource block permission with the primary key from the database. Also notifies the appropriate model listeners. 385 * 386 * @param resourceBlockPermissionId the primary key of the resource block permission 387 * @return the resource block permission that was removed 388 * @throws NoSuchResourceBlockPermissionException if a resource block permission with the primary key could not be found 389 */ 390 public ResourceBlockPermission remove(long resourceBlockPermissionId) 391 throws com.liferay.portal.exception.NoSuchResourceBlockPermissionException; 392 393 public ResourceBlockPermission updateImpl( 394 ResourceBlockPermission resourceBlockPermission); 395 396 /** 397 * Returns the resource block permission with the primary key or throws a {@link NoSuchResourceBlockPermissionException} if it could not be found. 398 * 399 * @param resourceBlockPermissionId the primary key of the resource block permission 400 * @return the resource block permission 401 * @throws NoSuchResourceBlockPermissionException if a resource block permission with the primary key could not be found 402 */ 403 public ResourceBlockPermission findByPrimaryKey( 404 long resourceBlockPermissionId) 405 throws com.liferay.portal.exception.NoSuchResourceBlockPermissionException; 406 407 /** 408 * Returns the resource block permission with the primary key or returns <code>null</code> if it could not be found. 409 * 410 * @param resourceBlockPermissionId the primary key of the resource block permission 411 * @return the resource block permission, or <code>null</code> if a resource block permission with the primary key could not be found 412 */ 413 public ResourceBlockPermission fetchByPrimaryKey( 414 long resourceBlockPermissionId); 415 416 @Override 417 public java.util.Map<java.io.Serializable, ResourceBlockPermission> fetchByPrimaryKeys( 418 java.util.Set<java.io.Serializable> primaryKeys); 419 420 /** 421 * Returns all the resource block permissions. 422 * 423 * @return the resource block permissions 424 */ 425 public java.util.List<ResourceBlockPermission> findAll(); 426 427 /** 428 * Returns a range of all the resource block permissions. 429 * 430 * <p> 431 * 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 ResourceBlockPermissionModelImpl}. 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. 432 * </p> 433 * 434 * @param start the lower bound of the range of resource block permissions 435 * @param end the upper bound of the range of resource block permissions (not inclusive) 436 * @return the range of resource block permissions 437 */ 438 public java.util.List<ResourceBlockPermission> findAll(int start, int end); 439 440 /** 441 * Returns an ordered range of all the resource block permissions. 442 * 443 * <p> 444 * 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 ResourceBlockPermissionModelImpl}. 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. 445 * </p> 446 * 447 * @param start the lower bound of the range of resource block permissions 448 * @param end the upper bound of the range of resource block permissions (not inclusive) 449 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 450 * @return the ordered range of resource block permissions 451 */ 452 public java.util.List<ResourceBlockPermission> findAll(int start, int end, 453 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator); 454 455 /** 456 * Returns an ordered range of all the resource block permissions. 457 * 458 * <p> 459 * 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 ResourceBlockPermissionModelImpl}. 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. 460 * </p> 461 * 462 * @param start the lower bound of the range of resource block permissions 463 * @param end the upper bound of the range of resource block permissions (not inclusive) 464 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 465 * @param retrieveFromCache whether to retrieve from the finder cache 466 * @return the ordered range of resource block permissions 467 */ 468 public java.util.List<ResourceBlockPermission> findAll(int start, int end, 469 com.liferay.portal.kernel.util.OrderByComparator<ResourceBlockPermission> orderByComparator, 470 boolean retrieveFromCache); 471 472 /** 473 * Removes all the resource block permissions from the database. 474 */ 475 public void removeAll(); 476 477 /** 478 * Returns the number of resource block permissions. 479 * 480 * @return the number of resource block permissions 481 */ 482 public int countAll(); 483 }