1
22
23 package com.liferay.portlet.social.service.persistence;
24
25 import com.liferay.portal.service.persistence.BasePersistence;
26
27
33 public interface SocialRelationPersistence extends BasePersistence {
34 public void cacheResult(
35 com.liferay.portlet.social.model.SocialRelation socialRelation);
36
37 public void cacheResult(
38 java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations);
39
40 public void clearCache();
41
42 public com.liferay.portlet.social.model.SocialRelation create(
43 long relationId);
44
45 public com.liferay.portlet.social.model.SocialRelation remove(
46 long relationId)
47 throws com.liferay.portal.SystemException,
48 com.liferay.portlet.social.NoSuchRelationException;
49
50 public com.liferay.portlet.social.model.SocialRelation remove(
51 com.liferay.portlet.social.model.SocialRelation socialRelation)
52 throws com.liferay.portal.SystemException;
53
54
57 public com.liferay.portlet.social.model.SocialRelation update(
58 com.liferay.portlet.social.model.SocialRelation socialRelation)
59 throws com.liferay.portal.SystemException;
60
61
74 public com.liferay.portlet.social.model.SocialRelation update(
75 com.liferay.portlet.social.model.SocialRelation socialRelation,
76 boolean merge) throws com.liferay.portal.SystemException;
77
78 public com.liferay.portlet.social.model.SocialRelation updateImpl(
79 com.liferay.portlet.social.model.SocialRelation socialRelation,
80 boolean merge) throws com.liferay.portal.SystemException;
81
82 public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(
83 long relationId)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portlet.social.NoSuchRelationException;
86
87 public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(
88 long relationId) throws com.liferay.portal.SystemException;
89
90 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
91 java.lang.String uuid) throws com.liferay.portal.SystemException;
92
93 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
94 java.lang.String uuid, int start, int end)
95 throws com.liferay.portal.SystemException;
96
97 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
98 java.lang.String uuid, int start, int end,
99 com.liferay.portal.kernel.util.OrderByComparator obc)
100 throws com.liferay.portal.SystemException;
101
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 public com.liferay.portlet.social.model.SocialRelation findByUuid_Last(
109 java.lang.String uuid,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.social.NoSuchRelationException;
113
114 public com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(
115 long relationId, java.lang.String uuid,
116 com.liferay.portal.kernel.util.OrderByComparator obc)
117 throws com.liferay.portal.SystemException,
118 com.liferay.portlet.social.NoSuchRelationException;
119
120 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
121 long companyId) throws com.liferay.portal.SystemException;
122
123 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
124 long companyId, int start, int end)
125 throws com.liferay.portal.SystemException;
126
127 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
128 long companyId, int start, int end,
129 com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.SystemException;
131
132 public com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
133 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.social.NoSuchRelationException;
136
137 public com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
138 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.SystemException,
140 com.liferay.portlet.social.NoSuchRelationException;
141
142 public com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
143 long relationId, long companyId,
144 com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portlet.social.NoSuchRelationException;
147
148 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
149 long userId1) throws com.liferay.portal.SystemException;
150
151 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
152 long userId1, int start, int end)
153 throws com.liferay.portal.SystemException;
154
155 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
156 long userId1, int start, int end,
157 com.liferay.portal.kernel.util.OrderByComparator obc)
158 throws com.liferay.portal.SystemException;
159
160 public com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
161 long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.SystemException,
163 com.liferay.portlet.social.NoSuchRelationException;
164
165 public com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
166 long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
167 throws com.liferay.portal.SystemException,
168 com.liferay.portlet.social.NoSuchRelationException;
169
170 public com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
171 long relationId, long userId1,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.social.NoSuchRelationException;
175
176 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
177 long userId2) throws com.liferay.portal.SystemException;
178
179 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
180 long userId2, int start, int end)
181 throws com.liferay.portal.SystemException;
182
183 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
184 long userId2, int start, int end,
185 com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.SystemException;
187
188 public com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
189 long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
190 throws com.liferay.portal.SystemException,
191 com.liferay.portlet.social.NoSuchRelationException;
192
193 public com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
194 long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
195 throws com.liferay.portal.SystemException,
196 com.liferay.portlet.social.NoSuchRelationException;
197
198 public com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
199 long relationId, long userId2,
200 com.liferay.portal.kernel.util.OrderByComparator obc)
201 throws com.liferay.portal.SystemException,
202 com.liferay.portlet.social.NoSuchRelationException;
203
204 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
205 int type) throws com.liferay.portal.SystemException;
206
207 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
208 int type, int start, int end) throws com.liferay.portal.SystemException;
209
210 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
211 int type, 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.SocialRelation findByType_First(
216 int type, com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.SystemException,
218 com.liferay.portlet.social.NoSuchRelationException;
219
220 public com.liferay.portlet.social.model.SocialRelation findByType_Last(
221 int type, com.liferay.portal.kernel.util.OrderByComparator obc)
222 throws com.liferay.portal.SystemException,
223 com.liferay.portlet.social.NoSuchRelationException;
224
225 public com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(
226 long relationId, int type,
227 com.liferay.portal.kernel.util.OrderByComparator obc)
228 throws com.liferay.portal.SystemException,
229 com.liferay.portlet.social.NoSuchRelationException;
230
231 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
232 long companyId, int type) throws com.liferay.portal.SystemException;
233
234 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
235 long companyId, int type, int start, int end)
236 throws com.liferay.portal.SystemException;
237
238 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
239 long companyId, int type, int start, int end,
240 com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.SystemException;
242
243 public com.liferay.portlet.social.model.SocialRelation findByC_T_First(
244 long companyId, int type,
245 com.liferay.portal.kernel.util.OrderByComparator obc)
246 throws com.liferay.portal.SystemException,
247 com.liferay.portlet.social.NoSuchRelationException;
248
249 public com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
250 long companyId, int type,
251 com.liferay.portal.kernel.util.OrderByComparator obc)
252 throws com.liferay.portal.SystemException,
253 com.liferay.portlet.social.NoSuchRelationException;
254
255 public com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
256 long relationId, long companyId, int type,
257 com.liferay.portal.kernel.util.OrderByComparator obc)
258 throws com.liferay.portal.SystemException,
259 com.liferay.portlet.social.NoSuchRelationException;
260
261 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
262 long userId1, int type) throws com.liferay.portal.SystemException;
263
264 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
265 long userId1, int type, int start, int end)
266 throws com.liferay.portal.SystemException;
267
268 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
269 long userId1, int type, int start, int end,
270 com.liferay.portal.kernel.util.OrderByComparator obc)
271 throws com.liferay.portal.SystemException;
272
273 public com.liferay.portlet.social.model.SocialRelation findByU1_T_First(
274 long userId1, int type,
275 com.liferay.portal.kernel.util.OrderByComparator obc)
276 throws com.liferay.portal.SystemException,
277 com.liferay.portlet.social.NoSuchRelationException;
278
279 public com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(
280 long userId1, int type,
281 com.liferay.portal.kernel.util.OrderByComparator obc)
282 throws com.liferay.portal.SystemException,
283 com.liferay.portlet.social.NoSuchRelationException;
284
285 public com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(
286 long relationId, long userId1, int type,
287 com.liferay.portal.kernel.util.OrderByComparator obc)
288 throws com.liferay.portal.SystemException,
289 com.liferay.portlet.social.NoSuchRelationException;
290
291 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
292 long userId2, int type) throws com.liferay.portal.SystemException;
293
294 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
295 long userId2, int type, int start, int end)
296 throws com.liferay.portal.SystemException;
297
298 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
299 long userId2, int type, int start, int end,
300 com.liferay.portal.kernel.util.OrderByComparator obc)
301 throws com.liferay.portal.SystemException;
302
303 public com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
304 long userId2, int type,
305 com.liferay.portal.kernel.util.OrderByComparator obc)
306 throws com.liferay.portal.SystemException,
307 com.liferay.portlet.social.NoSuchRelationException;
308
309 public com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
310 long userId2, int type,
311 com.liferay.portal.kernel.util.OrderByComparator obc)
312 throws com.liferay.portal.SystemException,
313 com.liferay.portlet.social.NoSuchRelationException;
314
315 public com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
316 long relationId, long userId2, int type,
317 com.liferay.portal.kernel.util.OrderByComparator obc)
318 throws com.liferay.portal.SystemException,
319 com.liferay.portlet.social.NoSuchRelationException;
320
321 public com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
322 long userId1, long userId2, int type)
323 throws com.liferay.portal.SystemException,
324 com.liferay.portlet.social.NoSuchRelationException;
325
326 public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
327 long userId1, long userId2, int type)
328 throws com.liferay.portal.SystemException;
329
330 public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
331 long userId1, long userId2, int type, boolean retrieveFromCache)
332 throws com.liferay.portal.SystemException;
333
334 public java.util.List<Object> findWithDynamicQuery(
335 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
336 throws com.liferay.portal.SystemException;
337
338 public java.util.List<Object> findWithDynamicQuery(
339 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
340 int end) throws com.liferay.portal.SystemException;
341
342 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
343 throws com.liferay.portal.SystemException;
344
345 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
346 int start, int end) throws com.liferay.portal.SystemException;
347
348 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
349 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
350 throws com.liferay.portal.SystemException;
351
352 public void removeByUuid(java.lang.String uuid)
353 throws com.liferay.portal.SystemException;
354
355 public void removeByCompanyId(long companyId)
356 throws com.liferay.portal.SystemException;
357
358 public void removeByUserId1(long userId1)
359 throws com.liferay.portal.SystemException;
360
361 public void removeByUserId2(long userId2)
362 throws com.liferay.portal.SystemException;
363
364 public void removeByType(int type)
365 throws com.liferay.portal.SystemException;
366
367 public void removeByC_T(long companyId, int type)
368 throws com.liferay.portal.SystemException;
369
370 public void removeByU1_T(long userId1, int type)
371 throws com.liferay.portal.SystemException;
372
373 public void removeByU2_T(long userId2, int type)
374 throws com.liferay.portal.SystemException;
375
376 public void removeByU1_U2_T(long userId1, long userId2, int type)
377 throws com.liferay.portal.SystemException,
378 com.liferay.portlet.social.NoSuchRelationException;
379
380 public void removeAll() throws com.liferay.portal.SystemException;
381
382 public int countByUuid(java.lang.String uuid)
383 throws com.liferay.portal.SystemException;
384
385 public int countByCompanyId(long companyId)
386 throws com.liferay.portal.SystemException;
387
388 public int countByUserId1(long userId1)
389 throws com.liferay.portal.SystemException;
390
391 public int countByUserId2(long userId2)
392 throws com.liferay.portal.SystemException;
393
394 public int countByType(int type) throws com.liferay.portal.SystemException;
395
396 public int countByC_T(long companyId, int type)
397 throws com.liferay.portal.SystemException;
398
399 public int countByU1_T(long userId1, int type)
400 throws com.liferay.portal.SystemException;
401
402 public int countByU2_T(long userId2, int type)
403 throws com.liferay.portal.SystemException;
404
405 public int countByU1_U2_T(long userId1, long userId2, int type)
406 throws com.liferay.portal.SystemException;
407
408 public int countAll() throws com.liferay.portal.SystemException;
409 }