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.portlet.imagegallery.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.imagegallery.model.IGImage;
20  
21  /**
22   * <a href="IGImagePersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       IGImagePersistenceImpl
31   * @see       IGImageUtil
32   * @generated
33   */
34  public interface IGImagePersistence extends BasePersistence<IGImage> {
35      public void cacheResult(
36          com.liferay.portlet.imagegallery.model.IGImage igImage);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.imagegallery.model.IGImage> igImages);
40  
41      public com.liferay.portlet.imagegallery.model.IGImage create(long imageId);
42  
43      public com.liferay.portlet.imagegallery.model.IGImage remove(long imageId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.imagegallery.NoSuchImageException;
46  
47      public com.liferay.portlet.imagegallery.model.IGImage updateImpl(
48          com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
49          throws com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portlet.imagegallery.model.IGImage findByPrimaryKey(
52          long imageId)
53          throws com.liferay.portal.kernel.exception.SystemException,
54              com.liferay.portlet.imagegallery.NoSuchImageException;
55  
56      public com.liferay.portlet.imagegallery.model.IGImage fetchByPrimaryKey(
57          long imageId)
58          throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
61          java.lang.String uuid)
62          throws com.liferay.portal.kernel.exception.SystemException;
63  
64      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
65          java.lang.String uuid, int start, int end)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
69          java.lang.String uuid, int start, int end,
70          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
71          throws com.liferay.portal.kernel.exception.SystemException;
72  
73      public com.liferay.portlet.imagegallery.model.IGImage findByUuid_First(
74          java.lang.String uuid,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.kernel.exception.SystemException,
77              com.liferay.portlet.imagegallery.NoSuchImageException;
78  
79      public com.liferay.portlet.imagegallery.model.IGImage findByUuid_Last(
80          java.lang.String uuid,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException,
83              com.liferay.portlet.imagegallery.NoSuchImageException;
84  
85      public com.liferay.portlet.imagegallery.model.IGImage[] findByUuid_PrevAndNext(
86          long imageId, java.lang.String uuid,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.kernel.exception.SystemException,
89              com.liferay.portlet.imagegallery.NoSuchImageException;
90  
91      public com.liferay.portlet.imagegallery.model.IGImage findByUUID_G(
92          java.lang.String uuid, long groupId)
93          throws com.liferay.portal.kernel.exception.SystemException,
94              com.liferay.portlet.imagegallery.NoSuchImageException;
95  
96      public com.liferay.portlet.imagegallery.model.IGImage fetchByUUID_G(
97          java.lang.String uuid, long groupId)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portlet.imagegallery.model.IGImage fetchByUUID_G(
101         java.lang.String uuid, long groupId, boolean retrieveFromCache)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
105         long groupId)
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
109         long groupId, int start, int end)
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
113         long groupId, int start, int end,
114         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portlet.imagegallery.model.IGImage findByGroupId_First(
118         long groupId,
119         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.imagegallery.NoSuchImageException;
122 
123     public com.liferay.portlet.imagegallery.model.IGImage findByGroupId_Last(
124         long groupId,
125         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126         throws com.liferay.portal.kernel.exception.SystemException,
127             com.liferay.portlet.imagegallery.NoSuchImageException;
128 
129     public com.liferay.portlet.imagegallery.model.IGImage[] findByGroupId_PrevAndNext(
130         long imageId, long groupId,
131         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132         throws com.liferay.portal.kernel.exception.SystemException,
133             com.liferay.portlet.imagegallery.NoSuchImageException;
134 
135     public com.liferay.portlet.imagegallery.model.IGImage findBySmallImageId(
136         long smallImageId)
137         throws com.liferay.portal.kernel.exception.SystemException,
138             com.liferay.portlet.imagegallery.NoSuchImageException;
139 
140     public com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
141         long smallImageId)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
145         long smallImageId, boolean retrieveFromCache)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public com.liferay.portlet.imagegallery.model.IGImage findByLargeImageId(
149         long largeImageId)
150         throws com.liferay.portal.kernel.exception.SystemException,
151             com.liferay.portlet.imagegallery.NoSuchImageException;
152 
153     public com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
154         long largeImageId)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     public com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
158         long largeImageId, boolean retrieveFromCache)
159         throws com.liferay.portal.kernel.exception.SystemException;
160 
161     public com.liferay.portlet.imagegallery.model.IGImage findByCustom1ImageId(
162         long custom1ImageId)
163         throws com.liferay.portal.kernel.exception.SystemException,
164             com.liferay.portlet.imagegallery.NoSuchImageException;
165 
166     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
167         long custom1ImageId)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
171         long custom1ImageId, boolean retrieveFromCache)
172         throws com.liferay.portal.kernel.exception.SystemException;
173 
174     public com.liferay.portlet.imagegallery.model.IGImage findByCustom2ImageId(
175         long custom2ImageId)
176         throws com.liferay.portal.kernel.exception.SystemException,
177             com.liferay.portlet.imagegallery.NoSuchImageException;
178 
179     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
180         long custom2ImageId)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
184         long custom2ImageId, boolean retrieveFromCache)
185         throws com.liferay.portal.kernel.exception.SystemException;
186 
187     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
188         long groupId, long userId)
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
192         long groupId, long userId, int start, int end)
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
196         long groupId, long userId, int start, int end,
197         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     public com.liferay.portlet.imagegallery.model.IGImage findByG_U_First(
201         long groupId, long userId,
202         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203         throws com.liferay.portal.kernel.exception.SystemException,
204             com.liferay.portlet.imagegallery.NoSuchImageException;
205 
206     public com.liferay.portlet.imagegallery.model.IGImage findByG_U_Last(
207         long groupId, long userId,
208         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209         throws com.liferay.portal.kernel.exception.SystemException,
210             com.liferay.portlet.imagegallery.NoSuchImageException;
211 
212     public com.liferay.portlet.imagegallery.model.IGImage[] findByG_U_PrevAndNext(
213         long imageId, long groupId, long userId,
214         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215         throws com.liferay.portal.kernel.exception.SystemException,
216             com.liferay.portlet.imagegallery.NoSuchImageException;
217 
218     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
219         long groupId, long folderId)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
223         long groupId, long folderId, int start, int end)
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
227         long groupId, long folderId, int start, int end,
228         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229         throws com.liferay.portal.kernel.exception.SystemException;
230 
231     public com.liferay.portlet.imagegallery.model.IGImage findByG_F_First(
232         long groupId, long folderId,
233         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234         throws com.liferay.portal.kernel.exception.SystemException,
235             com.liferay.portlet.imagegallery.NoSuchImageException;
236 
237     public com.liferay.portlet.imagegallery.model.IGImage findByG_F_Last(
238         long groupId, long folderId,
239         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240         throws com.liferay.portal.kernel.exception.SystemException,
241             com.liferay.portlet.imagegallery.NoSuchImageException;
242 
243     public com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_PrevAndNext(
244         long imageId, long groupId, long folderId,
245         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246         throws com.liferay.portal.kernel.exception.SystemException,
247             com.liferay.portlet.imagegallery.NoSuchImageException;
248 
249     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
250         long groupId, long folderId, java.lang.String name)
251         throws com.liferay.portal.kernel.exception.SystemException;
252 
253     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
254         long groupId, long folderId, java.lang.String name, int start, int end)
255         throws com.liferay.portal.kernel.exception.SystemException;
256 
257     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
258         long groupId, long folderId, java.lang.String name, int start, int end,
259         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     public com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_First(
263         long groupId, long folderId, java.lang.String name,
264         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265         throws com.liferay.portal.kernel.exception.SystemException,
266             com.liferay.portlet.imagegallery.NoSuchImageException;
267 
268     public com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_Last(
269         long groupId, long folderId, java.lang.String name,
270         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271         throws com.liferay.portal.kernel.exception.SystemException,
272             com.liferay.portlet.imagegallery.NoSuchImageException;
273 
274     public com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_N_PrevAndNext(
275         long imageId, long groupId, long folderId, java.lang.String name,
276         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277         throws com.liferay.portal.kernel.exception.SystemException,
278             com.liferay.portlet.imagegallery.NoSuchImageException;
279 
280     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll()
281         throws com.liferay.portal.kernel.exception.SystemException;
282 
283     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
284         int start, int end)
285         throws com.liferay.portal.kernel.exception.SystemException;
286 
287     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
288         int start, int end,
289         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290         throws com.liferay.portal.kernel.exception.SystemException;
291 
292     public void removeByUuid(java.lang.String uuid)
293         throws com.liferay.portal.kernel.exception.SystemException;
294 
295     public void removeByUUID_G(java.lang.String uuid, long groupId)
296         throws com.liferay.portal.kernel.exception.SystemException,
297             com.liferay.portlet.imagegallery.NoSuchImageException;
298 
299     public void removeByGroupId(long groupId)
300         throws com.liferay.portal.kernel.exception.SystemException;
301 
302     public void removeBySmallImageId(long smallImageId)
303         throws com.liferay.portal.kernel.exception.SystemException,
304             com.liferay.portlet.imagegallery.NoSuchImageException;
305 
306     public void removeByLargeImageId(long largeImageId)
307         throws com.liferay.portal.kernel.exception.SystemException,
308             com.liferay.portlet.imagegallery.NoSuchImageException;
309 
310     public void removeByCustom1ImageId(long custom1ImageId)
311         throws com.liferay.portal.kernel.exception.SystemException,
312             com.liferay.portlet.imagegallery.NoSuchImageException;
313 
314     public void removeByCustom2ImageId(long custom2ImageId)
315         throws com.liferay.portal.kernel.exception.SystemException,
316             com.liferay.portlet.imagegallery.NoSuchImageException;
317 
318     public void removeByG_U(long groupId, long userId)
319         throws com.liferay.portal.kernel.exception.SystemException;
320 
321     public void removeByG_F(long groupId, long folderId)
322         throws com.liferay.portal.kernel.exception.SystemException;
323 
324     public void removeByG_F_N(long groupId, long folderId, java.lang.String name)
325         throws com.liferay.portal.kernel.exception.SystemException;
326 
327     public void removeAll()
328         throws com.liferay.portal.kernel.exception.SystemException;
329 
330     public int countByUuid(java.lang.String uuid)
331         throws com.liferay.portal.kernel.exception.SystemException;
332 
333     public int countByUUID_G(java.lang.String uuid, long groupId)
334         throws com.liferay.portal.kernel.exception.SystemException;
335 
336     public int countByGroupId(long groupId)
337         throws com.liferay.portal.kernel.exception.SystemException;
338 
339     public int countBySmallImageId(long smallImageId)
340         throws com.liferay.portal.kernel.exception.SystemException;
341 
342     public int countByLargeImageId(long largeImageId)
343         throws com.liferay.portal.kernel.exception.SystemException;
344 
345     public int countByCustom1ImageId(long custom1ImageId)
346         throws com.liferay.portal.kernel.exception.SystemException;
347 
348     public int countByCustom2ImageId(long custom2ImageId)
349         throws com.liferay.portal.kernel.exception.SystemException;
350 
351     public int countByG_U(long groupId, long userId)
352         throws com.liferay.portal.kernel.exception.SystemException;
353 
354     public int countByG_F(long groupId, long folderId)
355         throws com.liferay.portal.kernel.exception.SystemException;
356 
357     public int countByG_F_N(long groupId, long folderId, java.lang.String name)
358         throws com.liferay.portal.kernel.exception.SystemException;
359 
360     public int countAll()
361         throws com.liferay.portal.kernel.exception.SystemException;
362 }