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.SocialRelation;
20
21
34 public interface SocialRelationPersistence extends BasePersistence<SocialRelation> {
35 public void cacheResult(
36 com.liferay.portlet.social.model.SocialRelation socialRelation);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations);
40
41 public com.liferay.portlet.social.model.SocialRelation create(
42 long relationId);
43
44 public com.liferay.portlet.social.model.SocialRelation remove(
45 long relationId)
46 throws com.liferay.portal.SystemException,
47 com.liferay.portlet.social.NoSuchRelationException;
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 public com.liferay.portlet.social.model.SocialRelation updateImpl(
57 com.liferay.portlet.social.model.SocialRelation socialRelation,
58 boolean merge) throws com.liferay.portal.SystemException;
59
60 public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(
61 long relationId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portlet.social.NoSuchRelationException;
64
65 public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(
66 long relationId) throws com.liferay.portal.SystemException;
67
68 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
69 java.lang.String uuid) throws com.liferay.portal.SystemException;
70
71 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
72 java.lang.String uuid, int start, int end)
73 throws com.liferay.portal.SystemException;
74
75 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
76 java.lang.String uuid, int start, int end,
77 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78 throws com.liferay.portal.SystemException;
79
80 public com.liferay.portlet.social.model.SocialRelation findByUuid_First(
81 java.lang.String uuid,
82 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83 throws com.liferay.portal.SystemException,
84 com.liferay.portlet.social.NoSuchRelationException;
85
86 public com.liferay.portlet.social.model.SocialRelation findByUuid_Last(
87 java.lang.String uuid,
88 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89 throws com.liferay.portal.SystemException,
90 com.liferay.portlet.social.NoSuchRelationException;
91
92 public com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(
93 long relationId, java.lang.String uuid,
94 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.social.NoSuchRelationException;
97
98 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
99 long companyId) throws com.liferay.portal.SystemException;
100
101 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
102 long companyId, int start, int end)
103 throws com.liferay.portal.SystemException;
104
105 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
106 long companyId, int start, int end,
107 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108 throws com.liferay.portal.SystemException;
109
110 public com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
111 long companyId,
112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.social.NoSuchRelationException;
115
116 public com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
117 long companyId,
118 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.social.NoSuchRelationException;
121
122 public com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
123 long relationId, long companyId,
124 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.social.NoSuchRelationException;
127
128 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
129 long userId1) throws com.liferay.portal.SystemException;
130
131 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
132 long userId1, int start, int end)
133 throws com.liferay.portal.SystemException;
134
135 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
136 long userId1, int start, int end,
137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138 throws com.liferay.portal.SystemException;
139
140 public com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
141 long userId1,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.SystemException,
144 com.liferay.portlet.social.NoSuchRelationException;
145
146 public com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
147 long userId1,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.social.NoSuchRelationException;
151
152 public com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
153 long relationId, long userId1,
154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.social.NoSuchRelationException;
157
158 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
159 long userId2) throws com.liferay.portal.SystemException;
160
161 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
162 long userId2, int start, int end)
163 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 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168 throws com.liferay.portal.SystemException;
169
170 public com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
171 long userId2,
172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173 throws com.liferay.portal.SystemException,
174 com.liferay.portlet.social.NoSuchRelationException;
175
176 public com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
177 long userId2,
178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179 throws com.liferay.portal.SystemException,
180 com.liferay.portlet.social.NoSuchRelationException;
181
182 public com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
183 long relationId, long userId2,
184 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185 throws com.liferay.portal.SystemException,
186 com.liferay.portlet.social.NoSuchRelationException;
187
188 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
189 int type) throws com.liferay.portal.SystemException;
190
191 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
192 int type, int start, int end) throws com.liferay.portal.SystemException;
193
194 public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
195 int type, int start, int end,
196 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197 throws com.liferay.portal.SystemException;
198
199 public com.liferay.portlet.social.model.SocialRelation findByType_First(
200 int type,
201 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202 throws com.liferay.portal.SystemException,
203 com.liferay.portlet.social.NoSuchRelationException;
204
205 public com.liferay.portlet.social.model.SocialRelation findByType_Last(
206 int type,
207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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,
328 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
329 throws com.liferay.portal.SystemException;
330
331 public void removeByUuid(java.lang.String uuid)
332 throws com.liferay.portal.SystemException;
333
334 public void removeByCompanyId(long companyId)
335 throws com.liferay.portal.SystemException;
336
337 public void removeByUserId1(long userId1)
338 throws com.liferay.portal.SystemException;
339
340 public void removeByUserId2(long userId2)
341 throws com.liferay.portal.SystemException;
342
343 public void removeByType(int type)
344 throws com.liferay.portal.SystemException;
345
346 public void removeByC_T(long companyId, int type)
347 throws com.liferay.portal.SystemException;
348
349 public void removeByU1_T(long userId1, int type)
350 throws com.liferay.portal.SystemException;
351
352 public void removeByU2_T(long userId2, int type)
353 throws com.liferay.portal.SystemException;
354
355 public void removeByU1_U2_T(long userId1, long userId2, int type)
356 throws com.liferay.portal.SystemException,
357 com.liferay.portlet.social.NoSuchRelationException;
358
359 public void removeAll() throws com.liferay.portal.SystemException;
360
361 public int countByUuid(java.lang.String uuid)
362 throws com.liferay.portal.SystemException;
363
364 public int countByCompanyId(long companyId)
365 throws com.liferay.portal.SystemException;
366
367 public int countByUserId1(long userId1)
368 throws com.liferay.portal.SystemException;
369
370 public int countByUserId2(long userId2)
371 throws com.liferay.portal.SystemException;
372
373 public int countByType(int type) throws com.liferay.portal.SystemException;
374
375 public int countByC_T(long companyId, int type)
376 throws com.liferay.portal.SystemException;
377
378 public int countByU1_T(long userId1, int type)
379 throws com.liferay.portal.SystemException;
380
381 public int countByU2_T(long userId2, int type)
382 throws com.liferay.portal.SystemException;
383
384 public int countByU1_U2_T(long userId1, long userId2, int type)
385 throws com.liferay.portal.SystemException;
386
387 public int countAll() throws com.liferay.portal.SystemException;
388 }