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 obc)
136         throws com.liferay.portal.kernel.exception.SystemException {
137         return getPersistence()
138                    .findByPasswordPolicyId(passwordPolicyId, start, end, obc);
139     }
140 
141     public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First(
142         long passwordPolicyId,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
145             com.liferay.portal.kernel.exception.SystemException {
146         return getPersistence()
147                    .findByPasswordPolicyId_First(passwordPolicyId, obc);
148     }
149 
150     public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last(
151         long passwordPolicyId,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
154             com.liferay.portal.kernel.exception.SystemException {
155         return getPersistence()
156                    .findByPasswordPolicyId_Last(passwordPolicyId, obc);
157     }
158 
159     public static com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext(
160         long passwordPolicyRelId, long passwordPolicyId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
163             com.liferay.portal.kernel.exception.SystemException {
164         return getPersistence()
165                    .findByPasswordPolicyId_PrevAndNext(passwordPolicyRelId,
166             passwordPolicyId, obc);
167     }
168 
169     public static com.liferay.portal.model.PasswordPolicyRel findByC_C(
170         long classNameId, long classPK)
171         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
172             com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence().findByC_C(classNameId, classPK);
174     }
175 
176     public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
177         long classNameId, long classPK)
178         throws com.liferay.portal.kernel.exception.SystemException {
179         return getPersistence().fetchByC_C(classNameId, classPK);
180     }
181 
182     public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
183         long classNameId, long classPK, boolean retrieveFromCache)
184         throws com.liferay.portal.kernel.exception.SystemException {
185         return getPersistence()
186                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
187     }
188 
189     public static com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
190         long passwordPolicyId, long classNameId, long classPK)
191         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
192             com.liferay.portal.kernel.exception.SystemException {
193         return getPersistence()
194                    .findByP_C_C(passwordPolicyId, classNameId, classPK);
195     }
196 
197     public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
198         long passwordPolicyId, long classNameId, long classPK)
199         throws com.liferay.portal.kernel.exception.SystemException {
200         return getPersistence()
201                    .fetchByP_C_C(passwordPolicyId, classNameId, classPK);
202     }
203 
204     public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
205         long passwordPolicyId, long classNameId, long classPK,
206         boolean retrieveFromCache)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence()
209                    .fetchByP_C_C(passwordPolicyId, classNameId, classPK,
210             retrieveFromCache);
211     }
212 
213     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll()
214         throws com.liferay.portal.kernel.exception.SystemException {
215         return getPersistence().findAll();
216     }
217 
218     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
219         int start, int end)
220         throws com.liferay.portal.kernel.exception.SystemException {
221         return getPersistence().findAll(start, end);
222     }
223 
224     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
225         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
226         throws com.liferay.portal.kernel.exception.SystemException {
227         return getPersistence().findAll(start, end, obc);
228     }
229 
230     public static void removeByPasswordPolicyId(long passwordPolicyId)
231         throws com.liferay.portal.kernel.exception.SystemException {
232         getPersistence().removeByPasswordPolicyId(passwordPolicyId);
233     }
234 
235     public static void removeByC_C(long classNameId, long classPK)
236         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
237             com.liferay.portal.kernel.exception.SystemException {
238         getPersistence().removeByC_C(classNameId, classPK);
239     }
240 
241     public static void removeByP_C_C(long passwordPolicyId, long classNameId,
242         long classPK)
243         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
244             com.liferay.portal.kernel.exception.SystemException {
245         getPersistence().removeByP_C_C(passwordPolicyId, classNameId, classPK);
246     }
247 
248     public static void removeAll()
249         throws com.liferay.portal.kernel.exception.SystemException {
250         getPersistence().removeAll();
251     }
252 
253     public static int countByPasswordPolicyId(long passwordPolicyId)
254         throws com.liferay.portal.kernel.exception.SystemException {
255         return getPersistence().countByPasswordPolicyId(passwordPolicyId);
256     }
257 
258     public static int countByC_C(long classNameId, long classPK)
259         throws com.liferay.portal.kernel.exception.SystemException {
260         return getPersistence().countByC_C(classNameId, classPK);
261     }
262 
263     public static int countByP_C_C(long passwordPolicyId, long classNameId,
264         long classPK)
265         throws com.liferay.portal.kernel.exception.SystemException {
266         return getPersistence()
267                    .countByP_C_C(passwordPolicyId, classNameId, classPK);
268     }
269 
270     public static int countAll()
271         throws com.liferay.portal.kernel.exception.SystemException {
272         return getPersistence().countAll();
273     }
274 
275     public static PasswordPolicyRelPersistence getPersistence() {
276         if (_persistence == null) {
277             _persistence = (PasswordPolicyRelPersistence)PortalBeanLocatorUtil.locate(PasswordPolicyRelPersistence.class.getName());
278         }
279 
280         return _persistence;
281     }
282 
283     public void setPersistence(PasswordPolicyRelPersistence persistence) {
284         _persistence = persistence;
285     }
286 
287     private static PasswordPolicyRelPersistence _persistence;
288 }