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 obc)
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 obc)
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 obc)
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 obc)
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 obc)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portlet.imagegallery.model.IGImage findByGroupId_First(
118         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.kernel.exception.SystemException,
120             com.liferay.portlet.imagegallery.NoSuchImageException;
121 
122     public com.liferay.portlet.imagegallery.model.IGImage findByGroupId_Last(
123         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.kernel.exception.SystemException,
125             com.liferay.portlet.imagegallery.NoSuchImageException;
126 
127     public com.liferay.portlet.imagegallery.model.IGImage[] findByGroupId_PrevAndNext(
128         long imageId, long groupId,
129         com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.kernel.exception.SystemException,
131             com.liferay.portlet.imagegallery.NoSuchImageException;
132 
133     public com.liferay.portlet.imagegallery.model.IGImage findBySmallImageId(
134         long smallImageId)
135         throws com.liferay.portal.kernel.exception.SystemException,
136             com.liferay.portlet.imagegallery.NoSuchImageException;
137 
138     public com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
139         long smallImageId)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
143         long smallImageId, boolean retrieveFromCache)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public com.liferay.portlet.imagegallery.model.IGImage findByLargeImageId(
147         long largeImageId)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.imagegallery.NoSuchImageException;
150 
151     public com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
152         long largeImageId)
153         throws com.liferay.portal.kernel.exception.SystemException;
154 
155     public com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
156         long largeImageId, boolean retrieveFromCache)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public com.liferay.portlet.imagegallery.model.IGImage findByCustom1ImageId(
160         long custom1ImageId)
161         throws com.liferay.portal.kernel.exception.SystemException,
162             com.liferay.portlet.imagegallery.NoSuchImageException;
163 
164     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
165         long custom1ImageId)
166         throws com.liferay.portal.kernel.exception.SystemException;
167 
168     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
169         long custom1ImageId, boolean retrieveFromCache)
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     public com.liferay.portlet.imagegallery.model.IGImage findByCustom2ImageId(
173         long custom2ImageId)
174         throws com.liferay.portal.kernel.exception.SystemException,
175             com.liferay.portlet.imagegallery.NoSuchImageException;
176 
177     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
178         long custom2ImageId)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
182         long custom2ImageId, boolean retrieveFromCache)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
186         long groupId, long userId)
187         throws com.liferay.portal.kernel.exception.SystemException;
188 
189     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
190         long groupId, long userId, int start, int end)
191         throws com.liferay.portal.kernel.exception.SystemException;
192 
193     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
194         long groupId, long userId, int start, int end,
195         com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.kernel.exception.SystemException;
197 
198     public com.liferay.portlet.imagegallery.model.IGImage findByG_U_First(
199         long groupId, long userId,
200         com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.kernel.exception.SystemException,
202             com.liferay.portlet.imagegallery.NoSuchImageException;
203 
204     public com.liferay.portlet.imagegallery.model.IGImage findByG_U_Last(
205         long groupId, long userId,
206         com.liferay.portal.kernel.util.OrderByComparator obc)
207         throws com.liferay.portal.kernel.exception.SystemException,
208             com.liferay.portlet.imagegallery.NoSuchImageException;
209 
210     public com.liferay.portlet.imagegallery.model.IGImage[] findByG_U_PrevAndNext(
211         long imageId, long groupId, long userId,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.kernel.exception.SystemException,
214             com.liferay.portlet.imagegallery.NoSuchImageException;
215 
216     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
217         long groupId, long folderId)
218         throws com.liferay.portal.kernel.exception.SystemException;
219 
220     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
221         long groupId, long folderId, int start, int end)
222         throws com.liferay.portal.kernel.exception.SystemException;
223 
224     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F(
225         long groupId, long folderId, int start, int end,
226         com.liferay.portal.kernel.util.OrderByComparator obc)
227         throws com.liferay.portal.kernel.exception.SystemException;
228 
229     public com.liferay.portlet.imagegallery.model.IGImage findByG_F_First(
230         long groupId, long folderId,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.kernel.exception.SystemException,
233             com.liferay.portlet.imagegallery.NoSuchImageException;
234 
235     public com.liferay.portlet.imagegallery.model.IGImage findByG_F_Last(
236         long groupId, long folderId,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.kernel.exception.SystemException,
239             com.liferay.portlet.imagegallery.NoSuchImageException;
240 
241     public com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_PrevAndNext(
242         long imageId, long groupId, long folderId,
243         com.liferay.portal.kernel.util.OrderByComparator obc)
244         throws com.liferay.portal.kernel.exception.SystemException,
245             com.liferay.portlet.imagegallery.NoSuchImageException;
246 
247     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
248         long groupId, long folderId, java.lang.String name)
249         throws com.liferay.portal.kernel.exception.SystemException;
250 
251     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
252         long groupId, long folderId, java.lang.String name, int start, int end)
253         throws com.liferay.portal.kernel.exception.SystemException;
254 
255     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N(
256         long groupId, long folderId, java.lang.String name, int start, int end,
257         com.liferay.portal.kernel.util.OrderByComparator obc)
258         throws com.liferay.portal.kernel.exception.SystemException;
259 
260     public com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_First(
261         long groupId, long folderId, java.lang.String name,
262         com.liferay.portal.kernel.util.OrderByComparator obc)
263         throws com.liferay.portal.kernel.exception.SystemException,
264             com.liferay.portlet.imagegallery.NoSuchImageException;
265 
266     public com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_Last(
267         long groupId, long folderId, java.lang.String name,
268         com.liferay.portal.kernel.util.OrderByComparator obc)
269         throws com.liferay.portal.kernel.exception.SystemException,
270             com.liferay.portlet.imagegallery.NoSuchImageException;
271 
272     public com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_N_PrevAndNext(
273         long imageId, long groupId, long folderId, java.lang.String name,
274         com.liferay.portal.kernel.util.OrderByComparator obc)
275         throws com.liferay.portal.kernel.exception.SystemException,
276             com.liferay.portlet.imagegallery.NoSuchImageException;
277 
278     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll()
279         throws com.liferay.portal.kernel.exception.SystemException;
280 
281     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
282         int start, int end)
283         throws com.liferay.portal.kernel.exception.SystemException;
284 
285     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
286         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
287         throws com.liferay.portal.kernel.exception.SystemException;
288 
289     public void removeByUuid(java.lang.String uuid)
290         throws com.liferay.portal.kernel.exception.SystemException;
291 
292     public void removeByUUID_G(java.lang.String uuid, long groupId)
293         throws com.liferay.portal.kernel.exception.SystemException,
294             com.liferay.portlet.imagegallery.NoSuchImageException;
295 
296     public void removeByGroupId(long groupId)
297         throws com.liferay.portal.kernel.exception.SystemException;
298 
299     public void removeBySmallImageId(long smallImageId)
300         throws com.liferay.portal.kernel.exception.SystemException,
301             com.liferay.portlet.imagegallery.NoSuchImageException;
302 
303     public void removeByLargeImageId(long largeImageId)
304         throws com.liferay.portal.kernel.exception.SystemException,
305             com.liferay.portlet.imagegallery.NoSuchImageException;
306 
307     public void removeByCustom1ImageId(long custom1ImageId)
308         throws com.liferay.portal.kernel.exception.SystemException,
309             com.liferay.portlet.imagegallery.NoSuchImageException;
310 
311     public void removeByCustom2ImageId(long custom2ImageId)
312         throws com.liferay.portal.kernel.exception.SystemException,
313             com.liferay.portlet.imagegallery.NoSuchImageException;
314 
315     public void removeByG_U(long groupId, long userId)
316         throws com.liferay.portal.kernel.exception.SystemException;
317 
318     public void removeByG_F(long groupId, long folderId)
319         throws com.liferay.portal.kernel.exception.SystemException;
320 
321     public void removeByG_F_N(long groupId, long folderId, java.lang.String name)
322         throws com.liferay.portal.kernel.exception.SystemException;
323 
324     public void removeAll()
325         throws com.liferay.portal.kernel.exception.SystemException;
326 
327     public int countByUuid(java.lang.String uuid)
328         throws com.liferay.portal.kernel.exception.SystemException;
329 
330     public int countByUUID_G(java.lang.String uuid, long groupId)
331         throws com.liferay.portal.kernel.exception.SystemException;
332 
333     public int countByGroupId(long groupId)
334         throws com.liferay.portal.kernel.exception.SystemException;
335 
336     public int countBySmallImageId(long smallImageId)
337         throws com.liferay.portal.kernel.exception.SystemException;
338 
339     public int countByLargeImageId(long largeImageId)
340         throws com.liferay.portal.kernel.exception.SystemException;
341 
342     public int countByCustom1ImageId(long custom1ImageId)
343         throws com.liferay.portal.kernel.exception.SystemException;
344 
345     public int countByCustom2ImageId(long custom2ImageId)
346         throws com.liferay.portal.kernel.exception.SystemException;
347 
348     public int countByG_U(long groupId, long userId)
349         throws com.liferay.portal.kernel.exception.SystemException;
350 
351     public int countByG_F(long groupId, long folderId)
352         throws com.liferay.portal.kernel.exception.SystemException;
353 
354     public int countByG_F_N(long groupId, long folderId, java.lang.String name)
355         throws com.liferay.portal.kernel.exception.SystemException;
356 
357     public int countAll()
358         throws com.liferay.portal.kernel.exception.SystemException;
359 }