1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.SystemException,
45              com.liferay.portlet.imagegallery.NoSuchImageException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.imagegallery.model.IGImage update(
51          com.liferay.portlet.imagegallery.model.IGImage igImage)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.imagegallery.model.IGImage updateImpl(
55          com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge)
56          throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.imagegallery.model.IGImage findByPrimaryKey(
59          long imageId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.imagegallery.NoSuchImageException;
62  
63      public com.liferay.portlet.imagegallery.model.IGImage fetchByPrimaryKey(
64          long imageId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
67          java.lang.String uuid) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
70          java.lang.String uuid, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid(
74          java.lang.String uuid, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.imagegallery.model.IGImage findByUuid_First(
79          java.lang.String uuid,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.imagegallery.NoSuchImageException;
83  
84      public com.liferay.portlet.imagegallery.model.IGImage findByUuid_Last(
85          java.lang.String uuid,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.imagegallery.NoSuchImageException;
89  
90      public com.liferay.portlet.imagegallery.model.IGImage[] findByUuid_PrevAndNext(
91          long imageId, java.lang.String uuid,
92          com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.imagegallery.NoSuchImageException;
95  
96      public com.liferay.portlet.imagegallery.model.IGImage findByUUID_G(
97          java.lang.String uuid, long groupId)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.imagegallery.NoSuchImageException;
100 
101     public com.liferay.portlet.imagegallery.model.IGImage fetchByUUID_G(
102         java.lang.String uuid, long groupId)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.imagegallery.model.IGImage fetchByUUID_G(
106         java.lang.String uuid, long groupId, boolean retrieveFromCache)
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
110         long groupId) throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
113         long groupId, int start, int end)
114         throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId(
117         long groupId, int start, int end,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.imagegallery.model.IGImage findByGroupId_First(
122         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.imagegallery.NoSuchImageException;
125 
126     public com.liferay.portlet.imagegallery.model.IGImage findByGroupId_Last(
127         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.imagegallery.NoSuchImageException;
130 
131     public com.liferay.portlet.imagegallery.model.IGImage[] findByGroupId_PrevAndNext(
132         long imageId, long groupId,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.imagegallery.NoSuchImageException;
136 
137     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByFolderId(
138         long folderId) throws com.liferay.portal.SystemException;
139 
140     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByFolderId(
141         long folderId, int start, int end)
142         throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByFolderId(
145         long folderId, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException;
148 
149     public com.liferay.portlet.imagegallery.model.IGImage findByFolderId_First(
150         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.imagegallery.NoSuchImageException;
153 
154     public com.liferay.portlet.imagegallery.model.IGImage findByFolderId_Last(
155         long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.imagegallery.NoSuchImageException;
158 
159     public com.liferay.portlet.imagegallery.model.IGImage[] findByFolderId_PrevAndNext(
160         long imageId, long folderId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.imagegallery.NoSuchImageException;
164 
165     public com.liferay.portlet.imagegallery.model.IGImage findBySmallImageId(
166         long smallImageId)
167         throws com.liferay.portal.SystemException,
168             com.liferay.portlet.imagegallery.NoSuchImageException;
169 
170     public com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
171         long smallImageId) throws com.liferay.portal.SystemException;
172 
173     public com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId(
174         long smallImageId, boolean retrieveFromCache)
175         throws com.liferay.portal.SystemException;
176 
177     public com.liferay.portlet.imagegallery.model.IGImage findByLargeImageId(
178         long largeImageId)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.imagegallery.NoSuchImageException;
181 
182     public com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
183         long largeImageId) throws com.liferay.portal.SystemException;
184 
185     public com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId(
186         long largeImageId, boolean retrieveFromCache)
187         throws com.liferay.portal.SystemException;
188 
189     public com.liferay.portlet.imagegallery.model.IGImage findByCustom1ImageId(
190         long custom1ImageId)
191         throws com.liferay.portal.SystemException,
192             com.liferay.portlet.imagegallery.NoSuchImageException;
193 
194     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
195         long custom1ImageId) throws com.liferay.portal.SystemException;
196 
197     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId(
198         long custom1ImageId, boolean retrieveFromCache)
199         throws com.liferay.portal.SystemException;
200 
201     public com.liferay.portlet.imagegallery.model.IGImage findByCustom2ImageId(
202         long custom2ImageId)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.imagegallery.NoSuchImageException;
205 
206     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
207         long custom2ImageId) throws com.liferay.portal.SystemException;
208 
209     public com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId(
210         long custom2ImageId, boolean retrieveFromCache)
211         throws com.liferay.portal.SystemException;
212 
213     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
214         long groupId, long userId) throws com.liferay.portal.SystemException;
215 
216     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
217         long groupId, long userId, int start, int end)
218         throws com.liferay.portal.SystemException;
219 
220     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U(
221         long groupId, long userId, int start, int end,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException;
224 
225     public com.liferay.portlet.imagegallery.model.IGImage findByG_U_First(
226         long groupId, long userId,
227         com.liferay.portal.kernel.util.OrderByComparator obc)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.imagegallery.NoSuchImageException;
230 
231     public com.liferay.portlet.imagegallery.model.IGImage findByG_U_Last(
232         long groupId, long userId,
233         com.liferay.portal.kernel.util.OrderByComparator obc)
234         throws com.liferay.portal.SystemException,
235             com.liferay.portlet.imagegallery.NoSuchImageException;
236 
237     public com.liferay.portlet.imagegallery.model.IGImage[] findByG_U_PrevAndNext(
238         long imageId, long groupId, long userId,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.SystemException,
241             com.liferay.portlet.imagegallery.NoSuchImageException;
242 
243     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByF_N(
244         long folderId, java.lang.String name)
245         throws com.liferay.portal.SystemException;
246 
247     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByF_N(
248         long folderId, java.lang.String name, int start, int end)
249         throws com.liferay.portal.SystemException;
250 
251     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByF_N(
252         long folderId, java.lang.String name, int start, int end,
253         com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.SystemException;
255 
256     public com.liferay.portlet.imagegallery.model.IGImage findByF_N_First(
257         long folderId, java.lang.String name,
258         com.liferay.portal.kernel.util.OrderByComparator obc)
259         throws com.liferay.portal.SystemException,
260             com.liferay.portlet.imagegallery.NoSuchImageException;
261 
262     public com.liferay.portlet.imagegallery.model.IGImage findByF_N_Last(
263         long folderId, java.lang.String name,
264         com.liferay.portal.kernel.util.OrderByComparator obc)
265         throws com.liferay.portal.SystemException,
266             com.liferay.portlet.imagegallery.NoSuchImageException;
267 
268     public com.liferay.portlet.imagegallery.model.IGImage[] findByF_N_PrevAndNext(
269         long imageId, long folderId, java.lang.String name,
270         com.liferay.portal.kernel.util.OrderByComparator obc)
271         throws com.liferay.portal.SystemException,
272             com.liferay.portlet.imagegallery.NoSuchImageException;
273 
274     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll()
275         throws com.liferay.portal.SystemException;
276 
277     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
278         int start, int end) throws com.liferay.portal.SystemException;
279 
280     public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll(
281         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
282         throws com.liferay.portal.SystemException;
283 
284     public void removeByUuid(java.lang.String uuid)
285         throws com.liferay.portal.SystemException;
286 
287     public void removeByUUID_G(java.lang.String uuid, long groupId)
288         throws com.liferay.portal.SystemException,
289             com.liferay.portlet.imagegallery.NoSuchImageException;
290 
291     public void removeByGroupId(long groupId)
292         throws com.liferay.portal.SystemException;
293 
294     public void removeByFolderId(long folderId)
295         throws com.liferay.portal.SystemException;
296 
297     public void removeBySmallImageId(long smallImageId)
298         throws com.liferay.portal.SystemException,
299             com.liferay.portlet.imagegallery.NoSuchImageException;
300 
301     public void removeByLargeImageId(long largeImageId)
302         throws com.liferay.portal.SystemException,
303             com.liferay.portlet.imagegallery.NoSuchImageException;
304 
305     public void removeByCustom1ImageId(long custom1ImageId)
306         throws com.liferay.portal.SystemException,
307             com.liferay.portlet.imagegallery.NoSuchImageException;
308 
309     public void removeByCustom2ImageId(long custom2ImageId)
310         throws com.liferay.portal.SystemException,
311             com.liferay.portlet.imagegallery.NoSuchImageException;
312 
313     public void removeByG_U(long groupId, long userId)
314         throws com.liferay.portal.SystemException;
315 
316     public void removeByF_N(long folderId, java.lang.String name)
317         throws com.liferay.portal.SystemException;
318 
319     public void removeAll() throws com.liferay.portal.SystemException;
320 
321     public int countByUuid(java.lang.String uuid)
322         throws com.liferay.portal.SystemException;
323 
324     public int countByUUID_G(java.lang.String uuid, long groupId)
325         throws com.liferay.portal.SystemException;
326 
327     public int countByGroupId(long groupId)
328         throws com.liferay.portal.SystemException;
329 
330     public int countByFolderId(long folderId)
331         throws com.liferay.portal.SystemException;
332 
333     public int countBySmallImageId(long smallImageId)
334         throws com.liferay.portal.SystemException;
335 
336     public int countByLargeImageId(long largeImageId)
337         throws com.liferay.portal.SystemException;
338 
339     public int countByCustom1ImageId(long custom1ImageId)
340         throws com.liferay.portal.SystemException;
341 
342     public int countByCustom2ImageId(long custom2ImageId)
343         throws com.liferay.portal.SystemException;
344 
345     public int countByG_U(long groupId, long userId)
346         throws com.liferay.portal.SystemException;
347 
348     public int countByF_N(long folderId, java.lang.String name)
349         throws com.liferay.portal.SystemException;
350 
351     public int countAll() throws com.liferay.portal.SystemException;
352 }