001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.social.model.SocialActivity;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       SocialActivityPersistenceImpl
024     * @see       SocialActivityUtil
025     * @generated
026     */
027    public interface SocialActivityPersistence extends BasePersistence<SocialActivity> {
028            public void cacheResult(
029                    com.liferay.portlet.social.model.SocialActivity socialActivity);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities);
033    
034            public com.liferay.portlet.social.model.SocialActivity create(
035                    long activityId);
036    
037            public com.liferay.portlet.social.model.SocialActivity remove(
038                    long activityId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.social.NoSuchActivityException;
041    
042            public com.liferay.portlet.social.model.SocialActivity updateImpl(
043                    com.liferay.portlet.social.model.SocialActivity socialActivity,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.social.model.SocialActivity findByPrimaryKey(
048                    long activityId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.social.NoSuchActivityException;
051    
052            public com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey(
053                    long activityId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
057                    long groupId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
061                    long groupId, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId(
065                    long groupId, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.social.model.SocialActivity findByGroupId_First(
070                    long groupId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.social.NoSuchActivityException;
074    
075            public com.liferay.portlet.social.model.SocialActivity findByGroupId_Last(
076                    long groupId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.social.NoSuchActivityException;
080    
081            public com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext(
082                    long activityId, long groupId,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.social.NoSuchActivityException;
086    
087            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
088                    long companyId)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
092                    long companyId, int start, int end)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId(
096                    long companyId, int start, int end,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.social.model.SocialActivity findByCompanyId_First(
101                    long companyId,
102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103                    throws com.liferay.portal.kernel.exception.SystemException,
104                            com.liferay.portlet.social.NoSuchActivityException;
105    
106            public com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last(
107                    long companyId,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException,
110                            com.liferay.portlet.social.NoSuchActivityException;
111    
112            public com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext(
113                    long activityId, long companyId,
114                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115                    throws com.liferay.portal.kernel.exception.SystemException,
116                            com.liferay.portlet.social.NoSuchActivityException;
117    
118            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
119                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
122                    long userId, int start, int end)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId(
126                    long userId, int start, int end,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.kernel.exception.SystemException;
129    
130            public com.liferay.portlet.social.model.SocialActivity findByUserId_First(
131                    long userId,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException,
134                            com.liferay.portlet.social.NoSuchActivityException;
135    
136            public com.liferay.portlet.social.model.SocialActivity findByUserId_Last(
137                    long userId,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.social.NoSuchActivityException;
141    
142            public com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext(
143                    long activityId, long userId,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException,
146                            com.liferay.portlet.social.NoSuchActivityException;
147    
148            public com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId(
149                    long mirrorActivityId)
150                    throws com.liferay.portal.kernel.exception.SystemException,
151                            com.liferay.portlet.social.NoSuchActivityException;
152    
153            public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
154                    long mirrorActivityId)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId(
158                    long mirrorActivityId, boolean retrieveFromCache)
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
162                    long classNameId)
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    
165            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
166                    long classNameId, int start, int end)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId(
170                    long classNameId, int start, int end,
171                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172                    throws com.liferay.portal.kernel.exception.SystemException;
173    
174            public com.liferay.portlet.social.model.SocialActivity findByClassNameId_First(
175                    long classNameId,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
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,
182                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183                    throws com.liferay.portal.kernel.exception.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 orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.social.NoSuchActivityException;
191    
192            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
193                    long receiverUserId)
194                    throws com.liferay.portal.kernel.exception.SystemException;
195    
196            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
197                    long receiverUserId, int start, int end)
198                    throws com.liferay.portal.kernel.exception.SystemException;
199    
200            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId(
201                    long receiverUserId, int start, int end,
202                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
203                    throws com.liferay.portal.kernel.exception.SystemException;
204    
205            public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First(
206                    long receiverUserId,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException,
209                            com.liferay.portlet.social.NoSuchActivityException;
210    
211            public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last(
212                    long receiverUserId,
213                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214                    throws com.liferay.portal.kernel.exception.SystemException,
215                            com.liferay.portlet.social.NoSuchActivityException;
216    
217            public com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext(
218                    long activityId, long receiverUserId,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.kernel.exception.SystemException,
221                            com.liferay.portlet.social.NoSuchActivityException;
222    
223            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
224                    long classNameId, long classPK)
225                    throws com.liferay.portal.kernel.exception.SystemException;
226    
227            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
228                    long classNameId, long classPK, int start, int end)
229                    throws com.liferay.portal.kernel.exception.SystemException;
230    
231            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C(
232                    long classNameId, long classPK, int start, int end,
233                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            public com.liferay.portlet.social.model.SocialActivity findByC_C_First(
237                    long classNameId, long classPK,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.kernel.exception.SystemException,
240                            com.liferay.portlet.social.NoSuchActivityException;
241    
242            public com.liferay.portlet.social.model.SocialActivity findByC_C_Last(
243                    long classNameId, long classPK,
244                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245                    throws com.liferay.portal.kernel.exception.SystemException,
246                            com.liferay.portlet.social.NoSuchActivityException;
247    
248            public com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext(
249                    long activityId, long classNameId, long classPK,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException,
252                            com.liferay.portlet.social.NoSuchActivityException;
253    
254            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
255                    long mirrorActivityId, long classNameId, long classPK)
256                    throws com.liferay.portal.kernel.exception.SystemException;
257    
258            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
259                    long mirrorActivityId, long classNameId, long classPK, int start,
260                    int end) throws com.liferay.portal.kernel.exception.SystemException;
261    
262            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C(
263                    long mirrorActivityId, long classNameId, long classPK, int start,
264                    int end,
265                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            public com.liferay.portlet.social.model.SocialActivity findByM_C_C_First(
269                    long mirrorActivityId, long classNameId, long classPK,
270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271                    throws com.liferay.portal.kernel.exception.SystemException,
272                            com.liferay.portlet.social.NoSuchActivityException;
273    
274            public com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last(
275                    long mirrorActivityId, long classNameId, long classPK,
276                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277                    throws com.liferay.portal.kernel.exception.SystemException,
278                            com.liferay.portlet.social.NoSuchActivityException;
279    
280            public com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext(
281                    long activityId, long mirrorActivityId, long classNameId, long classPK,
282                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283                    throws com.liferay.portal.kernel.exception.SystemException,
284                            com.liferay.portlet.social.NoSuchActivityException;
285    
286            public com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R(
287                    long groupId, long userId, long createDate, long classNameId,
288                    long classPK, int type, long receiverUserId)
289                    throws com.liferay.portal.kernel.exception.SystemException,
290                            com.liferay.portlet.social.NoSuchActivityException;
291    
292            public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
293                    long groupId, long userId, long createDate, long classNameId,
294                    long classPK, int type, long receiverUserId)
295                    throws com.liferay.portal.kernel.exception.SystemException;
296    
297            public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R(
298                    long groupId, long userId, long createDate, long classNameId,
299                    long classPK, int type, long receiverUserId, boolean retrieveFromCache)
300                    throws com.liferay.portal.kernel.exception.SystemException;
301    
302            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll()
303                    throws com.liferay.portal.kernel.exception.SystemException;
304    
305            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
306                    int start, int end)
307                    throws com.liferay.portal.kernel.exception.SystemException;
308    
309            public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll(
310                    int start, int end,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException;
313    
314            public void removeByGroupId(long groupId)
315                    throws com.liferay.portal.kernel.exception.SystemException;
316    
317            public void removeByCompanyId(long companyId)
318                    throws com.liferay.portal.kernel.exception.SystemException;
319    
320            public void removeByUserId(long userId)
321                    throws com.liferay.portal.kernel.exception.SystemException;
322    
323            public void removeByMirrorActivityId(long mirrorActivityId)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.social.NoSuchActivityException;
326    
327            public void removeByClassNameId(long classNameId)
328                    throws com.liferay.portal.kernel.exception.SystemException;
329    
330            public void removeByReceiverUserId(long receiverUserId)
331                    throws com.liferay.portal.kernel.exception.SystemException;
332    
333            public void removeByC_C(long classNameId, long classPK)
334                    throws com.liferay.portal.kernel.exception.SystemException;
335    
336            public void removeByM_C_C(long mirrorActivityId, long classNameId,
337                    long classPK)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            public void removeByG_U_CD_C_C_T_R(long groupId, long userId,
341                    long createDate, long classNameId, long classPK, int type,
342                    long receiverUserId)
343                    throws com.liferay.portal.kernel.exception.SystemException,
344                            com.liferay.portlet.social.NoSuchActivityException;
345    
346            public void removeAll()
347                    throws com.liferay.portal.kernel.exception.SystemException;
348    
349            public int countByGroupId(long groupId)
350                    throws com.liferay.portal.kernel.exception.SystemException;
351    
352            public int countByCompanyId(long companyId)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            public int countByUserId(long userId)
356                    throws com.liferay.portal.kernel.exception.SystemException;
357    
358            public int countByMirrorActivityId(long mirrorActivityId)
359                    throws com.liferay.portal.kernel.exception.SystemException;
360    
361            public int countByClassNameId(long classNameId)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            public int countByReceiverUserId(long receiverUserId)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            public int countByC_C(long classNameId, long classPK)
368                    throws com.liferay.portal.kernel.exception.SystemException;
369    
370            public int countByM_C_C(long mirrorActivityId, long classNameId,
371                    long classPK)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            public int countByG_U_CD_C_C_T_R(long groupId, long userId,
375                    long createDate, long classNameId, long classPK, int type,
376                    long receiverUserId)
377                    throws com.liferay.portal.kernel.exception.SystemException;
378    
379            public int countAll()
380                    throws com.liferay.portal.kernel.exception.SystemException;
381    }