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