1
19
20 package com.liferay.portlet.social.service.persistence;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26 import com.liferay.portal.service.persistence.BasePersistence;
27
28
34 @Transactional(rollbackFor = {
35 PortalException.class, SystemException.class})
36 public interface SocialRequestPersistence extends BasePersistence {
37 public com.liferay.portlet.social.model.SocialRequest create(long requestId);
38
39 public com.liferay.portlet.social.model.SocialRequest remove(long requestId)
40 throws com.liferay.portal.SystemException,
41 com.liferay.portlet.social.NoSuchRequestException;
42
43 public com.liferay.portlet.social.model.SocialRequest remove(
44 com.liferay.portlet.social.model.SocialRequest socialRequest)
45 throws com.liferay.portal.SystemException;
46
47
50 public com.liferay.portlet.social.model.SocialRequest update(
51 com.liferay.portlet.social.model.SocialRequest socialRequest)
52 throws com.liferay.portal.SystemException;
53
54
67 public com.liferay.portlet.social.model.SocialRequest update(
68 com.liferay.portlet.social.model.SocialRequest socialRequest,
69 boolean merge) throws com.liferay.portal.SystemException;
70
71 public com.liferay.portlet.social.model.SocialRequest updateImpl(
72 com.liferay.portlet.social.model.SocialRequest socialRequest,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76 public com.liferay.portlet.social.model.SocialRequest findByPrimaryKey(
77 long requestId)
78 throws com.liferay.portal.SystemException,
79 com.liferay.portlet.social.NoSuchRequestException;
80
81 public com.liferay.portlet.social.model.SocialRequest fetchByPrimaryKey(
82 long requestId) throws com.liferay.portal.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
86 java.lang.String uuid) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
90 java.lang.String uuid, int start, int end)
91 throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
95 java.lang.String uuid, int start, int end,
96 com.liferay.portal.kernel.util.OrderByComparator obc)
97 throws com.liferay.portal.SystemException;
98
99 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public com.liferay.portlet.social.model.SocialRequest findByUuid_First(
101 java.lang.String uuid,
102 com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.SystemException,
104 com.liferay.portlet.social.NoSuchRequestException;
105
106 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
107 public com.liferay.portlet.social.model.SocialRequest findByUuid_Last(
108 java.lang.String uuid,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.social.NoSuchRequestException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext(
115 long requestId, java.lang.String uuid,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.social.NoSuchRequestException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public com.liferay.portlet.social.model.SocialRequest findByUUID_G(
122 java.lang.String uuid, long groupId)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.social.NoSuchRequestException;
125
126 public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
127 java.lang.String uuid, long groupId)
128 throws com.liferay.portal.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
132 long companyId) throws com.liferay.portal.SystemException;
133
134 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
135 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
136 long companyId, int start, int end)
137 throws com.liferay.portal.SystemException;
138
139 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId(
141 long companyId, int start, int end,
142 com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public com.liferay.portlet.social.model.SocialRequest findByCompanyId_First(
147 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portlet.social.NoSuchRequestException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last(
153 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portlet.social.NoSuchRequestException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext(
159 long requestId, long companyId,
160 com.liferay.portal.kernel.util.OrderByComparator obc)
161 throws com.liferay.portal.SystemException,
162 com.liferay.portlet.social.NoSuchRequestException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
166 long userId) throws com.liferay.portal.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
170 long userId, int start, int end)
171 throws com.liferay.portal.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId(
175 long userId, int start, int end,
176 com.liferay.portal.kernel.util.OrderByComparator obc)
177 throws com.liferay.portal.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public com.liferay.portlet.social.model.SocialRequest findByUserId_First(
181 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
182 throws com.liferay.portal.SystemException,
183 com.liferay.portlet.social.NoSuchRequestException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public com.liferay.portlet.social.model.SocialRequest findByUserId_Last(
187 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
188 throws com.liferay.portal.SystemException,
189 com.liferay.portlet.social.NoSuchRequestException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext(
193 long requestId, long userId,
194 com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.SystemException,
196 com.liferay.portlet.social.NoSuchRequestException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
200 long receiverUserId) throws com.liferay.portal.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
204 long receiverUserId, int start, int end)
205 throws com.liferay.portal.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId(
209 long receiverUserId, int start, int end,
210 com.liferay.portal.kernel.util.OrderByComparator obc)
211 throws com.liferay.portal.SystemException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First(
215 long receiverUserId,
216 com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.SystemException,
218 com.liferay.portlet.social.NoSuchRequestException;
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last(
222 long receiverUserId,
223 com.liferay.portal.kernel.util.OrderByComparator obc)
224 throws com.liferay.portal.SystemException,
225 com.liferay.portlet.social.NoSuchRequestException;
226
227 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228 public com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext(
229 long requestId, long receiverUserId,
230 com.liferay.portal.kernel.util.OrderByComparator obc)
231 throws com.liferay.portal.SystemException,
232 com.liferay.portlet.social.NoSuchRequestException;
233
234 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
236 long userId, int status) throws com.liferay.portal.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
240 long userId, int status, int start, int end)
241 throws com.liferay.portal.SystemException;
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S(
245 long userId, int status, int start, int end,
246 com.liferay.portal.kernel.util.OrderByComparator obc)
247 throws com.liferay.portal.SystemException;
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public com.liferay.portlet.social.model.SocialRequest findByU_S_First(
251 long userId, int status,
252 com.liferay.portal.kernel.util.OrderByComparator obc)
253 throws com.liferay.portal.SystemException,
254 com.liferay.portlet.social.NoSuchRequestException;
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public com.liferay.portlet.social.model.SocialRequest findByU_S_Last(
258 long userId, int status,
259 com.liferay.portal.kernel.util.OrderByComparator obc)
260 throws com.liferay.portal.SystemException,
261 com.liferay.portlet.social.NoSuchRequestException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext(
265 long requestId, long userId, int status,
266 com.liferay.portal.kernel.util.OrderByComparator obc)
267 throws com.liferay.portal.SystemException,
268 com.liferay.portlet.social.NoSuchRequestException;
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
272 long receiverUserId, int status)
273 throws com.liferay.portal.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
277 long receiverUserId, int status, int start, int end)
278 throws com.liferay.portal.SystemException;
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S(
282 long receiverUserId, int status, int start, int end,
283 com.liferay.portal.kernel.util.OrderByComparator obc)
284 throws com.liferay.portal.SystemException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public com.liferay.portlet.social.model.SocialRequest findByR_S_First(
288 long receiverUserId, int status,
289 com.liferay.portal.kernel.util.OrderByComparator obc)
290 throws com.liferay.portal.SystemException,
291 com.liferay.portlet.social.NoSuchRequestException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public com.liferay.portlet.social.model.SocialRequest findByR_S_Last(
295 long receiverUserId, int status,
296 com.liferay.portal.kernel.util.OrderByComparator obc)
297 throws com.liferay.portal.SystemException,
298 com.liferay.portlet.social.NoSuchRequestException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext(
302 long requestId, long receiverUserId, int status,
303 com.liferay.portal.kernel.util.OrderByComparator obc)
304 throws com.liferay.portal.SystemException,
305 com.liferay.portlet.social.NoSuchRequestException;
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R(
309 long userId, long classNameId, long classPK, int type,
310 long receiverUserId)
311 throws com.liferay.portal.SystemException,
312 com.liferay.portlet.social.NoSuchRequestException;
313
314 public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R(
315 long userId, long classNameId, long classPK, int type,
316 long receiverUserId) throws com.liferay.portal.SystemException;
317
318 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
319 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
320 long userId, long classNameId, long classPK, int type, int status)
321 throws com.liferay.portal.SystemException;
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
325 long userId, long classNameId, long classPK, int type, int status,
326 int start, int end) throws com.liferay.portal.SystemException;
327
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
330 long userId, long classNameId, long classPK, int type, int status,
331 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
332 throws com.liferay.portal.SystemException;
333
334 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
335 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
336 long userId, long classNameId, long classPK, int type, int status,
337 com.liferay.portal.kernel.util.OrderByComparator obc)
338 throws com.liferay.portal.SystemException,
339 com.liferay.portlet.social.NoSuchRequestException;
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
343 long userId, long classNameId, long classPK, int type, int status,
344 com.liferay.portal.kernel.util.OrderByComparator obc)
345 throws com.liferay.portal.SystemException,
346 com.liferay.portlet.social.NoSuchRequestException;
347
348 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349 public com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
350 long requestId, long userId, long classNameId, long classPK, int type,
351 int status, com.liferay.portal.kernel.util.OrderByComparator obc)
352 throws com.liferay.portal.SystemException,
353 com.liferay.portlet.social.NoSuchRequestException;
354
355 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
356 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R_S(
357 long userId, long classNameId, long classPK, int type,
358 long receiverUserId, int status)
359 throws com.liferay.portal.SystemException,
360 com.liferay.portlet.social.NoSuchRequestException;
361
362 public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R_S(
363 long userId, long classNameId, long classPK, int type,
364 long receiverUserId, int status)
365 throws com.liferay.portal.SystemException;
366
367 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368 public java.util.List<Object> findWithDynamicQuery(
369 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
370 throws com.liferay.portal.SystemException;
371
372 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373 public java.util.List<Object> findWithDynamicQuery(
374 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
375 int end) throws com.liferay.portal.SystemException;
376
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
379 throws com.liferay.portal.SystemException;
380
381 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
383 int start, int end) throws com.liferay.portal.SystemException;
384
385 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
386 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
387 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
388 throws com.liferay.portal.SystemException;
389
390 public void removeByUuid(java.lang.String uuid)
391 throws com.liferay.portal.SystemException;
392
393 public void removeByUUID_G(java.lang.String uuid, long groupId)
394 throws com.liferay.portal.SystemException,
395 com.liferay.portlet.social.NoSuchRequestException;
396
397 public void removeByCompanyId(long companyId)
398 throws com.liferay.portal.SystemException;
399
400 public void removeByUserId(long userId)
401 throws com.liferay.portal.SystemException;
402
403 public void removeByReceiverUserId(long receiverUserId)
404 throws com.liferay.portal.SystemException;
405
406 public void removeByU_S(long userId, int status)
407 throws com.liferay.portal.SystemException;
408
409 public void removeByR_S(long receiverUserId, int status)
410 throws com.liferay.portal.SystemException;
411
412 public void removeByU_C_C_T_R(long userId, long classNameId, long classPK,
413 int type, long receiverUserId)
414 throws com.liferay.portal.SystemException,
415 com.liferay.portlet.social.NoSuchRequestException;
416
417 public void removeByU_C_C_T_S(long userId, long classNameId, long classPK,
418 int type, int status) throws com.liferay.portal.SystemException;
419
420 public void removeByU_C_C_T_R_S(long userId, long classNameId,
421 long classPK, int type, long receiverUserId, int status)
422 throws com.liferay.portal.SystemException,
423 com.liferay.portlet.social.NoSuchRequestException;
424
425 public void removeAll() throws com.liferay.portal.SystemException;
426
427 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428 public int countByUuid(java.lang.String uuid)
429 throws com.liferay.portal.SystemException;
430
431 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
432 public int countByUUID_G(java.lang.String uuid, long groupId)
433 throws com.liferay.portal.SystemException;
434
435 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436 public int countByCompanyId(long companyId)
437 throws com.liferay.portal.SystemException;
438
439 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440 public int countByUserId(long userId)
441 throws com.liferay.portal.SystemException;
442
443 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444 public int countByReceiverUserId(long receiverUserId)
445 throws com.liferay.portal.SystemException;
446
447 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
448 public int countByU_S(long userId, int status)
449 throws com.liferay.portal.SystemException;
450
451 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
452 public int countByR_S(long receiverUserId, int status)
453 throws com.liferay.portal.SystemException;
454
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public int countByU_C_C_T_R(long userId, long classNameId, long classPK,
457 int type, long receiverUserId)
458 throws com.liferay.portal.SystemException;
459
460 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
461 public int countByU_C_C_T_S(long userId, long classNameId, long classPK,
462 int type, int status) throws com.liferay.portal.SystemException;
463
464 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
465 public int countByU_C_C_T_R_S(long userId, long classNameId, long classPK,
466 int type, long receiverUserId, int status)
467 throws com.liferay.portal.SystemException;
468
469 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
470 public int countAll() throws com.liferay.portal.SystemException;
471 }