1
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
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
116 throws com.liferay.portal.kernel.exception.SystemException;
117
118 public com.liferay.portlet.social.model.SocialRequest findByCompanyId_First(
119 long companyId,
120 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
121 throws com.liferay.portal.kernel.exception.SystemException,
122 com.liferay.portlet.social.NoSuchRequestException;
123
124 public com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last(
125 long companyId,
126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127 throws com.liferay.portal.kernel.exception.SystemException,
128 com.liferay.portlet.social.NoSuchRequestException;
129
130 public com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext(
131 long requestId, long companyId,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException,
134 com.liferay.portlet.social.NoSuchRequestException;
135
136 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
137 long userId) throws com.liferay.portal.kernel.exception.SystemException;
138
139 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
140 long userId, int start, int end)
141 throws com.liferay.portal.kernel.exception.SystemException;
142
143 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
144 long userId, int start, int end,
145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146 throws com.liferay.portal.kernel.exception.SystemException;
147
148 public com.liferay.portlet.social.model.SocialRequest findByUserId_First(
149 long userId,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.social.NoSuchRequestException;
153
154 public com.liferay.portlet.social.model.SocialRequest findByUserId_Last(
155 long userId,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.kernel.exception.SystemException,
158 com.liferay.portlet.social.NoSuchRequestException;
159
160 public com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext(
161 long requestId, long userId,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.kernel.exception.SystemException,
164 com.liferay.portlet.social.NoSuchRequestException;
165
166 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
167 long receiverUserId)
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 throws com.liferay.portal.kernel.exception.SystemException;
173
174 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
175 long receiverUserId, int start, int end,
176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177 throws com.liferay.portal.kernel.exception.SystemException;
178
179 public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First(
180 long receiverUserId,
181 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
182 throws com.liferay.portal.kernel.exception.SystemException,
183 com.liferay.portlet.social.NoSuchRequestException;
184
185 public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last(
186 long receiverUserId,
187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188 throws com.liferay.portal.kernel.exception.SystemException,
189 com.liferay.portlet.social.NoSuchRequestException;
190
191 public com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext(
192 long requestId, long receiverUserId,
193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194 throws com.liferay.portal.kernel.exception.SystemException,
195 com.liferay.portlet.social.NoSuchRequestException;
196
197 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
198 long userId, int status)
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 throws com.liferay.portal.kernel.exception.SystemException;
204
205 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
206 long userId, int status, int start, int end,
207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208 throws com.liferay.portal.kernel.exception.SystemException;
209
210 public com.liferay.portlet.social.model.SocialRequest findByU_S_First(
211 long userId, int status,
212 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213 throws com.liferay.portal.kernel.exception.SystemException,
214 com.liferay.portlet.social.NoSuchRequestException;
215
216 public com.liferay.portlet.social.model.SocialRequest findByU_S_Last(
217 long userId, int status,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.kernel.exception.SystemException,
220 com.liferay.portlet.social.NoSuchRequestException;
221
222 public com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext(
223 long requestId, long userId, int status,
224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225 throws com.liferay.portal.kernel.exception.SystemException,
226 com.liferay.portlet.social.NoSuchRequestException;
227
228 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
229 long receiverUserId, int status)
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 throws com.liferay.portal.kernel.exception.SystemException;
235
236 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
237 long receiverUserId, int status, int start, int end,
238 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239 throws com.liferay.portal.kernel.exception.SystemException;
240
241 public com.liferay.portlet.social.model.SocialRequest findByR_S_First(
242 long receiverUserId, int status,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.kernel.exception.SystemException,
245 com.liferay.portlet.social.NoSuchRequestException;
246
247 public com.liferay.portlet.social.model.SocialRequest findByR_S_Last(
248 long receiverUserId, int status,
249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
250 throws com.liferay.portal.kernel.exception.SystemException,
251 com.liferay.portlet.social.NoSuchRequestException;
252
253 public com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext(
254 long requestId, long receiverUserId, int status,
255 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256 throws com.liferay.portal.kernel.exception.SystemException,
257 com.liferay.portlet.social.NoSuchRequestException;
258
259 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R(
260 long userId, long classNameId, long classPK, int type,
261 long receiverUserId)
262 throws com.liferay.portal.kernel.exception.SystemException,
263 com.liferay.portlet.social.NoSuchRequestException;
264
265 public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
266 long userId, long classNameId, long classPK, int type,
267 long receiverUserId)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270 public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
271 long userId, long classNameId, long classPK, int type,
272 long receiverUserId, boolean retrieveFromCache)
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 throws com.liferay.portal.kernel.exception.SystemException;
278
279 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
280 long userId, long classNameId, long classPK, int type, int status,
281 int start, int end)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
285 long userId, long classNameId, long classPK, int type, int status,
286 int start, int end,
287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
288 throws com.liferay.portal.kernel.exception.SystemException;
289
290 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
291 long userId, long classNameId, long classPK, int type, int status,
292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293 throws com.liferay.portal.kernel.exception.SystemException,
294 com.liferay.portlet.social.NoSuchRequestException;
295
296 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
297 long userId, long classNameId, long classPK, int type, 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 com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
303 long requestId, long userId, long classNameId, long classPK, int type,
304 int status,
305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306 throws com.liferay.portal.kernel.exception.SystemException,
307 com.liferay.portlet.social.NoSuchRequestException;
308
309 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
310 long classNameId, long classPK, int type, long receiverUserId,
311 int status) throws com.liferay.portal.kernel.exception.SystemException;
312
313 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
314 long classNameId, long classPK, int type, long receiverUserId,
315 int status, int start, int end)
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S(
319 long classNameId, long classPK, int type, long receiverUserId,
320 int status, int start, int end,
321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324 public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First(
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_Last(
332 long classNameId, long classPK, int type, long receiverUserId,
333 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 com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext(
339 long requestId, long classNameId, long classPK, int type,
340 long receiverUserId, int status,
341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342 throws com.liferay.portal.kernel.exception.SystemException,
343 com.liferay.portlet.social.NoSuchRequestException;
344
345 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
346 throws com.liferay.portal.kernel.exception.SystemException;
347
348 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
349 int start, int end)
350 throws com.liferay.portal.kernel.exception.SystemException;
351
352 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
353 int start, int end,
354 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
355 throws com.liferay.portal.kernel.exception.SystemException;
356
357 public void removeByUuid(java.lang.String uuid)
358 throws com.liferay.portal.kernel.exception.SystemException;
359
360 public void removeByUUID_G(java.lang.String uuid, long groupId)
361 throws com.liferay.portal.kernel.exception.SystemException,
362 com.liferay.portlet.social.NoSuchRequestException;
363
364 public void removeByCompanyId(long companyId)
365 throws com.liferay.portal.kernel.exception.SystemException;
366
367 public void removeByUserId(long userId)
368 throws com.liferay.portal.kernel.exception.SystemException;
369
370 public void removeByReceiverUserId(long receiverUserId)
371 throws com.liferay.portal.kernel.exception.SystemException;
372
373 public void removeByU_S(long userId, int status)
374 throws com.liferay.portal.kernel.exception.SystemException;
375
376 public void removeByR_S(long receiverUserId, int status)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379 public void removeByU_C_C_T_R(long userId, long classNameId, long classPK,
380 int type, long receiverUserId)
381 throws com.liferay.portal.kernel.exception.SystemException,
382 com.liferay.portlet.social.NoSuchRequestException;
383
384 public void removeByU_C_C_T_S(long userId, long classNameId, long classPK,
385 int type, int status)
386 throws com.liferay.portal.kernel.exception.SystemException;
387
388 public void removeByC_C_T_R_S(long classNameId, long classPK, int type,
389 long receiverUserId, int status)
390 throws com.liferay.portal.kernel.exception.SystemException;
391
392 public void removeAll()
393 throws com.liferay.portal.kernel.exception.SystemException;
394
395 public int countByUuid(java.lang.String uuid)
396 throws com.liferay.portal.kernel.exception.SystemException;
397
398 public int countByUUID_G(java.lang.String uuid, long groupId)
399 throws com.liferay.portal.kernel.exception.SystemException;
400
401 public int countByCompanyId(long companyId)
402 throws com.liferay.portal.kernel.exception.SystemException;
403
404 public int countByUserId(long userId)
405 throws com.liferay.portal.kernel.exception.SystemException;
406
407 public int countByReceiverUserId(long receiverUserId)
408 throws com.liferay.portal.kernel.exception.SystemException;
409
410 public int countByU_S(long userId, int status)
411 throws com.liferay.portal.kernel.exception.SystemException;
412
413 public int countByR_S(long receiverUserId, int status)
414 throws com.liferay.portal.kernel.exception.SystemException;
415
416 public int countByU_C_C_T_R(long userId, long classNameId, long classPK,
417 int type, long receiverUserId)
418 throws com.liferay.portal.kernel.exception.SystemException;
419
420 public int countByU_C_C_T_S(long userId, long classNameId, long classPK,
421 int type, int status)
422 throws com.liferay.portal.kernel.exception.SystemException;
423
424 public int countByC_C_T_R_S(long classNameId, long classPK, int type,
425 long receiverUserId, int status)
426 throws com.liferay.portal.kernel.exception.SystemException;
427
428 public int countAll()
429 throws com.liferay.portal.kernel.exception.SystemException;
430 }