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.ResourcePermission; 020 021 /** 022 * The persistence interface for the resource 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.ResourcePermissionPersistenceImpl 030 * @see ResourcePermissionUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface ResourcePermissionPersistence extends BasePersistence<ResourcePermission> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link ResourcePermissionUtil} to access the resource permission persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Returns all the resource permissions where scope = ?. 043 * 044 * @param scope the scope 045 * @return the matching resource permissions 046 */ 047 public java.util.List<ResourcePermission> findByScope(int scope); 048 049 /** 050 * Returns a range of all the resource permissions where scope = ?. 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 ResourcePermissionModelImpl}. 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 scope the scope 057 * @param start the lower bound of the range of resource permissions 058 * @param end the upper bound of the range of resource permissions (not inclusive) 059 * @return the range of matching resource permissions 060 */ 061 public java.util.List<ResourcePermission> findByScope(int scope, int start, 062 int end); 063 064 /** 065 * Returns an ordered range of all the resource permissions where scope = ?. 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 ResourcePermissionModelImpl}. 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 scope the scope 072 * @param start the lower bound of the range of resource permissions 073 * @param end the upper bound of the range of resource 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 permissions 076 */ 077 public java.util.List<ResourcePermission> findByScope(int scope, int start, 078 int end, 079 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 080 081 /** 082 * Returns the first resource permission in the ordered set where scope = ?. 083 * 084 * @param scope the scope 085 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 086 * @return the first matching resource permission 087 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 088 */ 089 public ResourcePermission findByScope_First(int scope, 090 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 091 throws com.liferay.portal.NoSuchResourcePermissionException; 092 093 /** 094 * Returns the first resource permission in the ordered set where scope = ?. 095 * 096 * @param scope the scope 097 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 098 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 099 */ 100 public ResourcePermission fetchByScope_First(int scope, 101 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 102 103 /** 104 * Returns the last resource permission in the ordered set where scope = ?. 105 * 106 * @param scope the scope 107 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 108 * @return the last matching resource permission 109 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 110 */ 111 public ResourcePermission findByScope_Last(int scope, 112 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 113 throws com.liferay.portal.NoSuchResourcePermissionException; 114 115 /** 116 * Returns the last resource permission in the ordered set where scope = ?. 117 * 118 * @param scope the scope 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 121 */ 122 public ResourcePermission fetchByScope_Last(int scope, 123 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 124 125 /** 126 * Returns the resource permissions before and after the current resource permission in the ordered set where scope = ?. 127 * 128 * @param resourcePermissionId the primary key of the current resource permission 129 * @param scope the scope 130 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 131 * @return the previous, current, and next resource permission 132 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 133 */ 134 public ResourcePermission[] findByScope_PrevAndNext( 135 long resourcePermissionId, int scope, 136 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 137 throws com.liferay.portal.NoSuchResourcePermissionException; 138 139 /** 140 * Returns all the resource permissions where scope = any ?. 141 * 142 * <p> 143 * 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 ResourcePermissionModelImpl}. 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. 144 * </p> 145 * 146 * @param scopes the scopes 147 * @return the matching resource permissions 148 */ 149 public java.util.List<ResourcePermission> findByScope(int[] scopes); 150 151 /** 152 * Returns a range of all the resource permissions where scope = any ?. 153 * 154 * <p> 155 * 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 ResourcePermissionModelImpl}. 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. 156 * </p> 157 * 158 * @param scopes the scopes 159 * @param start the lower bound of the range of resource permissions 160 * @param end the upper bound of the range of resource permissions (not inclusive) 161 * @return the range of matching resource permissions 162 */ 163 public java.util.List<ResourcePermission> findByScope(int[] scopes, 164 int start, int end); 165 166 /** 167 * Returns an ordered range of all the resource permissions where scope = any ?. 168 * 169 * <p> 170 * 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 ResourcePermissionModelImpl}. 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. 171 * </p> 172 * 173 * @param scopes the scopes 174 * @param start the lower bound of the range of resource permissions 175 * @param end the upper bound of the range of resource permissions (not inclusive) 176 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 177 * @return the ordered range of matching resource permissions 178 */ 179 public java.util.List<ResourcePermission> findByScope(int[] scopes, 180 int start, int end, 181 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 182 183 /** 184 * Removes all the resource permissions where scope = ? from the database. 185 * 186 * @param scope the scope 187 */ 188 public void removeByScope(int scope); 189 190 /** 191 * Returns the number of resource permissions where scope = ?. 192 * 193 * @param scope the scope 194 * @return the number of matching resource permissions 195 */ 196 public int countByScope(int scope); 197 198 /** 199 * Returns the number of resource permissions where scope = any ?. 200 * 201 * @param scopes the scopes 202 * @return the number of matching resource permissions 203 */ 204 public int countByScope(int[] scopes); 205 206 /** 207 * Returns all the resource permissions where roleId = ?. 208 * 209 * @param roleId the role ID 210 * @return the matching resource permissions 211 */ 212 public java.util.List<ResourcePermission> findByRoleId(long roleId); 213 214 /** 215 * Returns a range of all the resource permissions where roleId = ?. 216 * 217 * <p> 218 * 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 ResourcePermissionModelImpl}. 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. 219 * </p> 220 * 221 * @param roleId the role ID 222 * @param start the lower bound of the range of resource permissions 223 * @param end the upper bound of the range of resource permissions (not inclusive) 224 * @return the range of matching resource permissions 225 */ 226 public java.util.List<ResourcePermission> findByRoleId(long roleId, 227 int start, int end); 228 229 /** 230 * Returns an ordered range of all the resource permissions where roleId = ?. 231 * 232 * <p> 233 * 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 ResourcePermissionModelImpl}. 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. 234 * </p> 235 * 236 * @param roleId the role ID 237 * @param start the lower bound of the range of resource permissions 238 * @param end the upper bound of the range of resource permissions (not inclusive) 239 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 240 * @return the ordered range of matching resource permissions 241 */ 242 public java.util.List<ResourcePermission> findByRoleId(long roleId, 243 int start, int end, 244 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 245 246 /** 247 * Returns the first resource permission in the ordered set where roleId = ?. 248 * 249 * @param roleId the role ID 250 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 251 * @return the first matching resource permission 252 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 253 */ 254 public ResourcePermission findByRoleId_First(long roleId, 255 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 256 throws com.liferay.portal.NoSuchResourcePermissionException; 257 258 /** 259 * Returns the first resource permission in the ordered set where roleId = ?. 260 * 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 permission, or <code>null</code> if a matching resource permission could not be found 264 */ 265 public ResourcePermission fetchByRoleId_First(long roleId, 266 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 267 268 /** 269 * Returns the last resource permission in the ordered set where roleId = ?. 270 * 271 * @param roleId the role ID 272 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 273 * @return the last matching resource permission 274 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 275 */ 276 public ResourcePermission findByRoleId_Last(long roleId, 277 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 278 throws com.liferay.portal.NoSuchResourcePermissionException; 279 280 /** 281 * Returns the last resource permission in the ordered set where roleId = ?. 282 * 283 * @param roleId the role ID 284 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 285 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 286 */ 287 public ResourcePermission fetchByRoleId_Last(long roleId, 288 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 289 290 /** 291 * Returns the resource permissions before and after the current resource permission in the ordered set where roleId = ?. 292 * 293 * @param resourcePermissionId the primary key of the current resource permission 294 * @param roleId the role ID 295 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 296 * @return the previous, current, and next resource permission 297 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 298 */ 299 public ResourcePermission[] findByRoleId_PrevAndNext( 300 long resourcePermissionId, long roleId, 301 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 302 throws com.liferay.portal.NoSuchResourcePermissionException; 303 304 /** 305 * Removes all the resource permissions where roleId = ? from the database. 306 * 307 * @param roleId the role ID 308 */ 309 public void removeByRoleId(long roleId); 310 311 /** 312 * Returns the number of resource permissions where roleId = ?. 313 * 314 * @param roleId the role ID 315 * @return the number of matching resource permissions 316 */ 317 public int countByRoleId(long roleId); 318 319 /** 320 * Returns all the resource permissions where companyId = ? and primKey LIKE ?. 321 * 322 * @param companyId the company ID 323 * @param primKey the prim key 324 * @return the matching resource permissions 325 */ 326 public java.util.List<ResourcePermission> findByC_LikeP(long companyId, 327 java.lang.String primKey); 328 329 /** 330 * Returns a range of all the resource permissions where companyId = ? and primKey LIKE ?. 331 * 332 * <p> 333 * 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 ResourcePermissionModelImpl}. 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. 334 * </p> 335 * 336 * @param companyId the company ID 337 * @param primKey the prim key 338 * @param start the lower bound of the range of resource permissions 339 * @param end the upper bound of the range of resource permissions (not inclusive) 340 * @return the range of matching resource permissions 341 */ 342 public java.util.List<ResourcePermission> findByC_LikeP(long companyId, 343 java.lang.String primKey, int start, int end); 344 345 /** 346 * Returns an ordered range of all the resource permissions where companyId = ? and primKey LIKE ?. 347 * 348 * <p> 349 * 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 ResourcePermissionModelImpl}. 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. 350 * </p> 351 * 352 * @param companyId the company ID 353 * @param primKey the prim key 354 * @param start the lower bound of the range of resource permissions 355 * @param end the upper bound of the range of resource permissions (not inclusive) 356 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 357 * @return the ordered range of matching resource permissions 358 */ 359 public java.util.List<ResourcePermission> findByC_LikeP(long companyId, 360 java.lang.String primKey, int start, int end, 361 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 362 363 /** 364 * Returns the first resource permission in the ordered set where companyId = ? and primKey LIKE ?. 365 * 366 * @param companyId the company ID 367 * @param primKey the prim key 368 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 369 * @return the first matching resource permission 370 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 371 */ 372 public ResourcePermission findByC_LikeP_First(long companyId, 373 java.lang.String primKey, 374 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 375 throws com.liferay.portal.NoSuchResourcePermissionException; 376 377 /** 378 * Returns the first resource permission in the ordered set where companyId = ? and primKey LIKE ?. 379 * 380 * @param companyId the company ID 381 * @param primKey the prim key 382 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 383 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 384 */ 385 public ResourcePermission fetchByC_LikeP_First(long companyId, 386 java.lang.String primKey, 387 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 388 389 /** 390 * Returns the last resource permission in the ordered set where companyId = ? and primKey LIKE ?. 391 * 392 * @param companyId the company ID 393 * @param primKey the prim key 394 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 395 * @return the last matching resource permission 396 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 397 */ 398 public ResourcePermission findByC_LikeP_Last(long companyId, 399 java.lang.String primKey, 400 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 401 throws com.liferay.portal.NoSuchResourcePermissionException; 402 403 /** 404 * Returns the last resource permission in the ordered set where companyId = ? and primKey LIKE ?. 405 * 406 * @param companyId the company ID 407 * @param primKey the prim key 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 410 */ 411 public ResourcePermission fetchByC_LikeP_Last(long companyId, 412 java.lang.String primKey, 413 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 414 415 /** 416 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and primKey LIKE ?. 417 * 418 * @param resourcePermissionId the primary key of the current resource permission 419 * @param companyId the company ID 420 * @param primKey the prim key 421 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 422 * @return the previous, current, and next resource permission 423 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 424 */ 425 public ResourcePermission[] findByC_LikeP_PrevAndNext( 426 long resourcePermissionId, long companyId, java.lang.String primKey, 427 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 428 throws com.liferay.portal.NoSuchResourcePermissionException; 429 430 /** 431 * Removes all the resource permissions where companyId = ? and primKey LIKE ? from the database. 432 * 433 * @param companyId the company ID 434 * @param primKey the prim key 435 */ 436 public void removeByC_LikeP(long companyId, java.lang.String primKey); 437 438 /** 439 * Returns the number of resource permissions where companyId = ? and primKey LIKE ?. 440 * 441 * @param companyId the company ID 442 * @param primKey the prim key 443 * @return the number of matching resource permissions 444 */ 445 public int countByC_LikeP(long companyId, java.lang.String primKey); 446 447 /** 448 * Returns all the resource permissions where companyId = ? and name = ? and scope = ?. 449 * 450 * @param companyId the company ID 451 * @param name the name 452 * @param scope the scope 453 * @return the matching resource permissions 454 */ 455 public java.util.List<ResourcePermission> findByC_N_S(long companyId, 456 java.lang.String name, int scope); 457 458 /** 459 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ?. 460 * 461 * <p> 462 * 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 ResourcePermissionModelImpl}. 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. 463 * </p> 464 * 465 * @param companyId the company ID 466 * @param name the name 467 * @param scope the scope 468 * @param start the lower bound of the range of resource permissions 469 * @param end the upper bound of the range of resource permissions (not inclusive) 470 * @return the range of matching resource permissions 471 */ 472 public java.util.List<ResourcePermission> findByC_N_S(long companyId, 473 java.lang.String name, int scope, int start, int end); 474 475 /** 476 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ?. 477 * 478 * <p> 479 * 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 ResourcePermissionModelImpl}. 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. 480 * </p> 481 * 482 * @param companyId the company ID 483 * @param name the name 484 * @param scope the scope 485 * @param start the lower bound of the range of resource permissions 486 * @param end the upper bound of the range of resource permissions (not inclusive) 487 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 488 * @return the ordered range of matching resource permissions 489 */ 490 public java.util.List<ResourcePermission> findByC_N_S(long companyId, 491 java.lang.String name, int scope, int start, int end, 492 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 493 494 /** 495 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 496 * 497 * @param companyId the company ID 498 * @param name the name 499 * @param scope the scope 500 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 501 * @return the first matching resource permission 502 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 503 */ 504 public ResourcePermission findByC_N_S_First(long companyId, 505 java.lang.String name, int scope, 506 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 507 throws com.liferay.portal.NoSuchResourcePermissionException; 508 509 /** 510 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 511 * 512 * @param companyId the company ID 513 * @param name the name 514 * @param scope the scope 515 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 516 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 517 */ 518 public ResourcePermission fetchByC_N_S_First(long companyId, 519 java.lang.String name, int scope, 520 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 521 522 /** 523 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 524 * 525 * @param companyId the company ID 526 * @param name the name 527 * @param scope the scope 528 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 529 * @return the last matching resource permission 530 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 531 */ 532 public ResourcePermission findByC_N_S_Last(long companyId, 533 java.lang.String name, int scope, 534 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 535 throws com.liferay.portal.NoSuchResourcePermissionException; 536 537 /** 538 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 539 * 540 * @param companyId the company ID 541 * @param name the name 542 * @param scope the scope 543 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 544 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 545 */ 546 public ResourcePermission fetchByC_N_S_Last(long companyId, 547 java.lang.String name, int scope, 548 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 549 550 /** 551 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ?. 552 * 553 * @param resourcePermissionId the primary key of the current resource permission 554 * @param companyId the company ID 555 * @param name the name 556 * @param scope the scope 557 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 558 * @return the previous, current, and next resource permission 559 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 560 */ 561 public ResourcePermission[] findByC_N_S_PrevAndNext( 562 long resourcePermissionId, long companyId, java.lang.String name, 563 int scope, 564 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 565 throws com.liferay.portal.NoSuchResourcePermissionException; 566 567 /** 568 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? from the database. 569 * 570 * @param companyId the company ID 571 * @param name the name 572 * @param scope the scope 573 */ 574 public void removeByC_N_S(long companyId, java.lang.String name, int scope); 575 576 /** 577 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ?. 578 * 579 * @param companyId the company ID 580 * @param name the name 581 * @param scope the scope 582 * @return the number of matching resource permissions 583 */ 584 public int countByC_N_S(long companyId, java.lang.String name, int scope); 585 586 /** 587 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 588 * 589 * @param companyId the company ID 590 * @param name the name 591 * @param scope the scope 592 * @param primKey the prim key 593 * @return the matching resource permissions 594 */ 595 public java.util.List<ResourcePermission> findByC_N_S_P(long companyId, 596 java.lang.String name, int scope, java.lang.String primKey); 597 598 /** 599 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 600 * 601 * <p> 602 * 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 ResourcePermissionModelImpl}. 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. 603 * </p> 604 * 605 * @param companyId the company ID 606 * @param name the name 607 * @param scope the scope 608 * @param primKey the prim key 609 * @param start the lower bound of the range of resource permissions 610 * @param end the upper bound of the range of resource permissions (not inclusive) 611 * @return the range of matching resource permissions 612 */ 613 public java.util.List<ResourcePermission> findByC_N_S_P(long companyId, 614 java.lang.String name, int scope, java.lang.String primKey, int start, 615 int end); 616 617 /** 618 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 619 * 620 * <p> 621 * 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 ResourcePermissionModelImpl}. 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. 622 * </p> 623 * 624 * @param companyId the company ID 625 * @param name the name 626 * @param scope the scope 627 * @param primKey the prim key 628 * @param start the lower bound of the range of resource permissions 629 * @param end the upper bound of the range of resource permissions (not inclusive) 630 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 631 * @return the ordered range of matching resource permissions 632 */ 633 public java.util.List<ResourcePermission> findByC_N_S_P(long companyId, 634 java.lang.String name, int scope, java.lang.String primKey, int start, 635 int end, 636 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 637 638 /** 639 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 640 * 641 * @param companyId the company ID 642 * @param name the name 643 * @param scope the scope 644 * @param primKey the prim key 645 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 646 * @return the first matching resource permission 647 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 648 */ 649 public ResourcePermission findByC_N_S_P_First(long companyId, 650 java.lang.String name, int scope, java.lang.String primKey, 651 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 652 throws com.liferay.portal.NoSuchResourcePermissionException; 653 654 /** 655 * Returns the first resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 656 * 657 * @param companyId the company ID 658 * @param name the name 659 * @param scope the scope 660 * @param primKey the prim key 661 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 662 * @return the first matching resource permission, or <code>null</code> if a matching resource permission could not be found 663 */ 664 public ResourcePermission fetchByC_N_S_P_First(long companyId, 665 java.lang.String name, int scope, java.lang.String primKey, 666 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 667 668 /** 669 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 670 * 671 * @param companyId the company ID 672 * @param name the name 673 * @param scope the scope 674 * @param primKey the prim key 675 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 676 * @return the last matching resource permission 677 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 678 */ 679 public ResourcePermission findByC_N_S_P_Last(long companyId, 680 java.lang.String name, int scope, java.lang.String primKey, 681 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 682 throws com.liferay.portal.NoSuchResourcePermissionException; 683 684 /** 685 * Returns the last resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 686 * 687 * @param companyId the company ID 688 * @param name the name 689 * @param scope the scope 690 * @param primKey the prim key 691 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 692 * @return the last matching resource permission, or <code>null</code> if a matching resource permission could not be found 693 */ 694 public ResourcePermission fetchByC_N_S_P_Last(long companyId, 695 java.lang.String name, int scope, java.lang.String primKey, 696 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 697 698 /** 699 * Returns the resource permissions before and after the current resource permission in the ordered set where companyId = ? and name = ? and scope = ? and primKey = ?. 700 * 701 * @param resourcePermissionId the primary key of the current resource permission 702 * @param companyId the company ID 703 * @param name the name 704 * @param scope the scope 705 * @param primKey the prim key 706 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 707 * @return the previous, current, and next resource permission 708 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 709 */ 710 public ResourcePermission[] findByC_N_S_P_PrevAndNext( 711 long resourcePermissionId, long companyId, java.lang.String name, 712 int scope, java.lang.String primKey, 713 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator) 714 throws com.liferay.portal.NoSuchResourcePermissionException; 715 716 /** 717 * Removes all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? from the database. 718 * 719 * @param companyId the company ID 720 * @param name the name 721 * @param scope the scope 722 * @param primKey the prim key 723 */ 724 public void removeByC_N_S_P(long companyId, java.lang.String name, 725 int scope, java.lang.String primKey); 726 727 /** 728 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ?. 729 * 730 * @param companyId the company ID 731 * @param name the name 732 * @param scope the scope 733 * @param primKey the prim key 734 * @return the number of matching resource permissions 735 */ 736 public int countByC_N_S_P(long companyId, java.lang.String name, int scope, 737 java.lang.String primKey); 738 739 /** 740 * Returns all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 741 * 742 * <p> 743 * 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 ResourcePermissionModelImpl}. 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. 744 * </p> 745 * 746 * @param companyId the company ID 747 * @param name the name 748 * @param scope the scope 749 * @param primKey the prim key 750 * @param roleIds the role IDs 751 * @return the matching resource permissions 752 */ 753 public java.util.List<ResourcePermission> findByC_N_S_P_R(long companyId, 754 java.lang.String name, int scope, java.lang.String primKey, 755 long[] roleIds); 756 757 /** 758 * Returns a range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 759 * 760 * <p> 761 * 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 ResourcePermissionModelImpl}. 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. 762 * </p> 763 * 764 * @param companyId the company ID 765 * @param name the name 766 * @param scope the scope 767 * @param primKey the prim key 768 * @param roleIds the role IDs 769 * @param start the lower bound of the range of resource permissions 770 * @param end the upper bound of the range of resource permissions (not inclusive) 771 * @return the range of matching resource permissions 772 */ 773 public java.util.List<ResourcePermission> findByC_N_S_P_R(long companyId, 774 java.lang.String name, int scope, java.lang.String primKey, 775 long[] roleIds, int start, int end); 776 777 /** 778 * Returns an ordered range of all the resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 779 * 780 * <p> 781 * 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 ResourcePermissionModelImpl}. 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. 782 * </p> 783 * 784 * @param companyId the company ID 785 * @param name the name 786 * @param scope the scope 787 * @param primKey the prim key 788 * @param roleIds the role IDs 789 * @param start the lower bound of the range of resource permissions 790 * @param end the upper bound of the range of resource permissions (not inclusive) 791 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 792 * @return the ordered range of matching resource permissions 793 */ 794 public java.util.List<ResourcePermission> findByC_N_S_P_R(long companyId, 795 java.lang.String name, int scope, java.lang.String primKey, 796 long[] roleIds, int start, int end, 797 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 798 799 /** 800 * Returns the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? or throws a {@link NoSuchResourcePermissionException} if it could not be found. 801 * 802 * @param companyId the company ID 803 * @param name the name 804 * @param scope the scope 805 * @param primKey the prim key 806 * @param roleId the role ID 807 * @return the matching resource permission 808 * @throws NoSuchResourcePermissionException if a matching resource permission could not be found 809 */ 810 public ResourcePermission findByC_N_S_P_R(long companyId, 811 java.lang.String name, int scope, java.lang.String primKey, long roleId) 812 throws com.liferay.portal.NoSuchResourcePermissionException; 813 814 /** 815 * Returns the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 816 * 817 * @param companyId the company ID 818 * @param name the name 819 * @param scope the scope 820 * @param primKey the prim key 821 * @param roleId the role ID 822 * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found 823 */ 824 public ResourcePermission fetchByC_N_S_P_R(long companyId, 825 java.lang.String name, int scope, java.lang.String primKey, long roleId); 826 827 /** 828 * Returns the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 829 * 830 * @param companyId the company ID 831 * @param name the name 832 * @param scope the scope 833 * @param primKey the prim key 834 * @param roleId the role ID 835 * @param retrieveFromCache whether to use the finder cache 836 * @return the matching resource permission, or <code>null</code> if a matching resource permission could not be found 837 */ 838 public ResourcePermission fetchByC_N_S_P_R(long companyId, 839 java.lang.String name, int scope, java.lang.String primKey, 840 long roleId, boolean retrieveFromCache); 841 842 /** 843 * Removes the resource permission where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ? from the database. 844 * 845 * @param companyId the company ID 846 * @param name the name 847 * @param scope the scope 848 * @param primKey the prim key 849 * @param roleId the role ID 850 * @return the resource permission that was removed 851 */ 852 public ResourcePermission removeByC_N_S_P_R(long companyId, 853 java.lang.String name, int scope, java.lang.String primKey, long roleId) 854 throws com.liferay.portal.NoSuchResourcePermissionException; 855 856 /** 857 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = ?. 858 * 859 * @param companyId the company ID 860 * @param name the name 861 * @param scope the scope 862 * @param primKey the prim key 863 * @param roleId the role ID 864 * @return the number of matching resource permissions 865 */ 866 public int countByC_N_S_P_R(long companyId, java.lang.String name, 867 int scope, java.lang.String primKey, long roleId); 868 869 /** 870 * Returns the number of resource permissions where companyId = ? and name = ? and scope = ? and primKey = ? and roleId = any ?. 871 * 872 * @param companyId the company ID 873 * @param name the name 874 * @param scope the scope 875 * @param primKey the prim key 876 * @param roleIds the role IDs 877 * @return the number of matching resource permissions 878 */ 879 public int countByC_N_S_P_R(long companyId, java.lang.String name, 880 int scope, java.lang.String primKey, long[] roleIds); 881 882 /** 883 * Caches the resource permission in the entity cache if it is enabled. 884 * 885 * @param resourcePermission the resource permission 886 */ 887 public void cacheResult(ResourcePermission resourcePermission); 888 889 /** 890 * Caches the resource permissions in the entity cache if it is enabled. 891 * 892 * @param resourcePermissions the resource permissions 893 */ 894 public void cacheResult( 895 java.util.List<ResourcePermission> resourcePermissions); 896 897 /** 898 * Creates a new resource permission with the primary key. Does not add the resource permission to the database. 899 * 900 * @param resourcePermissionId the primary key for the new resource permission 901 * @return the new resource permission 902 */ 903 public ResourcePermission create(long resourcePermissionId); 904 905 /** 906 * Removes the resource permission with the primary key from the database. Also notifies the appropriate model listeners. 907 * 908 * @param resourcePermissionId the primary key of the resource permission 909 * @return the resource permission that was removed 910 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 911 */ 912 public ResourcePermission remove(long resourcePermissionId) 913 throws com.liferay.portal.NoSuchResourcePermissionException; 914 915 public ResourcePermission updateImpl(ResourcePermission resourcePermission); 916 917 /** 918 * Returns the resource permission with the primary key or throws a {@link NoSuchResourcePermissionException} if it could not be found. 919 * 920 * @param resourcePermissionId the primary key of the resource permission 921 * @return the resource permission 922 * @throws NoSuchResourcePermissionException if a resource permission with the primary key could not be found 923 */ 924 public ResourcePermission findByPrimaryKey(long resourcePermissionId) 925 throws com.liferay.portal.NoSuchResourcePermissionException; 926 927 /** 928 * Returns the resource permission with the primary key or returns <code>null</code> if it could not be found. 929 * 930 * @param resourcePermissionId the primary key of the resource permission 931 * @return the resource permission, or <code>null</code> if a resource permission with the primary key could not be found 932 */ 933 public ResourcePermission fetchByPrimaryKey(long resourcePermissionId); 934 935 @Override 936 public java.util.Map<java.io.Serializable, ResourcePermission> fetchByPrimaryKeys( 937 java.util.Set<java.io.Serializable> primaryKeys); 938 939 /** 940 * Returns all the resource permissions. 941 * 942 * @return the resource permissions 943 */ 944 public java.util.List<ResourcePermission> findAll(); 945 946 /** 947 * Returns a range of all the resource permissions. 948 * 949 * <p> 950 * 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 ResourcePermissionModelImpl}. 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. 951 * </p> 952 * 953 * @param start the lower bound of the range of resource permissions 954 * @param end the upper bound of the range of resource permissions (not inclusive) 955 * @return the range of resource permissions 956 */ 957 public java.util.List<ResourcePermission> findAll(int start, int end); 958 959 /** 960 * Returns an ordered range of all the resource permissions. 961 * 962 * <p> 963 * 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 ResourcePermissionModelImpl}. 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. 964 * </p> 965 * 966 * @param start the lower bound of the range of resource permissions 967 * @param end the upper bound of the range of resource permissions (not inclusive) 968 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 969 * @return the ordered range of resource permissions 970 */ 971 public java.util.List<ResourcePermission> findAll(int start, int end, 972 com.liferay.portal.kernel.util.OrderByComparator<ResourcePermission> orderByComparator); 973 974 /** 975 * Removes all the resource permissions from the database. 976 */ 977 public void removeAll(); 978 979 /** 980 * Returns the number of resource permissions. 981 * 982 * @return the number of resource permissions 983 */ 984 public int countAll(); 985 }