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.social.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.social.model.SocialRequest;
20  
21  /**
22   * <a href="SocialRequestPersistence.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       SocialRequestPersistenceImpl
31   * @see       SocialRequestUtil
32   * @generated
33   */
34  public interface SocialRequestPersistence extends BasePersistence<SocialRequest> {
35      public void cacheResult(
36          com.liferay.portlet.social.model.SocialRequest socialRequest);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.social.model.SocialRequest> socialRequests);
40  
41      public com.liferay.portlet.social.model.SocialRequest create(long requestId);
42  
43      public com.liferay.portlet.social.model.SocialRequest remove(long requestId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.social.NoSuchRequestException;
46  
47      public com.liferay.portlet.social.model.SocialRequest updateImpl(
48          com.liferay.portlet.social.model.SocialRequest socialRequest,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.social.model.SocialRequest findByPrimaryKey(
53          long requestId)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.social.NoSuchRequestException;
56  
57      public com.liferay.portlet.social.model.SocialRequest fetchByPrimaryKey(
58          long requestId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
62          java.lang.String uuid)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
66          java.lang.String uuid, int start, int end)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
70          java.lang.String uuid, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portlet.social.model.SocialRequest findByUuid_First(
75          java.lang.String uuid,
76          com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.kernel.exception.SystemException,
78              com.liferay.portlet.social.NoSuchRequestException;
79  
80      public com.liferay.portlet.social.model.SocialRequest findByUuid_Last(
81          java.lang.String uuid,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.kernel.exception.SystemException,
84              com.liferay.portlet.social.NoSuchRequestException;
85  
86      public com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext(
87          long requestId, java.lang.String uuid,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.kernel.exception.SystemException,
90              com.liferay.portlet.social.NoSuchRequestException;
91  
92      public com.liferay.portlet.social.model.SocialRequest findByUUID_G(
93          java.lang.String uuid, long groupId)
94          throws com.liferay.portal.kernel.exception.SystemException,
95              com.liferay.portlet.social.NoSuchRequestException;
96  
97      public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
98          java.lang.String uuid, long groupId)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
102         java.lang.String uuid, long groupId, boolean retrieveFromCache)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
106         long companyId)
107         throws com.liferay.portal.kernel.exception.SystemException;
108 
109     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
110         long companyId, int start, int end)
111         throws com.liferay.portal.kernel.exception.SystemException;
112 
113     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
114         long companyId, int start, int end,
115         com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.kernel.exception.SystemException;
117 
118     public com.liferay.portlet.social.model.SocialRequest findByCompanyId_First(
119         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.social.NoSuchRequestException;
122 
123     public com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last(
124         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.social.NoSuchRequestException;
127 
128     public com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext(
129         long requestId, long companyId,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.kernel.exception.SystemException,
132             com.liferay.portlet.social.NoSuchRequestException;
133 
134     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
135         long userId) throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
138         long userId, int start, int end)
139         throws com.liferay.portal.kernel.exception.SystemException;
140 
141     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
142         long userId, 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.social.model.SocialRequest findByUserId_First(
147         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.kernel.exception.SystemException,
149             com.liferay.portlet.social.NoSuchRequestException;
150 
151     public com.liferay.portlet.social.model.SocialRequest findByUserId_Last(
152         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.social.NoSuchRequestException;
155 
156     public com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext(
157         long requestId, long userId,
158         com.liferay.portal.kernel.util.OrderByComparator obc)
159         throws com.liferay.portal.kernel.exception.SystemException,
160             com.liferay.portlet.social.NoSuchRequestException;
161 
162     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
163         long receiverUserId)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
167         long receiverUserId, int start, int end)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
171         long receiverUserId, 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.social.model.SocialRequest findByReceiverUserId_First(
176         long receiverUserId,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.kernel.exception.SystemException,
179             com.liferay.portlet.social.NoSuchRequestException;
180 
181     public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last(
182         long receiverUserId,
183         com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.kernel.exception.SystemException,
185             com.liferay.portlet.social.NoSuchRequestException;
186 
187     public com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext(
188         long requestId, long receiverUserId,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.kernel.exception.SystemException,
191             com.liferay.portlet.social.NoSuchRequestException;
192 
193     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
194         long userId, int status)
195         throws com.liferay.portal.kernel.exception.SystemException;
196 
197     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
198         long userId, int status, int start, int end)
199         throws com.liferay.portal.kernel.exception.SystemException;
200 
201     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
202         long userId, int status, int start, int end,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.kernel.exception.SystemException;
205 
206     public com.liferay.portlet.social.model.SocialRequest findByU_S_First(
207         long userId, int status,
208         com.liferay.portal.kernel.util.OrderByComparator obc)
209         throws com.liferay.portal.kernel.exception.SystemException,
210             com.liferay.portlet.social.NoSuchRequestException;
211 
212     public com.liferay.portlet.social.model.SocialRequest findByU_S_Last(
213         long userId, int status,
214         com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.kernel.exception.SystemException,
216             com.liferay.portlet.social.NoSuchRequestException;
217 
218     public com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext(
219         long requestId, long userId, int status,
220         com.liferay.portal.kernel.util.OrderByComparator obc)
221         throws com.liferay.portal.kernel.exception.SystemException,
222             com.liferay.portlet.social.NoSuchRequestException;
223 
224     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
225         long receiverUserId, int status)
226         throws com.liferay.portal.kernel.exception.SystemException;
227 
228     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
229         long receiverUserId, int status, int start, int end)
230         throws com.liferay.portal.kernel.exception.SystemException;
231 
232     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
233         long receiverUserId, int status, int start, int end,
234         com.liferay.portal.kernel.util.OrderByComparator obc)
235         throws com.liferay.portal.kernel.exception.SystemException;
236 
237     public com.liferay.portlet.social.model.SocialRequest findByR_S_First(
238         long receiverUserId, int status,
239         com.liferay.portal.kernel.util.OrderByComparator obc)
240         throws com.liferay.portal.kernel.exception.SystemException,
241             com.liferay.portlet.social.NoSuchRequestException;
242 
243     public com.liferay.portlet.social.model.SocialRequest findByR_S_Last(
244         long receiverUserId, int status,
245         com.liferay.portal.kernel.util.OrderByComparator obc)
246         throws com.liferay.portal.kernel.exception.SystemException,
247             com.liferay.portlet.social.NoSuchRequestException;
248 
249     public com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext(
250         long requestId, long receiverUserId, int status,
251         com.liferay.portal.kernel.util.OrderByComparator obc)
252         throws com.liferay.portal.kernel.exception.SystemException,
253             com.liferay.portlet.social.NoSuchRequestException;
254 
255     public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R(
256         long userId, long classNameId, long classPK, int type,
257         long receiverUserId)
258         throws com.liferay.portal.kernel.exception.SystemException,
259             com.liferay.portlet.social.NoSuchRequestException;
260 
261     public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
262         long userId, long classNameId, long classPK, int type,
263         long receiverUserId)
264         throws com.liferay.portal.kernel.exception.SystemException;
265 
266     public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
267         long userId, long classNameId, long classPK, int type,
268         long receiverUserId, boolean retrieveFromCache)
269         throws com.liferay.portal.kernel.exception.SystemException;
270 
271     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
272         long userId, long classNameId, long classPK, int type, int status)
273         throws com.liferay.portal.kernel.exception.SystemException;
274 
275     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
276         long userId, long classNameId, long classPK, int type, int status,
277         int start, int end)
278         throws com.liferay.portal.kernel.exception.SystemException;
279 
280     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
281         long userId, long classNameId, long classPK, int type, int status,
282         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
283         throws com.liferay.portal.kernel.exception.SystemException;
284 
285     public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
286         long userId, long classNameId, long classPK, int type, int status,
287         com.liferay.portal.kernel.util.OrderByComparator obc)
288         throws com.liferay.portal.kernel.exception.SystemException,
289             com.liferay.portlet.social.NoSuchRequestException;
290 
291     public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
292         long userId, long classNameId, long classPK, int type, int status,
293         com.liferay.portal.kernel.util.OrderByComparator obc)
294         throws com.liferay.portal.kernel.exception.SystemException,
295             com.liferay.portlet.social.NoSuchRequestException;
296 
297     public com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
298         long requestId, long userId, long classNameId, long classPK, int type,
299         int status, com.liferay.portal.kernel.util.OrderByComparator obc)
300         throws com.liferay.portal.kernel.exception.SystemException,
301             com.liferay.portlet.social.NoSuchRequestException;
302 
303     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
304         long classNameId, long classPK, int type, long receiverUserId,
305         int status) throws com.liferay.portal.kernel.exception.SystemException;
306 
307     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
308         long classNameId, long classPK, int type, long receiverUserId,
309         int status, int start, int end)
310         throws com.liferay.portal.kernel.exception.SystemException;
311 
312     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
313         long classNameId, long classPK, int type, long receiverUserId,
314         int status, int start, int end,
315         com.liferay.portal.kernel.util.OrderByComparator obc)
316         throws com.liferay.portal.kernel.exception.SystemException;
317 
318     public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First(
319         long classNameId, long classPK, int type, long receiverUserId,
320         int status, com.liferay.portal.kernel.util.OrderByComparator obc)
321         throws com.liferay.portal.kernel.exception.SystemException,
322             com.liferay.portlet.social.NoSuchRequestException;
323 
324     public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_Last(
325         long classNameId, long classPK, int type, long receiverUserId,
326         int status, com.liferay.portal.kernel.util.OrderByComparator obc)
327         throws com.liferay.portal.kernel.exception.SystemException,
328             com.liferay.portlet.social.NoSuchRequestException;
329 
330     public com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext(
331         long requestId, long classNameId, long classPK, int type,
332         long receiverUserId, int status,
333         com.liferay.portal.kernel.util.OrderByComparator obc)
334         throws com.liferay.portal.kernel.exception.SystemException,
335             com.liferay.portlet.social.NoSuchRequestException;
336 
337     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
338         throws com.liferay.portal.kernel.exception.SystemException;
339 
340     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
341         int start, int end)
342         throws com.liferay.portal.kernel.exception.SystemException;
343 
344     public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
345         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
346         throws com.liferay.portal.kernel.exception.SystemException;
347 
348     public void removeByUuid(java.lang.String uuid)
349         throws com.liferay.portal.kernel.exception.SystemException;
350 
351     public void removeByUUID_G(java.lang.String uuid, long groupId)
352         throws com.liferay.portal.kernel.exception.SystemException,
353             com.liferay.portlet.social.NoSuchRequestException;
354 
355     public void removeByCompanyId(long companyId)
356         throws com.liferay.portal.kernel.exception.SystemException;
357 
358     public void removeByUserId(long userId)
359         throws com.liferay.portal.kernel.exception.SystemException;
360 
361     public void removeByReceiverUserId(long receiverUserId)
362         throws com.liferay.portal.kernel.exception.SystemException;
363 
364     public void removeByU_S(long userId, int status)
365         throws com.liferay.portal.kernel.exception.SystemException;
366 
367     public void removeByR_S(long receiverUserId, int status)
368         throws com.liferay.portal.kernel.exception.SystemException;
369 
370     public void removeByU_C_C_T_R(long userId, long classNameId, long classPK,
371         int type, long receiverUserId)
372         throws com.liferay.portal.kernel.exception.SystemException,
373             com.liferay.portlet.social.NoSuchRequestException;
374 
375     public void removeByU_C_C_T_S(long userId, long classNameId, long classPK,
376         int type, int status)
377         throws com.liferay.portal.kernel.exception.SystemException;
378 
379     public void removeByC_C_T_R_S(long classNameId, long classPK, int type,
380         long receiverUserId, int status)
381         throws com.liferay.portal.kernel.exception.SystemException;
382 
383     public void removeAll()
384         throws com.liferay.portal.kernel.exception.SystemException;
385 
386     public int countByUuid(java.lang.String uuid)
387         throws com.liferay.portal.kernel.exception.SystemException;
388 
389     public int countByUUID_G(java.lang.String uuid, long groupId)
390         throws com.liferay.portal.kernel.exception.SystemException;
391 
392     public int countByCompanyId(long companyId)
393         throws com.liferay.portal.kernel.exception.SystemException;
394 
395     public int countByUserId(long userId)
396         throws com.liferay.portal.kernel.exception.SystemException;
397 
398     public int countByReceiverUserId(long receiverUserId)
399         throws com.liferay.portal.kernel.exception.SystemException;
400 
401     public int countByU_S(long userId, int status)
402         throws com.liferay.portal.kernel.exception.SystemException;
403 
404     public int countByR_S(long receiverUserId, int status)
405         throws com.liferay.portal.kernel.exception.SystemException;
406 
407     public int countByU_C_C_T_R(long userId, long classNameId, long classPK,
408         int type, long receiverUserId)
409         throws com.liferay.portal.kernel.exception.SystemException;
410 
411     public int countByU_C_C_T_S(long userId, long classNameId, long classPK,
412         int type, int status)
413         throws com.liferay.portal.kernel.exception.SystemException;
414 
415     public int countByC_C_T_R_S(long classNameId, long classPK, int type,
416         long receiverUserId, int status)
417         throws com.liferay.portal.kernel.exception.SystemException;
418 
419     public int countAll()
420         throws com.liferay.portal.kernel.exception.SystemException;
421 }