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.SocialEquityUser;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="SocialEquityUserUtil.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       SocialEquityUserPersistence
35   * @see       SocialEquityUserPersistenceImpl
36   * @generated
37   */
38  public class SocialEquityUserUtil {
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(SocialEquityUser)
48       */
49      public static void clearCache(SocialEquityUser socialEquityUser) {
50          getPersistence().clearCache(socialEquityUser);
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<SocialEquityUser> 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<SocialEquityUser> 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 SocialEquityUser remove(SocialEquityUser socialEquityUser)
82          throws SystemException {
83          return getPersistence().remove(socialEquityUser);
84      }
85  
86      /**
87       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
88       */
89      public static SocialEquityUser update(SocialEquityUser socialEquityUser,
90          boolean merge) throws SystemException {
91          return getPersistence().update(socialEquityUser, merge);
92      }
93  
94      public static void cacheResult(
95          com.liferay.portlet.social.model.SocialEquityUser socialEquityUser) {
96          getPersistence().cacheResult(socialEquityUser);
97      }
98  
99      public static void cacheResult(
100         java.util.List<com.liferay.portlet.social.model.SocialEquityUser> socialEquityUsers) {
101         getPersistence().cacheResult(socialEquityUsers);
102     }
103 
104     public static com.liferay.portlet.social.model.SocialEquityUser create(
105         long equityUserId) {
106         return getPersistence().create(equityUserId);
107     }
108 
109     public static com.liferay.portlet.social.model.SocialEquityUser remove(
110         long equityUserId)
111         throws com.liferay.portal.kernel.exception.SystemException,
112             com.liferay.portlet.social.NoSuchEquityUserException {
113         return getPersistence().remove(equityUserId);
114     }
115 
116     public static com.liferay.portlet.social.model.SocialEquityUser updateImpl(
117         com.liferay.portlet.social.model.SocialEquityUser socialEquityUser,
118         boolean merge)
119         throws com.liferay.portal.kernel.exception.SystemException {
120         return getPersistence().updateImpl(socialEquityUser, merge);
121     }
122 
123     public static com.liferay.portlet.social.model.SocialEquityUser findByPrimaryKey(
124         long equityUserId)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.social.NoSuchEquityUserException {
127         return getPersistence().findByPrimaryKey(equityUserId);
128     }
129 
130     public static com.liferay.portlet.social.model.SocialEquityUser fetchByPrimaryKey(
131         long equityUserId)
132         throws com.liferay.portal.kernel.exception.SystemException {
133         return getPersistence().fetchByPrimaryKey(equityUserId);
134     }
135 
136     public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
137         long userId) throws com.liferay.portal.kernel.exception.SystemException {
138         return getPersistence().findByUserId(userId);
139     }
140 
141     public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
142         long userId, int start, int end)
143         throws com.liferay.portal.kernel.exception.SystemException {
144         return getPersistence().findByUserId(userId, start, end);
145     }
146 
147     public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
148         long userId, int start, int end,
149         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150         throws com.liferay.portal.kernel.exception.SystemException {
151         return getPersistence()
152                    .findByUserId(userId, start, end, orderByComparator);
153     }
154 
155     public static com.liferay.portlet.social.model.SocialEquityUser findByUserId_First(
156         long userId,
157         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158         throws com.liferay.portal.kernel.exception.SystemException,
159             com.liferay.portlet.social.NoSuchEquityUserException {
160         return getPersistence().findByUserId_First(userId, orderByComparator);
161     }
162 
163     public static com.liferay.portlet.social.model.SocialEquityUser findByUserId_Last(
164         long userId,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.kernel.exception.SystemException,
167             com.liferay.portlet.social.NoSuchEquityUserException {
168         return getPersistence().findByUserId_Last(userId, orderByComparator);
169     }
170 
171     public static com.liferay.portlet.social.model.SocialEquityUser[] findByUserId_PrevAndNext(
172         long equityUserId, long userId,
173         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174         throws com.liferay.portal.kernel.exception.SystemException,
175             com.liferay.portlet.social.NoSuchEquityUserException {
176         return getPersistence()
177                    .findByUserId_PrevAndNext(equityUserId, userId,
178             orderByComparator);
179     }
180 
181     public static com.liferay.portlet.social.model.SocialEquityUser findByG_U(
182         long groupId, long userId)
183         throws com.liferay.portal.kernel.exception.SystemException,
184             com.liferay.portlet.social.NoSuchEquityUserException {
185         return getPersistence().findByG_U(groupId, userId);
186     }
187 
188     public static com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
189         long groupId, long userId)
190         throws com.liferay.portal.kernel.exception.SystemException {
191         return getPersistence().fetchByG_U(groupId, userId);
192     }
193 
194     public static com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
195         long groupId, long userId, boolean retrieveFromCache)
196         throws com.liferay.portal.kernel.exception.SystemException {
197         return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
198     }
199 
200     public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll()
201         throws com.liferay.portal.kernel.exception.SystemException {
202         return getPersistence().findAll();
203     }
204 
205     public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
206         int start, int end)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         return getPersistence().findAll(start, end);
209     }
210 
211     public static java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
212         int start, int end,
213         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214         throws com.liferay.portal.kernel.exception.SystemException {
215         return getPersistence().findAll(start, end, orderByComparator);
216     }
217 
218     public static void removeByUserId(long userId)
219         throws com.liferay.portal.kernel.exception.SystemException {
220         getPersistence().removeByUserId(userId);
221     }
222 
223     public static void removeByG_U(long groupId, long userId)
224         throws com.liferay.portal.kernel.exception.SystemException,
225             com.liferay.portlet.social.NoSuchEquityUserException {
226         getPersistence().removeByG_U(groupId, userId);
227     }
228 
229     public static void removeAll()
230         throws com.liferay.portal.kernel.exception.SystemException {
231         getPersistence().removeAll();
232     }
233 
234     public static int countByUserId(long userId)
235         throws com.liferay.portal.kernel.exception.SystemException {
236         return getPersistence().countByUserId(userId);
237     }
238 
239     public static int countByG_U(long groupId, long userId)
240         throws com.liferay.portal.kernel.exception.SystemException {
241         return getPersistence().countByG_U(groupId, userId);
242     }
243 
244     public static int countAll()
245         throws com.liferay.portal.kernel.exception.SystemException {
246         return getPersistence().countAll();
247     }
248 
249     public static SocialEquityUserPersistence getPersistence() {
250         if (_persistence == null) {
251             _persistence = (SocialEquityUserPersistence)PortalBeanLocatorUtil.locate(SocialEquityUserPersistence.class.getName());
252         }
253 
254         return _persistence;
255     }
256 
257     public void setPersistence(SocialEquityUserPersistence persistence) {
258         _persistence = persistence;
259     }
260 
261     private static SocialEquityUserPersistence _persistence;
262 }