001    /**
002     * Copyright (c) 2000-2013 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.SocialActivitySetting;
020    
021    /**
022     * The persistence interface for the social activity setting service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see SocialActivitySettingPersistenceImpl
030     * @see SocialActivitySettingUtil
031     * @generated
032     */
033    public interface SocialActivitySettingPersistence extends BasePersistence<SocialActivitySetting> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link SocialActivitySettingUtil} to access the social activity setting persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the social activity setting in the entity cache if it is enabled.
042            *
043            * @param socialActivitySetting the social activity setting
044            */
045            public void cacheResult(
046                    com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting);
047    
048            /**
049            * Caches the social activity settings in the entity cache if it is enabled.
050            *
051            * @param socialActivitySettings the social activity settings
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> socialActivitySettings);
055    
056            /**
057            * Creates a new social activity setting with the primary key. Does not add the social activity setting to the database.
058            *
059            * @param activitySettingId the primary key for the new social activity setting
060            * @return the new social activity setting
061            */
062            public com.liferay.portlet.social.model.SocialActivitySetting create(
063                    long activitySettingId);
064    
065            /**
066            * Removes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param activitySettingId the primary key of the social activity setting
069            * @return the social activity setting that was removed
070            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.social.model.SocialActivitySetting remove(
074                    long activitySettingId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.social.NoSuchActivitySettingException;
077    
078            public com.liferay.portlet.social.model.SocialActivitySetting updateImpl(
079                    com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Returns the social activity setting with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivitySettingException} if it could not be found.
085            *
086            * @param activitySettingId the primary key of the social activity setting
087            * @return the social activity setting
088            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.social.model.SocialActivitySetting findByPrimaryKey(
092                    long activitySettingId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.social.NoSuchActivitySettingException;
095    
096            /**
097            * Returns the social activity setting with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param activitySettingId the primary key of the social activity setting
100            * @return the social activity setting, or <code>null</code> if a social activity setting with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.social.model.SocialActivitySetting fetchByPrimaryKey(
104                    long activitySettingId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the social activity settings where groupId = &#63; and activityType = &#63;.
109            *
110            * @param groupId the group ID
111            * @param activityType the activity type
112            * @return the matching social activity settings
113            * @throws SystemException if a system exception occurred
114            */
115            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_A(
116                    long groupId, int activityType)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            /**
120            * Returns a range of all the social activity settings where groupId = &#63; and activityType = &#63;.
121            *
122            * <p>
123            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
124            * </p>
125            *
126            * @param groupId the group ID
127            * @param activityType the activity type
128            * @param start the lower bound of the range of social activity settings
129            * @param end the upper bound of the range of social activity settings (not inclusive)
130            * @return the range of matching social activity settings
131            * @throws SystemException if a system exception occurred
132            */
133            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_A(
134                    long groupId, int activityType, int start, int end)
135                    throws com.liferay.portal.kernel.exception.SystemException;
136    
137            /**
138            * Returns an ordered range of all the social activity settings where groupId = &#63; and activityType = &#63;.
139            *
140            * <p>
141            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
142            * </p>
143            *
144            * @param groupId the group ID
145            * @param activityType the activity type
146            * @param start the lower bound of the range of social activity settings
147            * @param end the upper bound of the range of social activity settings (not inclusive)
148            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
149            * @return the ordered range of matching social activity settings
150            * @throws SystemException if a system exception occurred
151            */
152            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_A(
153                    long groupId, int activityType, int start, int end,
154                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Returns the first social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
159            *
160            * @param groupId the group ID
161            * @param activityType the activity type
162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
163            * @return the first matching social activity setting
164            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portlet.social.model.SocialActivitySetting findByG_A_First(
168                    long groupId, int activityType,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.social.NoSuchActivitySettingException;
172    
173            /**
174            * Returns the first social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
175            *
176            * @param groupId the group ID
177            * @param activityType the activity type
178            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
179            * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_A_First(
183                    long groupId, int activityType,
184                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
185                    throws com.liferay.portal.kernel.exception.SystemException;
186    
187            /**
188            * Returns the last social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
189            *
190            * @param groupId the group ID
191            * @param activityType the activity type
192            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
193            * @return the last matching social activity setting
194            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            public com.liferay.portlet.social.model.SocialActivitySetting findByG_A_Last(
198                    long groupId, int activityType,
199                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200                    throws com.liferay.portal.kernel.exception.SystemException,
201                            com.liferay.portlet.social.NoSuchActivitySettingException;
202    
203            /**
204            * Returns the last social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
205            *
206            * @param groupId the group ID
207            * @param activityType the activity type
208            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
209            * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
210            * @throws SystemException if a system exception occurred
211            */
212            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_A_Last(
213                    long groupId, int activityType,
214                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    
217            /**
218            * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = &#63; and activityType = &#63;.
219            *
220            * @param activitySettingId the primary key of the current social activity setting
221            * @param groupId the group ID
222            * @param activityType the activity type
223            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
224            * @return the previous, current, and next social activity setting
225            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.social.model.SocialActivitySetting[] findByG_A_PrevAndNext(
229                    long activitySettingId, long groupId, int activityType,
230                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
231                    throws com.liferay.portal.kernel.exception.SystemException,
232                            com.liferay.portlet.social.NoSuchActivitySettingException;
233    
234            /**
235            * Returns all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
236            *
237            * @param groupId the group ID
238            * @param classNameId the class name ID
239            * @param activityType the activity type
240            * @return the matching social activity settings
241            * @throws SystemException if a system exception occurred
242            */
243            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C_A(
244                    long groupId, long classNameId, int activityType)
245                    throws com.liferay.portal.kernel.exception.SystemException;
246    
247            /**
248            * Returns a range of all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
249            *
250            * <p>
251            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
252            * </p>
253            *
254            * @param groupId the group ID
255            * @param classNameId the class name ID
256            * @param activityType the activity type
257            * @param start the lower bound of the range of social activity settings
258            * @param end the upper bound of the range of social activity settings (not inclusive)
259            * @return the range of matching social activity settings
260            * @throws SystemException if a system exception occurred
261            */
262            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C_A(
263                    long groupId, long classNameId, int activityType, int start, int end)
264                    throws com.liferay.portal.kernel.exception.SystemException;
265    
266            /**
267            * Returns an ordered range of all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
268            *
269            * <p>
270            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
271            * </p>
272            *
273            * @param groupId the group ID
274            * @param classNameId the class name ID
275            * @param activityType the activity type
276            * @param start the lower bound of the range of social activity settings
277            * @param end the upper bound of the range of social activity settings (not inclusive)
278            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
279            * @return the ordered range of matching social activity settings
280            * @throws SystemException if a system exception occurred
281            */
282            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findByG_C_A(
283                    long groupId, long classNameId, int activityType, int start, int end,
284                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
285                    throws com.liferay.portal.kernel.exception.SystemException;
286    
287            /**
288            * Returns the first social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
289            *
290            * @param groupId the group ID
291            * @param classNameId the class name ID
292            * @param activityType the activity type
293            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
294            * @return the first matching social activity setting
295            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
296            * @throws SystemException if a system exception occurred
297            */
298            public com.liferay.portlet.social.model.SocialActivitySetting findByG_C_A_First(
299                    long groupId, long classNameId, int activityType,
300                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
301                    throws com.liferay.portal.kernel.exception.SystemException,
302                            com.liferay.portlet.social.NoSuchActivitySettingException;
303    
304            /**
305            * Returns the first social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
306            *
307            * @param groupId the group ID
308            * @param classNameId the class name ID
309            * @param activityType the activity type
310            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
311            * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
312            * @throws SystemException if a system exception occurred
313            */
314            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_First(
315                    long groupId, long classNameId, int activityType,
316                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317                    throws com.liferay.portal.kernel.exception.SystemException;
318    
319            /**
320            * Returns the last social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
321            *
322            * @param groupId the group ID
323            * @param classNameId the class name ID
324            * @param activityType the activity type
325            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
326            * @return the last matching social activity setting
327            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
328            * @throws SystemException if a system exception occurred
329            */
330            public com.liferay.portlet.social.model.SocialActivitySetting findByG_C_A_Last(
331                    long groupId, long classNameId, int activityType,
332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333                    throws com.liferay.portal.kernel.exception.SystemException,
334                            com.liferay.portlet.social.NoSuchActivitySettingException;
335    
336            /**
337            * Returns the last social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
338            *
339            * @param groupId the group ID
340            * @param classNameId the class name ID
341            * @param activityType the activity type
342            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
343            * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
344            * @throws SystemException if a system exception occurred
345            */
346            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_Last(
347                    long groupId, long classNameId, int activityType,
348                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
349                    throws com.liferay.portal.kernel.exception.SystemException;
350    
351            /**
352            * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
353            *
354            * @param activitySettingId the primary key of the current social activity setting
355            * @param groupId the group ID
356            * @param classNameId the class name ID
357            * @param activityType the activity type
358            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
359            * @return the previous, current, and next social activity setting
360            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a social activity setting with the primary key could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portlet.social.model.SocialActivitySetting[] findByG_C_A_PrevAndNext(
364                    long activitySettingId, long groupId, long classNameId,
365                    int activityType,
366                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
367                    throws com.liferay.portal.kernel.exception.SystemException,
368                            com.liferay.portlet.social.NoSuchActivitySettingException;
369    
370            /**
371            * Returns the social activity setting where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63; or throws a {@link com.liferay.portlet.social.NoSuchActivitySettingException} if it could not be found.
372            *
373            * @param groupId the group ID
374            * @param classNameId the class name ID
375            * @param activityType the activity type
376            * @param name the name
377            * @return the matching social activity setting
378            * @throws com.liferay.portlet.social.NoSuchActivitySettingException if a matching social activity setting could not be found
379            * @throws SystemException if a system exception occurred
380            */
381            public com.liferay.portlet.social.model.SocialActivitySetting findByG_C_A_N(
382                    long groupId, long classNameId, int activityType, java.lang.String name)
383                    throws com.liferay.portal.kernel.exception.SystemException,
384                            com.liferay.portlet.social.NoSuchActivitySettingException;
385    
386            /**
387            * Returns the social activity setting where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
388            *
389            * @param groupId the group ID
390            * @param classNameId the class name ID
391            * @param activityType the activity type
392            * @param name the name
393            * @return the matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
394            * @throws SystemException if a system exception occurred
395            */
396            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_N(
397                    long groupId, long classNameId, int activityType, java.lang.String name)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * Returns the social activity setting where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
402            *
403            * @param groupId the group ID
404            * @param classNameId the class name ID
405            * @param activityType the activity type
406            * @param name the name
407            * @param retrieveFromCache whether to use the finder cache
408            * @return the matching social activity setting, or <code>null</code> if a matching social activity setting could not be found
409            * @throws SystemException if a system exception occurred
410            */
411            public com.liferay.portlet.social.model.SocialActivitySetting fetchByG_C_A_N(
412                    long groupId, long classNameId, int activityType,
413                    java.lang.String name, boolean retrieveFromCache)
414                    throws com.liferay.portal.kernel.exception.SystemException;
415    
416            /**
417            * Returns all the social activity settings.
418            *
419            * @return the social activity settings
420            * @throws SystemException if a system exception occurred
421            */
422            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findAll()
423                    throws com.liferay.portal.kernel.exception.SystemException;
424    
425            /**
426            * Returns a range of all the social activity settings.
427            *
428            * <p>
429            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
430            * </p>
431            *
432            * @param start the lower bound of the range of social activity settings
433            * @param end the upper bound of the range of social activity settings (not inclusive)
434            * @return the range of social activity settings
435            * @throws SystemException if a system exception occurred
436            */
437            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findAll(
438                    int start, int end)
439                    throws com.liferay.portal.kernel.exception.SystemException;
440    
441            /**
442            * Returns an ordered range of all the social activity settings.
443            *
444            * <p>
445            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
446            * </p>
447            *
448            * @param start the lower bound of the range of social activity settings
449            * @param end the upper bound of the range of social activity settings (not inclusive)
450            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
451            * @return the ordered range of social activity settings
452            * @throws SystemException if a system exception occurred
453            */
454            public java.util.List<com.liferay.portlet.social.model.SocialActivitySetting> findAll(
455                    int start, int end,
456                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
457                    throws com.liferay.portal.kernel.exception.SystemException;
458    
459            /**
460            * Removes all the social activity settings where groupId = &#63; and activityType = &#63; from the database.
461            *
462            * @param groupId the group ID
463            * @param activityType the activity type
464            * @throws SystemException if a system exception occurred
465            */
466            public void removeByG_A(long groupId, int activityType)
467                    throws com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Removes all the social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63; from the database.
471            *
472            * @param groupId the group ID
473            * @param classNameId the class name ID
474            * @param activityType the activity type
475            * @throws SystemException if a system exception occurred
476            */
477            public void removeByG_C_A(long groupId, long classNameId, int activityType)
478                    throws com.liferay.portal.kernel.exception.SystemException;
479    
480            /**
481            * Removes the social activity setting where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63; from the database.
482            *
483            * @param groupId the group ID
484            * @param classNameId the class name ID
485            * @param activityType the activity type
486            * @param name the name
487            * @return the social activity setting that was removed
488            * @throws SystemException if a system exception occurred
489            */
490            public com.liferay.portlet.social.model.SocialActivitySetting removeByG_C_A_N(
491                    long groupId, long classNameId, int activityType, java.lang.String name)
492                    throws com.liferay.portal.kernel.exception.SystemException,
493                            com.liferay.portlet.social.NoSuchActivitySettingException;
494    
495            /**
496            * Removes all the social activity settings from the database.
497            *
498            * @throws SystemException if a system exception occurred
499            */
500            public void removeAll()
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    
503            /**
504            * Returns the number of social activity settings where groupId = &#63; and activityType = &#63;.
505            *
506            * @param groupId the group ID
507            * @param activityType the activity type
508            * @return the number of matching social activity settings
509            * @throws SystemException if a system exception occurred
510            */
511            public int countByG_A(long groupId, int activityType)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            /**
515            * Returns the number of social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63;.
516            *
517            * @param groupId the group ID
518            * @param classNameId the class name ID
519            * @param activityType the activity type
520            * @return the number of matching social activity settings
521            * @throws SystemException if a system exception occurred
522            */
523            public int countByG_C_A(long groupId, long classNameId, int activityType)
524                    throws com.liferay.portal.kernel.exception.SystemException;
525    
526            /**
527            * Returns the number of social activity settings where groupId = &#63; and classNameId = &#63; and activityType = &#63; and name = &#63;.
528            *
529            * @param groupId the group ID
530            * @param classNameId the class name ID
531            * @param activityType the activity type
532            * @param name the name
533            * @return the number of matching social activity settings
534            * @throws SystemException if a system exception occurred
535            */
536            public int countByG_C_A_N(long groupId, long classNameId, int activityType,
537                    java.lang.String name)
538                    throws com.liferay.portal.kernel.exception.SystemException;
539    
540            /**
541            * Returns the number of social activity settings.
542            *
543            * @return the number of social activity settings
544            * @throws SystemException if a system exception occurred
545            */
546            public int countAll()
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    }