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