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