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.portlet.imagegallery.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  
29  import com.liferay.portlet.imagegallery.model.IGFolder;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="IGFolderUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       IGFolderPersistence
43   * @see       IGFolderPersistenceImpl
44   * @generated
45   */
46  public class IGFolderUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static IGFolder remove(IGFolder igFolder) throws SystemException {
74          return getPersistence().remove(igFolder);
75      }
76  
77      /**
78       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
79       */
80      public static IGFolder update(IGFolder igFolder, boolean merge)
81          throws SystemException {
82          return getPersistence().update(igFolder, merge);
83      }
84  
85      public static void cacheResult(
86          com.liferay.portlet.imagegallery.model.IGFolder igFolder) {
87          getPersistence().cacheResult(igFolder);
88      }
89  
90      public static void cacheResult(
91          java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> igFolders) {
92          getPersistence().cacheResult(igFolders);
93      }
94  
95      public static com.liferay.portlet.imagegallery.model.IGFolder create(
96          long folderId) {
97          return getPersistence().create(folderId);
98      }
99  
100     public static com.liferay.portlet.imagegallery.model.IGFolder remove(
101         long folderId)
102         throws com.liferay.portal.SystemException,
103             com.liferay.portlet.imagegallery.NoSuchFolderException {
104         return getPersistence().remove(folderId);
105     }
106 
107     /**
108      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
109      */
110     public static com.liferay.portlet.imagegallery.model.IGFolder update(
111         com.liferay.portlet.imagegallery.model.IGFolder igFolder)
112         throws com.liferay.portal.SystemException {
113         return getPersistence().update(igFolder);
114     }
115 
116     public static com.liferay.portlet.imagegallery.model.IGFolder updateImpl(
117         com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
118         throws com.liferay.portal.SystemException {
119         return getPersistence().updateImpl(igFolder, merge);
120     }
121 
122     public static com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey(
123         long folderId)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.imagegallery.NoSuchFolderException {
126         return getPersistence().findByPrimaryKey(folderId);
127     }
128 
129     public static com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey(
130         long folderId) throws com.liferay.portal.SystemException {
131         return getPersistence().fetchByPrimaryKey(folderId);
132     }
133 
134     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
135         java.lang.String uuid) throws com.liferay.portal.SystemException {
136         return getPersistence().findByUuid(uuid);
137     }
138 
139     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
140         java.lang.String uuid, int start, int end)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByUuid(uuid, start, end);
143     }
144 
145     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
146         java.lang.String uuid, int start, int end,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException {
149         return getPersistence().findByUuid(uuid, start, end, obc);
150     }
151 
152     public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_First(
153         java.lang.String uuid,
154         com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.imagegallery.NoSuchFolderException {
157         return getPersistence().findByUuid_First(uuid, obc);
158     }
159 
160     public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_Last(
161         java.lang.String uuid,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.imagegallery.NoSuchFolderException {
165         return getPersistence().findByUuid_Last(uuid, obc);
166     }
167 
168     public static com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext(
169         long folderId, java.lang.String uuid,
170         com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.imagegallery.NoSuchFolderException {
173         return getPersistence().findByUuid_PrevAndNext(folderId, uuid, obc);
174     }
175 
176     public static com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
177         java.lang.String uuid, long groupId)
178         throws com.liferay.portal.SystemException,
179             com.liferay.portlet.imagegallery.NoSuchFolderException {
180         return getPersistence().findByUUID_G(uuid, groupId);
181     }
182 
183     public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
184         java.lang.String uuid, long groupId)
185         throws com.liferay.portal.SystemException {
186         return getPersistence().fetchByUUID_G(uuid, groupId);
187     }
188 
189     public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
190         java.lang.String uuid, long groupId, boolean retrieveFromCache)
191         throws com.liferay.portal.SystemException {
192         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
193     }
194 
195     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
196         long groupId) throws com.liferay.portal.SystemException {
197         return getPersistence().findByGroupId(groupId);
198     }
199 
200     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
201         long groupId, int start, int end)
202         throws com.liferay.portal.SystemException {
203         return getPersistence().findByGroupId(groupId, start, end);
204     }
205 
206     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
207         long groupId, int start, int end,
208         com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.SystemException {
210         return getPersistence().findByGroupId(groupId, start, end, obc);
211     }
212 
213     public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First(
214         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.imagegallery.NoSuchFolderException {
217         return getPersistence().findByGroupId_First(groupId, obc);
218     }
219 
220     public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
221         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
222         throws com.liferay.portal.SystemException,
223             com.liferay.portlet.imagegallery.NoSuchFolderException {
224         return getPersistence().findByGroupId_Last(groupId, obc);
225     }
226 
227     public static com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
228         long folderId, long groupId,
229         com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.SystemException,
231             com.liferay.portlet.imagegallery.NoSuchFolderException {
232         return getPersistence().findByGroupId_PrevAndNext(folderId, groupId, obc);
233     }
234 
235     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
236         long companyId) throws com.liferay.portal.SystemException {
237         return getPersistence().findByCompanyId(companyId);
238     }
239 
240     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
241         long companyId, int start, int end)
242         throws com.liferay.portal.SystemException {
243         return getPersistence().findByCompanyId(companyId, start, end);
244     }
245 
246     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
247         long companyId, int start, int end,
248         com.liferay.portal.kernel.util.OrderByComparator obc)
249         throws com.liferay.portal.SystemException {
250         return getPersistence().findByCompanyId(companyId, start, end, obc);
251     }
252 
253     public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
254         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.imagegallery.NoSuchFolderException {
257         return getPersistence().findByCompanyId_First(companyId, obc);
258     }
259 
260     public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
261         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
262         throws com.liferay.portal.SystemException,
263             com.liferay.portlet.imagegallery.NoSuchFolderException {
264         return getPersistence().findByCompanyId_Last(companyId, obc);
265     }
266 
267     public static com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
268         long folderId, long companyId,
269         com.liferay.portal.kernel.util.OrderByComparator obc)
270         throws com.liferay.portal.SystemException,
271             com.liferay.portlet.imagegallery.NoSuchFolderException {
272         return getPersistence()
273                    .findByCompanyId_PrevAndNext(folderId, companyId, obc);
274     }
275 
276     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
277         long groupId, long parentFolderId)
278         throws com.liferay.portal.SystemException {
279         return getPersistence().findByG_P(groupId, parentFolderId);
280     }
281 
282     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
283         long groupId, long parentFolderId, int start, int end)
284         throws com.liferay.portal.SystemException {
285         return getPersistence().findByG_P(groupId, parentFolderId, start, end);
286     }
287 
288     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
289         long groupId, long parentFolderId, int start, int end,
290         com.liferay.portal.kernel.util.OrderByComparator obc)
291         throws com.liferay.portal.SystemException {
292         return getPersistence()
293                    .findByG_P(groupId, parentFolderId, start, end, obc);
294     }
295 
296     public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
297         long groupId, long parentFolderId,
298         com.liferay.portal.kernel.util.OrderByComparator obc)
299         throws com.liferay.portal.SystemException,
300             com.liferay.portlet.imagegallery.NoSuchFolderException {
301         return getPersistence().findByG_P_First(groupId, parentFolderId, obc);
302     }
303 
304     public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
305         long groupId, long parentFolderId,
306         com.liferay.portal.kernel.util.OrderByComparator obc)
307         throws com.liferay.portal.SystemException,
308             com.liferay.portlet.imagegallery.NoSuchFolderException {
309         return getPersistence().findByG_P_Last(groupId, parentFolderId, obc);
310     }
311 
312     public static com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
313         long folderId, long groupId, long parentFolderId,
314         com.liferay.portal.kernel.util.OrderByComparator obc)
315         throws com.liferay.portal.SystemException,
316             com.liferay.portlet.imagegallery.NoSuchFolderException {
317         return getPersistence()
318                    .findByG_P_PrevAndNext(folderId, groupId, parentFolderId, obc);
319     }
320 
321     public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N(
322         long groupId, long parentFolderId, java.lang.String name)
323         throws com.liferay.portal.SystemException,
324             com.liferay.portlet.imagegallery.NoSuchFolderException {
325         return getPersistence().findByG_P_N(groupId, parentFolderId, name);
326     }
327 
328     public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
329         long groupId, long parentFolderId, java.lang.String name)
330         throws com.liferay.portal.SystemException {
331         return getPersistence().fetchByG_P_N(groupId, parentFolderId, name);
332     }
333 
334     public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
335         long groupId, long parentFolderId, java.lang.String name,
336         boolean retrieveFromCache) throws com.liferay.portal.SystemException {
337         return getPersistence()
338                    .fetchByG_P_N(groupId, parentFolderId, name,
339             retrieveFromCache);
340     }
341 
342     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll()
343         throws com.liferay.portal.SystemException {
344         return getPersistence().findAll();
345     }
346 
347     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
348         int start, int end) throws com.liferay.portal.SystemException {
349         return getPersistence().findAll(start, end);
350     }
351 
352     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
353         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
354         throws com.liferay.portal.SystemException {
355         return getPersistence().findAll(start, end, obc);
356     }
357 
358     public static void removeByUuid(java.lang.String uuid)
359         throws com.liferay.portal.SystemException {
360         getPersistence().removeByUuid(uuid);
361     }
362 
363     public static void removeByUUID_G(java.lang.String uuid, long groupId)
364         throws com.liferay.portal.SystemException,
365             com.liferay.portlet.imagegallery.NoSuchFolderException {
366         getPersistence().removeByUUID_G(uuid, groupId);
367     }
368 
369     public static void removeByGroupId(long groupId)
370         throws com.liferay.portal.SystemException {
371         getPersistence().removeByGroupId(groupId);
372     }
373 
374     public static void removeByCompanyId(long companyId)
375         throws com.liferay.portal.SystemException {
376         getPersistence().removeByCompanyId(companyId);
377     }
378 
379     public static void removeByG_P(long groupId, long parentFolderId)
380         throws com.liferay.portal.SystemException {
381         getPersistence().removeByG_P(groupId, parentFolderId);
382     }
383 
384     public static void removeByG_P_N(long groupId, long parentFolderId,
385         java.lang.String name)
386         throws com.liferay.portal.SystemException,
387             com.liferay.portlet.imagegallery.NoSuchFolderException {
388         getPersistence().removeByG_P_N(groupId, parentFolderId, name);
389     }
390 
391     public static void removeAll() throws com.liferay.portal.SystemException {
392         getPersistence().removeAll();
393     }
394 
395     public static int countByUuid(java.lang.String uuid)
396         throws com.liferay.portal.SystemException {
397         return getPersistence().countByUuid(uuid);
398     }
399 
400     public static int countByUUID_G(java.lang.String uuid, long groupId)
401         throws com.liferay.portal.SystemException {
402         return getPersistence().countByUUID_G(uuid, groupId);
403     }
404 
405     public static int countByGroupId(long groupId)
406         throws com.liferay.portal.SystemException {
407         return getPersistence().countByGroupId(groupId);
408     }
409 
410     public static int countByCompanyId(long companyId)
411         throws com.liferay.portal.SystemException {
412         return getPersistence().countByCompanyId(companyId);
413     }
414 
415     public static int countByG_P(long groupId, long parentFolderId)
416         throws com.liferay.portal.SystemException {
417         return getPersistence().countByG_P(groupId, parentFolderId);
418     }
419 
420     public static int countByG_P_N(long groupId, long parentFolderId,
421         java.lang.String name) throws com.liferay.portal.SystemException {
422         return getPersistence().countByG_P_N(groupId, parentFolderId, name);
423     }
424 
425     public static int countAll() throws com.liferay.portal.SystemException {
426         return getPersistence().countAll();
427     }
428 
429     public static IGFolderPersistence getPersistence() {
430         if (_persistence == null) {
431             _persistence = (IGFolderPersistence)PortalBeanLocatorUtil.locate(IGFolderPersistence.class.getName());
432         }
433 
434         return _persistence;
435     }
436 
437     public void setPersistence(IGFolderPersistence persistence) {
438         _persistence = persistence;
439     }
440 
441     private static IGFolderPersistence _persistence;
442 }