001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.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.service.ServiceContext;
022    
023    import com.liferay.portlet.social.model.SocialEquitySetting;
024    
025    import java.util.List;
026    
027    /**
028     * @author    Brian Wing Shun Chan
029     * @see       SocialEquitySettingPersistence
030     * @see       SocialEquitySettingPersistenceImpl
031     * @generated
032     */
033    public class SocialEquitySettingUtil {
034            /**
035             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
036             */
037            public static void clearCache() {
038                    getPersistence().clearCache();
039            }
040    
041            /**
042             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
043             */
044            public static void clearCache(SocialEquitySetting socialEquitySetting) {
045                    getPersistence().clearCache(socialEquitySetting);
046            }
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
050             */
051            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052                    throws SystemException {
053                    return getPersistence().countWithDynamicQuery(dynamicQuery);
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
058             */
059            public static List<SocialEquitySetting> findWithDynamicQuery(
060                    DynamicQuery dynamicQuery) throws SystemException {
061                    return getPersistence().findWithDynamicQuery(dynamicQuery);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
066             */
067            public static List<SocialEquitySetting> findWithDynamicQuery(
068                    DynamicQuery dynamicQuery, int start, int end)
069                    throws SystemException {
070                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071            }
072    
073            /**
074             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
075             */
076            public static List<SocialEquitySetting> findWithDynamicQuery(
077                    DynamicQuery dynamicQuery, int start, int end,
078                    OrderByComparator orderByComparator) throws SystemException {
079                    return getPersistence()
080                                       .findWithDynamicQuery(dynamicQuery, start, end,
081                            orderByComparator);
082            }
083    
084            /**
085             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
086             */
087            public static SocialEquitySetting remove(
088                    SocialEquitySetting socialEquitySetting) throws SystemException {
089                    return getPersistence().remove(socialEquitySetting);
090            }
091    
092            /**
093             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
094             */
095            public static SocialEquitySetting update(
096                    SocialEquitySetting socialEquitySetting, boolean merge)
097                    throws SystemException {
098                    return getPersistence().update(socialEquitySetting, merge);
099            }
100    
101            /**
102             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
103             */
104            public static SocialEquitySetting update(
105                    SocialEquitySetting socialEquitySetting, boolean merge,
106                    ServiceContext serviceContext) throws SystemException {
107                    return getPersistence()
108                                       .update(socialEquitySetting, merge, serviceContext);
109            }
110    
111            public static void cacheResult(
112                    com.liferay.portlet.social.model.SocialEquitySetting socialEquitySetting) {
113                    getPersistence().cacheResult(socialEquitySetting);
114            }
115    
116            public static void cacheResult(
117                    java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> socialEquitySettings) {
118                    getPersistence().cacheResult(socialEquitySettings);
119            }
120    
121            public static com.liferay.portlet.social.model.SocialEquitySetting create(
122                    long equitySettingId) {
123                    return getPersistence().create(equitySettingId);
124            }
125    
126            public static com.liferay.portlet.social.model.SocialEquitySetting remove(
127                    long equitySettingId)
128                    throws com.liferay.portal.kernel.exception.SystemException,
129                            com.liferay.portlet.social.NoSuchEquitySettingException {
130                    return getPersistence().remove(equitySettingId);
131            }
132    
133            public static com.liferay.portlet.social.model.SocialEquitySetting updateImpl(
134                    com.liferay.portlet.social.model.SocialEquitySetting socialEquitySetting,
135                    boolean merge)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return getPersistence().updateImpl(socialEquitySetting, merge);
138            }
139    
140            public static com.liferay.portlet.social.model.SocialEquitySetting findByPrimaryKey(
141                    long equitySettingId)
142                    throws com.liferay.portal.kernel.exception.SystemException,
143                            com.liferay.portlet.social.NoSuchEquitySettingException {
144                    return getPersistence().findByPrimaryKey(equitySettingId);
145            }
146    
147            public static com.liferay.portlet.social.model.SocialEquitySetting fetchByPrimaryKey(
148                    long equitySettingId)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getPersistence().fetchByPrimaryKey(equitySettingId);
151            }
152    
153            public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findByG_C_A(
154                    long groupId, long classNameId, java.lang.String actionId)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return getPersistence().findByG_C_A(groupId, classNameId, actionId);
157            }
158    
159            public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findByG_C_A(
160                    long groupId, long classNameId, java.lang.String actionId, int start,
161                    int end) throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence()
163                                       .findByG_C_A(groupId, classNameId, actionId, start, end);
164            }
165    
166            public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findByG_C_A(
167                    long groupId, long classNameId, java.lang.String actionId, int start,
168                    int end,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return getPersistence()
172                                       .findByG_C_A(groupId, classNameId, actionId, start, end,
173                            orderByComparator);
174            }
175    
176            public static com.liferay.portlet.social.model.SocialEquitySetting findByG_C_A_First(
177                    long groupId, long classNameId, java.lang.String actionId,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException,
180                            com.liferay.portlet.social.NoSuchEquitySettingException {
181                    return getPersistence()
182                                       .findByG_C_A_First(groupId, classNameId, actionId,
183                            orderByComparator);
184            }
185    
186            public static com.liferay.portlet.social.model.SocialEquitySetting findByG_C_A_Last(
187                    long groupId, long classNameId, java.lang.String actionId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.social.NoSuchEquitySettingException {
191                    return getPersistence()
192                                       .findByG_C_A_Last(groupId, classNameId, actionId,
193                            orderByComparator);
194            }
195    
196            public static com.liferay.portlet.social.model.SocialEquitySetting[] findByG_C_A_PrevAndNext(
197                    long equitySettingId, long groupId, long classNameId,
198                    java.lang.String actionId,
199                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200                    throws com.liferay.portal.kernel.exception.SystemException,
201                            com.liferay.portlet.social.NoSuchEquitySettingException {
202                    return getPersistence()
203                                       .findByG_C_A_PrevAndNext(equitySettingId, groupId,
204                            classNameId, actionId, orderByComparator);
205            }
206    
207            public static com.liferay.portlet.social.model.SocialEquitySetting findByG_C_A_T(
208                    long groupId, long classNameId, java.lang.String actionId, int type)
209                    throws com.liferay.portal.kernel.exception.SystemException,
210                            com.liferay.portlet.social.NoSuchEquitySettingException {
211                    return getPersistence()
212                                       .findByG_C_A_T(groupId, classNameId, actionId, type);
213            }
214    
215            public static com.liferay.portlet.social.model.SocialEquitySetting fetchByG_C_A_T(
216                    long groupId, long classNameId, java.lang.String actionId, int type)
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return getPersistence()
219                                       .fetchByG_C_A_T(groupId, classNameId, actionId, type);
220            }
221    
222            public static com.liferay.portlet.social.model.SocialEquitySetting fetchByG_C_A_T(
223                    long groupId, long classNameId, java.lang.String actionId, int type,
224                    boolean retrieveFromCache)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getPersistence()
227                                       .fetchByG_C_A_T(groupId, classNameId, actionId, type,
228                            retrieveFromCache);
229            }
230    
231            public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findAll()
232                    throws com.liferay.portal.kernel.exception.SystemException {
233                    return getPersistence().findAll();
234            }
235    
236            public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findAll(
237                    int start, int end)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return getPersistence().findAll(start, end);
240            }
241    
242            public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findAll(
243                    int start, int end,
244                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return getPersistence().findAll(start, end, orderByComparator);
247            }
248    
249            public static void removeByG_C_A(long groupId, long classNameId,
250                    java.lang.String actionId)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    getPersistence().removeByG_C_A(groupId, classNameId, actionId);
253            }
254    
255            public static void removeByG_C_A_T(long groupId, long classNameId,
256                    java.lang.String actionId, int type)
257                    throws com.liferay.portal.kernel.exception.SystemException,
258                            com.liferay.portlet.social.NoSuchEquitySettingException {
259                    getPersistence().removeByG_C_A_T(groupId, classNameId, actionId, type);
260            }
261    
262            public static void removeAll()
263                    throws com.liferay.portal.kernel.exception.SystemException {
264                    getPersistence().removeAll();
265            }
266    
267            public static int countByG_C_A(long groupId, long classNameId,
268                    java.lang.String actionId)
269                    throws com.liferay.portal.kernel.exception.SystemException {
270                    return getPersistence().countByG_C_A(groupId, classNameId, actionId);
271            }
272    
273            public static int countByG_C_A_T(long groupId, long classNameId,
274                    java.lang.String actionId, int type)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence()
277                                       .countByG_C_A_T(groupId, classNameId, actionId, type);
278            }
279    
280            public static int countAll()
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    return getPersistence().countAll();
283            }
284    
285            public static SocialEquitySettingPersistence getPersistence() {
286                    if (_persistence == null) {
287                            _persistence = (SocialEquitySettingPersistence)PortalBeanLocatorUtil.locate(SocialEquitySettingPersistence.class.getName());
288                    }
289    
290                    return _persistence;
291            }
292    
293            public void setPersistence(SocialEquitySettingPersistence persistence) {
294                    _persistence = persistence;
295            }
296    
297            private static SocialEquitySettingPersistence _persistence;
298    }