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