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 obc)
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 obc)
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 obc)
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 obc)
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 obc)
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First(
118         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.kernel.exception.SystemException,
120             com.liferay.portlet.imagegallery.NoSuchFolderException;
121 
122     public com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
123         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
124         throws com.liferay.portal.kernel.exception.SystemException,
125             com.liferay.portlet.imagegallery.NoSuchFolderException;
126 
127     public com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
128         long folderId, long groupId,
129         com.liferay.portal.kernel.util.OrderByComparator obc)
130         throws com.liferay.portal.kernel.exception.SystemException,
131             com.liferay.portlet.imagegallery.NoSuchFolderException;
132 
133     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
134         long companyId)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
138         long companyId, int start, int end)
139         throws com.liferay.portal.kernel.exception.SystemException;
140 
141     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
142         long companyId, int start, int end,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
147         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.imagegallery.NoSuchFolderException;
150 
151     public com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
152         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.imagegallery.NoSuchFolderException;
155 
156     public com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
157         long folderId, long companyId,
158         com.liferay.portal.kernel.util.OrderByComparator obc)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.imagegallery.NoSuchFolderException;
161 
162     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
163         long groupId, long parentFolderId)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
167         long groupId, long parentFolderId, int start, int end)
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         com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
176         long groupId, long parentFolderId,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.kernel.exception.SystemException,
179             com.liferay.portlet.imagegallery.NoSuchFolderException;
180 
181     public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
182         long groupId, long parentFolderId,
183         com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.kernel.exception.SystemException,
185             com.liferay.portlet.imagegallery.NoSuchFolderException;
186 
187     public com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
188         long folderId, long groupId, long parentFolderId,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.kernel.exception.SystemException,
191             com.liferay.portlet.imagegallery.NoSuchFolderException;
192 
193     public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N(
194         long groupId, long parentFolderId, java.lang.String name)
195         throws com.liferay.portal.kernel.exception.SystemException,
196             com.liferay.portlet.imagegallery.NoSuchFolderException;
197 
198     public com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
199         long groupId, long parentFolderId, java.lang.String name)
200         throws com.liferay.portal.kernel.exception.SystemException;
201 
202     public com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
203         long groupId, long parentFolderId, java.lang.String name,
204         boolean retrieveFromCache)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll()
208         throws com.liferay.portal.kernel.exception.SystemException;
209 
210     public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
211         int start, int end)
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, com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     public void removeByUuid(java.lang.String uuid)
219         throws com.liferay.portal.kernel.exception.SystemException;
220 
221     public void removeByUUID_G(java.lang.String uuid, long groupId)
222         throws com.liferay.portal.kernel.exception.SystemException,
223             com.liferay.portlet.imagegallery.NoSuchFolderException;
224 
225     public void removeByGroupId(long groupId)
226         throws com.liferay.portal.kernel.exception.SystemException;
227 
228     public void removeByCompanyId(long companyId)
229         throws com.liferay.portal.kernel.exception.SystemException;
230 
231     public void removeByG_P(long groupId, long parentFolderId)
232         throws com.liferay.portal.kernel.exception.SystemException;
233 
234     public void removeByG_P_N(long groupId, long parentFolderId,
235         java.lang.String name)
236         throws com.liferay.portal.kernel.exception.SystemException,
237             com.liferay.portlet.imagegallery.NoSuchFolderException;
238 
239     public void removeAll()
240         throws com.liferay.portal.kernel.exception.SystemException;
241 
242     public int countByUuid(java.lang.String uuid)
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     public int countByUUID_G(java.lang.String uuid, long groupId)
246         throws com.liferay.portal.kernel.exception.SystemException;
247 
248     public int countByGroupId(long groupId)
249         throws com.liferay.portal.kernel.exception.SystemException;
250 
251     public int countByCompanyId(long companyId)
252         throws com.liferay.portal.kernel.exception.SystemException;
253 
254     public int countByG_P(long groupId, long parentFolderId)
255         throws com.liferay.portal.kernel.exception.SystemException;
256 
257     public int countByG_P_N(long groupId, long parentFolderId,
258         java.lang.String name)
259         throws com.liferay.portal.kernel.exception.SystemException;
260 
261     public int countAll()
262         throws com.liferay.portal.kernel.exception.SystemException;
263 }