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.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.SystemException {
97          return getPersistence().remove(passwordPolicyRelId);
98      }
99  
100     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
103     public static com.liferay.portal.model.PasswordPolicyRel update(
104         com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(passwordPolicyRel);
107     }
108 
109     public static com.liferay.portal.model.PasswordPolicyRel updateImpl(
110         com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
111         boolean merge) throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(passwordPolicyRel, merge);
113     }
114 
115     public static com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey(
116         long passwordPolicyRelId)
117         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
118             com.liferay.portal.SystemException {
119         return getPersistence().findByPrimaryKey(passwordPolicyRelId);
120     }
121 
122     public static com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey(
123         long passwordPolicyRelId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(passwordPolicyRelId);
125     }
126 
127     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
128         long passwordPolicyId) throws com.liferay.portal.SystemException {
129         return getPersistence().findByPasswordPolicyId(passwordPolicyId);
130     }
131 
132     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
133         long passwordPolicyId, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence()
136                    .findByPasswordPolicyId(passwordPolicyId, start, end);
137     }
138 
139     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
140         long passwordPolicyId, int start, int end,
141         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142         throws com.liferay.portal.SystemException {
143         return getPersistence()
144                    .findByPasswordPolicyId(passwordPolicyId, start, end,
145             orderByComparator);
146     }
147 
148     public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First(
149         long passwordPolicyId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
152             com.liferay.portal.SystemException {
153         return getPersistence()
154                    .findByPasswordPolicyId_First(passwordPolicyId,
155             orderByComparator);
156     }
157 
158     public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last(
159         long passwordPolicyId,
160         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
162             com.liferay.portal.SystemException {
163         return getPersistence()
164                    .findByPasswordPolicyId_Last(passwordPolicyId,
165             orderByComparator);
166     }
167 
168     public static com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext(
169         long passwordPolicyRelId, long passwordPolicyId,
170         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
172             com.liferay.portal.SystemException {
173         return getPersistence()
174                    .findByPasswordPolicyId_PrevAndNext(passwordPolicyRelId,
175             passwordPolicyId, orderByComparator);
176     }
177 
178     public static com.liferay.portal.model.PasswordPolicyRel findByC_C(
179         long classNameId, long classPK)
180         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
181             com.liferay.portal.SystemException {
182         return getPersistence().findByC_C(classNameId, classPK);
183     }
184 
185     public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
186         long classNameId, long classPK)
187         throws com.liferay.portal.SystemException {
188         return getPersistence().fetchByC_C(classNameId, classPK);
189     }
190 
191     public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
192         long classNameId, long classPK, boolean retrieveFromCache)
193         throws com.liferay.portal.SystemException {
194         return getPersistence()
195                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
196     }
197 
198     public static com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
199         long passwordPolicyId, long classNameId, long classPK)
200         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
201             com.liferay.portal.SystemException {
202         return getPersistence()
203                    .findByP_C_C(passwordPolicyId, classNameId, classPK);
204     }
205 
206     public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
207         long passwordPolicyId, long classNameId, long classPK)
208         throws com.liferay.portal.SystemException {
209         return getPersistence()
210                    .fetchByP_C_C(passwordPolicyId, classNameId, classPK);
211     }
212 
213     public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
214         long passwordPolicyId, long classNameId, long classPK,
215         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
216         return getPersistence()
217                    .fetchByP_C_C(passwordPolicyId, classNameId, classPK,
218             retrieveFromCache);
219     }
220 
221     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll()
222         throws com.liferay.portal.SystemException {
223         return getPersistence().findAll();
224     }
225 
226     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
227         int start, int end) throws com.liferay.portal.SystemException {
228         return getPersistence().findAll(start, end);
229     }
230 
231     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
232         int start, int end,
233         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234         throws com.liferay.portal.SystemException {
235         return getPersistence().findAll(start, end, orderByComparator);
236     }
237 
238     public static void removeByPasswordPolicyId(long passwordPolicyId)
239         throws com.liferay.portal.SystemException {
240         getPersistence().removeByPasswordPolicyId(passwordPolicyId);
241     }
242 
243     public static void removeByC_C(long classNameId, long classPK)
244         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
245             com.liferay.portal.SystemException {
246         getPersistence().removeByC_C(classNameId, classPK);
247     }
248 
249     public static void removeByP_C_C(long passwordPolicyId, long classNameId,
250         long classPK)
251         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
252             com.liferay.portal.SystemException {
253         getPersistence().removeByP_C_C(passwordPolicyId, classNameId, classPK);
254     }
255 
256     public static void removeAll() throws com.liferay.portal.SystemException {
257         getPersistence().removeAll();
258     }
259 
260     public static int countByPasswordPolicyId(long passwordPolicyId)
261         throws com.liferay.portal.SystemException {
262         return getPersistence().countByPasswordPolicyId(passwordPolicyId);
263     }
264 
265     public static int countByC_C(long classNameId, long classPK)
266         throws com.liferay.portal.SystemException {
267         return getPersistence().countByC_C(classNameId, classPK);
268     }
269 
270     public static int countByP_C_C(long passwordPolicyId, long classNameId,
271         long classPK) throws com.liferay.portal.SystemException {
272         return getPersistence()
273                    .countByP_C_C(passwordPolicyId, classNameId, classPK);
274     }
275 
276     public static int countAll() throws com.liferay.portal.SystemException {
277         return getPersistence().countAll();
278     }
279 
280     public static PasswordPolicyRelPersistence getPersistence() {
281         if (_persistence == null) {
282             _persistence = (PasswordPolicyRelPersistence)PortalBeanLocatorUtil.locate(PasswordPolicyRelPersistence.class.getName());
283         }
284 
285         return _persistence;
286     }
287 
288     public void setPersistence(PasswordPolicyRelPersistence persistence) {
289         _persistence = persistence;
290     }
291 
292     private static PasswordPolicyRelPersistence _persistence;
293 }