1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
26   * <a href="IGFolderPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface IGFolderPersistence {
32      public com.liferay.portlet.imagegallery.model.IGFolder create(long folderId);
33  
34      public com.liferay.portlet.imagegallery.model.IGFolder remove(long folderId)
35          throws com.liferay.portal.SystemException, 
36              com.liferay.portlet.imagegallery.NoSuchFolderException;
37  
38      public com.liferay.portlet.imagegallery.model.IGFolder remove(
39          com.liferay.portlet.imagegallery.model.IGFolder igFolder)
40          throws com.liferay.portal.SystemException;
41  
42      public com.liferay.portlet.imagegallery.model.IGFolder update(
43          com.liferay.portlet.imagegallery.model.IGFolder igFolder)
44          throws com.liferay.portal.SystemException;
45  
46      public com.liferay.portlet.imagegallery.model.IGFolder update(
47          com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
48          throws com.liferay.portal.SystemException;
49  
50      public com.liferay.portlet.imagegallery.model.IGFolder updateImpl(
51          com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey(
55          long folderId)
56          throws com.liferay.portal.SystemException, 
57              com.liferay.portlet.imagegallery.NoSuchFolderException;
58  
59      public com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey(
60          long folderId) throws com.liferay.portal.SystemException;
61  
62      public java.util.List findByUuid(java.lang.String uuid)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
69          com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.imagegallery.model.IGFolder findByUuid_First(
73          java.lang.String uuid,
74          com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.SystemException, 
76              com.liferay.portlet.imagegallery.NoSuchFolderException;
77  
78      public com.liferay.portlet.imagegallery.model.IGFolder findByUuid_Last(
79          java.lang.String uuid,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException, 
82              com.liferay.portlet.imagegallery.NoSuchFolderException;
83  
84      public com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext(
85          long folderId, java.lang.String uuid,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException, 
88              com.liferay.portlet.imagegallery.NoSuchFolderException;
89  
90      public com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
91          java.lang.String uuid, long groupId)
92          throws com.liferay.portal.SystemException, 
93              com.liferay.portlet.imagegallery.NoSuchFolderException;
94  
95      public com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
96          java.lang.String uuid, long groupId)
97          throws com.liferay.portal.SystemException;
98  
99      public java.util.List findByGroupId(long groupId)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List findByGroupId(long groupId, int begin, int end)
103         throws com.liferay.portal.SystemException;
104 
105     public java.util.List findByGroupId(long groupId, int begin, int end,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException;
108 
109     public com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First(
110         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException, 
112             com.liferay.portlet.imagegallery.NoSuchFolderException;
113 
114     public com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
115         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.SystemException, 
117             com.liferay.portlet.imagegallery.NoSuchFolderException;
118 
119     public com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
120         long folderId, long groupId,
121         com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.SystemException, 
123             com.liferay.portlet.imagegallery.NoSuchFolderException;
124 
125     public java.util.List findByCompanyId(long companyId)
126         throws com.liferay.portal.SystemException;
127 
128     public java.util.List findByCompanyId(long companyId, int begin, int end)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List findByCompanyId(long companyId, int begin, int end,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException;
134 
135     public com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
136         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portlet.imagegallery.NoSuchFolderException;
139 
140     public com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
141         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException, 
143             com.liferay.portlet.imagegallery.NoSuchFolderException;
144 
145     public com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
146         long folderId, long companyId,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException, 
149             com.liferay.portlet.imagegallery.NoSuchFolderException;
150 
151     public java.util.List findByG_P(long groupId, long parentFolderId)
152         throws com.liferay.portal.SystemException;
153 
154     public java.util.List findByG_P(long groupId, long parentFolderId,
155         int begin, int end) throws com.liferay.portal.SystemException;
156 
157     public java.util.List findByG_P(long groupId, long parentFolderId,
158         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
159         throws com.liferay.portal.SystemException;
160 
161     public com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
162         long groupId, long parentFolderId,
163         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 findByG_P_Last(
168         long groupId, long parentFolderId,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException, 
171             com.liferay.portlet.imagegallery.NoSuchFolderException;
172 
173     public com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
174         long folderId, long groupId, long parentFolderId,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.SystemException, 
177             com.liferay.portlet.imagegallery.NoSuchFolderException;
178 
179     public java.util.List findWithDynamicQuery(
180         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
181         throws com.liferay.portal.SystemException;
182 
183     public java.util.List findWithDynamicQuery(
184         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
185         int begin, int end) throws com.liferay.portal.SystemException;
186 
187     public java.util.List findAll() throws com.liferay.portal.SystemException;
188 
189     public java.util.List findAll(int begin, int end)
190         throws com.liferay.portal.SystemException;
191 
192     public java.util.List findAll(int begin, int end,
193         com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException;
195 
196     public void removeByUuid(java.lang.String uuid)
197         throws com.liferay.portal.SystemException;
198 
199     public void removeByUUID_G(java.lang.String uuid, long groupId)
200         throws com.liferay.portal.SystemException, 
201             com.liferay.portlet.imagegallery.NoSuchFolderException;
202 
203     public void removeByGroupId(long groupId)
204         throws com.liferay.portal.SystemException;
205 
206     public void removeByCompanyId(long companyId)
207         throws com.liferay.portal.SystemException;
208 
209     public void removeByG_P(long groupId, long parentFolderId)
210         throws com.liferay.portal.SystemException;
211 
212     public void removeAll() throws com.liferay.portal.SystemException;
213 
214     public int countByUuid(java.lang.String uuid)
215         throws com.liferay.portal.SystemException;
216 
217     public int countByUUID_G(java.lang.String uuid, long groupId)
218         throws com.liferay.portal.SystemException;
219 
220     public int countByGroupId(long groupId)
221         throws com.liferay.portal.SystemException;
222 
223     public int countByCompanyId(long companyId)
224         throws com.liferay.portal.SystemException;
225 
226     public int countByG_P(long groupId, long parentFolderId)
227         throws com.liferay.portal.SystemException;
228 
229     public int countAll() throws com.liferay.portal.SystemException;
230 }