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