1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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.SystemException,
47              com.liferay.portlet.social.NoSuchActivityException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.social.model.SocialActivity update(
53          com.liferay.portlet.social.model.SocialActivity socialActivity)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.social.model.SocialActivity updateImpl(
57          com.liferay.portlet.social.model.SocialActivity socialActivity,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
61          long activityId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.social.NoSuchActivityException;
64  
65      public com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
66          long activityId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
69          long groupId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
72          long groupId, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
76          long groupId, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
81          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
82          throws com.liferay.portal.SystemException,
83              com.liferay.portlet.social.NoSuchActivityException;
84  
85      public com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
86          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.social.NoSuchActivityException;
89  
90      public com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
91          long activityId, long groupId,
92          com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.social.NoSuchActivityException;
95  
96      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
97          long companyId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
100         long companyId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
104         long companyId, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
109         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException,
111             com.liferay.portlet.social.NoSuchActivityException;
112 
113     public com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
114         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portlet.social.NoSuchActivityException;
117 
118     public com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
119         long activityId, long companyId,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portlet.social.NoSuchActivityException;
123 
124     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
125         long userId) throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
128         long userId, int start, int end)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
132         long userId, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException;
135 
136     public com.liferay.portlet.social.model.SocialActivity findByUserId_First(
137         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException,
139             com.liferay.portlet.social.NoSuchActivityException;
140 
141     public com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
142         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.social.NoSuchActivityException;
145 
146     public com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
147         long activityId, long userId,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.social.NoSuchActivityException;
151 
152     public com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
153         long mirrorActivityId)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.social.NoSuchActivityException;
156 
157     public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
158         long mirrorActivityId) throws com.liferay.portal.SystemException;
159 
160     public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
161         long mirrorActivityId, boolean retrieveFromCache)
162         throws com.liferay.portal.SystemException;
163 
164     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
165         long classNameId) throws com.liferay.portal.SystemException;
166 
167     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
168         long classNameId, int start, int end)
169         throws com.liferay.portal.SystemException;
170 
171     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
172         long classNameId, int start, int end,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException;
175 
176     public com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
177         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.SystemException,
179             com.liferay.portlet.social.NoSuchActivityException;
180 
181     public com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
182         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException,
184             com.liferay.portlet.social.NoSuchActivityException;
185 
186     public com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
187         long activityId, long classNameId,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException,
190             com.liferay.portlet.social.NoSuchActivityException;
191 
192     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
193         long receiverUserId) throws com.liferay.portal.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.SystemException;
299 
300     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
301         throws com.liferay.portal.SystemException;
302 
303     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
304         int start, int end) throws com.liferay.portal.SystemException;
305 
306     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
307         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
308         throws com.liferay.portal.SystemException;
309 
310     public void removeByGroupId(long groupId)
311         throws com.liferay.portal.SystemException;
312 
313     public void removeByCompanyId(long companyId)
314         throws com.liferay.portal.SystemException;
315 
316     public void removeByUserId(long userId)
317         throws com.liferay.portal.SystemException;
318 
319     public void removeByMirrorActivityId(long mirrorActivityId)
320         throws com.liferay.portal.SystemException,
321             com.liferay.portlet.social.NoSuchActivityException;
322 
323     public void removeByClassNameId(long classNameId)
324         throws com.liferay.portal.SystemException;
325 
326     public void removeByReceiverUserId(long receiverUserId)
327         throws com.liferay.portal.SystemException;
328 
329     public void removeByC_C(long classNameId, long classPK)
330         throws com.liferay.portal.SystemException;
331 
332     public void removeByM_C_C(long mirrorActivityId, long classNameId,
333         long classPK) throws com.liferay.portal.SystemException;
334 
335     public void removeByG_U_CD_C_C_T_R(long groupId, long userId,
336         long createDate, long classNameId, long classPK, int type,
337         long receiverUserId)
338         throws com.liferay.portal.SystemException,
339             com.liferay.portlet.social.NoSuchActivityException;
340 
341     public void removeAll() throws com.liferay.portal.SystemException;
342 
343     public int countByGroupId(long groupId)
344         throws com.liferay.portal.SystemException;
345 
346     public int countByCompanyId(long companyId)
347         throws com.liferay.portal.SystemException;
348 
349     public int countByUserId(long userId)
350         throws com.liferay.portal.SystemException;
351 
352     public int countByMirrorActivityId(long mirrorActivityId)
353         throws com.liferay.portal.SystemException;
354 
355     public int countByClassNameId(long classNameId)
356         throws com.liferay.portal.SystemException;
357 
358     public int countByReceiverUserId(long receiverUserId)
359         throws com.liferay.portal.SystemException;
360 
361     public int countByC_C(long classNameId, long classPK)
362         throws com.liferay.portal.SystemException;
363 
364     public int countByM_C_C(long mirrorActivityId, long classNameId,
365         long classPK) throws com.liferay.portal.SystemException;
366 
367     public int countByG_U_CD_C_C_T_R(long groupId, long userId,
368         long createDate, long classNameId, long classPK, int type,
369         long receiverUserId) throws com.liferay.portal.SystemException;
370 
371     public int countAll() throws com.liferay.portal.SystemException;
372 }