1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  import com.liferay.portal.model.PasswordPolicyRel;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="PasswordPolicyRelUtil.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * @author    Brian Wing Shun Chan
33   * @see       PasswordPolicyRelPersistence
34   * @see       PasswordPolicyRelPersistenceImpl
35   * @generated
36   */
37  public class PasswordPolicyRelUtil {
38      /**
39       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
40       */
41      public static void clearCache() {
42          getPersistence().clearCache();
43      }
44  
45      /**
46       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
47       */
48      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
49          throws SystemException {
50          return getPersistence().findWithDynamicQuery(dynamicQuery);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
55       */
56      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
57          int start, int end) throws SystemException {
58          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
63       */
64      public static PasswordPolicyRel remove(PasswordPolicyRel passwordPolicyRel)
65          throws SystemException {
66          return getPersistence().remove(passwordPolicyRel);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
71       */
72      public static PasswordPolicyRel update(
73          PasswordPolicyRel passwordPolicyRel, boolean merge)
74          throws SystemException {
75          return getPersistence().update(passwordPolicyRel, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) {
80          getPersistence().cacheResult(passwordPolicyRel);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels) {
85          getPersistence().cacheResult(passwordPolicyRels);
86      }
87  
88      public static com.liferay.portal.model.PasswordPolicyRel create(
89          long passwordPolicyRelId) {
90          return getPersistence().create(passwordPolicyRelId);
91      }
92  
93      public static com.liferay.portal.model.PasswordPolicyRel remove(
94          long passwordPolicyRelId)
95          throws com.liferay.portal.NoSuchPasswordPolicyRelException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getPersistence().remove(passwordPolicyRelId);
98      }
99  
100     public static com.liferay.portal.model.PasswordPolicyRel updateImpl(
101         com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
102         boolean merge)
103         throws com.liferay.portal.kernel.exception.SystemException {
104         return getPersistence().updateImpl(passwordPolicyRel, merge);
105     }
106 
107     public static com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey(
108         long passwordPolicyRelId)
109         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
110             com.liferay.portal.kernel.exception.SystemException {
111         return getPersistence().findByPrimaryKey(passwordPolicyRelId);
112     }
113 
114     public static com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey(
115         long passwordPolicyRelId)
116         throws com.liferay.portal.kernel.exception.SystemException {
117         return getPersistence().fetchByPrimaryKey(passwordPolicyRelId);
118     }
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     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
127         long passwordPolicyId, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException {
129         return getPersistence()
130                    .findByPasswordPolicyId(passwordPolicyId, start, end);
131     }
132 
133     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
134         long passwordPolicyId, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.kernel.exception.SystemException {
137         return getPersistence()
138                    .findByPasswordPolicyId(passwordPolicyId, start, end,
139             orderByComparator);
140     }
141 
142     public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First(
143         long passwordPolicyId,
144         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
146             com.liferay.portal.kernel.exception.SystemException {
147         return getPersistence()
148                    .findByPasswordPolicyId_First(passwordPolicyId,
149             orderByComparator);
150     }
151 
152     public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last(
153         long passwordPolicyId,
154         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
156             com.liferay.portal.kernel.exception.SystemException {
157         return getPersistence()
158                    .findByPasswordPolicyId_Last(passwordPolicyId,
159             orderByComparator);
160     }
161 
162     public static com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext(
163         long passwordPolicyRelId, long passwordPolicyId,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
166             com.liferay.portal.kernel.exception.SystemException {
167         return getPersistence()
168                    .findByPasswordPolicyId_PrevAndNext(passwordPolicyRelId,
169             passwordPolicyId, orderByComparator);
170     }
171 
172     public static com.liferay.portal.model.PasswordPolicyRel findByC_C(
173         long classNameId, long classPK)
174         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
175             com.liferay.portal.kernel.exception.SystemException {
176         return getPersistence().findByC_C(classNameId, classPK);
177     }
178 
179     public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
180         long classNameId, long classPK)
181         throws com.liferay.portal.kernel.exception.SystemException {
182         return getPersistence().fetchByC_C(classNameId, classPK);
183     }
184 
185     public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
186         long classNameId, long classPK, boolean retrieveFromCache)
187         throws com.liferay.portal.kernel.exception.SystemException {
188         return getPersistence()
189                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
190     }
191 
192     public static com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
193         long passwordPolicyId, long classNameId, long classPK)
194         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
195             com.liferay.portal.kernel.exception.SystemException {
196         return getPersistence()
197                    .findByP_C_C(passwordPolicyId, classNameId, classPK);
198     }
199 
200     public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
201         long passwordPolicyId, long classNameId, long classPK)
202         throws com.liferay.portal.kernel.exception.SystemException {
203         return getPersistence()
204                    .fetchByP_C_C(passwordPolicyId, classNameId, classPK);
205     }
206 
207     public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
208         long passwordPolicyId, long classNameId, long classPK,
209         boolean retrieveFromCache)
210         throws com.liferay.portal.kernel.exception.SystemException {
211         return getPersistence()
212                    .fetchByP_C_C(passwordPolicyId, classNameId, classPK,
213             retrieveFromCache);
214     }
215 
216     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll()
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getPersistence().findAll();
219     }
220 
221     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
222         int start, int end)
223         throws com.liferay.portal.kernel.exception.SystemException {
224         return getPersistence().findAll(start, end);
225     }
226 
227     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
228         int start, int end,
229         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230         throws com.liferay.portal.kernel.exception.SystemException {
231         return getPersistence().findAll(start, end, orderByComparator);
232     }
233 
234     public static void removeByPasswordPolicyId(long passwordPolicyId)
235         throws com.liferay.portal.kernel.exception.SystemException {
236         getPersistence().removeByPasswordPolicyId(passwordPolicyId);
237     }
238 
239     public static void removeByC_C(long classNameId, long classPK)
240         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
241             com.liferay.portal.kernel.exception.SystemException {
242         getPersistence().removeByC_C(classNameId, classPK);
243     }
244 
245     public static void removeByP_C_C(long passwordPolicyId, long classNameId,
246         long classPK)
247         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
248             com.liferay.portal.kernel.exception.SystemException {
249         getPersistence().removeByP_C_C(passwordPolicyId, classNameId, classPK);
250     }
251 
252     public static void removeAll()
253         throws com.liferay.portal.kernel.exception.SystemException {
254         getPersistence().removeAll();
255     }
256 
257     public static int countByPasswordPolicyId(long passwordPolicyId)
258         throws com.liferay.portal.kernel.exception.SystemException {
259         return getPersistence().countByPasswordPolicyId(passwordPolicyId);
260     }
261 
262     public static int countByC_C(long classNameId, long classPK)
263         throws com.liferay.portal.kernel.exception.SystemException {
264         return getPersistence().countByC_C(classNameId, classPK);
265     }
266 
267     public static int countByP_C_C(long passwordPolicyId, long classNameId,
268         long classPK)
269         throws com.liferay.portal.kernel.exception.SystemException {
270         return getPersistence()
271                    .countByP_C_C(passwordPolicyId, classNameId, classPK);
272     }
273 
274     public static int countAll()
275         throws com.liferay.portal.kernel.exception.SystemException {
276         return getPersistence().countAll();
277     }
278 
279     public static PasswordPolicyRelPersistence getPersistence() {
280         if (_persistence == null) {
281             _persistence = (PasswordPolicyRelPersistence)PortalBeanLocatorUtil.locate(PasswordPolicyRelPersistence.class.getName());
282         }
283 
284         return _persistence;
285     }
286 
287     public void setPersistence(PasswordPolicyRelPersistence persistence) {
288         _persistence = persistence;
289     }
290 
291     private static PasswordPolicyRelPersistence _persistence;
292 }