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 static 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 * Caches the password policy rel in the entity cache if it is enabled. 360 * 361 * @param passwordPolicyRel the password policy rel 362 */ 363 public static void cacheResult( 364 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) { 365 getPersistence().cacheResult(passwordPolicyRel); 366 } 367 368 /** 369 * Caches the password policy rels in the entity cache if it is enabled. 370 * 371 * @param passwordPolicyRels the password policy rels 372 */ 373 public static void cacheResult( 374 java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels) { 375 getPersistence().cacheResult(passwordPolicyRels); 376 } 377 378 /** 379 * Creates a new password policy rel with the primary key. Does not add the password policy rel to the database. 380 * 381 * @param passwordPolicyRelId the primary key for the new password policy rel 382 * @return the new password policy rel 383 */ 384 public static com.liferay.portal.model.PasswordPolicyRel create( 385 long passwordPolicyRelId) { 386 return getPersistence().create(passwordPolicyRelId); 387 } 388 389 /** 390 * Removes the password policy rel with the primary key from the database. Also notifies the appropriate model listeners. 391 * 392 * @param passwordPolicyRelId the primary key of the password policy rel 393 * @return the password policy rel that was removed 394 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 395 * @throws SystemException if a system exception occurred 396 */ 397 public static com.liferay.portal.model.PasswordPolicyRel remove( 398 long passwordPolicyRelId) 399 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 400 com.liferay.portal.kernel.exception.SystemException { 401 return getPersistence().remove(passwordPolicyRelId); 402 } 403 404 public static com.liferay.portal.model.PasswordPolicyRel updateImpl( 405 com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) 406 throws com.liferay.portal.kernel.exception.SystemException { 407 return getPersistence().updateImpl(passwordPolicyRel); 408 } 409 410 /** 411 * Returns the password policy rel with the primary key or throws a {@link com.liferay.portal.NoSuchPasswordPolicyRelException} if it could not be found. 412 * 413 * @param passwordPolicyRelId the primary key of the password policy rel 414 * @return the password policy rel 415 * @throws com.liferay.portal.NoSuchPasswordPolicyRelException if a password policy rel with the primary key could not be found 416 * @throws SystemException if a system exception occurred 417 */ 418 public static com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey( 419 long passwordPolicyRelId) 420 throws com.liferay.portal.NoSuchPasswordPolicyRelException, 421 com.liferay.portal.kernel.exception.SystemException { 422 return getPersistence().findByPrimaryKey(passwordPolicyRelId); 423 } 424 425 /** 426 * Returns the password policy rel with the primary key or returns <code>null</code> if it could not be found. 427 * 428 * @param passwordPolicyRelId the primary key of the password policy rel 429 * @return the password policy rel, or <code>null</code> if a password policy rel with the primary key could not be found 430 * @throws SystemException if a system exception occurred 431 */ 432 public static com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey( 433 long passwordPolicyRelId) 434 throws com.liferay.portal.kernel.exception.SystemException { 435 return getPersistence().fetchByPrimaryKey(passwordPolicyRelId); 436 } 437 438 /** 439 * Returns all the password policy rels. 440 * 441 * @return the password policy rels 442 * @throws SystemException if a system exception occurred 443 */ 444 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll() 445 throws com.liferay.portal.kernel.exception.SystemException { 446 return getPersistence().findAll(); 447 } 448 449 /** 450 * Returns a 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. 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. 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 * @return the range of password policy rels 459 * @throws SystemException if a system exception occurred 460 */ 461 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 462 int start, int end) 463 throws com.liferay.portal.kernel.exception.SystemException { 464 return getPersistence().findAll(start, end); 465 } 466 467 /** 468 * Returns an ordered range of all the password policy rels. 469 * 470 * <p> 471 * 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. 472 * </p> 473 * 474 * @param start the lower bound of the range of password policy rels 475 * @param end the upper bound of the range of password policy rels (not inclusive) 476 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 477 * @return the ordered range of password policy rels 478 * @throws SystemException if a system exception occurred 479 */ 480 public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll( 481 int start, int end, 482 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 483 throws com.liferay.portal.kernel.exception.SystemException { 484 return getPersistence().findAll(start, end, orderByComparator); 485 } 486 487 /** 488 * Removes all the password policy rels from the database. 489 * 490 * @throws SystemException if a system exception occurred 491 */ 492 public static void removeAll() 493 throws com.liferay.portal.kernel.exception.SystemException { 494 getPersistence().removeAll(); 495 } 496 497 /** 498 * Returns the number of password policy rels. 499 * 500 * @return the number of password policy rels 501 * @throws SystemException if a system exception occurred 502 */ 503 public static int countAll() 504 throws com.liferay.portal.kernel.exception.SystemException { 505 return getPersistence().countAll(); 506 } 507 508 public static PasswordPolicyRelPersistence getPersistence() { 509 if (_persistence == null) { 510 _persistence = (PasswordPolicyRelPersistence)PortalBeanLocatorUtil.locate(PasswordPolicyRelPersistence.class.getName()); 511 512 ReferenceRegistry.registerReference(PasswordPolicyRelUtil.class, 513 "_persistence"); 514 } 515 516 return _persistence; 517 } 518 519 /** 520 * @deprecated As of 6.2.0 521 */ 522 public void setPersistence(PasswordPolicyRelPersistence persistence) { 523 } 524 525 private static PasswordPolicyRelPersistence _persistence; 526 }