1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.blogs.service.persistence;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.blogs.model.BlogsStatsUser;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="BlogsStatsUserUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       BlogsStatsUserPersistence
43   * @see       BlogsStatsUserPersistenceImpl
44   * @generated
45   */
46  public class BlogsStatsUserUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static BlogsStatsUser remove(BlogsStatsUser blogsStatsUser)
74          throws SystemException {
75          return getPersistence().remove(blogsStatsUser);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static BlogsStatsUser update(BlogsStatsUser blogsStatsUser,
82          boolean merge) throws SystemException {
83          return getPersistence().update(blogsStatsUser, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser) {
88          getPersistence().cacheResult(blogsStatsUser);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> blogsStatsUsers) {
93          getPersistence().cacheResult(blogsStatsUsers);
94      }
95  
96      public static com.liferay.portlet.blogs.model.BlogsStatsUser create(
97          long statsUserId) {
98          return getPersistence().create(statsUserId);
99      }
100 
101     public static com.liferay.portlet.blogs.model.BlogsStatsUser remove(
102         long statsUserId)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.blogs.NoSuchStatsUserException {
105         return getPersistence().remove(statsUserId);
106     }
107 
108     /**
109      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
110      */
111     public static com.liferay.portlet.blogs.model.BlogsStatsUser update(
112         com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser)
113         throws com.liferay.portal.SystemException {
114         return getPersistence().update(blogsStatsUser);
115     }
116 
117     public static com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl(
118         com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser,
119         boolean merge) throws com.liferay.portal.SystemException {
120         return getPersistence().updateImpl(blogsStatsUser, merge);
121     }
122 
123     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey(
124         long statsUserId)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.blogs.NoSuchStatsUserException {
127         return getPersistence().findByPrimaryKey(statsUserId);
128     }
129 
130     public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey(
131         long statsUserId) throws com.liferay.portal.SystemException {
132         return getPersistence().fetchByPrimaryKey(statsUserId);
133     }
134 
135     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
136         long groupId) throws com.liferay.portal.SystemException {
137         return getPersistence().findByGroupId(groupId);
138     }
139 
140     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
141         long groupId, int start, int end)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().findByGroupId(groupId, start, end);
144     }
145 
146     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId(
147         long groupId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findByGroupId(groupId, start, end, obc);
151     }
152 
153     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First(
154         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
155         throws com.liferay.portal.SystemException,
156             com.liferay.portlet.blogs.NoSuchStatsUserException {
157         return getPersistence().findByGroupId_First(groupId, obc);
158     }
159 
160     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last(
161         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.blogs.NoSuchStatsUserException {
164         return getPersistence().findByGroupId_Last(groupId, obc);
165     }
166 
167     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext(
168         long statsUserId, long groupId,
169         com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException,
171             com.liferay.portlet.blogs.NoSuchStatsUserException {
172         return getPersistence()
173                    .findByGroupId_PrevAndNext(statsUserId, groupId, obc);
174     }
175 
176     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
177         long userId) throws com.liferay.portal.SystemException {
178         return getPersistence().findByUserId(userId);
179     }
180 
181     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
182         long userId, int start, int end)
183         throws com.liferay.portal.SystemException {
184         return getPersistence().findByUserId(userId, start, end);
185     }
186 
187     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId(
188         long userId, int start, int end,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException {
191         return getPersistence().findByUserId(userId, start, end, obc);
192     }
193 
194     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First(
195         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portlet.blogs.NoSuchStatsUserException {
198         return getPersistence().findByUserId_First(userId, obc);
199     }
200 
201     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last(
202         long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.blogs.NoSuchStatsUserException {
205         return getPersistence().findByUserId_Last(userId, obc);
206     }
207 
208     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext(
209         long statsUserId, long userId,
210         com.liferay.portal.kernel.util.OrderByComparator obc)
211         throws com.liferay.portal.SystemException,
212             com.liferay.portlet.blogs.NoSuchStatsUserException {
213         return getPersistence()
214                    .findByUserId_PrevAndNext(statsUserId, userId, obc);
215     }
216 
217     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U(
218         long groupId, long userId)
219         throws com.liferay.portal.SystemException,
220             com.liferay.portlet.blogs.NoSuchStatsUserException {
221         return getPersistence().findByG_U(groupId, userId);
222     }
223 
224     public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
225         long groupId, long userId) throws com.liferay.portal.SystemException {
226         return getPersistence().fetchByG_U(groupId, userId);
227     }
228 
229     public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U(
230         long groupId, long userId, boolean retrieveFromCache)
231         throws com.liferay.portal.SystemException {
232         return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache);
233     }
234 
235     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
236         long groupId, int entryCount) throws com.liferay.portal.SystemException {
237         return getPersistence().findByG_E(groupId, entryCount);
238     }
239 
240     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
241         long groupId, int entryCount, int start, int end)
242         throws com.liferay.portal.SystemException {
243         return getPersistence().findByG_E(groupId, entryCount, start, end);
244     }
245 
246     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_E(
247         long groupId, int entryCount, int start, int end,
248         com.liferay.portal.kernel.util.OrderByComparator obc)
249         throws com.liferay.portal.SystemException {
250         return getPersistence().findByG_E(groupId, entryCount, start, end, obc);
251     }
252 
253     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_First(
254         long groupId, int entryCount,
255         com.liferay.portal.kernel.util.OrderByComparator obc)
256         throws com.liferay.portal.SystemException,
257             com.liferay.portlet.blogs.NoSuchStatsUserException {
258         return getPersistence().findByG_E_First(groupId, entryCount, obc);
259     }
260 
261     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_E_Last(
262         long groupId, int entryCount,
263         com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.SystemException,
265             com.liferay.portlet.blogs.NoSuchStatsUserException {
266         return getPersistence().findByG_E_Last(groupId, entryCount, obc);
267     }
268 
269     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_E_PrevAndNext(
270         long statsUserId, long groupId, int entryCount,
271         com.liferay.portal.kernel.util.OrderByComparator obc)
272         throws com.liferay.portal.SystemException,
273             com.liferay.portlet.blogs.NoSuchStatsUserException {
274         return getPersistence()
275                    .findByG_E_PrevAndNext(statsUserId, groupId, entryCount, obc);
276     }
277 
278     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
279         long companyId, int entryCount)
280         throws com.liferay.portal.SystemException {
281         return getPersistence().findByC_E(companyId, entryCount);
282     }
283 
284     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
285         long companyId, int entryCount, int start, int end)
286         throws com.liferay.portal.SystemException {
287         return getPersistence().findByC_E(companyId, entryCount, start, end);
288     }
289 
290     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_E(
291         long companyId, int entryCount, int start, int end,
292         com.liferay.portal.kernel.util.OrderByComparator obc)
293         throws com.liferay.portal.SystemException {
294         return getPersistence().findByC_E(companyId, entryCount, start, end, obc);
295     }
296 
297     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_First(
298         long companyId, int entryCount,
299         com.liferay.portal.kernel.util.OrderByComparator obc)
300         throws com.liferay.portal.SystemException,
301             com.liferay.portlet.blogs.NoSuchStatsUserException {
302         return getPersistence().findByC_E_First(companyId, entryCount, obc);
303     }
304 
305     public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_E_Last(
306         long companyId, int entryCount,
307         com.liferay.portal.kernel.util.OrderByComparator obc)
308         throws com.liferay.portal.SystemException,
309             com.liferay.portlet.blogs.NoSuchStatsUserException {
310         return getPersistence().findByC_E_Last(companyId, entryCount, obc);
311     }
312 
313     public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_E_PrevAndNext(
314         long statsUserId, long companyId, int entryCount,
315         com.liferay.portal.kernel.util.OrderByComparator obc)
316         throws com.liferay.portal.SystemException,
317             com.liferay.portlet.blogs.NoSuchStatsUserException {
318         return getPersistence()
319                    .findByC_E_PrevAndNext(statsUserId, companyId, entryCount,
320             obc);
321     }
322 
323     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll()
324         throws com.liferay.portal.SystemException {
325         return getPersistence().findAll();
326     }
327 
328     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
329         int start, int end) throws com.liferay.portal.SystemException {
330         return getPersistence().findAll(start, end);
331     }
332 
333     public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll(
334         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
335         throws com.liferay.portal.SystemException {
336         return getPersistence().findAll(start, end, obc);
337     }
338 
339     public static void removeByGroupId(long groupId)
340         throws com.liferay.portal.SystemException {
341         getPersistence().removeByGroupId(groupId);
342     }
343 
344     public static void removeByUserId(long userId)
345         throws com.liferay.portal.SystemException {
346         getPersistence().removeByUserId(userId);
347     }
348 
349     public static void removeByG_U(long groupId, long userId)
350         throws com.liferay.portal.SystemException,
351             com.liferay.portlet.blogs.NoSuchStatsUserException {
352         getPersistence().removeByG_U(groupId, userId);
353     }
354 
355     public static void removeByG_E(long groupId, int entryCount)
356         throws com.liferay.portal.SystemException {
357         getPersistence().removeByG_E(groupId, entryCount);
358     }
359 
360     public static void removeByC_E(long companyId, int entryCount)
361         throws com.liferay.portal.SystemException {
362         getPersistence().removeByC_E(companyId, entryCount);
363     }
364 
365     public static void removeAll() throws com.liferay.portal.SystemException {
366         getPersistence().removeAll();
367     }
368 
369     public static int countByGroupId(long groupId)
370         throws com.liferay.portal.SystemException {
371         return getPersistence().countByGroupId(groupId);
372     }
373 
374     public static int countByUserId(long userId)
375         throws com.liferay.portal.SystemException {
376         return getPersistence().countByUserId(userId);
377     }
378 
379     public static int countByG_U(long groupId, long userId)
380         throws com.liferay.portal.SystemException {
381         return getPersistence().countByG_U(groupId, userId);
382     }
383 
384     public static int countByG_E(long groupId, int entryCount)
385         throws com.liferay.portal.SystemException {
386         return getPersistence().countByG_E(groupId, entryCount);
387     }
388 
389     public static int countByC_E(long companyId, int entryCount)
390         throws com.liferay.portal.SystemException {
391         return getPersistence().countByC_E(companyId, entryCount);
392     }
393 
394     public static int countAll() throws com.liferay.portal.SystemException {
395         return getPersistence().countAll();
396     }
397 
398     public static BlogsStatsUserPersistence getPersistence() {
399         if (_persistence == null) {
400             _persistence = (BlogsStatsUserPersistence)PortalBeanLocatorUtil.locate(BlogsStatsUserPersistence.class.getName());
401         }
402 
403         return _persistence;
404     }
405 
406     public void setPersistence(BlogsStatsUserPersistence persistence) {
407         _persistence = persistence;
408     }
409 
410     private static BlogsStatsUserPersistence _persistence;
411 }