001 /** 002 * Copyright (c) 2000-2012 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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.model.PasswordPolicyRel; 023 import com.liferay.portal.service.ServiceContext; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the password policy rel service. This utility wraps {@link PasswordPolicyRelPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 029 * 030 * <p> 031 * Caching information and settings can be found in <code>portal.properties</code> 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see PasswordPolicyRelPersistence 036 * @see PasswordPolicyRelPersistenceImpl 037 * @generated 038 */ 039 public class PasswordPolicyRelUtil { 040 /* 041 * NOTE FOR DEVELOPERS: 042 * 043 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 044 */ 045 046 /** 047 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 048 */ 049 public static void clearCache() { 050 getPersistence().clearCache(); 051 } 052 053 /** 054 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 055 */ 056 public static void clearCache(PasswordPolicyRel passwordPolicyRel) { 057 getPersistence().clearCache(passwordPolicyRel); 058 } 059 060 /** 061 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 062 */ 063 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 064 throws SystemException { 065 return getPersistence().countWithDynamicQuery(dynamicQuery); 066 } 067 068 /** 069 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 070 */ 071 public static List<PasswordPolicyRel> findWithDynamicQuery( 072 DynamicQuery dynamicQuery) throws SystemException { 073 return getPersistence().findWithDynamicQuery(dynamicQuery); 074 } 075 076 /** 077 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 078 */ 079 public static List<PasswordPolicyRel> findWithDynamicQuery( 080 DynamicQuery dynamicQuery, int start, int end) 081 throws SystemException { 082 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 083 } 084 085 /** 086 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 087 */ 088 public static List<PasswordPolicyRel> findWithDynamicQuery( 089 DynamicQuery dynamicQuery, int start, int end, 090 OrderByComparator orderByComparator) throws SystemException { 091 return getPersistence() 092 .findWithDynamicQuery(dynamicQuery, start, end, 093 orderByComparator); 094 } 095 096 /** 097 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 098 */ 099 public static PasswordPolicyRel update(PasswordPolicyRel passwordPolicyRel) 100 throws SystemException { 101 return getPersistence().update(passwordPolicyRel); 102 } 103 104 /** 105 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 106 */ 107 public static PasswordPolicyRel update( 108 PasswordPolicyRel passwordPolicyRel, ServiceContext serviceContext) 109 throws SystemException { 110 return getPersistence().update(passwordPolicyRel, serviceContext); 111 } 112 113 /** 114 * Returns all the password policy rels where passwordPolicyId = ?. 115 * 116 * @param passwordPolicyId the password policy ID 117 * @return the matching password policy rels 118 * @throws SystemException if a system exception occurred 119 */ 120 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 121 long passwordPolicyId) 122 throws com.liferay.portal.kernel.exception.SystemException { 123 return getPersistence().findByPasswordPolicyId(passwordPolicyId); 124 } 125 126 /** 127 * Returns a range of all the password policy rels where passwordPolicyId = ?. 128 * 129 * <p> 130 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordPolicyRelModelImpl}. 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. 131 * </p> 132 * 133 * @param passwordPolicyId the password policy ID 134 * @param start the lower bound of the range of password policy rels 135 * @param end the upper bound of the range of password policy rels (not inclusive) 136 * @return the range of matching password policy rels 137 * @throws SystemException if a system exception occurred 138 */ 139 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 140 long passwordPolicyId, int start, int end) 141 throws com.liferay.portal.kernel.exception.SystemException { 142 return getPersistence() 143 .findByPasswordPolicyId(passwordPolicyId, start, end); 144 } 145 146 /** 147 * Returns an ordered range of all the password policy rels where passwordPolicyId = ?. 148 * 149 * <p> 150 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordPolicyRelModelImpl}. 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. 151 * </p> 152 * 153 * @param passwordPolicyId the password policy ID 154 * @param start the lower bound of the range of password policy rels 155 * @param end the upper bound of the range of password policy rels (not inclusive) 156 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 157 * @return the ordered range of matching password policy rels 158 * @throws SystemException if a system exception occurred 159 */ 160 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 161 long passwordPolicyId, int start, int end, 162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence() 165 .findByPasswordPolicyId(passwordPolicyId, start, end, 166 orderByComparator); 167 } 168 169 /** 170 * Returns the first password policy rel in the ordered set where passwordPolicyId = ?. 171 * 172 * @param passwordPolicyId the password policy ID 173 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 174 * @return the first matching password policy rel 175 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First( 179 long passwordPolicyId, 180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 181 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 182 com.liferay.portal.kernel.exception.SystemException { 183 return getPersistence() 184 .findByPasswordPolicyId_First(passwordPolicyId, 185 orderByComparator); 186 } 187 188 /** 189 * Returns the first password policy rel in the ordered set where passwordPolicyId = ?. 190 * 191 * @param passwordPolicyId the password policy ID 192 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 193 * @return the first matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 194 * @throws SystemException if a system exception occurred 195 */ 196 public static com.liferay.portal.model.PasswordPolicyRel fetchByPasswordPolicyId_First( 197 long passwordPolicyId, 198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 199 throws com.liferay.portal.kernel.exception.SystemException { 200 return getPersistence() 201 .fetchByPasswordPolicyId_First(passwordPolicyId, 202 orderByComparator); 203 } 204 205 /** 206 * Returns the last password policy rel in the ordered set where passwordPolicyId = ?. 207 * 208 * @param passwordPolicyId the password policy ID 209 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 210 * @return the last matching password policy rel 211 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 212 * @throws SystemException if a system exception occurred 213 */ 214 public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last( 215 long passwordPolicyId, 216 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 217 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 218 com.liferay.portal.kernel.exception.SystemException { 219 return getPersistence() 220 .findByPasswordPolicyId_Last(passwordPolicyId, 221 orderByComparator); 222 } 223 224 /** 225 * Returns the last password policy rel in the ordered set where passwordPolicyId = ?. 226 * 227 * @param passwordPolicyId the password policy ID 228 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 229 * @return the last matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 230 * @throws SystemException if a system exception occurred 231 */ 232 public static com.liferay.portal.model.PasswordPolicyRel fetchByPasswordPolicyId_Last( 233 long passwordPolicyId, 234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 235 throws com.liferay.portal.kernel.exception.SystemException { 236 return getPersistence() 237 .fetchByPasswordPolicyId_Last(passwordPolicyId, 238 orderByComparator); 239 } 240 241 /** 242 * Returns the password policy rels before and after the current password policy rel in the ordered set where passwordPolicyId = ?. 243 * 244 * @param passwordPolicyRelId the primary key of the current password policy rel 245 * @param passwordPolicyId the password policy ID 246 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 247 * @return the previous, current, and next password policy rel 248 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 249 * @throws SystemException if a system exception occurred 250 */ 251 public static com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext( 252 long passwordPolicyRelId, long passwordPolicyId, 253 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 254 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 255 com.liferay.portal.kernel.exception.SystemException { 256 return getPersistence() 257 .findByPasswordPolicyId_PrevAndNext(passwordPolicyRelId, 258 passwordPolicyId, orderByComparator); 259 } 260 261 /** 262 * Removes all the password policy rels where passwordPolicyId = ? from the database. 263 * 264 * @param passwordPolicyId the password policy ID 265 * @throws SystemException if a system exception occurred 266 */ 267 public static void removeByPasswordPolicyId(long passwordPolicyId) 268 throws com.liferay.portal.kernel.exception.SystemException { 269 getPersistence().removeByPasswordPolicyId(passwordPolicyId); 270 } 271 272 /** 273 * Returns the number of password policy rels where passwordPolicyId = ?. 274 * 275 * @param passwordPolicyId the password policy ID 276 * @return the number of matching password policy rels 277 * @throws SystemException if a system exception occurred 278 */ 279 public static int countByPasswordPolicyId(long passwordPolicyId) 280 throws com.liferay.portal.kernel.exception.SystemException { 281 return getPersistence().countByPasswordPolicyId(passwordPolicyId); 282 } 283 284 /** 285 * Returns the password policy rel where classNameId = ? and classPK = ? or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 286 * 287 * @param classNameId the class name ID 288 * @param classPK the class p k 289 * @return the matching password policy rel 290 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 291 * @throws SystemException if a system exception occurred 292 */ 293 public static com.liferay.portal.model.PasswordPolicyRel findByC_C( 294 long classNameId, long classPK) 295 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 296 com.liferay.portal.kernel.exception.SystemException { 297 return getPersistence().findByC_C(classNameId, classPK); 298 } 299 300 /** 301 * Returns the password policy rel where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 302 * 303 * @param classNameId the class name ID 304 * @param classPK the class p k 305 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C( 309 long classNameId, long classPK) 310 throws com.liferay.portal.kernel.exception.SystemException { 311 return getPersistence().fetchByC_C(classNameId, classPK); 312 } 313 314 /** 315 * Returns the password policy rel where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 316 * 317 * @param classNameId the class name ID 318 * @param classPK the class p k 319 * @param retrieveFromCache whether to use the finder cache 320 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 321 * @throws SystemException if a system exception occurred 322 */ 323 public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C( 324 long classNameId, long classPK, boolean retrieveFromCache) 325 throws com.liferay.portal.kernel.exception.SystemException { 326 return getPersistence() 327 .fetchByC_C(classNameId, classPK, retrieveFromCache); 328 } 329 330 /** 331 * Removes the password policy rel where classNameId = ? and classPK = ? from the database. 332 * 333 * @param classNameId the class name ID 334 * @param classPK the class p k 335 * @return the password policy rel that was removed 336 * @throws SystemException if a system exception occurred 337 */ 338 public static com.liferay.portal.model.PasswordPolicyRel removeByC_C( 339 long classNameId, long classPK) 340 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 341 com.liferay.portal.kernel.exception.SystemException { 342 return getPersistence().removeByC_C(classNameId, classPK); 343 } 344 345 /** 346 * Returns the number of password policy rels where classNameId = ? and classPK = ?. 347 * 348 * @param classNameId the class name ID 349 * @param classPK the class p k 350 * @return the number of matching password policy rels 351 * @throws SystemException if a system exception occurred 352 */ 353 public static int countByC_C(long classNameId, long classPK) 354 throws com.liferay.portal.kernel.exception.SystemException { 355 return getPersistence().countByC_C(classNameId, classPK); 356 } 357 358 /** 359 * Returns the password policy rel where passwordPolicyId = ? and classNameId = ? and classPK = ? or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 360 * 361 * @param passwordPolicyId the password policy ID 362 * @param classNameId the class name ID 363 * @param classPK the class p k 364 * @return the matching password policy rel 365 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 366 * @throws SystemException if a system exception occurred 367 */ 368 public static com.liferay.portal.model.PasswordPolicyRel findByP_C_C( 369 long passwordPolicyId, long classNameId, long classPK) 370 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 371 com.liferay.portal.kernel.exception.SystemException { 372 return getPersistence() 373 .findByP_C_C(passwordPolicyId, classNameId, classPK); 374 } 375 376 /** 377 * Returns the password policy rel where passwordPolicyId = ? and classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 378 * 379 * @param passwordPolicyId the password policy ID 380 * @param classNameId the class name ID 381 * @param classPK the class p k 382 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 383 * @throws SystemException if a system exception occurred 384 */ 385 public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C( 386 long passwordPolicyId, long classNameId, long classPK) 387 throws com.liferay.portal.kernel.exception.SystemException { 388 return getPersistence() 389 .fetchByP_C_C(passwordPolicyId, classNameId, classPK); 390 } 391 392 /** 393 * Returns the password policy rel where passwordPolicyId = ? and classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 394 * 395 * @param passwordPolicyId the password policy ID 396 * @param classNameId the class name ID 397 * @param classPK the class p k 398 * @param retrieveFromCache whether to use the finder cache 399 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 400 * @throws SystemException if a system exception occurred 401 */ 402 public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C( 403 long passwordPolicyId, long classNameId, long classPK, 404 boolean retrieveFromCache) 405 throws com.liferay.portal.kernel.exception.SystemException { 406 return getPersistence() 407 .fetchByP_C_C(passwordPolicyId, classNameId, classPK, 408 retrieveFromCache); 409 } 410 411 /** 412 * Removes the password policy rel where passwordPolicyId = ? and classNameId = ? and classPK = ? from the database. 413 * 414 * @param passwordPolicyId the password policy ID 415 * @param classNameId the class name ID 416 * @param classPK the class p k 417 * @return the password policy rel that was removed 418 * @throws SystemException if a system exception occurred 419 */ 420 public static com.liferay.portal.model.PasswordPolicyRel removeByP_C_C( 421 long passwordPolicyId, long classNameId, long classPK) 422 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 423 com.liferay.portal.kernel.exception.SystemException { 424 return getPersistence() 425 .removeByP_C_C(passwordPolicyId, classNameId, classPK); 426 } 427 428 /** 429 * Returns the number of password policy rels where passwordPolicyId = ? and classNameId = ? and classPK = ?. 430 * 431 * @param passwordPolicyId the password policy ID 432 * @param classNameId the class name ID 433 * @param classPK the class p k 434 * @return the number of matching password policy rels 435 * @throws SystemException if a system exception occurred 436 */ 437 public static int countByP_C_C(long passwordPolicyId, long classNameId, 438 long classPK) 439 throws com.liferay.portal.kernel.exception.SystemException { 440 return getPersistence() 441 .countByP_C_C(passwordPolicyId, classNameId, classPK); 442 } 443 444 /** 445 * Caches the password policy rel in the entity cache if it is enabled. 446 * 447 * @param passwordPolicyRel the password policy rel 448 */ 449 public static void cacheResult( 450 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) { 451 getPersistence().cacheResult(passwordPolicyRel); 452 } 453 454 /** 455 * Caches the password policy rels in the entity cache if it is enabled. 456 * 457 * @param passwordPolicyRels the password policy rels 458 */ 459 public static void cacheResult( 460 java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels) { 461 getPersistence().cacheResult(passwordPolicyRels); 462 } 463 464 /** 465 * Creates a new password policy rel with the primary key. Does not add the password policy rel to the database. 466 * 467 * @param passwordPolicyRelId the primary key for the new password policy rel 468 * @return the new password policy rel 469 */ 470 public static com.liferay.portal.model.PasswordPolicyRel create( 471 long passwordPolicyRelId) { 472 return getPersistence().create(passwordPolicyRelId); 473 } 474 475 /** 476 * Removes the password policy rel with the primary key from the database. Also notifies the appropriate model listeners. 477 * 478 * @param passwordPolicyRelId the primary key of the password policy rel 479 * @return the password policy rel that was removed 480 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 481 * @throws SystemException if a system exception occurred 482 */ 483 public static com.liferay.portal.model.PasswordPolicyRel remove( 484 long passwordPolicyRelId) 485 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 486 com.liferay.portal.kernel.exception.SystemException { 487 return getPersistence().remove(passwordPolicyRelId); 488 } 489 490 public static com.liferay.portal.model.PasswordPolicyRel updateImpl( 491 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) 492 throws com.liferay.portal.kernel.exception.SystemException { 493 return getPersistence().updateImpl(passwordPolicyRel); 494 } 495 496 /** 497 * Returns the password policy rel with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 498 * 499 * @param passwordPolicyRelId the primary key of the password policy rel 500 * @return the password policy rel 501 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 502 * @throws SystemException if a system exception occurred 503 */ 504 public static com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey( 505 long passwordPolicyRelId) 506 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 507 com.liferay.portal.kernel.exception.SystemException { 508 return getPersistence().findByPrimaryKey(passwordPolicyRelId); 509 } 510 511 /** 512 * Returns the password policy rel with the primary key or returns <code>null</code> if it could not be found. 513 * 514 * @param passwordPolicyRelId the primary key of the password policy rel 515 * @return the password policy rel, or <code>null</code> if a password policy rel with the primary key could not be found 516 * @throws SystemException if a system exception occurred 517 */ 518 public static com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey( 519 long passwordPolicyRelId) 520 throws com.liferay.portal.kernel.exception.SystemException { 521 return getPersistence().fetchByPrimaryKey(passwordPolicyRelId); 522 } 523 524 /** 525 * Returns all the password policy rels. 526 * 527 * @return the password policy rels 528 * @throws SystemException if a system exception occurred 529 */ 530 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll() 531 throws com.liferay.portal.kernel.exception.SystemException { 532 return getPersistence().findAll(); 533 } 534 535 /** 536 * Returns a range of all the password policy rels. 537 * 538 * <p> 539 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordPolicyRelModelImpl}. 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. 540 * </p> 541 * 542 * @param start the lower bound of the range of password policy rels 543 * @param end the upper bound of the range of password policy rels (not inclusive) 544 * @return the range of password policy rels 545 * @throws SystemException if a system exception occurred 546 */ 547 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 548 int start, int end) 549 throws com.liferay.portal.kernel.exception.SystemException { 550 return getPersistence().findAll(start, end); 551 } 552 553 /** 554 * Returns an ordered range of all the password policy rels. 555 * 556 * <p> 557 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.PasswordPolicyRelModelImpl}. 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. 558 * </p> 559 * 560 * @param start the lower bound of the range of password policy rels 561 * @param end the upper bound of the range of password policy rels (not inclusive) 562 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 563 * @return the ordered range of password policy rels 564 * @throws SystemException if a system exception occurred 565 */ 566 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 567 int start, int end, 568 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 569 throws com.liferay.portal.kernel.exception.SystemException { 570 return getPersistence().findAll(start, end, orderByComparator); 571 } 572 573 /** 574 * Removes all the password policy rels from the database. 575 * 576 * @throws SystemException if a system exception occurred 577 */ 578 public static void removeAll() 579 throws com.liferay.portal.kernel.exception.SystemException { 580 getPersistence().removeAll(); 581 } 582 583 /** 584 * Returns the number of password policy rels. 585 * 586 * @return the number of password policy rels 587 * @throws SystemException if a system exception occurred 588 */ 589 public static int countAll() 590 throws com.liferay.portal.kernel.exception.SystemException { 591 return getPersistence().countAll(); 592 } 593 594 public static PasswordPolicyRelPersistence getPersistence() { 595 if (_persistence == null) { 596 _persistence = (PasswordPolicyRelPersistence)PortalBeanLocatorUtil.locate(PasswordPolicyRelPersistence.class.getName()); 597 598 ReferenceRegistry.registerReference(PasswordPolicyRelUtil.class, 599 "_persistence"); 600 } 601 602 return _persistence; 603 } 604 605 /** 606 * @deprecated 607 */ 608 public void setPersistence(PasswordPolicyRelPersistence persistence) { 609 } 610 611 private static PasswordPolicyRelPersistence _persistence; 612 }