1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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.portlet.imagegallery.service.persistence;
24  
25  /**
26   * <a href="IGFolderUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class IGFolderUtil {
32      public static com.liferay.portlet.imagegallery.model.IGFolder create(
33          long folderId) {
34          return getPersistence().create(folderId);
35      }
36  
37      public static com.liferay.portlet.imagegallery.model.IGFolder remove(
38          long folderId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portlet.imagegallery.NoSuchFolderException {
41          return getPersistence().remove(folderId);
42      }
43  
44      public static com.liferay.portlet.imagegallery.model.IGFolder remove(
45          com.liferay.portlet.imagegallery.model.IGFolder igFolder)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(igFolder);
48      }
49  
50      public static com.liferay.portlet.imagegallery.model.IGFolder update(
51          com.liferay.portlet.imagegallery.model.IGFolder igFolder)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(igFolder);
54      }
55  
56      public static com.liferay.portlet.imagegallery.model.IGFolder update(
57          com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
58          throws com.liferay.portal.SystemException {
59          return getPersistence().update(igFolder, merge);
60      }
61  
62      public static com.liferay.portlet.imagegallery.model.IGFolder updateImpl(
63          com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
64          throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(igFolder, merge);
66      }
67  
68      public static com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey(
69          long folderId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.imagegallery.NoSuchFolderException {
72          return getPersistence().findByPrimaryKey(folderId);
73      }
74  
75      public static com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey(
76          long folderId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(folderId);
78      }
79  
80      public static java.util.List findByUuid(java.lang.String uuid)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByUuid(uuid);
83      }
84  
85      public static java.util.List findByUuid(java.lang.String uuid, int begin,
86          int end) throws com.liferay.portal.SystemException {
87          return getPersistence().findByUuid(uuid, begin, end);
88      }
89  
90      public static java.util.List findByUuid(java.lang.String uuid, int begin,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByUuid(uuid, begin, end, obc);
94      }
95  
96      public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_First(
97          java.lang.String uuid,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException, 
100             com.liferay.portlet.imagegallery.NoSuchFolderException {
101         return getPersistence().findByUuid_First(uuid, obc);
102     }
103 
104     public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_Last(
105         java.lang.String uuid,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portlet.imagegallery.NoSuchFolderException {
109         return getPersistence().findByUuid_Last(uuid, obc);
110     }
111 
112     public static com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext(
113         long folderId, java.lang.String uuid,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException, 
116             com.liferay.portlet.imagegallery.NoSuchFolderException {
117         return getPersistence().findByUuid_PrevAndNext(folderId, uuid, obc);
118     }
119 
120     public static com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
121         java.lang.String uuid, long groupId)
122         throws com.liferay.portal.SystemException, 
123             com.liferay.portlet.imagegallery.NoSuchFolderException {
124         return getPersistence().findByUUID_G(uuid, groupId);
125     }
126 
127     public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
128         java.lang.String uuid, long groupId)
129         throws com.liferay.portal.SystemException {
130         return getPersistence().fetchByUUID_G(uuid, groupId);
131     }
132 
133     public static java.util.List findByGroupId(long groupId)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByGroupId(groupId);
136     }
137 
138     public static java.util.List findByGroupId(long groupId, int begin, int end)
139         throws com.liferay.portal.SystemException {
140         return getPersistence().findByGroupId(groupId, begin, end);
141     }
142 
143     public static java.util.List findByGroupId(long groupId, int begin,
144         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException {
146         return getPersistence().findByGroupId(groupId, begin, end, obc);
147     }
148 
149     public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First(
150         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException, 
152             com.liferay.portlet.imagegallery.NoSuchFolderException {
153         return getPersistence().findByGroupId_First(groupId, obc);
154     }
155 
156     public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
157         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException, 
159             com.liferay.portlet.imagegallery.NoSuchFolderException {
160         return getPersistence().findByGroupId_Last(groupId, obc);
161     }
162 
163     public static com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
164         long folderId, long groupId,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException, 
167             com.liferay.portlet.imagegallery.NoSuchFolderException {
168         return getPersistence().findByGroupId_PrevAndNext(folderId, groupId, obc);
169     }
170 
171     public static java.util.List findByCompanyId(long companyId)
172         throws com.liferay.portal.SystemException {
173         return getPersistence().findByCompanyId(companyId);
174     }
175 
176     public static java.util.List findByCompanyId(long companyId, int begin,
177         int end) throws com.liferay.portal.SystemException {
178         return getPersistence().findByCompanyId(companyId, begin, end);
179     }
180 
181     public static java.util.List findByCompanyId(long companyId, int begin,
182         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException {
184         return getPersistence().findByCompanyId(companyId, begin, end, obc);
185     }
186 
187     public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
188         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException, 
190             com.liferay.portlet.imagegallery.NoSuchFolderException {
191         return getPersistence().findByCompanyId_First(companyId, obc);
192     }
193 
194     public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
195         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException, 
197             com.liferay.portlet.imagegallery.NoSuchFolderException {
198         return getPersistence().findByCompanyId_Last(companyId, obc);
199     }
200 
201     public static com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
202         long folderId, long companyId,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException, 
205             com.liferay.portlet.imagegallery.NoSuchFolderException {
206         return getPersistence().findByCompanyId_PrevAndNext(folderId,
207             companyId, obc);
208     }
209 
210     public static java.util.List findByG_P(long groupId, long parentFolderId)
211         throws com.liferay.portal.SystemException {
212         return getPersistence().findByG_P(groupId, parentFolderId);
213     }
214 
215     public static java.util.List findByG_P(long groupId, long parentFolderId,
216         int begin, int end) throws com.liferay.portal.SystemException {
217         return getPersistence().findByG_P(groupId, parentFolderId, begin, end);
218     }
219 
220     public static java.util.List findByG_P(long groupId, long parentFolderId,
221         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
222         throws com.liferay.portal.SystemException {
223         return getPersistence().findByG_P(groupId, parentFolderId, begin, end,
224             obc);
225     }
226 
227     public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
228         long groupId, long parentFolderId,
229         com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.SystemException, 
231             com.liferay.portlet.imagegallery.NoSuchFolderException {
232         return getPersistence().findByG_P_First(groupId, parentFolderId, obc);
233     }
234 
235     public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
236         long groupId, long parentFolderId,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.SystemException, 
239             com.liferay.portlet.imagegallery.NoSuchFolderException {
240         return getPersistence().findByG_P_Last(groupId, parentFolderId, obc);
241     }
242 
243     public static com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
244         long folderId, long groupId, long parentFolderId,
245         com.liferay.portal.kernel.util.OrderByComparator obc)
246         throws com.liferay.portal.SystemException, 
247             com.liferay.portlet.imagegallery.NoSuchFolderException {
248         return getPersistence().findByG_P_PrevAndNext(folderId, groupId,
249             parentFolderId, obc);
250     }
251 
252     public static java.util.List findWithDynamicQuery(
253         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
254         throws com.liferay.portal.SystemException {
255         return getPersistence().findWithDynamicQuery(queryInitializer);
256     }
257 
258     public static java.util.List findWithDynamicQuery(
259         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
260         int begin, int end) throws com.liferay.portal.SystemException {
261         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
262             end);
263     }
264 
265     public static java.util.List findAll()
266         throws com.liferay.portal.SystemException {
267         return getPersistence().findAll();
268     }
269 
270     public static java.util.List findAll(int begin, int end)
271         throws com.liferay.portal.SystemException {
272         return getPersistence().findAll(begin, end);
273     }
274 
275     public static java.util.List findAll(int begin, int end,
276         com.liferay.portal.kernel.util.OrderByComparator obc)
277         throws com.liferay.portal.SystemException {
278         return getPersistence().findAll(begin, end, obc);
279     }
280 
281     public static void removeByUuid(java.lang.String uuid)
282         throws com.liferay.portal.SystemException {
283         getPersistence().removeByUuid(uuid);
284     }
285 
286     public static void removeByUUID_G(java.lang.String uuid, long groupId)
287         throws com.liferay.portal.SystemException, 
288             com.liferay.portlet.imagegallery.NoSuchFolderException {
289         getPersistence().removeByUUID_G(uuid, groupId);
290     }
291 
292     public static void removeByGroupId(long groupId)
293         throws com.liferay.portal.SystemException {
294         getPersistence().removeByGroupId(groupId);
295     }
296 
297     public static void removeByCompanyId(long companyId)
298         throws com.liferay.portal.SystemException {
299         getPersistence().removeByCompanyId(companyId);
300     }
301 
302     public static void removeByG_P(long groupId, long parentFolderId)
303         throws com.liferay.portal.SystemException {
304         getPersistence().removeByG_P(groupId, parentFolderId);
305     }
306 
307     public static void removeAll() throws com.liferay.portal.SystemException {
308         getPersistence().removeAll();
309     }
310 
311     public static int countByUuid(java.lang.String uuid)
312         throws com.liferay.portal.SystemException {
313         return getPersistence().countByUuid(uuid);
314     }
315 
316     public static int countByUUID_G(java.lang.String uuid, long groupId)
317         throws com.liferay.portal.SystemException {
318         return getPersistence().countByUUID_G(uuid, groupId);
319     }
320 
321     public static int countByGroupId(long groupId)
322         throws com.liferay.portal.SystemException {
323         return getPersistence().countByGroupId(groupId);
324     }
325 
326     public static int countByCompanyId(long companyId)
327         throws com.liferay.portal.SystemException {
328         return getPersistence().countByCompanyId(companyId);
329     }
330 
331     public static int countByG_P(long groupId, long parentFolderId)
332         throws com.liferay.portal.SystemException {
333         return getPersistence().countByG_P(groupId, parentFolderId);
334     }
335 
336     public static int countAll() throws com.liferay.portal.SystemException {
337         return getPersistence().countAll();
338     }
339 
340     public static IGFolderPersistence getPersistence() {
341         return _getUtil()._persistence;
342     }
343 
344     public void setPersistence(IGFolderPersistence persistence) {
345         _persistence = persistence;
346     }
347 
348     private static IGFolderUtil _getUtil() {
349         if (_util == null) {
350             _util = (IGFolderUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
351         }
352 
353         return _util;
354     }
355 
356     private static final String _UTIL = IGFolderUtil.class.getName();
357     private static IGFolderUtil _util;
358     private IGFolderPersistence _persistence;
359 }