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.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.social.model.SocialActivitySet;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the social activity set service. This utility wraps {@link SocialActivitySetPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see SocialActivitySetPersistence
037     * @see SocialActivitySetPersistenceImpl
038     * @generated
039     */
040    public class SocialActivitySetUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(SocialActivitySet socialActivitySet) {
058                    getPersistence().clearCache(socialActivitySet);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<SocialActivitySet> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<SocialActivitySet> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<SocialActivitySet> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static SocialActivitySet update(SocialActivitySet socialActivitySet)
101                    throws SystemException {
102                    return getPersistence().update(socialActivitySet);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static SocialActivitySet update(
109                    SocialActivitySet socialActivitySet, ServiceContext serviceContext)
110                    throws SystemException {
111                    return getPersistence().update(socialActivitySet, serviceContext);
112            }
113    
114            /**
115            * Returns all the social activity sets where groupId = &#63; and userId = &#63; and type = &#63;.
116            *
117            * @param groupId the group ID
118            * @param userId the user ID
119            * @param type the type
120            * @return the matching social activity sets
121            * @throws SystemException if a system exception occurred
122            */
123            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByG_U_T(
124                    long groupId, long userId, int type)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return getPersistence().findByG_U_T(groupId, userId, type);
127            }
128    
129            /**
130            * Returns a range of all the social activity sets where groupId = &#63; and userId = &#63; and type = &#63;.
131            *
132            * <p>
133            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
134            * </p>
135            *
136            * @param groupId the group ID
137            * @param userId the user ID
138            * @param type the type
139            * @param start the lower bound of the range of social activity sets
140            * @param end the upper bound of the range of social activity sets (not inclusive)
141            * @return the range of matching social activity sets
142            * @throws SystemException if a system exception occurred
143            */
144            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByG_U_T(
145                    long groupId, long userId, int type, int start, int end)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return getPersistence().findByG_U_T(groupId, userId, type, start, end);
148            }
149    
150            /**
151            * Returns an ordered range of all the social activity sets where groupId = &#63; and userId = &#63; and type = &#63;.
152            *
153            * <p>
154            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
155            * </p>
156            *
157            * @param groupId the group ID
158            * @param userId the user ID
159            * @param type the type
160            * @param start the lower bound of the range of social activity sets
161            * @param end the upper bound of the range of social activity sets (not inclusive)
162            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
163            * @return the ordered range of matching social activity sets
164            * @throws SystemException if a system exception occurred
165            */
166            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByG_U_T(
167                    long groupId, long userId, int type, int start, int end,
168                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return getPersistence()
171                                       .findByG_U_T(groupId, userId, type, start, end,
172                            orderByComparator);
173            }
174    
175            /**
176            * Returns the first social activity set in the ordered set where groupId = &#63; and userId = &#63; and type = &#63;.
177            *
178            * @param groupId the group ID
179            * @param userId the user ID
180            * @param type the type
181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
182            * @return the first matching social activity set
183            * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public static com.liferay.portlet.social.model.SocialActivitySet findByG_U_T_First(
187                    long groupId, long userId, int type,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.social.NoSuchActivitySetException {
191                    return getPersistence()
192                                       .findByG_U_T_First(groupId, userId, type, orderByComparator);
193            }
194    
195            /**
196            * Returns the first social activity set in the ordered set where groupId = &#63; and userId = &#63; and type = &#63;.
197            *
198            * @param groupId the group ID
199            * @param userId the user ID
200            * @param type the type
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public static com.liferay.portlet.social.model.SocialActivitySet fetchByG_U_T_First(
206                    long groupId, long userId, int type,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return getPersistence()
210                                       .fetchByG_U_T_First(groupId, userId, type, orderByComparator);
211            }
212    
213            /**
214            * Returns the last social activity set in the ordered set where groupId = &#63; and userId = &#63; and type = &#63;.
215            *
216            * @param groupId the group ID
217            * @param userId the user ID
218            * @param type the type
219            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
220            * @return the last matching social activity set
221            * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found
222            * @throws SystemException if a system exception occurred
223            */
224            public static com.liferay.portlet.social.model.SocialActivitySet findByG_U_T_Last(
225                    long groupId, long userId, int type,
226                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227                    throws com.liferay.portal.kernel.exception.SystemException,
228                            com.liferay.portlet.social.NoSuchActivitySetException {
229                    return getPersistence()
230                                       .findByG_U_T_Last(groupId, userId, type, orderByComparator);
231            }
232    
233            /**
234            * Returns the last social activity set in the ordered set where groupId = &#63; and userId = &#63; and type = &#63;.
235            *
236            * @param groupId the group ID
237            * @param userId the user ID
238            * @param type the type
239            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
240            * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found
241            * @throws SystemException if a system exception occurred
242            */
243            public static com.liferay.portlet.social.model.SocialActivitySet fetchByG_U_T_Last(
244                    long groupId, long userId, int type,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return getPersistence()
248                                       .fetchByG_U_T_Last(groupId, userId, type, orderByComparator);
249            }
250    
251            /**
252            * Returns the social activity sets before and after the current social activity set in the ordered set where groupId = &#63; and userId = &#63; and type = &#63;.
253            *
254            * @param activitySetId the primary key of the current social activity set
255            * @param groupId the group ID
256            * @param userId the user ID
257            * @param type the type
258            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
259            * @return the previous, current, and next social activity set
260            * @throws com.liferay.portlet.social.NoSuchActivitySetException if a social activity set with the primary key could not be found
261            * @throws SystemException if a system exception occurred
262            */
263            public static com.liferay.portlet.social.model.SocialActivitySet[] findByG_U_T_PrevAndNext(
264                    long activitySetId, long groupId, long userId, int type,
265                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
266                    throws com.liferay.portal.kernel.exception.SystemException,
267                            com.liferay.portlet.social.NoSuchActivitySetException {
268                    return getPersistence()
269                                       .findByG_U_T_PrevAndNext(activitySetId, groupId, userId,
270                            type, orderByComparator);
271            }
272    
273            /**
274            * Removes all the social activity sets where groupId = &#63; and userId = &#63; and type = &#63; from the database.
275            *
276            * @param groupId the group ID
277            * @param userId the user ID
278            * @param type the type
279            * @throws SystemException if a system exception occurred
280            */
281            public static void removeByG_U_T(long groupId, long userId, int type)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    getPersistence().removeByG_U_T(groupId, userId, type);
284            }
285    
286            /**
287            * Returns the number of social activity sets where groupId = &#63; and userId = &#63; and type = &#63;.
288            *
289            * @param groupId the group ID
290            * @param userId the user ID
291            * @param type the type
292            * @return the number of matching social activity sets
293            * @throws SystemException if a system exception occurred
294            */
295            public static int countByG_U_T(long groupId, long userId, int type)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    return getPersistence().countByG_U_T(groupId, userId, type);
298            }
299    
300            /**
301            * Returns all the social activity sets where classNameId = &#63; and classPK = &#63; and type = &#63;.
302            *
303            * @param classNameId the class name ID
304            * @param classPK the class p k
305            * @param type the type
306            * @return the matching social activity sets
307            * @throws SystemException if a system exception occurred
308            */
309            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByC_C_T(
310                    long classNameId, long classPK, int type)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return getPersistence().findByC_C_T(classNameId, classPK, type);
313            }
314    
315            /**
316            * Returns a range of all the social activity sets where classNameId = &#63; and classPK = &#63; and type = &#63;.
317            *
318            * <p>
319            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
320            * </p>
321            *
322            * @param classNameId the class name ID
323            * @param classPK the class p k
324            * @param type the type
325            * @param start the lower bound of the range of social activity sets
326            * @param end the upper bound of the range of social activity sets (not inclusive)
327            * @return the range of matching social activity sets
328            * @throws SystemException if a system exception occurred
329            */
330            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByC_C_T(
331                    long classNameId, long classPK, int type, int start, int end)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return getPersistence()
334                                       .findByC_C_T(classNameId, classPK, type, start, end);
335            }
336    
337            /**
338            * Returns an ordered range of all the social activity sets where classNameId = &#63; and classPK = &#63; and type = &#63;.
339            *
340            * <p>
341            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
342            * </p>
343            *
344            * @param classNameId the class name ID
345            * @param classPK the class p k
346            * @param type the type
347            * @param start the lower bound of the range of social activity sets
348            * @param end the upper bound of the range of social activity sets (not inclusive)
349            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
350            * @return the ordered range of matching social activity sets
351            * @throws SystemException if a system exception occurred
352            */
353            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByC_C_T(
354                    long classNameId, long classPK, int type, int start, int end,
355                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return getPersistence()
358                                       .findByC_C_T(classNameId, classPK, type, start, end,
359                            orderByComparator);
360            }
361    
362            /**
363            * Returns the first social activity set in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
364            *
365            * @param classNameId the class name ID
366            * @param classPK the class p k
367            * @param type the type
368            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
369            * @return the first matching social activity set
370            * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found
371            * @throws SystemException if a system exception occurred
372            */
373            public static com.liferay.portlet.social.model.SocialActivitySet findByC_C_T_First(
374                    long classNameId, long classPK, int type,
375                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
376                    throws com.liferay.portal.kernel.exception.SystemException,
377                            com.liferay.portlet.social.NoSuchActivitySetException {
378                    return getPersistence()
379                                       .findByC_C_T_First(classNameId, classPK, type,
380                            orderByComparator);
381            }
382    
383            /**
384            * Returns the first social activity set in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
385            *
386            * @param classNameId the class name ID
387            * @param classPK the class p k
388            * @param type the type
389            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
390            * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public static com.liferay.portlet.social.model.SocialActivitySet fetchByC_C_T_First(
394                    long classNameId, long classPK, int type,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.kernel.exception.SystemException {
397                    return getPersistence()
398                                       .fetchByC_C_T_First(classNameId, classPK, type,
399                            orderByComparator);
400            }
401    
402            /**
403            * Returns the last social activity set in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
404            *
405            * @param classNameId the class name ID
406            * @param classPK the class p k
407            * @param type the type
408            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
409            * @return the last matching social activity set
410            * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found
411            * @throws SystemException if a system exception occurred
412            */
413            public static com.liferay.portlet.social.model.SocialActivitySet findByC_C_T_Last(
414                    long classNameId, long classPK, int type,
415                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
416                    throws com.liferay.portal.kernel.exception.SystemException,
417                            com.liferay.portlet.social.NoSuchActivitySetException {
418                    return getPersistence()
419                                       .findByC_C_T_Last(classNameId, classPK, type,
420                            orderByComparator);
421            }
422    
423            /**
424            * Returns the last social activity set in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
425            *
426            * @param classNameId the class name ID
427            * @param classPK the class p k
428            * @param type the type
429            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
430            * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found
431            * @throws SystemException if a system exception occurred
432            */
433            public static com.liferay.portlet.social.model.SocialActivitySet fetchByC_C_T_Last(
434                    long classNameId, long classPK, int type,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return getPersistence()
438                                       .fetchByC_C_T_Last(classNameId, classPK, type,
439                            orderByComparator);
440            }
441    
442            /**
443            * Returns the social activity sets before and after the current social activity set in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
444            *
445            * @param activitySetId the primary key of the current social activity set
446            * @param classNameId the class name ID
447            * @param classPK the class p k
448            * @param type the type
449            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
450            * @return the previous, current, and next social activity set
451            * @throws com.liferay.portlet.social.NoSuchActivitySetException if a social activity set with the primary key could not be found
452            * @throws SystemException if a system exception occurred
453            */
454            public static com.liferay.portlet.social.model.SocialActivitySet[] findByC_C_T_PrevAndNext(
455                    long activitySetId, long classNameId, long classPK, int type,
456                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
457                    throws com.liferay.portal.kernel.exception.SystemException,
458                            com.liferay.portlet.social.NoSuchActivitySetException {
459                    return getPersistence()
460                                       .findByC_C_T_PrevAndNext(activitySetId, classNameId,
461                            classPK, type, orderByComparator);
462            }
463    
464            /**
465            * Removes all the social activity sets where classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
466            *
467            * @param classNameId the class name ID
468            * @param classPK the class p k
469            * @param type the type
470            * @throws SystemException if a system exception occurred
471            */
472            public static void removeByC_C_T(long classNameId, long classPK, int type)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    getPersistence().removeByC_C_T(classNameId, classPK, type);
475            }
476    
477            /**
478            * Returns the number of social activity sets where classNameId = &#63; and classPK = &#63; and type = &#63;.
479            *
480            * @param classNameId the class name ID
481            * @param classPK the class p k
482            * @param type the type
483            * @return the number of matching social activity sets
484            * @throws SystemException if a system exception occurred
485            */
486            public static int countByC_C_T(long classNameId, long classPK, int type)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    return getPersistence().countByC_C_T(classNameId, classPK, type);
489            }
490    
491            /**
492            * Returns all the social activity sets where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
493            *
494            * @param userId the user ID
495            * @param classNameId the class name ID
496            * @param classPK the class p k
497            * @param type the type
498            * @return the matching social activity sets
499            * @throws SystemException if a system exception occurred
500            */
501            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByU_C_C_T(
502                    long userId, long classNameId, long classPK, int type)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    return getPersistence().findByU_C_C_T(userId, classNameId, classPK, type);
505            }
506    
507            /**
508            * Returns a range of all the social activity sets where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
509            *
510            * <p>
511            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
512            * </p>
513            *
514            * @param userId the user ID
515            * @param classNameId the class name ID
516            * @param classPK the class p k
517            * @param type the type
518            * @param start the lower bound of the range of social activity sets
519            * @param end the upper bound of the range of social activity sets (not inclusive)
520            * @return the range of matching social activity sets
521            * @throws SystemException if a system exception occurred
522            */
523            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByU_C_C_T(
524                    long userId, long classNameId, long classPK, int type, int start,
525                    int end) throws com.liferay.portal.kernel.exception.SystemException {
526                    return getPersistence()
527                                       .findByU_C_C_T(userId, classNameId, classPK, type, start, end);
528            }
529    
530            /**
531            * Returns an ordered range of all the social activity sets where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
532            *
533            * <p>
534            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
535            * </p>
536            *
537            * @param userId the user ID
538            * @param classNameId the class name ID
539            * @param classPK the class p k
540            * @param type the type
541            * @param start the lower bound of the range of social activity sets
542            * @param end the upper bound of the range of social activity sets (not inclusive)
543            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
544            * @return the ordered range of matching social activity sets
545            * @throws SystemException if a system exception occurred
546            */
547            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByU_C_C_T(
548                    long userId, long classNameId, long classPK, int type, int start,
549                    int end,
550                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    return getPersistence()
553                                       .findByU_C_C_T(userId, classNameId, classPK, type, start,
554                            end, orderByComparator);
555            }
556    
557            /**
558            * Returns the first social activity set in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
559            *
560            * @param userId the user ID
561            * @param classNameId the class name ID
562            * @param classPK the class p k
563            * @param type the type
564            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
565            * @return the first matching social activity set
566            * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found
567            * @throws SystemException if a system exception occurred
568            */
569            public static com.liferay.portlet.social.model.SocialActivitySet findByU_C_C_T_First(
570                    long userId, long classNameId, long classPK, int type,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException,
573                            com.liferay.portlet.social.NoSuchActivitySetException {
574                    return getPersistence()
575                                       .findByU_C_C_T_First(userId, classNameId, classPK, type,
576                            orderByComparator);
577            }
578    
579            /**
580            * Returns the first social activity set in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
581            *
582            * @param userId the user ID
583            * @param classNameId the class name ID
584            * @param classPK the class p k
585            * @param type the type
586            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
587            * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found
588            * @throws SystemException if a system exception occurred
589            */
590            public static com.liferay.portlet.social.model.SocialActivitySet fetchByU_C_C_T_First(
591                    long userId, long classNameId, long classPK, int type,
592                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
593                    throws com.liferay.portal.kernel.exception.SystemException {
594                    return getPersistence()
595                                       .fetchByU_C_C_T_First(userId, classNameId, classPK, type,
596                            orderByComparator);
597            }
598    
599            /**
600            * Returns the last social activity set in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
601            *
602            * @param userId the user ID
603            * @param classNameId the class name ID
604            * @param classPK the class p k
605            * @param type the type
606            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
607            * @return the last matching social activity set
608            * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found
609            * @throws SystemException if a system exception occurred
610            */
611            public static com.liferay.portlet.social.model.SocialActivitySet findByU_C_C_T_Last(
612                    long userId, long classNameId, long classPK, int type,
613                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
614                    throws com.liferay.portal.kernel.exception.SystemException,
615                            com.liferay.portlet.social.NoSuchActivitySetException {
616                    return getPersistence()
617                                       .findByU_C_C_T_Last(userId, classNameId, classPK, type,
618                            orderByComparator);
619            }
620    
621            /**
622            * Returns the last social activity set in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
623            *
624            * @param userId the user ID
625            * @param classNameId the class name ID
626            * @param classPK the class p k
627            * @param type the type
628            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
629            * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found
630            * @throws SystemException if a system exception occurred
631            */
632            public static com.liferay.portlet.social.model.SocialActivitySet fetchByU_C_C_T_Last(
633                    long userId, long classNameId, long classPK, int type,
634                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
635                    throws com.liferay.portal.kernel.exception.SystemException {
636                    return getPersistence()
637                                       .fetchByU_C_C_T_Last(userId, classNameId, classPK, type,
638                            orderByComparator);
639            }
640    
641            /**
642            * Returns the social activity sets before and after the current social activity set in the ordered set where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
643            *
644            * @param activitySetId the primary key of the current social activity set
645            * @param userId the user ID
646            * @param classNameId the class name ID
647            * @param classPK the class p k
648            * @param type the type
649            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
650            * @return the previous, current, and next social activity set
651            * @throws com.liferay.portlet.social.NoSuchActivitySetException if a social activity set with the primary key could not be found
652            * @throws SystemException if a system exception occurred
653            */
654            public static com.liferay.portlet.social.model.SocialActivitySet[] findByU_C_C_T_PrevAndNext(
655                    long activitySetId, long userId, long classNameId, long classPK,
656                    int type,
657                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
658                    throws com.liferay.portal.kernel.exception.SystemException,
659                            com.liferay.portlet.social.NoSuchActivitySetException {
660                    return getPersistence()
661                                       .findByU_C_C_T_PrevAndNext(activitySetId, userId,
662                            classNameId, classPK, type, orderByComparator);
663            }
664    
665            /**
666            * Removes all the social activity sets where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
667            *
668            * @param userId the user ID
669            * @param classNameId the class name ID
670            * @param classPK the class p k
671            * @param type the type
672            * @throws SystemException if a system exception occurred
673            */
674            public static void removeByU_C_C_T(long userId, long classNameId,
675                    long classPK, int type)
676                    throws com.liferay.portal.kernel.exception.SystemException {
677                    getPersistence().removeByU_C_C_T(userId, classNameId, classPK, type);
678            }
679    
680            /**
681            * Returns the number of social activity sets where userId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
682            *
683            * @param userId the user ID
684            * @param classNameId the class name ID
685            * @param classPK the class p k
686            * @param type the type
687            * @return the number of matching social activity sets
688            * @throws SystemException if a system exception occurred
689            */
690            public static int countByU_C_C_T(long userId, long classNameId,
691                    long classPK, int type)
692                    throws com.liferay.portal.kernel.exception.SystemException {
693                    return getPersistence()
694                                       .countByU_C_C_T(userId, classNameId, classPK, type);
695            }
696    
697            /**
698            * Caches the social activity set in the entity cache if it is enabled.
699            *
700            * @param socialActivitySet the social activity set
701            */
702            public static void cacheResult(
703                    com.liferay.portlet.social.model.SocialActivitySet socialActivitySet) {
704                    getPersistence().cacheResult(socialActivitySet);
705            }
706    
707            /**
708            * Caches the social activity sets in the entity cache if it is enabled.
709            *
710            * @param socialActivitySets the social activity sets
711            */
712            public static void cacheResult(
713                    java.util.List<com.liferay.portlet.social.model.SocialActivitySet> socialActivitySets) {
714                    getPersistence().cacheResult(socialActivitySets);
715            }
716    
717            /**
718            * Creates a new social activity set with the primary key. Does not add the social activity set to the database.
719            *
720            * @param activitySetId the primary key for the new social activity set
721            * @return the new social activity set
722            */
723            public static com.liferay.portlet.social.model.SocialActivitySet create(
724                    long activitySetId) {
725                    return getPersistence().create(activitySetId);
726            }
727    
728            /**
729            * Removes the social activity set with the primary key from the database. Also notifies the appropriate model listeners.
730            *
731            * @param activitySetId the primary key of the social activity set
732            * @return the social activity set that was removed
733            * @throws com.liferay.portlet.social.NoSuchActivitySetException if a social activity set with the primary key could not be found
734            * @throws SystemException if a system exception occurred
735            */
736            public static com.liferay.portlet.social.model.SocialActivitySet remove(
737                    long activitySetId)
738                    throws com.liferay.portal.kernel.exception.SystemException,
739                            com.liferay.portlet.social.NoSuchActivitySetException {
740                    return getPersistence().remove(activitySetId);
741            }
742    
743            public static com.liferay.portlet.social.model.SocialActivitySet updateImpl(
744                    com.liferay.portlet.social.model.SocialActivitySet socialActivitySet)
745                    throws com.liferay.portal.kernel.exception.SystemException {
746                    return getPersistence().updateImpl(socialActivitySet);
747            }
748    
749            /**
750            * Returns the social activity set with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivitySetException} if it could not be found.
751            *
752            * @param activitySetId the primary key of the social activity set
753            * @return the social activity set
754            * @throws com.liferay.portlet.social.NoSuchActivitySetException if a social activity set with the primary key could not be found
755            * @throws SystemException if a system exception occurred
756            */
757            public static com.liferay.portlet.social.model.SocialActivitySet findByPrimaryKey(
758                    long activitySetId)
759                    throws com.liferay.portal.kernel.exception.SystemException,
760                            com.liferay.portlet.social.NoSuchActivitySetException {
761                    return getPersistence().findByPrimaryKey(activitySetId);
762            }
763    
764            /**
765            * Returns the social activity set with the primary key or returns <code>null</code> if it could not be found.
766            *
767            * @param activitySetId the primary key of the social activity set
768            * @return the social activity set, or <code>null</code> if a social activity set with the primary key could not be found
769            * @throws SystemException if a system exception occurred
770            */
771            public static com.liferay.portlet.social.model.SocialActivitySet fetchByPrimaryKey(
772                    long activitySetId)
773                    throws com.liferay.portal.kernel.exception.SystemException {
774                    return getPersistence().fetchByPrimaryKey(activitySetId);
775            }
776    
777            /**
778            * Returns all the social activity sets.
779            *
780            * @return the social activity sets
781            * @throws SystemException if a system exception occurred
782            */
783            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findAll()
784                    throws com.liferay.portal.kernel.exception.SystemException {
785                    return getPersistence().findAll();
786            }
787    
788            /**
789            * Returns a range of all the social activity sets.
790            *
791            * <p>
792            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
793            * </p>
794            *
795            * @param start the lower bound of the range of social activity sets
796            * @param end the upper bound of the range of social activity sets (not inclusive)
797            * @return the range of social activity sets
798            * @throws SystemException if a system exception occurred
799            */
800            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findAll(
801                    int start, int end)
802                    throws com.liferay.portal.kernel.exception.SystemException {
803                    return getPersistence().findAll(start, end);
804            }
805    
806            /**
807            * Returns an ordered range of all the social activity sets.
808            *
809            * <p>
810            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivitySetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
811            * </p>
812            *
813            * @param start the lower bound of the range of social activity sets
814            * @param end the upper bound of the range of social activity sets (not inclusive)
815            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
816            * @return the ordered range of social activity sets
817            * @throws SystemException if a system exception occurred
818            */
819            public static java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findAll(
820                    int start, int end,
821                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
822                    throws com.liferay.portal.kernel.exception.SystemException {
823                    return getPersistence().findAll(start, end, orderByComparator);
824            }
825    
826            /**
827            * Removes all the social activity sets from the database.
828            *
829            * @throws SystemException if a system exception occurred
830            */
831            public static void removeAll()
832                    throws com.liferay.portal.kernel.exception.SystemException {
833                    getPersistence().removeAll();
834            }
835    
836            /**
837            * Returns the number of social activity sets.
838            *
839            * @return the number of social activity sets
840            * @throws SystemException if a system exception occurred
841            */
842            public static int countAll()
843                    throws com.liferay.portal.kernel.exception.SystemException {
844                    return getPersistence().countAll();
845            }
846    
847            public static SocialActivitySetPersistence getPersistence() {
848                    if (_persistence == null) {
849                            _persistence = (SocialActivitySetPersistence)PortalBeanLocatorUtil.locate(SocialActivitySetPersistence.class.getName());
850    
851                            ReferenceRegistry.registerReference(SocialActivitySetUtil.class,
852                                    "_persistence");
853                    }
854    
855                    return _persistence;
856            }
857    
858            /**
859             * @deprecated As of 6.2.0
860             */
861            public void setPersistence(SocialActivitySetPersistence persistence) {
862            }
863    
864            private static SocialActivitySetPersistence _persistence;
865    }