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.SocialEquityLog;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="SocialEquityLogUtil.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       SocialEquityLogPersistence
35   * @see       SocialEquityLogPersistenceImpl
36   * @generated
37   */
38  public class SocialEquityLogUtil {
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(SocialEquityLog)
48       */
49      public static void clearCache(SocialEquityLog socialEquityLog) {
50          getPersistence().clearCache(socialEquityLog);
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<SocialEquityLog> 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<SocialEquityLog> 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 SocialEquityLog remove(SocialEquityLog socialEquityLog)
82          throws SystemException {
83          return getPersistence().remove(socialEquityLog);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static SocialEquityLog update(SocialEquityLog socialEquityLog,
90          boolean merge) throws SystemException {
91          return getPersistence().update(socialEquityLog, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.social.model.SocialEquityLog socialEquityLog) {
96          getPersistence().cacheResult(socialEquityLog);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.social.model.SocialEquityLog> socialEquityLogs) {
101         getPersistence().cacheResult(socialEquityLogs);
102     }
103 
104     public static com.liferay.portlet.social.model.SocialEquityLog create(
105         long equityLogId) {
106         return getPersistence().create(equityLogId);
107     }
108 
109     public static com.liferay.portlet.social.model.SocialEquityLog remove(
110         long equityLogId)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.social.NoSuchEquityLogException {
113         return getPersistence().remove(equityLogId);
114     }
115 
116     public static com.liferay.portlet.social.model.SocialEquityLog updateImpl(
117         com.liferay.portlet.social.model.SocialEquityLog socialEquityLog,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(socialEquityLog, merge);
121     }
122 
123     public static com.liferay.portlet.social.model.SocialEquityLog findByPrimaryKey(
124         long equityLogId)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.social.NoSuchEquityLogException {
127         return getPersistence().findByPrimaryKey(equityLogId);
128     }
129 
130     public static com.liferay.portlet.social.model.SocialEquityLog fetchByPrimaryKey(
131         long equityLogId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(equityLogId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.social.model.SocialEquityLog> findByAEI_T_A(
137         long assetEntryId, int type, boolean active)
138         throws com.liferay.portal.kernel.exception.SystemException {
139         return getPersistence().findByAEI_T_A(assetEntryId, type, active);
140     }
141 
142     public static java.util.List<com.liferay.portlet.social.model.SocialEquityLog> findByAEI_T_A(
143         long assetEntryId, int type, boolean active, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException {
145         return getPersistence()
146                    .findByAEI_T_A(assetEntryId, type, active, start, end);
147     }
148 
149     public static java.util.List<com.liferay.portlet.social.model.SocialEquityLog> findByAEI_T_A(
150         long assetEntryId, int type, boolean active, int start, int end,
151         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152         throws com.liferay.portal.kernel.exception.SystemException {
153         return getPersistence()
154                    .findByAEI_T_A(assetEntryId, type, active, start, end,
155             orderByComparator);
156     }
157 
158     public static com.liferay.portlet.social.model.SocialEquityLog findByAEI_T_A_First(
159         long assetEntryId, int type, boolean active,
160         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161         throws com.liferay.portal.kernel.exception.SystemException,
162             com.liferay.portlet.social.NoSuchEquityLogException {
163         return getPersistence()
164                    .findByAEI_T_A_First(assetEntryId, type, active,
165             orderByComparator);
166     }
167 
168     public static com.liferay.portlet.social.model.SocialEquityLog findByAEI_T_A_Last(
169         long assetEntryId, int type, boolean active,
170         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171         throws com.liferay.portal.kernel.exception.SystemException,
172             com.liferay.portlet.social.NoSuchEquityLogException {
173         return getPersistence()
174                    .findByAEI_T_A_Last(assetEntryId, type, active,
175             orderByComparator);
176     }
177 
178     public static com.liferay.portlet.social.model.SocialEquityLog[] findByAEI_T_A_PrevAndNext(
179         long equityLogId, long assetEntryId, int type, boolean active,
180         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181         throws com.liferay.portal.kernel.exception.SystemException,
182             com.liferay.portlet.social.NoSuchEquityLogException {
183         return getPersistence()
184                    .findByAEI_T_A_PrevAndNext(equityLogId, assetEntryId, type,
185             active, orderByComparator);
186     }
187 
188     public static java.util.List<com.liferay.portlet.social.model.SocialEquityLog> findByU_AEI_A_A(
189         long userId, long assetEntryId, java.lang.String actionId,
190         boolean active)
191         throws com.liferay.portal.kernel.exception.SystemException {
192         return getPersistence()
193                    .findByU_AEI_A_A(userId, assetEntryId, actionId, active);
194     }
195 
196     public static java.util.List<com.liferay.portlet.social.model.SocialEquityLog> findByU_AEI_A_A(
197         long userId, long assetEntryId, java.lang.String actionId,
198         boolean active, int start, int end)
199         throws com.liferay.portal.kernel.exception.SystemException {
200         return getPersistence()
201                    .findByU_AEI_A_A(userId, assetEntryId, actionId, active,
202             start, end);
203     }
204 
205     public static java.util.List<com.liferay.portlet.social.model.SocialEquityLog> findByU_AEI_A_A(
206         long userId, long assetEntryId, java.lang.String actionId,
207         boolean active, int start, int end,
208         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209         throws com.liferay.portal.kernel.exception.SystemException {
210         return getPersistence()
211                    .findByU_AEI_A_A(userId, assetEntryId, actionId, active,
212             start, end, orderByComparator);
213     }
214 
215     public static com.liferay.portlet.social.model.SocialEquityLog findByU_AEI_A_A_First(
216         long userId, long assetEntryId, java.lang.String actionId,
217         boolean active,
218         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219         throws com.liferay.portal.kernel.exception.SystemException,
220             com.liferay.portlet.social.NoSuchEquityLogException {
221         return getPersistence()
222                    .findByU_AEI_A_A_First(userId, assetEntryId, actionId,
223             active, orderByComparator);
224     }
225 
226     public static com.liferay.portlet.social.model.SocialEquityLog findByU_AEI_A_A_Last(
227         long userId, long assetEntryId, java.lang.String actionId,
228         boolean active,
229         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
230         throws com.liferay.portal.kernel.exception.SystemException,
231             com.liferay.portlet.social.NoSuchEquityLogException {
232         return getPersistence()
233                    .findByU_AEI_A_A_Last(userId, assetEntryId, actionId,
234             active, orderByComparator);
235     }
236 
237     public static com.liferay.portlet.social.model.SocialEquityLog[] findByU_AEI_A_A_PrevAndNext(
238         long equityLogId, long userId, long assetEntryId,
239         java.lang.String actionId, boolean active,
240         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241         throws com.liferay.portal.kernel.exception.SystemException,
242             com.liferay.portlet.social.NoSuchEquityLogException {
243         return getPersistence()
244                    .findByU_AEI_A_A_PrevAndNext(equityLogId, userId,
245             assetEntryId, actionId, active, orderByComparator);
246     }
247 
248     public static java.util.List<com.liferay.portlet.social.model.SocialEquityLog> findAll()
249         throws com.liferay.portal.kernel.exception.SystemException {
250         return getPersistence().findAll();
251     }
252 
253     public static java.util.List<com.liferay.portlet.social.model.SocialEquityLog> findAll(
254         int start, int end)
255         throws com.liferay.portal.kernel.exception.SystemException {
256         return getPersistence().findAll(start, end);
257     }
258 
259     public static java.util.List<com.liferay.portlet.social.model.SocialEquityLog> findAll(
260         int start, int end,
261         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262         throws com.liferay.portal.kernel.exception.SystemException {
263         return getPersistence().findAll(start, end, orderByComparator);
264     }
265 
266     public static void removeByAEI_T_A(long assetEntryId, int type,
267         boolean active)
268         throws com.liferay.portal.kernel.exception.SystemException {
269         getPersistence().removeByAEI_T_A(assetEntryId, type, active);
270     }
271 
272     public static void removeByU_AEI_A_A(long userId, long assetEntryId,
273         java.lang.String actionId, boolean active)
274         throws com.liferay.portal.kernel.exception.SystemException {
275         getPersistence()
276             .removeByU_AEI_A_A(userId, assetEntryId, actionId, active);
277     }
278 
279     public static void removeAll()
280         throws com.liferay.portal.kernel.exception.SystemException {
281         getPersistence().removeAll();
282     }
283 
284     public static int countByAEI_T_A(long assetEntryId, int type, boolean active)
285         throws com.liferay.portal.kernel.exception.SystemException {
286         return getPersistence().countByAEI_T_A(assetEntryId, type, active);
287     }
288 
289     public static int countByU_AEI_A_A(long userId, long assetEntryId,
290         java.lang.String actionId, boolean active)
291         throws com.liferay.portal.kernel.exception.SystemException {
292         return getPersistence()
293                    .countByU_AEI_A_A(userId, assetEntryId, actionId, active);
294     }
295 
296     public static int countAll()
297         throws com.liferay.portal.kernel.exception.SystemException {
298         return getPersistence().countAll();
299     }
300 
301     public static SocialEquityLogPersistence getPersistence() {
302         if (_persistence == null) {
303             _persistence = (SocialEquityLogPersistence)PortalBeanLocatorUtil.locate(SocialEquityLogPersistence.class.getName());
304         }
305 
306         return _persistence;
307     }
308 
309     public void setPersistence(SocialEquityLogPersistence persistence) {
310         _persistence = persistence;
311     }
312 
313     private static SocialEquityLogPersistence _persistence;
314 }