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.SocialActivity;
20
21
34 public interface SocialActivityPersistence extends BasePersistence<SocialActivity> {
35 public void cacheResult(
36 com.liferay.portlet.social.model.SocialActivity socialActivity);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities);
40
41 public com.liferay.portlet.social.model.SocialActivity create(
42 long activityId);
43
44 public com.liferay.portlet.social.model.SocialActivity remove(
45 long activityId)
46 throws com.liferay.portal.kernel.exception.SystemException,
47 com.liferay.portlet.social.NoSuchActivityException;
48
49 public com.liferay.portlet.social.model.SocialActivity updateImpl(
50 com.liferay.portlet.social.model.SocialActivity socialActivity,
51 boolean merge)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
55 long activityId)
56 throws com.liferay.portal.kernel.exception.SystemException,
57 com.liferay.portlet.social.NoSuchActivityException;
58
59 public com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
60 long activityId)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
64 long groupId)
65 throws com.liferay.portal.kernel.exception.SystemException;
66
67 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
68 long groupId, int start, int end)
69 throws com.liferay.portal.kernel.exception.SystemException;
70
71 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
72 long groupId, int start, int end,
73 com.liferay.portal.kernel.util.OrderByComparator obc)
74 throws com.liferay.portal.kernel.exception.SystemException;
75
76 public com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
77 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
78 throws com.liferay.portal.kernel.exception.SystemException,
79 com.liferay.portlet.social.NoSuchActivityException;
80
81 public com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
82 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
83 throws com.liferay.portal.kernel.exception.SystemException,
84 com.liferay.portlet.social.NoSuchActivityException;
85
86 public com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
87 long activityId, long groupId,
88 com.liferay.portal.kernel.util.OrderByComparator obc)
89 throws com.liferay.portal.kernel.exception.SystemException,
90 com.liferay.portlet.social.NoSuchActivityException;
91
92 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
93 long companyId)
94 throws com.liferay.portal.kernel.exception.SystemException;
95
96 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
97 long companyId, int start, int end)
98 throws com.liferay.portal.kernel.exception.SystemException;
99
100 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
101 long companyId, int start, int end,
102 com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
106 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.kernel.exception.SystemException,
108 com.liferay.portlet.social.NoSuchActivityException;
109
110 public com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
111 long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.kernel.exception.SystemException,
113 com.liferay.portlet.social.NoSuchActivityException;
114
115 public com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
116 long activityId, long companyId,
117 com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.kernel.exception.SystemException,
119 com.liferay.portlet.social.NoSuchActivityException;
120
121 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
122 long userId) throws com.liferay.portal.kernel.exception.SystemException;
123
124 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
125 long userId, int start, int end)
126 throws com.liferay.portal.kernel.exception.SystemException;
127
128 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
129 long userId, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133 public com.liferay.portlet.social.model.SocialActivity findByUserId_First(
134 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.kernel.exception.SystemException,
136 com.liferay.portlet.social.NoSuchActivityException;
137
138 public com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
139 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.kernel.exception.SystemException,
141 com.liferay.portlet.social.NoSuchActivityException;
142
143 public com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
144 long activityId, long userId,
145 com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.kernel.exception.SystemException,
147 com.liferay.portlet.social.NoSuchActivityException;
148
149 public com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
150 long mirrorActivityId)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.social.NoSuchActivityException;
153
154 public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
155 long mirrorActivityId)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158 public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
159 long mirrorActivityId, boolean retrieveFromCache)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
163 long classNameId)
164 throws com.liferay.portal.kernel.exception.SystemException;
165
166 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
167 long classNameId, int start, int end)
168 throws com.liferay.portal.kernel.exception.SystemException;
169
170 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
171 long classNameId, int start, int end,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.kernel.exception.SystemException;
174
175 public com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
176 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
177 throws com.liferay.portal.kernel.exception.SystemException,
178 com.liferay.portlet.social.NoSuchActivityException;
179
180 public com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
181 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
182 throws com.liferay.portal.kernel.exception.SystemException,
183 com.liferay.portlet.social.NoSuchActivityException;
184
185 public com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
186 long activityId, long classNameId,
187 com.liferay.portal.kernel.util.OrderByComparator obc)
188 throws com.liferay.portal.kernel.exception.SystemException,
189 com.liferay.portlet.social.NoSuchActivityException;
190
191 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
192 long receiverUserId)
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
196 long receiverUserId, int start, int end)
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
200 long receiverUserId, int start, int end,
201 com.liferay.portal.kernel.util.OrderByComparator obc)
202 throws com.liferay.portal.kernel.exception.SystemException;
203
204 public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
205 long receiverUserId,
206 com.liferay.portal.kernel.util.OrderByComparator obc)
207 throws com.liferay.portal.kernel.exception.SystemException,
208 com.liferay.portlet.social.NoSuchActivityException;
209
210 public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
211 long receiverUserId,
212 com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.kernel.exception.SystemException,
214 com.liferay.portlet.social.NoSuchActivityException;
215
216 public com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
217 long activityId, long receiverUserId,
218 com.liferay.portal.kernel.util.OrderByComparator obc)
219 throws com.liferay.portal.kernel.exception.SystemException,
220 com.liferay.portlet.social.NoSuchActivityException;
221
222 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
223 long classNameId, long classPK)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
227 long classNameId, long classPK, int start, int end)
228 throws com.liferay.portal.kernel.exception.SystemException;
229
230 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
231 long classNameId, long classPK, int start, int end,
232 com.liferay.portal.kernel.util.OrderByComparator obc)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235 public com.liferay.portlet.social.model.SocialActivity findByC_C_First(
236 long classNameId, long classPK,
237 com.liferay.portal.kernel.util.OrderByComparator obc)
238 throws com.liferay.portal.kernel.exception.SystemException,
239 com.liferay.portlet.social.NoSuchActivityException;
240
241 public com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
242 long classNameId, long classPK,
243 com.liferay.portal.kernel.util.OrderByComparator obc)
244 throws com.liferay.portal.kernel.exception.SystemException,
245 com.liferay.portlet.social.NoSuchActivityException;
246
247 public com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
248 long activityId, long classNameId, long classPK,
249 com.liferay.portal.kernel.util.OrderByComparator obc)
250 throws com.liferay.portal.kernel.exception.SystemException,
251 com.liferay.portlet.social.NoSuchActivityException;
252
253 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
254 long mirrorActivityId, long classNameId, long classPK)
255 throws com.liferay.portal.kernel.exception.SystemException;
256
257 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
258 long mirrorActivityId, long classNameId, long classPK, int start,
259 int end) throws com.liferay.portal.kernel.exception.SystemException;
260
261 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
262 long mirrorActivityId, long classNameId, long classPK, int start,
263 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266 public com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
267 long mirrorActivityId, long classNameId, long classPK,
268 com.liferay.portal.kernel.util.OrderByComparator obc)
269 throws com.liferay.portal.kernel.exception.SystemException,
270 com.liferay.portlet.social.NoSuchActivityException;
271
272 public com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
273 long mirrorActivityId, long classNameId, long classPK,
274 com.liferay.portal.kernel.util.OrderByComparator obc)
275 throws com.liferay.portal.kernel.exception.SystemException,
276 com.liferay.portlet.social.NoSuchActivityException;
277
278 public com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
279 long activityId, long mirrorActivityId, long classNameId, long classPK,
280 com.liferay.portal.kernel.util.OrderByComparator obc)
281 throws com.liferay.portal.kernel.exception.SystemException,
282 com.liferay.portlet.social.NoSuchActivityException;
283
284 public com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
285 long groupId, long userId, long createDate, long classNameId,
286 long classPK, int type, long receiverUserId)
287 throws com.liferay.portal.kernel.exception.SystemException,
288 com.liferay.portlet.social.NoSuchActivityException;
289
290 public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
291 long groupId, long userId, long createDate, long classNameId,
292 long classPK, int type, long receiverUserId)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
296 long groupId, long userId, long createDate, long classNameId,
297 long classPK, int type, long receiverUserId, boolean retrieveFromCache)
298 throws com.liferay.portal.kernel.exception.SystemException;
299
300 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
304 int start, int end)
305 throws com.liferay.portal.kernel.exception.SystemException;
306
307 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
308 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
309 throws com.liferay.portal.kernel.exception.SystemException;
310
311 public void removeByGroupId(long groupId)
312 throws com.liferay.portal.kernel.exception.SystemException;
313
314 public void removeByCompanyId(long companyId)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317 public void removeByUserId(long userId)
318 throws com.liferay.portal.kernel.exception.SystemException;
319
320 public void removeByMirrorActivityId(long mirrorActivityId)
321 throws com.liferay.portal.kernel.exception.SystemException,
322 com.liferay.portlet.social.NoSuchActivityException;
323
324 public void removeByClassNameId(long classNameId)
325 throws com.liferay.portal.kernel.exception.SystemException;
326
327 public void removeByReceiverUserId(long receiverUserId)
328 throws com.liferay.portal.kernel.exception.SystemException;
329
330 public void removeByC_C(long classNameId, long classPK)
331 throws com.liferay.portal.kernel.exception.SystemException;
332
333 public void removeByM_C_C(long mirrorActivityId, long classNameId,
334 long classPK)
335 throws com.liferay.portal.kernel.exception.SystemException;
336
337 public void removeByG_U_CD_C_C_T_R(long groupId, long userId,
338 long createDate, long classNameId, long classPK, int type,
339 long receiverUserId)
340 throws com.liferay.portal.kernel.exception.SystemException,
341 com.liferay.portlet.social.NoSuchActivityException;
342
343 public void removeAll()
344 throws com.liferay.portal.kernel.exception.SystemException;
345
346 public int countByGroupId(long groupId)
347 throws com.liferay.portal.kernel.exception.SystemException;
348
349 public int countByCompanyId(long companyId)
350 throws com.liferay.portal.kernel.exception.SystemException;
351
352 public int countByUserId(long userId)
353 throws com.liferay.portal.kernel.exception.SystemException;
354
355 public int countByMirrorActivityId(long mirrorActivityId)
356 throws com.liferay.portal.kernel.exception.SystemException;
357
358 public int countByClassNameId(long classNameId)
359 throws com.liferay.portal.kernel.exception.SystemException;
360
361 public int countByReceiverUserId(long receiverUserId)
362 throws com.liferay.portal.kernel.exception.SystemException;
363
364 public int countByC_C(long classNameId, long classPK)
365 throws com.liferay.portal.kernel.exception.SystemException;
366
367 public int countByM_C_C(long mirrorActivityId, long classNameId,
368 long classPK)
369 throws com.liferay.portal.kernel.exception.SystemException;
370
371 public int countByG_U_CD_C_C_T_R(long groupId, long userId,
372 long createDate, long classNameId, long classPK, int type,
373 long receiverUserId)
374 throws com.liferay.portal.kernel.exception.SystemException;
375
376 public int countAll()
377 throws com.liferay.portal.kernel.exception.SystemException;
378 }