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, 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 * <p> 255 * 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. 256 * </p> 257 * 258 * @param passwordPolicyId the password policy ID 259 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 260 * @return the first matching password policy rel 261 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 262 * @throws SystemException if a system exception occurred 263 */ 264 public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First( 265 long passwordPolicyId, 266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 267 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 268 com.liferay.portal.kernel.exception.SystemException { 269 return getPersistence() 270 .findByPasswordPolicyId_First(passwordPolicyId, 271 orderByComparator); 272 } 273 274 /** 275 * Returns the last password policy rel in the ordered set where passwordPolicyId = ?. 276 * 277 * <p> 278 * 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. 279 * </p> 280 * 281 * @param passwordPolicyId the password policy ID 282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 283 * @return the last matching password policy rel 284 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 285 * @throws SystemException if a system exception occurred 286 */ 287 public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last( 288 long passwordPolicyId, 289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 290 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 291 com.liferay.portal.kernel.exception.SystemException { 292 return getPersistence() 293 .findByPasswordPolicyId_Last(passwordPolicyId, 294 orderByComparator); 295 } 296 297 /** 298 * Returns the password policy rels before and after the current password policy rel in the ordered set where passwordPolicyId = ?. 299 * 300 * <p> 301 * 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. 302 * </p> 303 * 304 * @param passwordPolicyRelId the primary key of the current password policy rel 305 * @param passwordPolicyId the password policy ID 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the previous, current, and next password policy rel 308 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public static com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext( 312 long passwordPolicyRelId, long passwordPolicyId, 313 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 314 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 315 com.liferay.portal.kernel.exception.SystemException { 316 return getPersistence() 317 .findByPasswordPolicyId_PrevAndNext(passwordPolicyRelId, 318 passwordPolicyId, orderByComparator); 319 } 320 321 /** 322 * Returns the password policy rel where classNameId = ? and classPK = ? or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 323 * 324 * @param classNameId the class name ID 325 * @param classPK the class p k 326 * @return the matching password policy rel 327 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 328 * @throws SystemException if a system exception occurred 329 */ 330 public static com.liferay.portal.model.PasswordPolicyRel findByC_C( 331 long classNameId, long classPK) 332 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 333 com.liferay.portal.kernel.exception.SystemException { 334 return getPersistence().findByC_C(classNameId, classPK); 335 } 336 337 /** 338 * Returns the password policy rel where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 339 * 340 * @param classNameId the class name ID 341 * @param classPK the class p k 342 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 343 * @throws SystemException if a system exception occurred 344 */ 345 public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C( 346 long classNameId, long classPK) 347 throws com.liferay.portal.kernel.exception.SystemException { 348 return getPersistence().fetchByC_C(classNameId, classPK); 349 } 350 351 /** 352 * 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. 353 * 354 * @param classNameId the class name ID 355 * @param classPK the class p k 356 * @param retrieveFromCache whether to use the finder cache 357 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 358 * @throws SystemException if a system exception occurred 359 */ 360 public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C( 361 long classNameId, long classPK, boolean retrieveFromCache) 362 throws com.liferay.portal.kernel.exception.SystemException { 363 return getPersistence() 364 .fetchByC_C(classNameId, classPK, retrieveFromCache); 365 } 366 367 /** 368 * 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. 369 * 370 * @param passwordPolicyId the password policy ID 371 * @param classNameId the class name ID 372 * @param classPK the class p k 373 * @return the matching password policy rel 374 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a matching password policy rel could not be found 375 * @throws SystemException if a system exception occurred 376 */ 377 public static com.liferay.portal.model.PasswordPolicyRel findByP_C_C( 378 long passwordPolicyId, long classNameId, long classPK) 379 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 380 com.liferay.portal.kernel.exception.SystemException { 381 return getPersistence() 382 .findByP_C_C(passwordPolicyId, classNameId, classPK); 383 } 384 385 /** 386 * 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. 387 * 388 * @param passwordPolicyId the password policy ID 389 * @param classNameId the class name ID 390 * @param classPK the class p k 391 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 392 * @throws SystemException if a system exception occurred 393 */ 394 public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C( 395 long passwordPolicyId, long classNameId, long classPK) 396 throws com.liferay.portal.kernel.exception.SystemException { 397 return getPersistence() 398 .fetchByP_C_C(passwordPolicyId, classNameId, classPK); 399 } 400 401 /** 402 * 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. 403 * 404 * @param passwordPolicyId the password policy ID 405 * @param classNameId the class name ID 406 * @param classPK the class p k 407 * @param retrieveFromCache whether to use the finder cache 408 * @return the matching password policy rel, or <code>null</code> if a matching password policy rel could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C( 412 long passwordPolicyId, long classNameId, long classPK, 413 boolean retrieveFromCache) 414 throws com.liferay.portal.kernel.exception.SystemException { 415 return getPersistence() 416 .fetchByP_C_C(passwordPolicyId, classNameId, classPK, 417 retrieveFromCache); 418 } 419 420 /** 421 * Returns all the password policy rels. 422 * 423 * @return the password policy rels 424 * @throws SystemException if a system exception occurred 425 */ 426 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll() 427 throws com.liferay.portal.kernel.exception.SystemException { 428 return getPersistence().findAll(); 429 } 430 431 /** 432 * Returns a range of all the password policy rels. 433 * 434 * <p> 435 * 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. 436 * </p> 437 * 438 * @param start the lower bound of the range of password policy rels 439 * @param end the upper bound of the range of password policy rels (not inclusive) 440 * @return the range of password policy rels 441 * @throws SystemException if a system exception occurred 442 */ 443 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 444 int start, int end) 445 throws com.liferay.portal.kernel.exception.SystemException { 446 return getPersistence().findAll(start, end); 447 } 448 449 /** 450 * Returns an ordered range of all the password policy rels. 451 * 452 * <p> 453 * 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. 454 * </p> 455 * 456 * @param start the lower bound of the range of password policy rels 457 * @param end the upper bound of the range of password policy rels (not inclusive) 458 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 459 * @return the ordered range of password policy rels 460 * @throws SystemException if a system exception occurred 461 */ 462 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 463 int start, int end, 464 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 465 throws com.liferay.portal.kernel.exception.SystemException { 466 return getPersistence().findAll(start, end, orderByComparator); 467 } 468 469 /** 470 * Removes all the password policy rels where passwordPolicyId = ? from the database. 471 * 472 * @param passwordPolicyId the password policy ID 473 * @throws SystemException if a system exception occurred 474 */ 475 public static void removeByPasswordPolicyId(long passwordPolicyId) 476 throws com.liferay.portal.kernel.exception.SystemException { 477 getPersistence().removeByPasswordPolicyId(passwordPolicyId); 478 } 479 480 /** 481 * Removes the password policy rel where classNameId = ? and classPK = ? from the database. 482 * 483 * @param classNameId the class name ID 484 * @param classPK the class p k 485 * @throws SystemException if a system exception occurred 486 */ 487 public static void removeByC_C(long classNameId, long classPK) 488 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 489 com.liferay.portal.kernel.exception.SystemException { 490 getPersistence().removeByC_C(classNameId, classPK); 491 } 492 493 /** 494 * Removes the password policy rel where passwordPolicyId = ? and classNameId = ? and classPK = ? from the database. 495 * 496 * @param passwordPolicyId the password policy ID 497 * @param classNameId the class name ID 498 * @param classPK the class p k 499 * @throws SystemException if a system exception occurred 500 */ 501 public static void removeByP_C_C(long passwordPolicyId, long classNameId, 502 long classPK) 503 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 504 com.liferay.portal.kernel.exception.SystemException { 505 getPersistence().removeByP_C_C(passwordPolicyId, classNameId, classPK); 506 } 507 508 /** 509 * Removes all the password policy rels from the database. 510 * 511 * @throws SystemException if a system exception occurred 512 */ 513 public static void removeAll() 514 throws com.liferay.portal.kernel.exception.SystemException { 515 getPersistence().removeAll(); 516 } 517 518 /** 519 * Returns the number of password policy rels where passwordPolicyId = ?. 520 * 521 * @param passwordPolicyId the password policy ID 522 * @return the number of matching password policy rels 523 * @throws SystemException if a system exception occurred 524 */ 525 public static int countByPasswordPolicyId(long passwordPolicyId) 526 throws com.liferay.portal.kernel.exception.SystemException { 527 return getPersistence().countByPasswordPolicyId(passwordPolicyId); 528 } 529 530 /** 531 * Returns the number of password policy rels where classNameId = ? and classPK = ?. 532 * 533 * @param classNameId the class name ID 534 * @param classPK the class p k 535 * @return the number of matching password policy rels 536 * @throws SystemException if a system exception occurred 537 */ 538 public static int countByC_C(long classNameId, long classPK) 539 throws com.liferay.portal.kernel.exception.SystemException { 540 return getPersistence().countByC_C(classNameId, classPK); 541 } 542 543 /** 544 * Returns the number of password policy rels where passwordPolicyId = ? and classNameId = ? and classPK = ?. 545 * 546 * @param passwordPolicyId the password policy ID 547 * @param classNameId the class name ID 548 * @param classPK the class p k 549 * @return the number of matching password policy rels 550 * @throws SystemException if a system exception occurred 551 */ 552 public static int countByP_C_C(long passwordPolicyId, long classNameId, 553 long classPK) 554 throws com.liferay.portal.kernel.exception.SystemException { 555 return getPersistence() 556 .countByP_C_C(passwordPolicyId, classNameId, classPK); 557 } 558 559 /** 560 * Returns the number of password policy rels. 561 * 562 * @return the number of password policy rels 563 * @throws SystemException if a system exception occurred 564 */ 565 public static int countAll() 566 throws com.liferay.portal.kernel.exception.SystemException { 567 return getPersistence().countAll(); 568 } 569 570 public static PasswordPolicyRelPersistence getPersistence() { 571 if (_persistence == null) { 572 _persistence = (PasswordPolicyRelPersistence)PortalBeanLocatorUtil.locate(PasswordPolicyRelPersistence.class.getName()); 573 574 ReferenceRegistry.registerReference(PasswordPolicyRelUtil.class, 575 "_persistence"); 576 } 577 578 return _persistence; 579 } 580 581 public void setPersistence(PasswordPolicyRelPersistence persistence) { 582 _persistence = persistence; 583 584 ReferenceRegistry.registerReference(PasswordPolicyRelUtil.class, 585 "_persistence"); 586 } 587 588 private static PasswordPolicyRelPersistence _persistence; 589 }