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