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