001 /** 002 * Copyright (c) 2000-2013 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, boolean) 098 */ 099 public static PasswordPolicyRel update( 100 PasswordPolicyRel passwordPolicyRel, boolean merge) 101 throws SystemException { 102 return getPersistence().update(passwordPolicyRel, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static PasswordPolicyRel update( 109 PasswordPolicyRel passwordPolicyRel, boolean merge, 110 ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(passwordPolicyRel, merge, serviceContext); 112 } 113 114 /** 115 * Caches the password policy rel in the entity cache if it is enabled. 116 * 117 * @param passwordPolicyRel the password policy rel 118 */ 119 public static void cacheResult( 120 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) { 121 getPersistence().cacheResult(passwordPolicyRel); 122 } 123 124 /** 125 * Caches the password policy rels in the entity cache if it is enabled. 126 * 127 * @param passwordPolicyRels the password policy rels 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels) { 131 getPersistence().cacheResult(passwordPolicyRels); 132 } 133 134 /** 135 * Creates a new password policy rel with the primary key. Does not add the password policy rel to the database. 136 * 137 * @param passwordPolicyRelId the primary key for the new password policy rel 138 * @return the new password policy rel 139 */ 140 public static com.liferay.portal.model.PasswordPolicyRel create( 141 long passwordPolicyRelId) { 142 return getPersistence().create(passwordPolicyRelId); 143 } 144 145 /** 146 * Removes the password policy rel with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param passwordPolicyRelId the primary key of the password policy rel 149 * @return the password policy rel that was removed 150 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portal.model.PasswordPolicyRel remove( 154 long passwordPolicyRelId) 155 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 156 com.liferay.portal.kernel.exception.SystemException { 157 return getPersistence().remove(passwordPolicyRelId); 158 } 159 160 public static com.liferay.portal.model.PasswordPolicyRel updateImpl( 161 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel, 162 boolean merge) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence().updateImpl(passwordPolicyRel, merge); 165 } 166 167 /** 168 * Returns the password policy rel with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 169 * 170 * @param passwordPolicyRelId the primary key of the password policy rel 171 * @return the password policy rel 172 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey( 176 long passwordPolicyRelId) 177 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 178 com.liferay.portal.kernel.exception.SystemException { 179 return getPersistence().findByPrimaryKey(passwordPolicyRelId); 180 } 181 182 /** 183 * Returns the password policy rel with the primary key or returns <code>null</code> if it could not be found. 184 * 185 * @param passwordPolicyRelId the primary key of the password policy rel 186 * @return the password policy rel, or <code>null</code> if a password policy rel with the primary key could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public static com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey( 190 long passwordPolicyRelId) 191 throws com.liferay.portal.kernel.exception.SystemException { 192 return getPersistence().fetchByPrimaryKey(passwordPolicyRelId); 193 } 194 195 /** 196 * Returns all the password policy rels where passwordPolicyId = ?. 197 * 198 * @param passwordPolicyId the password policy ID 199 * @return the matching password policy rels 200 * @throws SystemException if a system exception occurred 201 */ 202 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 203 long passwordPolicyId) 204 throws com.liferay.portal.kernel.exception.SystemException { 205 return getPersistence().findByPasswordPolicyId(passwordPolicyId); 206 } 207 208 /** 209 * Returns a range of all the password policy rels where passwordPolicyId = ?. 210 * 211 * <p> 212 * 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. 213 * </p> 214 * 215 * @param passwordPolicyId the password policy ID 216 * @param start the lower bound of the range of password policy rels 217 * @param end the upper bound of the range of password policy rels (not inclusive) 218 * @return the range of matching password policy rels 219 * @throws SystemException if a system exception occurred 220 */ 221 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 222 long passwordPolicyId, int start, int end) 223 throws com.liferay.portal.kernel.exception.SystemException { 224 return getPersistence() 225 .findByPasswordPolicyId(passwordPolicyId, start, end); 226 } 227 228 /** 229 * Returns an ordered range of all the password policy rels where passwordPolicyId = ?. 230 * 231 * <p> 232 * 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. 233 * </p> 234 * 235 * @param passwordPolicyId the password policy ID 236 * @param start the lower bound of the range of password policy rels 237 * @param end the upper bound of the range of password policy rels (not inclusive) 238 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 239 * @return the ordered range of matching password policy rels 240 * @throws SystemException if a system exception occurred 241 */ 242 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId( 243 long passwordPolicyId, int start, int end, 244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 245 throws com.liferay.portal.kernel.exception.SystemException { 246 return getPersistence() 247 .findByPasswordPolicyId(passwordPolicyId, start, end, 248 orderByComparator); 249 } 250 251 /** 252 * Returns the first password policy rel in the ordered set where passwordPolicyId = ?. 253 * 254 * @param passwordPolicyId the password policy ID 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the first matching password policy rel 257 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First( 261 long passwordPolicyId, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 264 com.liferay.portal.kernel.exception.SystemException { 265 return getPersistence() 266 .findByPasswordPolicyId_First(passwordPolicyId, 267 orderByComparator); 268 } 269 270 /** 271 * Returns the first password policy rel in the ordered set where passwordPolicyId = ?. 272 * 273 * @param passwordPolicyId the password policy ID 274 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 275 * @return the first matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 276 * @throws SystemException if a system exception occurred 277 */ 278 public static com.liferay.portal.model.PasswordPolicyRel fetchByPasswordPolicyId_First( 279 long passwordPolicyId, 280 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 281 throws com.liferay.portal.kernel.exception.SystemException { 282 return getPersistence() 283 .fetchByPasswordPolicyId_First(passwordPolicyId, 284 orderByComparator); 285 } 286 287 /** 288 * Returns the last password policy rel in the ordered set where passwordPolicyId = ?. 289 * 290 * @param passwordPolicyId the password policy ID 291 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 292 * @return the last matching password policy rel 293 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 294 * @throws SystemException if a system exception occurred 295 */ 296 public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last( 297 long passwordPolicyId, 298 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 299 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 300 com.liferay.portal.kernel.exception.SystemException { 301 return getPersistence() 302 .findByPasswordPolicyId_Last(passwordPolicyId, 303 orderByComparator); 304 } 305 306 /** 307 * Returns the last password policy rel in the ordered set where passwordPolicyId = ?. 308 * 309 * @param passwordPolicyId the password policy ID 310 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 311 * @return the last matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public static com.liferay.portal.model.PasswordPolicyRel fetchByPasswordPolicyId_Last( 315 long passwordPolicyId, 316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 317 throws com.liferay.portal.kernel.exception.SystemException { 318 return getPersistence() 319 .fetchByPasswordPolicyId_Last(passwordPolicyId, 320 orderByComparator); 321 } 322 323 /** 324 * Returns the password policy rels before and after the current password policy rel in the ordered set where passwordPolicyId = ?. 325 * 326 * @param passwordPolicyRelId the primary key of the current password policy rel 327 * @param passwordPolicyId the password policy ID 328 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 329 * @return the previous, current, and next password policy rel 330 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 331 * @throws SystemException if a system exception occurred 332 */ 333 public static com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext( 334 long passwordPolicyRelId, long passwordPolicyId, 335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 336 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 337 com.liferay.portal.kernel.exception.SystemException { 338 return getPersistence() 339 .findByPasswordPolicyId_PrevAndNext(passwordPolicyRelId, 340 passwordPolicyId, orderByComparator); 341 } 342 343 /** 344 * Returns the password policy rel where classNameId = ? and classPK = ? or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 345 * 346 * @param classNameId the class name ID 347 * @param classPK the class p k 348 * @return the matching password policy rel 349 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public static com.liferay.portal.model.PasswordPolicyRel findByC_C( 353 long classNameId, long classPK) 354 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 355 com.liferay.portal.kernel.exception.SystemException { 356 return getPersistence().findByC_C(classNameId, classPK); 357 } 358 359 /** 360 * Returns the password policy rel where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 361 * 362 * @param classNameId the class name ID 363 * @param classPK the class p k 364 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 365 * @throws SystemException if a system exception occurred 366 */ 367 public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C( 368 long classNameId, long classPK) 369 throws com.liferay.portal.kernel.exception.SystemException { 370 return getPersistence().fetchByC_C(classNameId, classPK); 371 } 372 373 /** 374 * 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. 375 * 376 * @param classNameId the class name ID 377 * @param classPK the class p k 378 * @param retrieveFromCache whether to use the finder cache 379 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 380 * @throws SystemException if a system exception occurred 381 */ 382 public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C( 383 long classNameId, long classPK, boolean retrieveFromCache) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence() 386 .fetchByC_C(classNameId, classPK, retrieveFromCache); 387 } 388 389 /** 390 * 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. 391 * 392 * @param passwordPolicyId the password policy ID 393 * @param classNameId the class name ID 394 * @param classPK the class p k 395 * @return the matching password policy rel 396 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 397 * @throws SystemException if a system exception occurred 398 */ 399 public static com.liferay.portal.model.PasswordPolicyRel findByP_C_C( 400 long passwordPolicyId, long classNameId, long classPK) 401 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 402 com.liferay.portal.kernel.exception.SystemException { 403 return getPersistence() 404 .findByP_C_C(passwordPolicyId, classNameId, classPK); 405 } 406 407 /** 408 * 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. 409 * 410 * @param passwordPolicyId the password policy ID 411 * @param classNameId the class name ID 412 * @param classPK the class p k 413 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 414 * @throws SystemException if a system exception occurred 415 */ 416 public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C( 417 long passwordPolicyId, long classNameId, long classPK) 418 throws com.liferay.portal.kernel.exception.SystemException { 419 return getPersistence() 420 .fetchByP_C_C(passwordPolicyId, classNameId, classPK); 421 } 422 423 /** 424 * 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. 425 * 426 * @param passwordPolicyId the password policy ID 427 * @param classNameId the class name ID 428 * @param classPK the class p k 429 * @param retrieveFromCache whether to use the finder cache 430 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 431 * @throws SystemException if a system exception occurred 432 */ 433 public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C( 434 long passwordPolicyId, long classNameId, long classPK, 435 boolean retrieveFromCache) 436 throws com.liferay.portal.kernel.exception.SystemException { 437 return getPersistence() 438 .fetchByP_C_C(passwordPolicyId, classNameId, classPK, 439 retrieveFromCache); 440 } 441 442 /** 443 * Returns all the password policy rels. 444 * 445 * @return the password policy rels 446 * @throws SystemException if a system exception occurred 447 */ 448 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll() 449 throws com.liferay.portal.kernel.exception.SystemException { 450 return getPersistence().findAll(); 451 } 452 453 /** 454 * Returns a range of all the password policy rels. 455 * 456 * <p> 457 * 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. 458 * </p> 459 * 460 * @param start the lower bound of the range of password policy rels 461 * @param end the upper bound of the range of password policy rels (not inclusive) 462 * @return the range of password policy rels 463 * @throws SystemException if a system exception occurred 464 */ 465 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 466 int start, int end) 467 throws com.liferay.portal.kernel.exception.SystemException { 468 return getPersistence().findAll(start, end); 469 } 470 471 /** 472 * Returns an ordered range of all the password policy rels. 473 * 474 * <p> 475 * 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. 476 * </p> 477 * 478 * @param start the lower bound of the range of password policy rels 479 * @param end the upper bound of the range of password policy rels (not inclusive) 480 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 481 * @return the ordered range of password policy rels 482 * @throws SystemException if a system exception occurred 483 */ 484 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 485 int start, int end, 486 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 487 throws com.liferay.portal.kernel.exception.SystemException { 488 return getPersistence().findAll(start, end, orderByComparator); 489 } 490 491 /** 492 * Removes all the password policy rels where passwordPolicyId = ? from the database. 493 * 494 * @param passwordPolicyId the password policy ID 495 * @throws SystemException if a system exception occurred 496 */ 497 public static void removeByPasswordPolicyId(long passwordPolicyId) 498 throws com.liferay.portal.kernel.exception.SystemException { 499 getPersistence().removeByPasswordPolicyId(passwordPolicyId); 500 } 501 502 /** 503 * Removes the password policy rel where classNameId = ? and classPK = ? from the database. 504 * 505 * @param classNameId the class name ID 506 * @param classPK the class p k 507 * @return the password policy rel that was removed 508 * @throws SystemException if a system exception occurred 509 */ 510 public static com.liferay.portal.model.PasswordPolicyRel removeByC_C( 511 long classNameId, long classPK) 512 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 513 com.liferay.portal.kernel.exception.SystemException { 514 return getPersistence().removeByC_C(classNameId, classPK); 515 } 516 517 /** 518 * Removes the password policy rel where passwordPolicyId = ? and classNameId = ? and classPK = ? from the database. 519 * 520 * @param passwordPolicyId the password policy ID 521 * @param classNameId the class name ID 522 * @param classPK the class p k 523 * @return the password policy rel that was removed 524 * @throws SystemException if a system exception occurred 525 */ 526 public static com.liferay.portal.model.PasswordPolicyRel removeByP_C_C( 527 long passwordPolicyId, long classNameId, long classPK) 528 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 529 com.liferay.portal.kernel.exception.SystemException { 530 return getPersistence() 531 .removeByP_C_C(passwordPolicyId, classNameId, classPK); 532 } 533 534 /** 535 * Removes all the password policy rels from the database. 536 * 537 * @throws SystemException if a system exception occurred 538 */ 539 public static void removeAll() 540 throws com.liferay.portal.kernel.exception.SystemException { 541 getPersistence().removeAll(); 542 } 543 544 /** 545 * Returns the number of password policy rels where passwordPolicyId = ?. 546 * 547 * @param passwordPolicyId the password policy ID 548 * @return the number of matching password policy rels 549 * @throws SystemException if a system exception occurred 550 */ 551 public static int countByPasswordPolicyId(long passwordPolicyId) 552 throws com.liferay.portal.kernel.exception.SystemException { 553 return getPersistence().countByPasswordPolicyId(passwordPolicyId); 554 } 555 556 /** 557 * Returns the number of password policy rels where classNameId = ? and classPK = ?. 558 * 559 * @param classNameId the class name ID 560 * @param classPK the class p k 561 * @return the number of matching password policy rels 562 * @throws SystemException if a system exception occurred 563 */ 564 public static int countByC_C(long classNameId, long classPK) 565 throws com.liferay.portal.kernel.exception.SystemException { 566 return getPersistence().countByC_C(classNameId, classPK); 567 } 568 569 /** 570 * Returns the number of password policy rels where passwordPolicyId = ? and classNameId = ? and classPK = ?. 571 * 572 * @param passwordPolicyId the password policy ID 573 * @param classNameId the class name ID 574 * @param classPK the class p k 575 * @return the number of matching password policy rels 576 * @throws SystemException if a system exception occurred 577 */ 578 public static int countByP_C_C(long passwordPolicyId, long classNameId, 579 long classPK) 580 throws com.liferay.portal.kernel.exception.SystemException { 581 return getPersistence() 582 .countByP_C_C(passwordPolicyId, classNameId, classPK); 583 } 584 585 /** 586 * Returns the number of password policy rels. 587 * 588 * @return the number of password policy rels 589 * @throws SystemException if a system exception occurred 590 */ 591 public static int countAll() 592 throws com.liferay.portal.kernel.exception.SystemException { 593 return getPersistence().countAll(); 594 } 595 596 public static PasswordPolicyRelPersistence getPersistence() { 597 if (_persistence == null) { 598 _persistence = (PasswordPolicyRelPersistence)PortalBeanLocatorUtil.locate(PasswordPolicyRelPersistence.class.getName()); 599 600 ReferenceRegistry.registerReference(PasswordPolicyRelUtil.class, 601 "_persistence"); 602 } 603 604 return _persistence; 605 } 606 607 /** 608 * @deprecated 609 */ 610 public void setPersistence(PasswordPolicyRelPersistence persistence) { 611 } 612 613 private static PasswordPolicyRelPersistence _persistence; 614 }