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