001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.social.model.SocialRequest;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       SocialRequestPersistenceImpl
024     * @see       SocialRequestUtil
025     * @generated
026     */
027    public interface SocialRequestPersistence extends BasePersistence<SocialRequest> {
028            public void cacheResult(
029                    com.liferay.portlet.social.model.SocialRequest socialRequest);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.social.model.SocialRequest> socialRequests);
033    
034            public com.liferay.portlet.social.model.SocialRequest create(long requestId);
035    
036            public com.liferay.portlet.social.model.SocialRequest remove(long requestId)
037                    throws com.liferay.portal.kernel.exception.SystemException,
038                            com.liferay.portlet.social.NoSuchRequestException;
039    
040            public com.liferay.portlet.social.model.SocialRequest updateImpl(
041                    com.liferay.portlet.social.model.SocialRequest socialRequest,
042                    boolean merge)
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portlet.social.model.SocialRequest findByPrimaryKey(
046                    long requestId)
047                    throws com.liferay.portal.kernel.exception.SystemException,
048                            com.liferay.portlet.social.NoSuchRequestException;
049    
050            public com.liferay.portlet.social.model.SocialRequest fetchByPrimaryKey(
051                    long requestId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
055                    java.lang.String uuid)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
059                    java.lang.String uuid, int start, int end)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
063                    java.lang.String uuid, int start, int end,
064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portlet.social.model.SocialRequest findByUuid_First(
068                    java.lang.String uuid,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.kernel.exception.SystemException,
071                            com.liferay.portlet.social.NoSuchRequestException;
072    
073            public com.liferay.portlet.social.model.SocialRequest findByUuid_Last(
074                    java.lang.String uuid,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.kernel.exception.SystemException,
077                            com.liferay.portlet.social.NoSuchRequestException;
078    
079            public com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext(
080                    long requestId, java.lang.String uuid,
081                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
082                    throws com.liferay.portal.kernel.exception.SystemException,
083                            com.liferay.portlet.social.NoSuchRequestException;
084    
085            public com.liferay.portlet.social.model.SocialRequest findByUUID_G(
086                    java.lang.String uuid, long groupId)
087                    throws com.liferay.portal.kernel.exception.SystemException,
088                            com.liferay.portlet.social.NoSuchRequestException;
089    
090            public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
091                    java.lang.String uuid, long groupId)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
095                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
099                    long companyId)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
103                    long companyId, int start, int end)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
107                    long companyId, int start, int end,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException;
110    
111            public com.liferay.portlet.social.model.SocialRequest findByCompanyId_First(
112                    long companyId,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException,
115                            com.liferay.portlet.social.NoSuchRequestException;
116    
117            public com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last(
118                    long companyId,
119                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120                    throws com.liferay.portal.kernel.exception.SystemException,
121                            com.liferay.portlet.social.NoSuchRequestException;
122    
123            public com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext(
124                    long requestId, long companyId,
125                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126                    throws com.liferay.portal.kernel.exception.SystemException,
127                            com.liferay.portlet.social.NoSuchRequestException;
128    
129            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
130                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
131    
132            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
133                    long userId, int start, int end)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
137                    long userId, int start, int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            public com.liferay.portlet.social.model.SocialRequest findByUserId_First(
142                    long userId,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException,
145                            com.liferay.portlet.social.NoSuchRequestException;
146    
147            public com.liferay.portlet.social.model.SocialRequest findByUserId_Last(
148                    long userId,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException,
151                            com.liferay.portlet.social.NoSuchRequestException;
152    
153            public com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext(
154                    long requestId, long userId,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.kernel.exception.SystemException,
157                            com.liferay.portlet.social.NoSuchRequestException;
158    
159            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
160                    long receiverUserId)
161                    throws com.liferay.portal.kernel.exception.SystemException;
162    
163            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
164                    long receiverUserId, int start, int end)
165                    throws com.liferay.portal.kernel.exception.SystemException;
166    
167            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
168                    long receiverUserId, int start, int end,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException;
171    
172            public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First(
173                    long receiverUserId,
174                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.social.NoSuchRequestException;
177    
178            public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last(
179                    long receiverUserId,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.social.NoSuchRequestException;
183    
184            public com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext(
185                    long requestId, long receiverUserId,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.social.NoSuchRequestException;
189    
190            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
191                    long userId, int status)
192                    throws com.liferay.portal.kernel.exception.SystemException;
193    
194            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
195                    long userId, int status, int start, int end)
196                    throws com.liferay.portal.kernel.exception.SystemException;
197    
198            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
199                    long userId, int status, int start, int end,
200                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
201                    throws com.liferay.portal.kernel.exception.SystemException;
202    
203            public com.liferay.portlet.social.model.SocialRequest findByU_S_First(
204                    long userId, int status,
205                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206                    throws com.liferay.portal.kernel.exception.SystemException,
207                            com.liferay.portlet.social.NoSuchRequestException;
208    
209            public com.liferay.portlet.social.model.SocialRequest findByU_S_Last(
210                    long userId, int status,
211                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
212                    throws com.liferay.portal.kernel.exception.SystemException,
213                            com.liferay.portlet.social.NoSuchRequestException;
214    
215            public com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext(
216                    long requestId, long userId, int status,
217                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218                    throws com.liferay.portal.kernel.exception.SystemException,
219                            com.liferay.portlet.social.NoSuchRequestException;
220    
221            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
222                    long receiverUserId, int status)
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
226                    long receiverUserId, int status, int start, int end)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
230                    long receiverUserId, int status, int start, int end,
231                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            public com.liferay.portlet.social.model.SocialRequest findByR_S_First(
235                    long receiverUserId, int status,
236                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237                    throws com.liferay.portal.kernel.exception.SystemException,
238                            com.liferay.portlet.social.NoSuchRequestException;
239    
240            public com.liferay.portlet.social.model.SocialRequest findByR_S_Last(
241                    long receiverUserId, int status,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException,
244                            com.liferay.portlet.social.NoSuchRequestException;
245    
246            public com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext(
247                    long requestId, long receiverUserId, int status,
248                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249                    throws com.liferay.portal.kernel.exception.SystemException,
250                            com.liferay.portlet.social.NoSuchRequestException;
251    
252            public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R(
253                    long userId, long classNameId, long classPK, int type,
254                    long receiverUserId)
255                    throws com.liferay.portal.kernel.exception.SystemException,
256                            com.liferay.portlet.social.NoSuchRequestException;
257    
258            public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
259                    long userId, long classNameId, long classPK, int type,
260                    long receiverUserId)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
264                    long userId, long classNameId, long classPK, int type,
265                    long receiverUserId, boolean retrieveFromCache)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
269                    long userId, long classNameId, long classPK, int type, int status)
270                    throws com.liferay.portal.kernel.exception.SystemException;
271    
272            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
273                    long userId, long classNameId, long classPK, int type, int status,
274                    int start, int end)
275                    throws com.liferay.portal.kernel.exception.SystemException;
276    
277            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
278                    long userId, long classNameId, long classPK, int type, int status,
279                    int start, int end,
280                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281                    throws com.liferay.portal.kernel.exception.SystemException;
282    
283            public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
284                    long userId, long classNameId, long classPK, int type, int status,
285                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
286                    throws com.liferay.portal.kernel.exception.SystemException,
287                            com.liferay.portlet.social.NoSuchRequestException;
288    
289            public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
290                    long userId, long classNameId, long classPK, int type, int status,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException,
293                            com.liferay.portlet.social.NoSuchRequestException;
294    
295            public com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
296                    long requestId, long userId, long classNameId, long classPK, int type,
297                    int status,
298                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
299                    throws com.liferay.portal.kernel.exception.SystemException,
300                            com.liferay.portlet.social.NoSuchRequestException;
301    
302            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
303                    long classNameId, long classPK, int type, long receiverUserId,
304                    int status) throws com.liferay.portal.kernel.exception.SystemException;
305    
306            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
307                    long classNameId, long classPK, int type, long receiverUserId,
308                    int status, int start, int end)
309                    throws com.liferay.portal.kernel.exception.SystemException;
310    
311            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
312                    long classNameId, long classPK, int type, long receiverUserId,
313                    int status, int start, int end,
314                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315                    throws com.liferay.portal.kernel.exception.SystemException;
316    
317            public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First(
318                    long classNameId, long classPK, int type, long receiverUserId,
319                    int status,
320                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
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,
327                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328                    throws com.liferay.portal.kernel.exception.SystemException,
329                            com.liferay.portlet.social.NoSuchRequestException;
330    
331            public com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext(
332                    long requestId, long classNameId, long classPK, int type,
333                    long receiverUserId, int status,
334                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
335                    throws com.liferay.portal.kernel.exception.SystemException,
336                            com.liferay.portlet.social.NoSuchRequestException;
337    
338            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
339                    throws com.liferay.portal.kernel.exception.SystemException;
340    
341            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
342                    int start, int end)
343                    throws com.liferay.portal.kernel.exception.SystemException;
344    
345            public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
346                    int start, int end,
347                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
348                    throws com.liferay.portal.kernel.exception.SystemException;
349    
350            public void removeByUuid(java.lang.String uuid)
351                    throws com.liferay.portal.kernel.exception.SystemException;
352    
353            public void removeByUUID_G(java.lang.String uuid, long groupId)
354                    throws com.liferay.portal.kernel.exception.SystemException,
355                            com.liferay.portlet.social.NoSuchRequestException;
356    
357            public void removeByCompanyId(long companyId)
358                    throws com.liferay.portal.kernel.exception.SystemException;
359    
360            public void removeByUserId(long userId)
361                    throws com.liferay.portal.kernel.exception.SystemException;
362    
363            public void removeByReceiverUserId(long receiverUserId)
364                    throws com.liferay.portal.kernel.exception.SystemException;
365    
366            public void removeByU_S(long userId, int status)
367                    throws com.liferay.portal.kernel.exception.SystemException;
368    
369            public void removeByR_S(long receiverUserId, int status)
370                    throws com.liferay.portal.kernel.exception.SystemException;
371    
372            public void removeByU_C_C_T_R(long userId, long classNameId, long classPK,
373                    int type, long receiverUserId)
374                    throws com.liferay.portal.kernel.exception.SystemException,
375                            com.liferay.portlet.social.NoSuchRequestException;
376    
377            public void removeByU_C_C_T_S(long userId, long classNameId, long classPK,
378                    int type, int status)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            public void removeByC_C_T_R_S(long classNameId, long classPK, int type,
382                    long receiverUserId, int status)
383                    throws com.liferay.portal.kernel.exception.SystemException;
384    
385            public void removeAll()
386                    throws com.liferay.portal.kernel.exception.SystemException;
387    
388            public int countByUuid(java.lang.String uuid)
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            public int countByUUID_G(java.lang.String uuid, long groupId)
392                    throws com.liferay.portal.kernel.exception.SystemException;
393    
394            public int countByCompanyId(long companyId)
395                    throws com.liferay.portal.kernel.exception.SystemException;
396    
397            public int countByUserId(long userId)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            public int countByReceiverUserId(long receiverUserId)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            public int countByU_S(long userId, int status)
404                    throws com.liferay.portal.kernel.exception.SystemException;
405    
406            public int countByR_S(long receiverUserId, int status)
407                    throws com.liferay.portal.kernel.exception.SystemException;
408    
409            public int countByU_C_C_T_R(long userId, long classNameId, long classPK,
410                    int type, long receiverUserId)
411                    throws com.liferay.portal.kernel.exception.SystemException;
412    
413            public int countByU_C_C_T_S(long userId, long classNameId, long classPK,
414                    int type, int status)
415                    throws com.liferay.portal.kernel.exception.SystemException;
416    
417            public int countByC_C_T_R_S(long classNameId, long classPK, int type,
418                    long receiverUserId, int status)
419                    throws com.liferay.portal.kernel.exception.SystemException;
420    
421            public int countAll()
422                    throws com.liferay.portal.kernel.exception.SystemException;
423    }