1
22
23 package com.liferay.portlet.social.service.persistence;
24
25
31 public interface SocialRequestPersistence {
32 public com.liferay.portlet.social.model.SocialRequest create(long requestId);
33
34 public com.liferay.portlet.social.model.SocialRequest remove(long requestId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portlet.social.NoSuchRequestException;
37
38 public com.liferay.portlet.social.model.SocialRequest remove(
39 com.liferay.portlet.social.model.SocialRequest socialRequest)
40 throws com.liferay.portal.SystemException;
41
42
45 public com.liferay.portlet.social.model.SocialRequest update(
46 com.liferay.portlet.social.model.SocialRequest socialRequest)
47 throws com.liferay.portal.SystemException;
48
49
62 public com.liferay.portlet.social.model.SocialRequest update(
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 updateImpl(
67 com.liferay.portlet.social.model.SocialRequest socialRequest,
68 boolean merge) throws com.liferay.portal.SystemException;
69
70 public com.liferay.portlet.social.model.SocialRequest findByPrimaryKey(
71 long requestId)
72 throws com.liferay.portal.SystemException,
73 com.liferay.portlet.social.NoSuchRequestException;
74
75 public com.liferay.portlet.social.model.SocialRequest fetchByPrimaryKey(
76 long requestId) throws com.liferay.portal.SystemException;
77
78 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
79 java.lang.String uuid) 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 throws com.liferay.portal.SystemException;
84
85 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid(
86 java.lang.String uuid, int start, int end,
87 com.liferay.portal.kernel.util.OrderByComparator obc)
88 throws com.liferay.portal.SystemException;
89
90 public com.liferay.portlet.social.model.SocialRequest findByUuid_First(
91 java.lang.String uuid,
92 com.liferay.portal.kernel.util.OrderByComparator obc)
93 throws com.liferay.portal.SystemException,
94 com.liferay.portlet.social.NoSuchRequestException;
95
96 public com.liferay.portlet.social.model.SocialRequest findByUuid_Last(
97 java.lang.String uuid,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portlet.social.NoSuchRequestException;
101
102 public com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext(
103 long requestId, 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 public com.liferay.portlet.social.model.SocialRequest findByUUID_G(
109 java.lang.String uuid, long groupId)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.social.NoSuchRequestException;
112
113 public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G(
114 java.lang.String uuid, long groupId)
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 java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
275 long userId, long classNameId, long classPK, int type, int status)
276 throws com.liferay.portal.SystemException;
277
278 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
279 long userId, long classNameId, long classPK, int type, int status,
280 int start, int end) throws com.liferay.portal.SystemException;
281
282 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S(
283 long userId, long classNameId, long classPK, int type, int status,
284 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
285 throws com.liferay.portal.SystemException;
286
287 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First(
288 long userId, long classNameId, long classPK, int type, int status,
289 com.liferay.portal.kernel.util.OrderByComparator obc)
290 throws com.liferay.portal.SystemException,
291 com.liferay.portlet.social.NoSuchRequestException;
292
293 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last(
294 long userId, long classNameId, long classPK, int type, int status,
295 com.liferay.portal.kernel.util.OrderByComparator obc)
296 throws com.liferay.portal.SystemException,
297 com.liferay.portlet.social.NoSuchRequestException;
298
299 public com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext(
300 long requestId, long userId, long classNameId, long classPK, int type,
301 int status, com.liferay.portal.kernel.util.OrderByComparator obc)
302 throws com.liferay.portal.SystemException,
303 com.liferay.portlet.social.NoSuchRequestException;
304
305 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R_S(
306 long userId, long classNameId, long classPK, int type,
307 long receiverUserId, int status)
308 throws com.liferay.portal.SystemException,
309 com.liferay.portlet.social.NoSuchRequestException;
310
311 public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R_S(
312 long userId, long classNameId, long classPK, int type,
313 long receiverUserId, int status)
314 throws com.liferay.portal.SystemException;
315
316 public java.util.List<Object> findWithDynamicQuery(
317 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
318 throws com.liferay.portal.SystemException;
319
320 public java.util.List<Object> findWithDynamicQuery(
321 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
322 int end) throws com.liferay.portal.SystemException;
323
324 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll()
325 throws com.liferay.portal.SystemException;
326
327 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
328 int start, int end) throws com.liferay.portal.SystemException;
329
330 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll(
331 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
332 throws com.liferay.portal.SystemException;
333
334 public void removeByUuid(java.lang.String uuid)
335 throws com.liferay.portal.SystemException;
336
337 public void removeByUUID_G(java.lang.String uuid, long groupId)
338 throws com.liferay.portal.SystemException,
339 com.liferay.portlet.social.NoSuchRequestException;
340
341 public void removeByCompanyId(long companyId)
342 throws com.liferay.portal.SystemException;
343
344 public void removeByUserId(long userId)
345 throws com.liferay.portal.SystemException;
346
347 public void removeByReceiverUserId(long receiverUserId)
348 throws com.liferay.portal.SystemException;
349
350 public void removeByU_S(long userId, int status)
351 throws com.liferay.portal.SystemException;
352
353 public void removeByR_S(long receiverUserId, int status)
354 throws com.liferay.portal.SystemException;
355
356 public void removeByU_C_C_T_R(long userId, long classNameId, long classPK,
357 int type, long receiverUserId)
358 throws com.liferay.portal.SystemException,
359 com.liferay.portlet.social.NoSuchRequestException;
360
361 public void removeByU_C_C_T_S(long userId, long classNameId, long classPK,
362 int type, int status) throws com.liferay.portal.SystemException;
363
364 public void removeByU_C_C_T_R_S(long userId, long classNameId,
365 long classPK, int type, long receiverUserId, int status)
366 throws com.liferay.portal.SystemException,
367 com.liferay.portlet.social.NoSuchRequestException;
368
369 public void removeAll() throws com.liferay.portal.SystemException;
370
371 public int countByUuid(java.lang.String uuid)
372 throws com.liferay.portal.SystemException;
373
374 public int countByUUID_G(java.lang.String uuid, long groupId)
375 throws com.liferay.portal.SystemException;
376
377 public int countByCompanyId(long companyId)
378 throws com.liferay.portal.SystemException;
379
380 public int countByUserId(long userId)
381 throws com.liferay.portal.SystemException;
382
383 public int countByReceiverUserId(long receiverUserId)
384 throws com.liferay.portal.SystemException;
385
386 public int countByU_S(long userId, int status)
387 throws com.liferay.portal.SystemException;
388
389 public int countByR_S(long receiverUserId, int status)
390 throws com.liferay.portal.SystemException;
391
392 public int countByU_C_C_T_R(long userId, long classNameId, long classPK,
393 int type, long receiverUserId)
394 throws com.liferay.portal.SystemException;
395
396 public int countByU_C_C_T_S(long userId, long classNameId, long classPK,
397 int type, int status) throws com.liferay.portal.SystemException;
398
399 public int countByU_C_C_T_R_S(long userId, long classNameId, long classPK,
400 int type, long receiverUserId, int status)
401 throws com.liferay.portal.SystemException;
402
403 public int countAll() throws com.liferay.portal.SystemException;
404
405 public void registerListener(
406 com.liferay.portal.model.ModelListener listener);
407
408 public void unregisterListener(
409 com.liferay.portal.model.ModelListener listener);
410 }