1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.social.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19  import com.liferay.portal.kernel.exception.SystemException;
20  
21  import com.liferay.portlet.social.model.SocialEquitySetting;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="SocialEquitySettingUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be
30   * overwritten the next time is generated.
31   * </p>
32   *
33   * @author    Brian Wing Shun Chan
34   * @see       SocialEquitySettingPersistence
35   * @see       SocialEquitySettingPersistenceImpl
36   * @generated
37   */
38  public class SocialEquitySettingUtil {
39      /**
40       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
41       */
42      public static void clearCache() {
43          getPersistence().clearCache();
44      }
45  
46      /**
47       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(SocialEquitySetting)
48       */
49      public static void clearCache(SocialEquitySetting socialEquitySetting) {
50          getPersistence().clearCache(socialEquitySetting);
51      }
52  
53      /**
54       * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
55       */
56      public long countWithDynamicQuery(DynamicQuery dynamicQuery)
57          throws SystemException {
58          return getPersistence().countWithDynamicQuery(dynamicQuery);
59      }
60  
61      /**
62       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
63       */
64      public static List<SocialEquitySetting> findWithDynamicQuery(
65          DynamicQuery dynamicQuery) throws SystemException {
66          return getPersistence().findWithDynamicQuery(dynamicQuery);
67      }
68  
69      /**
70       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
71       */
72      public static List<SocialEquitySetting> findWithDynamicQuery(
73          DynamicQuery dynamicQuery, int start, int end)
74          throws SystemException {
75          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
80       */
81      public static SocialEquitySetting remove(
82          SocialEquitySetting socialEquitySetting) throws SystemException {
83          return getPersistence().remove(socialEquitySetting);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static SocialEquitySetting update(
90          SocialEquitySetting socialEquitySetting, boolean merge)
91          throws SystemException {
92          return getPersistence().update(socialEquitySetting, merge);
93      }
94  
95      public static void cacheResult(
96          com.liferay.portlet.social.model.SocialEquitySetting socialEquitySetting) {
97          getPersistence().cacheResult(socialEquitySetting);
98      }
99  
100     public static void cacheResult(
101         java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> socialEquitySettings) {
102         getPersistence().cacheResult(socialEquitySettings);
103     }
104 
105     public static com.liferay.portlet.social.model.SocialEquitySetting create(
106         long equitySettingId) {
107         return getPersistence().create(equitySettingId);
108     }
109 
110     public static com.liferay.portlet.social.model.SocialEquitySetting remove(
111         long equitySettingId)
112         throws com.liferay.portal.kernel.exception.SystemException,
113             com.liferay.portlet.social.NoSuchEquitySettingException {
114         return getPersistence().remove(equitySettingId);
115     }
116 
117     public static com.liferay.portlet.social.model.SocialEquitySetting updateImpl(
118         com.liferay.portlet.social.model.SocialEquitySetting socialEquitySetting,
119         boolean merge)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getPersistence().updateImpl(socialEquitySetting, merge);
122     }
123 
124     public static com.liferay.portlet.social.model.SocialEquitySetting findByPrimaryKey(
125         long equitySettingId)
126         throws com.liferay.portal.kernel.exception.SystemException,
127             com.liferay.portlet.social.NoSuchEquitySettingException {
128         return getPersistence().findByPrimaryKey(equitySettingId);
129     }
130 
131     public static com.liferay.portlet.social.model.SocialEquitySetting fetchByPrimaryKey(
132         long equitySettingId)
133         throws com.liferay.portal.kernel.exception.SystemException {
134         return getPersistence().fetchByPrimaryKey(equitySettingId);
135     }
136 
137     public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findByG_C_A(
138         long groupId, long classNameId, java.lang.String actionId)
139         throws com.liferay.portal.kernel.exception.SystemException {
140         return getPersistence().findByG_C_A(groupId, classNameId, actionId);
141     }
142 
143     public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findByG_C_A(
144         long groupId, long classNameId, java.lang.String actionId, int start,
145         int end) throws com.liferay.portal.kernel.exception.SystemException {
146         return getPersistence()
147                    .findByG_C_A(groupId, classNameId, actionId, start, end);
148     }
149 
150     public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findByG_C_A(
151         long groupId, long classNameId, java.lang.String actionId, int start,
152         int end,
153         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154         throws com.liferay.portal.kernel.exception.SystemException {
155         return getPersistence()
156                    .findByG_C_A(groupId, classNameId, actionId, start, end,
157             orderByComparator);
158     }
159 
160     public static com.liferay.portlet.social.model.SocialEquitySetting findByG_C_A_First(
161         long groupId, long classNameId, java.lang.String actionId,
162         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163         throws com.liferay.portal.kernel.exception.SystemException,
164             com.liferay.portlet.social.NoSuchEquitySettingException {
165         return getPersistence()
166                    .findByG_C_A_First(groupId, classNameId, actionId,
167             orderByComparator);
168     }
169 
170     public static com.liferay.portlet.social.model.SocialEquitySetting findByG_C_A_Last(
171         long groupId, long classNameId, java.lang.String actionId,
172         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173         throws com.liferay.portal.kernel.exception.SystemException,
174             com.liferay.portlet.social.NoSuchEquitySettingException {
175         return getPersistence()
176                    .findByG_C_A_Last(groupId, classNameId, actionId,
177             orderByComparator);
178     }
179 
180     public static com.liferay.portlet.social.model.SocialEquitySetting[] findByG_C_A_PrevAndNext(
181         long equitySettingId, long groupId, long classNameId,
182         java.lang.String actionId,
183         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184         throws com.liferay.portal.kernel.exception.SystemException,
185             com.liferay.portlet.social.NoSuchEquitySettingException {
186         return getPersistence()
187                    .findByG_C_A_PrevAndNext(equitySettingId, groupId,
188             classNameId, actionId, orderByComparator);
189     }
190 
191     public static com.liferay.portlet.social.model.SocialEquitySetting findByG_C_A_T(
192         long groupId, long classNameId, java.lang.String actionId, int type)
193         throws com.liferay.portal.kernel.exception.SystemException,
194             com.liferay.portlet.social.NoSuchEquitySettingException {
195         return getPersistence()
196                    .findByG_C_A_T(groupId, classNameId, actionId, type);
197     }
198 
199     public static com.liferay.portlet.social.model.SocialEquitySetting fetchByG_C_A_T(
200         long groupId, long classNameId, java.lang.String actionId, int type)
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence()
203                    .fetchByG_C_A_T(groupId, classNameId, actionId, type);
204     }
205 
206     public static com.liferay.portlet.social.model.SocialEquitySetting fetchByG_C_A_T(
207         long groupId, long classNameId, java.lang.String actionId, int type,
208         boolean retrieveFromCache)
209         throws com.liferay.portal.kernel.exception.SystemException {
210         return getPersistence()
211                    .fetchByG_C_A_T(groupId, classNameId, actionId, type,
212             retrieveFromCache);
213     }
214 
215     public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findAll()
216         throws com.liferay.portal.kernel.exception.SystemException {
217         return getPersistence().findAll();
218     }
219 
220     public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findAll(
221         int start, int end)
222         throws com.liferay.portal.kernel.exception.SystemException {
223         return getPersistence().findAll(start, end);
224     }
225 
226     public static java.util.List<com.liferay.portlet.social.model.SocialEquitySetting> findAll(
227         int start, int end,
228         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229         throws com.liferay.portal.kernel.exception.SystemException {
230         return getPersistence().findAll(start, end, orderByComparator);
231     }
232 
233     public static void removeByG_C_A(long groupId, long classNameId,
234         java.lang.String actionId)
235         throws com.liferay.portal.kernel.exception.SystemException {
236         getPersistence().removeByG_C_A(groupId, classNameId, actionId);
237     }
238 
239     public static void removeByG_C_A_T(long groupId, long classNameId,
240         java.lang.String actionId, int type)
241         throws com.liferay.portal.kernel.exception.SystemException,
242             com.liferay.portlet.social.NoSuchEquitySettingException {
243         getPersistence().removeByG_C_A_T(groupId, classNameId, actionId, type);
244     }
245 
246     public static void removeAll()
247         throws com.liferay.portal.kernel.exception.SystemException {
248         getPersistence().removeAll();
249     }
250 
251     public static int countByG_C_A(long groupId, long classNameId,
252         java.lang.String actionId)
253         throws com.liferay.portal.kernel.exception.SystemException {
254         return getPersistence().countByG_C_A(groupId, classNameId, actionId);
255     }
256 
257     public static int countByG_C_A_T(long groupId, long classNameId,
258         java.lang.String actionId, int type)
259         throws com.liferay.portal.kernel.exception.SystemException {
260         return getPersistence()
261                    .countByG_C_A_T(groupId, classNameId, actionId, type);
262     }
263 
264     public static int countAll()
265         throws com.liferay.portal.kernel.exception.SystemException {
266         return getPersistence().countAll();
267     }
268 
269     public static SocialEquitySettingPersistence getPersistence() {
270         if (_persistence == null) {
271             _persistence = (SocialEquitySettingPersistence)PortalBeanLocatorUtil.locate(SocialEquitySettingPersistence.class.getName());
272         }
273 
274         return _persistence;
275     }
276 
277     public void setPersistence(SocialEquitySettingPersistence persistence) {
278         _persistence = persistence;
279     }
280 
281     private static SocialEquitySettingPersistence _persistence;
282 }