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#clearCache(PasswordPolicyRel)
47       */
48      public static void clearCache(PasswordPolicyRel passwordPolicyRel) {
49          getPersistence().clearCache(passwordPolicyRel);
50      }
51  
52      /**
53       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
54       */
55      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
56          throws SystemException {
57          return getPersistence().countWithDynamicQuery(dynamicQuery);
58      }
59  
60      /**
61       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
62       */
63      public static List<PasswordPolicyRel> findWithDynamicQuery(
64          DynamicQuery dynamicQuery) throws SystemException {
65          return getPersistence().findWithDynamicQuery(dynamicQuery);
66      }
67  
68      /**
69       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
70       */
71      public static List<PasswordPolicyRel> findWithDynamicQuery(
72          DynamicQuery dynamicQuery, int start, int end)
73          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.kernel.exception.SystemException {
113         return getPersistence().remove(passwordPolicyRelId);
114     }
115 
116     public static com.liferay.portal.model.PasswordPolicyRel updateImpl(
117         com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(passwordPolicyRel, merge);
121     }
122 
123     public static com.liferay.portal.model.PasswordPolicyRel findByPrimaryKey(
124         long passwordPolicyRelId)
125         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
126             com.liferay.portal.kernel.exception.SystemException {
127         return getPersistence().findByPrimaryKey(passwordPolicyRelId);
128     }
129 
130     public static com.liferay.portal.model.PasswordPolicyRel fetchByPrimaryKey(
131         long passwordPolicyRelId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(passwordPolicyRelId);
134     }
135 
136     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
137         long passwordPolicyId)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByPasswordPolicyId(passwordPolicyId);
140     }
141 
142     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
143         long passwordPolicyId, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence()
146                    .findByPasswordPolicyId(passwordPolicyId, start, end);
147     }
148 
149     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findByPasswordPolicyId(
150         long passwordPolicyId, int start, int end,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.kernel.exception.SystemException {
153         return getPersistence()
154                    .findByPasswordPolicyId(passwordPolicyId, start, end,
155             orderByComparator);
156     }
157 
158     public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_First(
159         long passwordPolicyId,
160         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
162             com.liferay.portal.kernel.exception.SystemException {
163         return getPersistence()
164                    .findByPasswordPolicyId_First(passwordPolicyId,
165             orderByComparator);
166     }
167 
168     public static com.liferay.portal.model.PasswordPolicyRel findByPasswordPolicyId_Last(
169         long passwordPolicyId,
170         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
172             com.liferay.portal.kernel.exception.SystemException {
173         return getPersistence()
174                    .findByPasswordPolicyId_Last(passwordPolicyId,
175             orderByComparator);
176     }
177 
178     public static com.liferay.portal.model.PasswordPolicyRel[] findByPasswordPolicyId_PrevAndNext(
179         long passwordPolicyRelId, long passwordPolicyId,
180         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
182             com.liferay.portal.kernel.exception.SystemException {
183         return getPersistence()
184                    .findByPasswordPolicyId_PrevAndNext(passwordPolicyRelId,
185             passwordPolicyId, orderByComparator);
186     }
187 
188     public static com.liferay.portal.model.PasswordPolicyRel findByC_C(
189         long classNameId, long classPK)
190         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
191             com.liferay.portal.kernel.exception.SystemException {
192         return getPersistence().findByC_C(classNameId, classPK);
193     }
194 
195     public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
196         long classNameId, long classPK)
197         throws com.liferay.portal.kernel.exception.SystemException {
198         return getPersistence().fetchByC_C(classNameId, classPK);
199     }
200 
201     public static com.liferay.portal.model.PasswordPolicyRel fetchByC_C(
202         long classNameId, long classPK, boolean retrieveFromCache)
203         throws com.liferay.portal.kernel.exception.SystemException {
204         return getPersistence()
205                    .fetchByC_C(classNameId, classPK, retrieveFromCache);
206     }
207 
208     public static com.liferay.portal.model.PasswordPolicyRel findByP_C_C(
209         long passwordPolicyId, long classNameId, long classPK)
210         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
211             com.liferay.portal.kernel.exception.SystemException {
212         return getPersistence()
213                    .findByP_C_C(passwordPolicyId, classNameId, classPK);
214     }
215 
216     public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
217         long passwordPolicyId, long classNameId, long classPK)
218         throws com.liferay.portal.kernel.exception.SystemException {
219         return getPersistence()
220                    .fetchByP_C_C(passwordPolicyId, classNameId, classPK);
221     }
222 
223     public static com.liferay.portal.model.PasswordPolicyRel fetchByP_C_C(
224         long passwordPolicyId, long classNameId, long classPK,
225         boolean retrieveFromCache)
226         throws com.liferay.portal.kernel.exception.SystemException {
227         return getPersistence()
228                    .fetchByP_C_C(passwordPolicyId, classNameId, classPK,
229             retrieveFromCache);
230     }
231 
232     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll()
233         throws com.liferay.portal.kernel.exception.SystemException {
234         return getPersistence().findAll();
235     }
236 
237     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
238         int start, int end)
239         throws com.liferay.portal.kernel.exception.SystemException {
240         return getPersistence().findAll(start, end);
241     }
242 
243     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> findAll(
244         int start, int end,
245         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246         throws com.liferay.portal.kernel.exception.SystemException {
247         return getPersistence().findAll(start, end, orderByComparator);
248     }
249 
250     public static void removeByPasswordPolicyId(long passwordPolicyId)
251         throws com.liferay.portal.kernel.exception.SystemException {
252         getPersistence().removeByPasswordPolicyId(passwordPolicyId);
253     }
254 
255     public static void removeByC_C(long classNameId, long classPK)
256         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
257             com.liferay.portal.kernel.exception.SystemException {
258         getPersistence().removeByC_C(classNameId, classPK);
259     }
260 
261     public static void removeByP_C_C(long passwordPolicyId, long classNameId,
262         long classPK)
263         throws com.liferay.portal.NoSuchPasswordPolicyRelException,
264             com.liferay.portal.kernel.exception.SystemException {
265         getPersistence().removeByP_C_C(passwordPolicyId, classNameId, classPK);
266     }
267 
268     public static void removeAll()
269         throws com.liferay.portal.kernel.exception.SystemException {
270         getPersistence().removeAll();
271     }
272 
273     public static int countByPasswordPolicyId(long passwordPolicyId)
274         throws com.liferay.portal.kernel.exception.SystemException {
275         return getPersistence().countByPasswordPolicyId(passwordPolicyId);
276     }
277 
278     public static int countByC_C(long classNameId, long classPK)
279         throws com.liferay.portal.kernel.exception.SystemException {
280         return getPersistence().countByC_C(classNameId, classPK);
281     }
282 
283     public static int countByP_C_C(long passwordPolicyId, long classNameId,
284         long classPK)
285         throws com.liferay.portal.kernel.exception.SystemException {
286         return getPersistence()
287                    .countByP_C_C(passwordPolicyId, classNameId, classPK);
288     }
289 
290     public static int countAll()
291         throws com.liferay.portal.kernel.exception.SystemException {
292         return getPersistence().countAll();
293     }
294 
295     public static PasswordPolicyRelPersistence getPersistence() {
296         if (_persistence == null) {
297             _persistence = (PasswordPolicyRelPersistence)PortalBeanLocatorUtil.locate(PasswordPolicyRelPersistence.class.getName());
298         }
299 
300         return _persistence;
301     }
302 
303     public void setPersistence(PasswordPolicyRelPersistence persistence) {
304         _persistence = persistence;
305     }
306 
307     private static PasswordPolicyRelPersistence _persistence;
308 }