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