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.IGFolder;
28  
29  /**
30   * <a href="IGFolderPersistence.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       IGFolderPersistenceImpl
39   * @see       IGFolderUtil
40   * @generated
41   */
42  public interface IGFolderPersistence extends BasePersistence<IGFolder> {
43      public void cacheResult(
44          com.liferay.portlet.imagegallery.model.IGFolder igFolder);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> igFolders);
48  
49      public com.liferay.portlet.imagegallery.model.IGFolder create(long folderId);
50  
51      public com.liferay.portlet.imagegallery.model.IGFolder remove(long folderId)
52          throws com.liferay.portal.SystemException,
53              com.liferay.portlet.imagegallery.NoSuchFolderException;
54  
55      /**
56       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
57       */
58      public com.liferay.portlet.imagegallery.model.IGFolder update(
59          com.liferay.portlet.imagegallery.model.IGFolder igFolder)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.imagegallery.model.IGFolder updateImpl(
63          com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
64          throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey(
67          long folderId)
68          throws com.liferay.portal.SystemException,
69              com.liferay.portlet.imagegallery.NoSuchFolderException;
70  
71      public com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey(
72          long folderId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
75          java.lang.String uuid) throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> 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.IGFolder> 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.IGFolder 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.NoSuchFolderException;
91  
92      public com.liferay.portlet.imagegallery.model.IGFolder 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.NoSuchFolderException;
97  
98      public com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext(
99          long folderId, java.lang.String uuid,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException,
102             com.liferay.portlet.imagegallery.NoSuchFolderException;
103 
104     public com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
105         java.lang.String uuid, long groupId)
106         throws com.liferay.portal.SystemException,
107             com.liferay.portlet.imagegallery.NoSuchFolderException;
108 
109     public com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
110         java.lang.String uuid, long groupId)
111         throws com.liferay.portal.SystemException;
112 
113     public com.liferay.portlet.imagegallery.model.IGFolder 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.IGFolder> findByGroupId(
118         long groupId) throws com.liferay.portal.SystemException;
119 
120     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> 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.IGFolder> 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.IGFolder findByGroupId_First(
130         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException,
132             com.liferay.portlet.imagegallery.NoSuchFolderException;
133 
134     public com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
135         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.imagegallery.NoSuchFolderException;
138 
139     public com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
140         long folderId, long groupId,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException,
143             com.liferay.portlet.imagegallery.NoSuchFolderException;
144 
145     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
146         long companyId) throws com.liferay.portal.SystemException;
147 
148     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
149         long companyId, int start, int end)
150         throws com.liferay.portal.SystemException;
151 
152     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
153         long companyId, 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.IGFolder findByCompanyId_First(
158         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
159         throws com.liferay.portal.SystemException,
160             com.liferay.portlet.imagegallery.NoSuchFolderException;
161 
162     public com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
163         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.imagegallery.NoSuchFolderException;
166 
167     public com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
168         long folderId, long companyId,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException,
171             com.liferay.portlet.imagegallery.NoSuchFolderException;
172 
173     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
174         long groupId, long parentFolderId)
175         throws com.liferay.portal.SystemException;
176 
177     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
178         long groupId, long parentFolderId, int start, int end)
179         throws com.liferay.portal.SystemException;
180 
181     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
182         long groupId, long parentFolderId, int start, int end,
183         com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException;
185 
186     public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
187         long groupId, long parentFolderId,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException,
190             com.liferay.portlet.imagegallery.NoSuchFolderException;
191 
192     public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
193         long groupId, long parentFolderId,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException,
196             com.liferay.portlet.imagegallery.NoSuchFolderException;
197 
198     public com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
199         long folderId, long groupId, long parentFolderId,
200         com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.SystemException,
202             com.liferay.portlet.imagegallery.NoSuchFolderException;
203 
204     public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N(
205         long groupId, long parentFolderId, java.lang.String name)
206         throws com.liferay.portal.SystemException,
207             com.liferay.portlet.imagegallery.NoSuchFolderException;
208 
209     public com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
210         long groupId, long parentFolderId, java.lang.String name)
211         throws com.liferay.portal.SystemException;
212 
213     public com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
214         long groupId, long parentFolderId, java.lang.String name,
215         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
216 
217     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll()
218         throws com.liferay.portal.SystemException;
219 
220     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
221         int start, int end) throws com.liferay.portal.SystemException;
222 
223     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
224         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.SystemException;
226 
227     public void removeByUuid(java.lang.String uuid)
228         throws com.liferay.portal.SystemException;
229 
230     public void removeByUUID_G(java.lang.String uuid, long groupId)
231         throws com.liferay.portal.SystemException,
232             com.liferay.portlet.imagegallery.NoSuchFolderException;
233 
234     public void removeByGroupId(long groupId)
235         throws com.liferay.portal.SystemException;
236 
237     public void removeByCompanyId(long companyId)
238         throws com.liferay.portal.SystemException;
239 
240     public void removeByG_P(long groupId, long parentFolderId)
241         throws com.liferay.portal.SystemException;
242 
243     public void removeByG_P_N(long groupId, long parentFolderId,
244         java.lang.String name)
245         throws com.liferay.portal.SystemException,
246             com.liferay.portlet.imagegallery.NoSuchFolderException;
247 
248     public void removeAll() throws com.liferay.portal.SystemException;
249 
250     public int countByUuid(java.lang.String uuid)
251         throws com.liferay.portal.SystemException;
252 
253     public int countByUUID_G(java.lang.String uuid, long groupId)
254         throws com.liferay.portal.SystemException;
255 
256     public int countByGroupId(long groupId)
257         throws com.liferay.portal.SystemException;
258 
259     public int countByCompanyId(long companyId)
260         throws com.liferay.portal.SystemException;
261 
262     public int countByG_P(long groupId, long parentFolderId)
263         throws com.liferay.portal.SystemException;
264 
265     public int countByG_P_N(long groupId, long parentFolderId,
266         java.lang.String name) throws com.liferay.portal.SystemException;
267 
268     public int countAll() throws com.liferay.portal.SystemException;
269 }