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.IGFolder;
20  
21  /**
22   * <a href="IGFolderPersistence.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       IGFolderPersistenceImpl
31   * @see       IGFolderUtil
32   * @generated
33   */
34  public interface IGFolderPersistence extends BasePersistence<IGFolder> {
35      public void cacheResult(
36          com.liferay.portlet.imagegallery.model.IGFolder igFolder);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> igFolders);
40  
41      public com.liferay.portlet.imagegallery.model.IGFolder create(long folderId);
42  
43      public com.liferay.portlet.imagegallery.model.IGFolder remove(long folderId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.imagegallery.NoSuchFolderException;
46  
47      public com.liferay.portlet.imagegallery.model.IGFolder updateImpl(
48          com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
49          throws com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey(
52          long folderId)
53          throws com.liferay.portal.kernel.exception.SystemException,
54              com.liferay.portlet.imagegallery.NoSuchFolderException;
55  
56      public com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey(
57          long folderId)
58          throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> 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.IGFolder> 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.IGFolder> 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.IGFolder 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.NoSuchFolderException;
78  
79      public com.liferay.portlet.imagegallery.model.IGFolder 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.NoSuchFolderException;
84  
85      public com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext(
86          long folderId, 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.NoSuchFolderException;
90  
91      public com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
92          java.lang.String uuid, long groupId)
93          throws com.liferay.portal.kernel.exception.SystemException,
94              com.liferay.portlet.imagegallery.NoSuchFolderException;
95  
96      public com.liferay.portlet.imagegallery.model.IGFolder 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.IGFolder 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.IGFolder> findByGroupId(
105         long groupId)
106         throws com.liferay.portal.kernel.exception.SystemException;
107 
108     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> 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.IGFolder> 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.IGFolder 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.NoSuchFolderException;
122 
123     public com.liferay.portlet.imagegallery.model.IGFolder 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.NoSuchFolderException;
128 
129     public com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
130         long folderId, long groupId,
131         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132         throws com.liferay.portal.kernel.exception.SystemException,
133             com.liferay.portlet.imagegallery.NoSuchFolderException;
134 
135     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
136         long companyId)
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
140         long companyId, int start, int end)
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
144         long companyId, int start, int end,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
149         long companyId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.kernel.exception.SystemException,
152             com.liferay.portlet.imagegallery.NoSuchFolderException;
153 
154     public com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
155         long companyId,
156         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157         throws com.liferay.portal.kernel.exception.SystemException,
158             com.liferay.portlet.imagegallery.NoSuchFolderException;
159 
160     public com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
161         long folderId, long companyId,
162         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163         throws com.liferay.portal.kernel.exception.SystemException,
164             com.liferay.portlet.imagegallery.NoSuchFolderException;
165 
166     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
167         long groupId, long parentFolderId)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
171         long groupId, long parentFolderId, int start, int end)
172         throws com.liferay.portal.kernel.exception.SystemException;
173 
174     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
175         long groupId, long parentFolderId, int start, int end,
176         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
180         long groupId, long parentFolderId,
181         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182         throws com.liferay.portal.kernel.exception.SystemException,
183             com.liferay.portlet.imagegallery.NoSuchFolderException;
184 
185     public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
186         long groupId, long parentFolderId,
187         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188         throws com.liferay.portal.kernel.exception.SystemException,
189             com.liferay.portlet.imagegallery.NoSuchFolderException;
190 
191     public com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
192         long folderId, long groupId, long parentFolderId,
193         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194         throws com.liferay.portal.kernel.exception.SystemException,
195             com.liferay.portlet.imagegallery.NoSuchFolderException;
196 
197     public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N(
198         long groupId, long parentFolderId, java.lang.String name)
199         throws com.liferay.portal.kernel.exception.SystemException,
200             com.liferay.portlet.imagegallery.NoSuchFolderException;
201 
202     public com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
203         long groupId, long parentFolderId, java.lang.String name)
204         throws com.liferay.portal.kernel.exception.SystemException;
205 
206     public com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
207         long groupId, long parentFolderId, java.lang.String name,
208         boolean retrieveFromCache)
209         throws com.liferay.portal.kernel.exception.SystemException;
210 
211     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll()
212         throws com.liferay.portal.kernel.exception.SystemException;
213 
214     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
215         int start, int end)
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
219         int start, int end,
220         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221         throws com.liferay.portal.kernel.exception.SystemException;
222 
223     public void removeByUuid(java.lang.String uuid)
224         throws com.liferay.portal.kernel.exception.SystemException;
225 
226     public void removeByUUID_G(java.lang.String uuid, long groupId)
227         throws com.liferay.portal.kernel.exception.SystemException,
228             com.liferay.portlet.imagegallery.NoSuchFolderException;
229 
230     public void removeByGroupId(long groupId)
231         throws com.liferay.portal.kernel.exception.SystemException;
232 
233     public void removeByCompanyId(long companyId)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     public void removeByG_P(long groupId, long parentFolderId)
237         throws com.liferay.portal.kernel.exception.SystemException;
238 
239     public void removeByG_P_N(long groupId, long parentFolderId,
240         java.lang.String name)
241         throws com.liferay.portal.kernel.exception.SystemException,
242             com.liferay.portlet.imagegallery.NoSuchFolderException;
243 
244     public void removeAll()
245         throws com.liferay.portal.kernel.exception.SystemException;
246 
247     public int countByUuid(java.lang.String uuid)
248         throws com.liferay.portal.kernel.exception.SystemException;
249 
250     public int countByUUID_G(java.lang.String uuid, long groupId)
251         throws com.liferay.portal.kernel.exception.SystemException;
252 
253     public int countByGroupId(long groupId)
254         throws com.liferay.portal.kernel.exception.SystemException;
255 
256     public int countByCompanyId(long companyId)
257         throws com.liferay.portal.kernel.exception.SystemException;
258 
259     public int countByG_P(long groupId, long parentFolderId)
260         throws com.liferay.portal.kernel.exception.SystemException;
261 
262     public int countByG_P_N(long groupId, long parentFolderId,
263         java.lang.String name)
264         throws com.liferay.portal.kernel.exception.SystemException;
265 
266     public int countAll()
267         throws com.liferay.portal.kernel.exception.SystemException;
268 }