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 SocialRelationPersistence extends BasePersistence {
37 public com.liferay.portlet.social.model.SocialRelation create(
38 long relationId);
39
40 public com.liferay.portlet.social.model.SocialRelation remove(
41 long relationId)
42 throws com.liferay.portal.SystemException,
43 com.liferay.portlet.social.NoSuchRelationException;
44
45 public com.liferay.portlet.social.model.SocialRelation remove(
46 com.liferay.portlet.social.model.SocialRelation socialRelation)
47 throws com.liferay.portal.SystemException;
48
49
52 public com.liferay.portlet.social.model.SocialRelation update(
53 com.liferay.portlet.social.model.SocialRelation socialRelation)
54 throws com.liferay.portal.SystemException;
55
56
69 public com.liferay.portlet.social.model.SocialRelation update(
70 com.liferay.portlet.social.model.SocialRelation socialRelation,
71 boolean merge) throws com.liferay.portal.SystemException;
72
73 public com.liferay.portlet.social.model.SocialRelation updateImpl(
74 com.liferay.portlet.social.model.SocialRelation socialRelation,
75 boolean merge) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(
79 long relationId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.social.NoSuchRelationException;
82
83 public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(
84 long relationId) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.social.model.SocialRelation> 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.SocialRelation> 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.SocialRelation> 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.SocialRelation 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.NoSuchRelationException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public com.liferay.portlet.social.model.SocialRelation 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.NoSuchRelationException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(
117 long relationId, java.lang.String uuid,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.social.NoSuchRelationException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
124 long companyId) throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
128 long companyId, int start, int end)
129 throws com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
133 long companyId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
139 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException,
141 com.liferay.portlet.social.NoSuchRelationException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
145 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portlet.social.NoSuchRelationException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
151 long relationId, long companyId,
152 com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.SystemException,
154 com.liferay.portlet.social.NoSuchRelationException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
158 long userId1) throws com.liferay.portal.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
162 long userId1, int start, int end)
163 throws com.liferay.portal.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
167 long userId1, int start, int end,
168 com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
173 long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
174 throws com.liferay.portal.SystemException,
175 com.liferay.portlet.social.NoSuchRelationException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
179 long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.social.NoSuchRelationException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
185 long relationId, long userId1,
186 com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.SystemException,
188 com.liferay.portlet.social.NoSuchRelationException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
192 long userId2) throws com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
196 long userId2, int start, int end)
197 throws com.liferay.portal.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
201 long userId2, int start, int end,
202 com.liferay.portal.kernel.util.OrderByComparator obc)
203 throws com.liferay.portal.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
207 long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
208 throws com.liferay.portal.SystemException,
209 com.liferay.portlet.social.NoSuchRelationException;
210
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
213 long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
214 throws com.liferay.portal.SystemException,
215 com.liferay.portlet.social.NoSuchRelationException;
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
219 long relationId, long userId2,
220 com.liferay.portal.kernel.util.OrderByComparator obc)
221 throws com.liferay.portal.SystemException,
222 com.liferay.portlet.social.NoSuchRelationException;
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
226 int type) throws com.liferay.portal.SystemException;
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
230 int type, int start, int end) throws com.liferay.portal.SystemException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
234 int type, int start, int end,
235 com.liferay.portal.kernel.util.OrderByComparator obc)
236 throws com.liferay.portal.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public com.liferay.portlet.social.model.SocialRelation findByType_First(
240 int type, com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.SystemException,
242 com.liferay.portlet.social.NoSuchRelationException;
243
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public com.liferay.portlet.social.model.SocialRelation findByType_Last(
246 int type, com.liferay.portal.kernel.util.OrderByComparator obc)
247 throws com.liferay.portal.SystemException,
248 com.liferay.portlet.social.NoSuchRelationException;
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(
252 long relationId, int type,
253 com.liferay.portal.kernel.util.OrderByComparator obc)
254 throws com.liferay.portal.SystemException,
255 com.liferay.portlet.social.NoSuchRelationException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
259 long companyId, int type) throws com.liferay.portal.SystemException;
260
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
263 long companyId, int type, int start, int end)
264 throws com.liferay.portal.SystemException;
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
268 long companyId, int type, int start, int end,
269 com.liferay.portal.kernel.util.OrderByComparator obc)
270 throws com.liferay.portal.SystemException;
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public com.liferay.portlet.social.model.SocialRelation findByC_T_First(
274 long companyId, int type,
275 com.liferay.portal.kernel.util.OrderByComparator obc)
276 throws com.liferay.portal.SystemException,
277 com.liferay.portlet.social.NoSuchRelationException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
281 long companyId, int type,
282 com.liferay.portal.kernel.util.OrderByComparator obc)
283 throws com.liferay.portal.SystemException,
284 com.liferay.portlet.social.NoSuchRelationException;
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
288 long relationId, long companyId, int type,
289 com.liferay.portal.kernel.util.OrderByComparator obc)
290 throws com.liferay.portal.SystemException,
291 com.liferay.portlet.social.NoSuchRelationException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
295 long userId1, int type) throws com.liferay.portal.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
299 long userId1, int type, int start, int end)
300 throws com.liferay.portal.SystemException;
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
304 long userId1, int type, int start, int end,
305 com.liferay.portal.kernel.util.OrderByComparator obc)
306 throws com.liferay.portal.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public com.liferay.portlet.social.model.SocialRelation findByU1_T_First(
310 long userId1, int type,
311 com.liferay.portal.kernel.util.OrderByComparator obc)
312 throws com.liferay.portal.SystemException,
313 com.liferay.portlet.social.NoSuchRelationException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(
317 long userId1, int type,
318 com.liferay.portal.kernel.util.OrderByComparator obc)
319 throws com.liferay.portal.SystemException,
320 com.liferay.portlet.social.NoSuchRelationException;
321
322 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323 public com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(
324 long relationId, long userId1, int type,
325 com.liferay.portal.kernel.util.OrderByComparator obc)
326 throws com.liferay.portal.SystemException,
327 com.liferay.portlet.social.NoSuchRelationException;
328
329 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
330 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
331 long userId2, int type) throws com.liferay.portal.SystemException;
332
333 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
335 long userId2, int type, int start, int end)
336 throws com.liferay.portal.SystemException;
337
338 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
340 long userId2, int type, int start, int end,
341 com.liferay.portal.kernel.util.OrderByComparator obc)
342 throws com.liferay.portal.SystemException;
343
344 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
345 public com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
346 long userId2, int type,
347 com.liferay.portal.kernel.util.OrderByComparator obc)
348 throws com.liferay.portal.SystemException,
349 com.liferay.portlet.social.NoSuchRelationException;
350
351 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352 public com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
353 long userId2, int type,
354 com.liferay.portal.kernel.util.OrderByComparator obc)
355 throws com.liferay.portal.SystemException,
356 com.liferay.portlet.social.NoSuchRelationException;
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
360 long relationId, long userId2, int type,
361 com.liferay.portal.kernel.util.OrderByComparator obc)
362 throws com.liferay.portal.SystemException,
363 com.liferay.portlet.social.NoSuchRelationException;
364
365 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366 public com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
367 long userId1, long userId2, int type)
368 throws com.liferay.portal.SystemException,
369 com.liferay.portlet.social.NoSuchRelationException;
370
371 public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
372 long userId1, long userId2, int type)
373 throws com.liferay.portal.SystemException;
374
375 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376 public java.util.List<Object> findWithDynamicQuery(
377 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
378 throws com.liferay.portal.SystemException;
379
380 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
381 public java.util.List<Object> findWithDynamicQuery(
382 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
383 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.SocialRelation> findAll()
387 throws com.liferay.portal.SystemException;
388
389 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
391 int start, int end) throws com.liferay.portal.SystemException;
392
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
395 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
396 throws com.liferay.portal.SystemException;
397
398 public void removeByUuid(java.lang.String uuid)
399 throws com.liferay.portal.SystemException;
400
401 public void removeByCompanyId(long companyId)
402 throws com.liferay.portal.SystemException;
403
404 public void removeByUserId1(long userId1)
405 throws com.liferay.portal.SystemException;
406
407 public void removeByUserId2(long userId2)
408 throws com.liferay.portal.SystemException;
409
410 public void removeByType(int type)
411 throws com.liferay.portal.SystemException;
412
413 public void removeByC_T(long companyId, int type)
414 throws com.liferay.portal.SystemException;
415
416 public void removeByU1_T(long userId1, int type)
417 throws com.liferay.portal.SystemException;
418
419 public void removeByU2_T(long userId2, int type)
420 throws com.liferay.portal.SystemException;
421
422 public void removeByU1_U2_T(long userId1, long userId2, int type)
423 throws com.liferay.portal.SystemException,
424 com.liferay.portlet.social.NoSuchRelationException;
425
426 public void removeAll() throws com.liferay.portal.SystemException;
427
428 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429 public int countByUuid(java.lang.String uuid)
430 throws com.liferay.portal.SystemException;
431
432 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
433 public int countByCompanyId(long companyId)
434 throws com.liferay.portal.SystemException;
435
436 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437 public int countByUserId1(long userId1)
438 throws com.liferay.portal.SystemException;
439
440 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441 public int countByUserId2(long userId2)
442 throws com.liferay.portal.SystemException;
443
444 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445 public int countByType(int type) throws com.liferay.portal.SystemException;
446
447 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
448 public int countByC_T(long companyId, int type)
449 throws com.liferay.portal.SystemException;
450
451 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
452 public int countByU1_T(long userId1, int type)
453 throws com.liferay.portal.SystemException;
454
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public int countByU2_T(long userId2, int type)
457 throws com.liferay.portal.SystemException;
458
459 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460 public int countByU1_U2_T(long userId1, long userId2, int type)
461 throws com.liferay.portal.SystemException;
462
463 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
464 public int countAll() throws com.liferay.portal.SystemException;
465 }