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