1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
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  /**
22   * <a href="SocialActivityPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       SocialActivityPersistenceImpl
31   * @see       SocialActivityUtil
32   * @generated
33   */
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 orderByComparator)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
77          long groupId,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.social.NoSuchActivityException;
81  
82      public com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
83          long groupId,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.social.NoSuchActivityException;
87  
88      public com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
89          long activityId, long groupId,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.social.NoSuchActivityException;
93  
94      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
95          long companyId)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
99          long companyId, int start, int end)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
103         long companyId, int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
108         long companyId,
109         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.social.NoSuchActivityException;
112 
113     public com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
114         long companyId,
115         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116         throws com.liferay.portal.kernel.exception.SystemException,
117             com.liferay.portlet.social.NoSuchActivityException;
118 
119     public com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
120         long activityId, long companyId,
121         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.social.NoSuchActivityException;
124 
125     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
126         long userId) 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         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
133         long userId, int start, int end,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public com.liferay.portlet.social.model.SocialActivity findByUserId_First(
138         long userId,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.kernel.exception.SystemException,
141             com.liferay.portlet.social.NoSuchActivityException;
142 
143     public com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
144         long userId,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.kernel.exception.SystemException,
147             com.liferay.portlet.social.NoSuchActivityException;
148 
149     public com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
150         long activityId, long userId,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.kernel.exception.SystemException,
153             com.liferay.portlet.social.NoSuchActivityException;
154 
155     public com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
156         long mirrorActivityId)
157         throws com.liferay.portal.kernel.exception.SystemException,
158             com.liferay.portlet.social.NoSuchActivityException;
159 
160     public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
161         long mirrorActivityId)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
165         long mirrorActivityId, boolean retrieveFromCache)
166         throws com.liferay.portal.kernel.exception.SystemException;
167 
168     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
169         long classNameId)
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
173         long classNameId, int start, int end)
174         throws com.liferay.portal.kernel.exception.SystemException;
175 
176     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
177         long classNameId, int start, int end,
178         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
182         long classNameId,
183         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184         throws com.liferay.portal.kernel.exception.SystemException,
185             com.liferay.portlet.social.NoSuchActivityException;
186 
187     public com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
188         long classNameId,
189         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190         throws com.liferay.portal.kernel.exception.SystemException,
191             com.liferay.portlet.social.NoSuchActivityException;
192 
193     public com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
194         long activityId, long classNameId,
195         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196         throws com.liferay.portal.kernel.exception.SystemException,
197             com.liferay.portlet.social.NoSuchActivityException;
198 
199     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
200         long receiverUserId)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
204         long receiverUserId, int start, int end)
205         throws com.liferay.portal.kernel.exception.SystemException;
206 
207     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
208         long receiverUserId, int start, int end,
209         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210         throws com.liferay.portal.kernel.exception.SystemException;
211 
212     public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
213         long receiverUserId,
214         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215         throws com.liferay.portal.kernel.exception.SystemException,
216             com.liferay.portlet.social.NoSuchActivityException;
217 
218     public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
219         long receiverUserId,
220         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221         throws com.liferay.portal.kernel.exception.SystemException,
222             com.liferay.portlet.social.NoSuchActivityException;
223 
224     public com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
225         long activityId, long receiverUserId,
226         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227         throws com.liferay.portal.kernel.exception.SystemException,
228             com.liferay.portlet.social.NoSuchActivityException;
229 
230     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
231         long classNameId, long classPK)
232         throws com.liferay.portal.kernel.exception.SystemException;
233 
234     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
235         long classNameId, long classPK, int start, int end)
236         throws com.liferay.portal.kernel.exception.SystemException;
237 
238     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
239         long classNameId, long classPK, int start, int end,
240         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241         throws com.liferay.portal.kernel.exception.SystemException;
242 
243     public com.liferay.portlet.social.model.SocialActivity findByC_C_First(
244         long classNameId, long classPK,
245         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246         throws com.liferay.portal.kernel.exception.SystemException,
247             com.liferay.portlet.social.NoSuchActivityException;
248 
249     public com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
250         long classNameId, long classPK,
251         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252         throws com.liferay.portal.kernel.exception.SystemException,
253             com.liferay.portlet.social.NoSuchActivityException;
254 
255     public com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
256         long activityId, long classNameId, long classPK,
257         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258         throws com.liferay.portal.kernel.exception.SystemException,
259             com.liferay.portlet.social.NoSuchActivityException;
260 
261     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
262         long mirrorActivityId, long classNameId, long classPK)
263         throws com.liferay.portal.kernel.exception.SystemException;
264 
265     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
266         long mirrorActivityId, long classNameId, long classPK, int start,
267         int end) throws com.liferay.portal.kernel.exception.SystemException;
268 
269     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
270         long mirrorActivityId, long classNameId, long classPK, int start,
271         int end,
272         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273         throws com.liferay.portal.kernel.exception.SystemException;
274 
275     public com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
276         long mirrorActivityId, long classNameId, long classPK,
277         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278         throws com.liferay.portal.kernel.exception.SystemException,
279             com.liferay.portlet.social.NoSuchActivityException;
280 
281     public com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
282         long mirrorActivityId, long classNameId, long classPK,
283         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284         throws com.liferay.portal.kernel.exception.SystemException,
285             com.liferay.portlet.social.NoSuchActivityException;
286 
287     public com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
288         long activityId, long mirrorActivityId, long classNameId, long classPK,
289         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290         throws com.liferay.portal.kernel.exception.SystemException,
291             com.liferay.portlet.social.NoSuchActivityException;
292 
293     public com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
294         long groupId, long userId, long createDate, long classNameId,
295         long classPK, int type, long receiverUserId)
296         throws com.liferay.portal.kernel.exception.SystemException,
297             com.liferay.portlet.social.NoSuchActivityException;
298 
299     public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
300         long groupId, long userId, long createDate, long classNameId,
301         long classPK, int type, long receiverUserId)
302         throws com.liferay.portal.kernel.exception.SystemException;
303 
304     public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
305         long groupId, long userId, long createDate, long classNameId,
306         long classPK, int type, long receiverUserId, boolean retrieveFromCache)
307         throws com.liferay.portal.kernel.exception.SystemException;
308 
309     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
310         throws com.liferay.portal.kernel.exception.SystemException;
311 
312     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
313         int start, int end)
314         throws com.liferay.portal.kernel.exception.SystemException;
315 
316     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
317         int start, int end,
318         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
319         throws com.liferay.portal.kernel.exception.SystemException;
320 
321     public void removeByGroupId(long groupId)
322         throws com.liferay.portal.kernel.exception.SystemException;
323 
324     public void removeByCompanyId(long companyId)
325         throws com.liferay.portal.kernel.exception.SystemException;
326 
327     public void removeByUserId(long userId)
328         throws com.liferay.portal.kernel.exception.SystemException;
329 
330     public void removeByMirrorActivityId(long mirrorActivityId)
331         throws com.liferay.portal.kernel.exception.SystemException,
332             com.liferay.portlet.social.NoSuchActivityException;
333 
334     public void removeByClassNameId(long classNameId)
335         throws com.liferay.portal.kernel.exception.SystemException;
336 
337     public void removeByReceiverUserId(long receiverUserId)
338         throws com.liferay.portal.kernel.exception.SystemException;
339 
340     public void removeByC_C(long classNameId, long classPK)
341         throws com.liferay.portal.kernel.exception.SystemException;
342 
343     public void removeByM_C_C(long mirrorActivityId, long classNameId,
344         long classPK)
345         throws com.liferay.portal.kernel.exception.SystemException;
346 
347     public void removeByG_U_CD_C_C_T_R(long groupId, long userId,
348         long createDate, long classNameId, long classPK, int type,
349         long receiverUserId)
350         throws com.liferay.portal.kernel.exception.SystemException,
351             com.liferay.portlet.social.NoSuchActivityException;
352 
353     public void removeAll()
354         throws com.liferay.portal.kernel.exception.SystemException;
355 
356     public int countByGroupId(long groupId)
357         throws com.liferay.portal.kernel.exception.SystemException;
358 
359     public int countByCompanyId(long companyId)
360         throws com.liferay.portal.kernel.exception.SystemException;
361 
362     public int countByUserId(long userId)
363         throws com.liferay.portal.kernel.exception.SystemException;
364 
365     public int countByMirrorActivityId(long mirrorActivityId)
366         throws com.liferay.portal.kernel.exception.SystemException;
367 
368     public int countByClassNameId(long classNameId)
369         throws com.liferay.portal.kernel.exception.SystemException;
370 
371     public int countByReceiverUserId(long receiverUserId)
372         throws com.liferay.portal.kernel.exception.SystemException;
373 
374     public int countByC_C(long classNameId, long classPK)
375         throws com.liferay.portal.kernel.exception.SystemException;
376 
377     public int countByM_C_C(long mirrorActivityId, long classNameId,
378         long classPK)
379         throws com.liferay.portal.kernel.exception.SystemException;
380 
381     public int countByG_U_CD_C_C_T_R(long groupId, long userId,
382         long createDate, long classNameId, long classPK, int type,
383         long receiverUserId)
384         throws com.liferay.portal.kernel.exception.SystemException;
385 
386     public int countAll()
387         throws com.liferay.portal.kernel.exception.SystemException;
388 }