1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.social.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="SocialActivityPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       SocialActivityPersistenceImpl
37   * @see       SocialActivityUtil
38   * @generated
39   */
40  public interface SocialActivityPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.social.model.SocialActivity socialActivity);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.social.model.SocialActivity create(
50          long activityId);
51  
52      public com.liferay.portlet.social.model.SocialActivity remove(
53          long activityId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.social.NoSuchActivityException;
56  
57      public com.liferay.portlet.social.model.SocialActivity remove(
58          com.liferay.portlet.social.model.SocialActivity socialActivity)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(SocialActivity, boolean merge)}.
63       */
64      public com.liferay.portlet.social.model.SocialActivity update(
65          com.liferay.portlet.social.model.SocialActivity socialActivity)
66          throws com.liferay.portal.SystemException;
67  
68      /**
69       * Add, update, or merge, the entity. This method also calls the model
70       * listeners to trigger the proper events associated with adding, deleting,
71       * or updating an entity.
72       *
73       * @param  socialActivity the entity to add, update, or merge
74       * @param  merge boolean value for whether to merge the entity. The default
75       *         value is false. Setting merge to true is more expensive and
76       *         should only be true when socialActivity is transient. See
77       *         LEP-5473 for a detailed discussion of this method.
78       * @return the entity that was added, updated, or merged
79       */
80      public com.liferay.portlet.social.model.SocialActivity update(
81          com.liferay.portlet.social.model.SocialActivity socialActivity,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.social.model.SocialActivity updateImpl(
85          com.liferay.portlet.social.model.SocialActivity socialActivity,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
89          long activityId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.social.NoSuchActivityException;
92  
93      public com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
94          long activityId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
97          long groupId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
100         long groupId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
104         long groupId, 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 findByGroupId_First(
109         long groupId, 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 findByGroupId_Last(
114         long groupId, 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[] findByGroupId_PrevAndNext(
119         long activityId, long groupId,
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> findByCompanyId(
125         long companyId) throws com.liferay.portal.SystemException;
126 
127     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
128         long companyId, int start, int end)
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
132         long companyId, 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 findByCompanyId_First(
137         long companyId, 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 findByCompanyId_Last(
142         long companyId, 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[] findByCompanyId_PrevAndNext(
147         long activityId, long companyId,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.social.NoSuchActivityException;
151 
152     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
153         long userId) throws com.liferay.portal.SystemException;
154 
155     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
156         long userId, int start, int end)
157         throws com.liferay.portal.SystemException;
158 
159     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
160         long userId, int start, int end,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException;
163 
164     public com.liferay.portlet.social.model.SocialActivity findByUserId_First(
165         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException,
167             com.liferay.portlet.social.NoSuchActivityException;
168 
169     public com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
170         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.social.NoSuchActivityException;
173 
174     public com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
175         long activityId, long userId,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException,
178             com.liferay.portlet.social.NoSuchActivityException;
179 
180     public com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
181         long mirrorActivityId)
182         throws com.liferay.portal.SystemException,
183             com.liferay.portlet.social.NoSuchActivityException;
184 
185     public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
186         long mirrorActivityId) throws com.liferay.portal.SystemException;
187 
188     public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
189         long mirrorActivityId, boolean retrieveFromCache)
190         throws com.liferay.portal.SystemException;
191 
192     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
193         long classNameId) throws com.liferay.portal.SystemException;
194 
195     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
196         long classNameId, int start, int end)
197         throws com.liferay.portal.SystemException;
198 
199     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
200         long classNameId, 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 findByClassNameId_First(
205         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.SystemException,
207             com.liferay.portlet.social.NoSuchActivityException;
208 
209     public com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last(
210         long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
211         throws com.liferay.portal.SystemException,
212             com.liferay.portlet.social.NoSuchActivityException;
213 
214     public com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext(
215         long activityId, long classNameId,
216         com.liferay.portal.kernel.util.OrderByComparator obc)
217         throws com.liferay.portal.SystemException,
218             com.liferay.portlet.social.NoSuchActivityException;
219 
220     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
221         long receiverUserId) throws com.liferay.portal.SystemException;
222 
223     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
224         long receiverUserId, int start, int end)
225         throws com.liferay.portal.SystemException;
226 
227     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
228         long receiverUserId, int start, int end,
229         com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.SystemException;
231 
232     public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
233         long receiverUserId,
234         com.liferay.portal.kernel.util.OrderByComparator obc)
235         throws com.liferay.portal.SystemException,
236             com.liferay.portlet.social.NoSuchActivityException;
237 
238     public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
239         long receiverUserId,
240         com.liferay.portal.kernel.util.OrderByComparator obc)
241         throws com.liferay.portal.SystemException,
242             com.liferay.portlet.social.NoSuchActivityException;
243 
244     public com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
245         long activityId, long receiverUserId,
246         com.liferay.portal.kernel.util.OrderByComparator obc)
247         throws com.liferay.portal.SystemException,
248             com.liferay.portlet.social.NoSuchActivityException;
249 
250     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
251         long classNameId, long classPK)
252         throws com.liferay.portal.SystemException;
253 
254     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
255         long classNameId, long classPK, int start, int end)
256         throws com.liferay.portal.SystemException;
257 
258     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
259         long classNameId, long classPK, int start, int end,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.SystemException;
262 
263     public com.liferay.portlet.social.model.SocialActivity findByC_C_First(
264         long classNameId, long classPK,
265         com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.SystemException,
267             com.liferay.portlet.social.NoSuchActivityException;
268 
269     public com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
270         long classNameId, long classPK,
271         com.liferay.portal.kernel.util.OrderByComparator obc)
272         throws com.liferay.portal.SystemException,
273             com.liferay.portlet.social.NoSuchActivityException;
274 
275     public com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
276         long activityId, long classNameId, long classPK,
277         com.liferay.portal.kernel.util.OrderByComparator obc)
278         throws com.liferay.portal.SystemException,
279             com.liferay.portlet.social.NoSuchActivityException;
280 
281     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
282         long mirrorActivityId, long classNameId, long classPK)
283         throws com.liferay.portal.SystemException;
284 
285     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
286         long mirrorActivityId, long classNameId, long classPK, int start,
287         int end) throws com.liferay.portal.SystemException;
288 
289     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
290         long mirrorActivityId, long classNameId, long classPK, int start,
291         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
292         throws com.liferay.portal.SystemException;
293 
294     public com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
295         long mirrorActivityId, long classNameId, long classPK,
296         com.liferay.portal.kernel.util.OrderByComparator obc)
297         throws com.liferay.portal.SystemException,
298             com.liferay.portlet.social.NoSuchActivityException;
299 
300     public com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
301         long mirrorActivityId, long classNameId, long classPK,
302         com.liferay.portal.kernel.util.OrderByComparator obc)
303         throws com.liferay.portal.SystemException,
304             com.liferay.portlet.social.NoSuchActivityException;
305 
306     public com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
307         long activityId, long mirrorActivityId, long classNameId, long classPK,
308         com.liferay.portal.kernel.util.OrderByComparator obc)
309         throws com.liferay.portal.SystemException,
310             com.liferay.portlet.social.NoSuchActivityException;
311 
312     public com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
313         long groupId, long userId, long createDate, long classNameId,
314         long classPK, int type, long receiverUserId)
315         throws com.liferay.portal.SystemException,
316             com.liferay.portlet.social.NoSuchActivityException;
317 
318     public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
319         long groupId, long userId, long createDate, long classNameId,
320         long classPK, int type, long receiverUserId)
321         throws com.liferay.portal.SystemException;
322 
323     public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
324         long groupId, long userId, long createDate, long classNameId,
325         long classPK, int type, long receiverUserId, boolean retrieveFromCache)
326         throws com.liferay.portal.SystemException;
327 
328     public java.util.List<Object> findWithDynamicQuery(
329         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
330         throws com.liferay.portal.SystemException;
331 
332     public java.util.List<Object> findWithDynamicQuery(
333         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
334         int end) throws com.liferay.portal.SystemException;
335 
336     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
337         throws com.liferay.portal.SystemException;
338 
339     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
340         int start, int end) throws com.liferay.portal.SystemException;
341 
342     public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
343         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
344         throws com.liferay.portal.SystemException;
345 
346     public void removeByGroupId(long groupId)
347         throws com.liferay.portal.SystemException;
348 
349     public void removeByCompanyId(long companyId)
350         throws com.liferay.portal.SystemException;
351 
352     public void removeByUserId(long userId)
353         throws com.liferay.portal.SystemException;
354 
355     public void removeByMirrorActivityId(long mirrorActivityId)
356         throws com.liferay.portal.SystemException,
357             com.liferay.portlet.social.NoSuchActivityException;
358 
359     public void removeByClassNameId(long classNameId)
360         throws com.liferay.portal.SystemException;
361 
362     public void removeByReceiverUserId(long receiverUserId)
363         throws com.liferay.portal.SystemException;
364 
365     public void removeByC_C(long classNameId, long classPK)
366         throws com.liferay.portal.SystemException;
367 
368     public void removeByM_C_C(long mirrorActivityId, long classNameId,
369         long classPK) throws com.liferay.portal.SystemException;
370 
371     public void removeByG_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.SystemException,
375             com.liferay.portlet.social.NoSuchActivityException;
376 
377     public void removeAll() throws com.liferay.portal.SystemException;
378 
379     public int countByGroupId(long groupId)
380         throws com.liferay.portal.SystemException;
381 
382     public int countByCompanyId(long companyId)
383         throws com.liferay.portal.SystemException;
384 
385     public int countByUserId(long userId)
386         throws com.liferay.portal.SystemException;
387 
388     public int countByMirrorActivityId(long mirrorActivityId)
389         throws com.liferay.portal.SystemException;
390 
391     public int countByClassNameId(long classNameId)
392         throws com.liferay.portal.SystemException;
393 
394     public int countByReceiverUserId(long receiverUserId)
395         throws com.liferay.portal.SystemException;
396 
397     public int countByC_C(long classNameId, long classPK)
398         throws com.liferay.portal.SystemException;
399 
400     public int countByM_C_C(long mirrorActivityId, long classNameId,
401         long classPK) throws com.liferay.portal.SystemException;
402 
403     public int countByG_U_CD_C_C_T_R(long groupId, long userId,
404         long createDate, long classNameId, long classPK, int type,
405         long receiverUserId) throws com.liferay.portal.SystemException;
406 
407     public int countAll() throws com.liferay.portal.SystemException;
408 }