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