1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  import com.liferay.portal.kernel.util.ReferenceRegistry;
21  import com.liferay.portal.model.PasswordPolicyRel;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="PasswordPolicyRelUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       PasswordPolicyRelPersistence
35   * @see       PasswordPolicyRelPersistenceImpl
36   * @generated
37   */
38  public class PasswordPolicyRelUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(PasswordPolicyRel)
48       */
49      public static void clearCache(PasswordPolicyRel passwordPolicyRel) {
50          getPersistence().clearCache(passwordPolicyRel);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public int countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
65          throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
73          int start, int end) throws SystemException {
74          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
79       */
80      public static PasswordPolicyRel remove(PasswordPolicyRel passwordPolicyRel)
81          throws SystemException {
82          return getPersistence().remove(passwordPolicyRel);
83      }
84  
85      /**
86       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
87       */
88      public static PasswordPolicyRel update(
89          PasswordPolicyRel passwordPolicyRel, boolean merge)
90          throws SystemException {
91          return getPersistence().update(passwordPolicyRel, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel) {
96          getPersistence().cacheResult(passwordPolicyRel);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portal.model.PasswordPolicyRel> passwordPolicyRels) {
101         getPersistence().cacheResult(passwordPolicyRels);
102     }
103 
104     public static com.liferay.portal.model.PasswordPolicyRel create(
105         long passwordPolicyRelId) {
106         return getPersistence().create(passwordPolicyRelId);
107     }
108 
109     public static com.liferay.portal.model.PasswordPolicyRel remove(
110         long passwordPolicyRelId)
111         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
112             com.liferay.portal.SystemException {
113         return getPersistence().remove(passwordPolicyRelId);
114     }
115 
116     /**
117      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
118      */
119     public static com.liferay.portal.model.PasswordPolicyRel update(
120         com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().update(passwordPolicyRel);
123     }
124 
125     public static com.liferay.portal.model.PasswordPolicyRel updateImpl(
126         com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
127         boolean merge) throws com.liferay.portal.SystemException {
128         return getPersistence().updateImpl(passwordPolicyRel, merge);
129     }
130 
131     public static com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey(
132         long passwordPolicyRelId)
133         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
134             com.liferay.portal.SystemException {
135         return getPersistence().findByPrimaryKey(passwordPolicyRelId);
136     }
137 
138     public static com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey(
139         long passwordPolicyRelId) throws com.liferay.portal.SystemException {
140         return getPersistence().fetchByPrimaryKey(passwordPolicyRelId);
141     }
142 
143     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
144         long passwordPolicyId) throws com.liferay.portal.SystemException {
145         return getPersistence().findByPasswordPolicyId(passwordPolicyId);
146     }
147 
148     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
149         long passwordPolicyId, int start, int end)
150         throws com.liferay.portal.SystemException {
151         return getPersistence()
152                    .findByPasswordPolicyId(passwordPolicyId, start, end);
153     }
154 
155     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
156         long passwordPolicyId, int start, int end,
157         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158         throws com.liferay.portal.SystemException {
159         return getPersistence()
160                    .findByPasswordPolicyId(passwordPolicyId, start, end,
161             orderByComparator);
162     }
163 
164     public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First(
165         long passwordPolicyId,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
168             com.liferay.portal.SystemException {
169         return getPersistence()
170                    .findByPasswordPolicyId_First(passwordPolicyId,
171             orderByComparator);
172     }
173 
174     public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last(
175         long passwordPolicyId,
176         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
178             com.liferay.portal.SystemException {
179         return getPersistence()
180                    .findByPasswordPolicyId_Last(passwordPolicyId,
181             orderByComparator);
182     }
183 
184     public static com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext(
185         long passwordPolicyRelId, long passwordPolicyId,
186         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
188             com.liferay.portal.SystemException {
189         return getPersistence()
190                    .findByPasswordPolicyId_PrevAndNext(passwordPolicyRelId,
191             passwordPolicyId, orderByComparator);
192     }
193 
194     public static com.liferay.portal.model.PasswordPolicyRel findByC_C(
195         long classNameId, long classPK)
196         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
197             com.liferay.portal.SystemException {
198         return getPersistence().findByC_C(classNameId, classPK);
199     }
200 
201     public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
202         long classNameId, long classPK)
203         throws com.liferay.portal.SystemException {
204         return getPersistence().fetchByC_C(classNameId, classPK);
205     }
206 
207     public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
208         long classNameId, long classPK, boolean retrieveFromCache)
209         throws com.liferay.portal.SystemException {
210         return getPersistence()
211                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
212     }
213 
214     public static com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
215         long passwordPolicyId, long classNameId, long classPK)
216         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
217             com.liferay.portal.SystemException {
218         return getPersistence()
219                    .findByP_C_C(passwordPolicyId, classNameId, classPK);
220     }
221 
222     public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
223         long passwordPolicyId, long classNameId, long classPK)
224         throws com.liferay.portal.SystemException {
225         return getPersistence()
226                    .fetchByP_C_C(passwordPolicyId, classNameId, classPK);
227     }
228 
229     public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
230         long passwordPolicyId, long classNameId, long classPK,
231         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
232         return getPersistence()
233                    .fetchByP_C_C(passwordPolicyId, classNameId, classPK,
234             retrieveFromCache);
235     }
236 
237     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll()
238         throws com.liferay.portal.SystemException {
239         return getPersistence().findAll();
240     }
241 
242     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
243         int start, int end) throws com.liferay.portal.SystemException {
244         return getPersistence().findAll(start, end);
245     }
246 
247     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
248         int start, int end,
249         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250         throws com.liferay.portal.SystemException {
251         return getPersistence().findAll(start, end, orderByComparator);
252     }
253 
254     public static void removeByPasswordPolicyId(long passwordPolicyId)
255         throws com.liferay.portal.SystemException {
256         getPersistence().removeByPasswordPolicyId(passwordPolicyId);
257     }
258 
259     public static void removeByC_C(long classNameId, long classPK)
260         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
261             com.liferay.portal.SystemException {
262         getPersistence().removeByC_C(classNameId, classPK);
263     }
264 
265     public static void removeByP_C_C(long passwordPolicyId, long classNameId,
266         long classPK)
267         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
268             com.liferay.portal.SystemException {
269         getPersistence().removeByP_C_C(passwordPolicyId, classNameId, classPK);
270     }
271 
272     public static void removeAll() throws com.liferay.portal.SystemException {
273         getPersistence().removeAll();
274     }
275 
276     public static int countByPasswordPolicyId(long passwordPolicyId)
277         throws com.liferay.portal.SystemException {
278         return getPersistence().countByPasswordPolicyId(passwordPolicyId);
279     }
280 
281     public static int countByC_C(long classNameId, long classPK)
282         throws com.liferay.portal.SystemException {
283         return getPersistence().countByC_C(classNameId, classPK);
284     }
285 
286     public static int countByP_C_C(long passwordPolicyId, long classNameId,
287         long classPK) throws com.liferay.portal.SystemException {
288         return getPersistence()
289                    .countByP_C_C(passwordPolicyId, classNameId, classPK);
290     }
291 
292     public static int countAll() throws com.liferay.portal.SystemException {
293         return getPersistence().countAll();
294     }
295 
296     public static PasswordPolicyRelPersistence getPersistence() {
297         if (_persistence == null) {
298             _persistence = (PasswordPolicyRelPersistence)PortalBeanLocatorUtil.locate(PasswordPolicyRelPersistence.class.getName());
299 
300             ReferenceRegistry.registerReference(PasswordPolicyRelUtil.class,
301                 "_persistence");
302         }
303 
304         return _persistence;
305     }
306 
307     public void setPersistence(PasswordPolicyRelPersistence persistence) {
308         _persistence = persistence;
309 
310         ReferenceRegistry.registerReference(PasswordPolicyRelUtil.class,
311             "_persistence");
312     }
313 
314     private static PasswordPolicyRelPersistence _persistence;
315 }