1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.blogs.service.persistence;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20  
21  import com.liferay.portlet.blogs.model.BlogsEntry;
22  
23  import java.util.List;
24  
25  /**
26   * <a href="BlogsEntryUtil.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       BlogsEntryPersistence
35   * @see       BlogsEntryPersistenceImpl
36   * @generated
37   */
38  public class BlogsEntryUtil {
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#findWithDynamicQuery(DynamicQuery)
48       */
49      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50          throws SystemException {
51          return getPersistence().findWithDynamicQuery(dynamicQuery);
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58          int start, int end) throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
64       */
65      public static BlogsEntry remove(BlogsEntry blogsEntry)
66          throws SystemException {
67          return getPersistence().remove(blogsEntry);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
72       */
73      public static BlogsEntry update(BlogsEntry blogsEntry, boolean merge)
74          throws SystemException {
75          return getPersistence().update(blogsEntry, merge);
76      }
77  
78      public static void cacheResult(
79          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
80          getPersistence().cacheResult(blogsEntry);
81      }
82  
83      public static void cacheResult(
84          java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> blogsEntries) {
85          getPersistence().cacheResult(blogsEntries);
86      }
87  
88      public static com.liferay.portlet.blogs.model.BlogsEntry create(
89          long entryId) {
90          return getPersistence().create(entryId);
91      }
92  
93      public static com.liferay.portlet.blogs.model.BlogsEntry remove(
94          long entryId)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.blogs.NoSuchEntryException {
97          return getPersistence().remove(entryId);
98      }
99  
100     /**
101      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
102      */
103     public static com.liferay.portlet.blogs.model.BlogsEntry update(
104         com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
105         throws com.liferay.portal.SystemException {
106         return getPersistence().update(blogsEntry);
107     }
108 
109     public static com.liferay.portlet.blogs.model.BlogsEntry updateImpl(
110         com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
111         throws com.liferay.portal.SystemException {
112         return getPersistence().updateImpl(blogsEntry, merge);
113     }
114 
115     public static com.liferay.portlet.blogs.model.BlogsEntry findByPrimaryKey(
116         long entryId)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.blogs.NoSuchEntryException {
119         return getPersistence().findByPrimaryKey(entryId);
120     }
121 
122     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByPrimaryKey(
123         long entryId) throws com.liferay.portal.SystemException {
124         return getPersistence().fetchByPrimaryKey(entryId);
125     }
126 
127     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
128         java.lang.String uuid) throws com.liferay.portal.SystemException {
129         return getPersistence().findByUuid(uuid);
130     }
131 
132     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
133         java.lang.String uuid, int start, int end)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByUuid(uuid, start, end);
136     }
137 
138     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
139         java.lang.String uuid, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException {
142         return getPersistence().findByUuid(uuid, start, end, obc);
143     }
144 
145     public static com.liferay.portlet.blogs.model.BlogsEntry findByUuid_First(
146         java.lang.String uuid,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.blogs.NoSuchEntryException {
150         return getPersistence().findByUuid_First(uuid, obc);
151     }
152 
153     public static com.liferay.portlet.blogs.model.BlogsEntry findByUuid_Last(
154         java.lang.String uuid,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.blogs.NoSuchEntryException {
158         return getPersistence().findByUuid_Last(uuid, obc);
159     }
160 
161     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByUuid_PrevAndNext(
162         long entryId, java.lang.String uuid,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.blogs.NoSuchEntryException {
166         return getPersistence().findByUuid_PrevAndNext(entryId, uuid, obc);
167     }
168 
169     public static com.liferay.portlet.blogs.model.BlogsEntry findByUUID_G(
170         java.lang.String uuid, long groupId)
171         throws com.liferay.portal.SystemException,
172             com.liferay.portlet.blogs.NoSuchEntryException {
173         return getPersistence().findByUUID_G(uuid, groupId);
174     }
175 
176     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByUUID_G(
177         java.lang.String uuid, long groupId)
178         throws com.liferay.portal.SystemException {
179         return getPersistence().fetchByUUID_G(uuid, groupId);
180     }
181 
182     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByUUID_G(
183         java.lang.String uuid, long groupId, boolean retrieveFromCache)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
186     }
187 
188     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
189         long groupId) throws com.liferay.portal.SystemException {
190         return getPersistence().findByGroupId(groupId);
191     }
192 
193     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
194         long groupId, int start, int end)
195         throws com.liferay.portal.SystemException {
196         return getPersistence().findByGroupId(groupId, start, end);
197     }
198 
199     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
200         long groupId, int start, int end,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException {
203         return getPersistence().findByGroupId(groupId, start, end, obc);
204     }
205 
206     public static com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_First(
207         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException,
209             com.liferay.portlet.blogs.NoSuchEntryException {
210         return getPersistence().findByGroupId_First(groupId, obc);
211     }
212 
213     public static com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_Last(
214         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.SystemException,
216             com.liferay.portlet.blogs.NoSuchEntryException {
217         return getPersistence().findByGroupId_Last(groupId, obc);
218     }
219 
220     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByGroupId_PrevAndNext(
221         long entryId, long groupId,
222         com.liferay.portal.kernel.util.OrderByComparator obc)
223         throws com.liferay.portal.SystemException,
224             com.liferay.portlet.blogs.NoSuchEntryException {
225         return getPersistence().findByGroupId_PrevAndNext(entryId, groupId, obc);
226     }
227 
228     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
229         long companyId) throws com.liferay.portal.SystemException {
230         return getPersistence().findByCompanyId(companyId);
231     }
232 
233     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
234         long companyId, int start, int end)
235         throws com.liferay.portal.SystemException {
236         return getPersistence().findByCompanyId(companyId, start, end);
237     }
238 
239     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
240         long companyId, int start, int end,
241         com.liferay.portal.kernel.util.OrderByComparator obc)
242         throws com.liferay.portal.SystemException {
243         return getPersistence().findByCompanyId(companyId, start, end, obc);
244     }
245 
246     public static com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_First(
247         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.blogs.NoSuchEntryException {
250         return getPersistence().findByCompanyId_First(companyId, obc);
251     }
252 
253     public static com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_Last(
254         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.blogs.NoSuchEntryException {
257         return getPersistence().findByCompanyId_Last(companyId, obc);
258     }
259 
260     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByCompanyId_PrevAndNext(
261         long entryId, long companyId,
262         com.liferay.portal.kernel.util.OrderByComparator obc)
263         throws com.liferay.portal.SystemException,
264             com.liferay.portlet.blogs.NoSuchEntryException {
265         return getPersistence()
266                    .findByCompanyId_PrevAndNext(entryId, companyId, obc);
267     }
268 
269     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
270         long groupId, long userId) throws com.liferay.portal.SystemException {
271         return getPersistence().findByG_U(groupId, userId);
272     }
273 
274     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
275         long groupId, long userId, int start, int end)
276         throws com.liferay.portal.SystemException {
277         return getPersistence().findByG_U(groupId, userId, start, end);
278     }
279 
280     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
281         long groupId, long userId, int start, int end,
282         com.liferay.portal.kernel.util.OrderByComparator obc)
283         throws com.liferay.portal.SystemException {
284         return getPersistence().findByG_U(groupId, userId, start, end, obc);
285     }
286 
287     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_First(
288         long groupId, long userId,
289         com.liferay.portal.kernel.util.OrderByComparator obc)
290         throws com.liferay.portal.SystemException,
291             com.liferay.portlet.blogs.NoSuchEntryException {
292         return getPersistence().findByG_U_First(groupId, userId, obc);
293     }
294 
295     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_Last(
296         long groupId, long userId,
297         com.liferay.portal.kernel.util.OrderByComparator obc)
298         throws com.liferay.portal.SystemException,
299             com.liferay.portlet.blogs.NoSuchEntryException {
300         return getPersistence().findByG_U_Last(groupId, userId, obc);
301     }
302 
303     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_PrevAndNext(
304         long entryId, long groupId, long userId,
305         com.liferay.portal.kernel.util.OrderByComparator obc)
306         throws com.liferay.portal.SystemException,
307             com.liferay.portlet.blogs.NoSuchEntryException {
308         return getPersistence()
309                    .findByG_U_PrevAndNext(entryId, groupId, userId, obc);
310     }
311 
312     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_UT(
313         long groupId, java.lang.String urlTitle)
314         throws com.liferay.portal.SystemException,
315             com.liferay.portlet.blogs.NoSuchEntryException {
316         return getPersistence().findByG_UT(groupId, urlTitle);
317     }
318 
319     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
320         long groupId, java.lang.String urlTitle)
321         throws com.liferay.portal.SystemException {
322         return getPersistence().fetchByG_UT(groupId, urlTitle);
323     }
324 
325     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
326         long groupId, java.lang.String urlTitle, boolean retrieveFromCache)
327         throws com.liferay.portal.SystemException {
328         return getPersistence().fetchByG_UT(groupId, urlTitle, retrieveFromCache);
329     }
330 
331     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
332         long groupId, java.util.Date displayDate, boolean draft)
333         throws com.liferay.portal.SystemException {
334         return getPersistence().findByG_D_D(groupId, displayDate, draft);
335     }
336 
337     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
338         long groupId, java.util.Date displayDate, boolean draft, int start,
339         int end) throws com.liferay.portal.SystemException {
340         return getPersistence()
341                    .findByG_D_D(groupId, displayDate, draft, start, end);
342     }
343 
344     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
345         long groupId, java.util.Date displayDate, boolean draft, int start,
346         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
347         throws com.liferay.portal.SystemException {
348         return getPersistence()
349                    .findByG_D_D(groupId, displayDate, draft, start, end, obc);
350     }
351 
352     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_D_D_First(
353         long groupId, java.util.Date displayDate, boolean draft,
354         com.liferay.portal.kernel.util.OrderByComparator obc)
355         throws com.liferay.portal.SystemException,
356             com.liferay.portlet.blogs.NoSuchEntryException {
357         return getPersistence()
358                    .findByG_D_D_First(groupId, displayDate, draft, obc);
359     }
360 
361     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_D_D_Last(
362         long groupId, java.util.Date displayDate, boolean draft,
363         com.liferay.portal.kernel.util.OrderByComparator obc)
364         throws com.liferay.portal.SystemException,
365             com.liferay.portlet.blogs.NoSuchEntryException {
366         return getPersistence()
367                    .findByG_D_D_Last(groupId, displayDate, draft, obc);
368     }
369 
370     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByG_D_D_PrevAndNext(
371         long entryId, long groupId, java.util.Date displayDate, boolean draft,
372         com.liferay.portal.kernel.util.OrderByComparator obc)
373         throws com.liferay.portal.SystemException,
374             com.liferay.portlet.blogs.NoSuchEntryException {
375         return getPersistence()
376                    .findByG_D_D_PrevAndNext(entryId, groupId, displayDate,
377             draft, obc);
378     }
379 
380     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
381         long companyId, java.util.Date displayDate, boolean draft)
382         throws com.liferay.portal.SystemException {
383         return getPersistence().findByC_D_D(companyId, displayDate, draft);
384     }
385 
386     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
387         long companyId, java.util.Date displayDate, boolean draft, int start,
388         int end) throws com.liferay.portal.SystemException {
389         return getPersistence()
390                    .findByC_D_D(companyId, displayDate, draft, start, end);
391     }
392 
393     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
394         long companyId, java.util.Date displayDate, boolean draft, int start,
395         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
396         throws com.liferay.portal.SystemException {
397         return getPersistence()
398                    .findByC_D_D(companyId, displayDate, draft, start, end, obc);
399     }
400 
401     public static com.liferay.portlet.blogs.model.BlogsEntry findByC_D_D_First(
402         long companyId, java.util.Date displayDate, boolean draft,
403         com.liferay.portal.kernel.util.OrderByComparator obc)
404         throws com.liferay.portal.SystemException,
405             com.liferay.portlet.blogs.NoSuchEntryException {
406         return getPersistence()
407                    .findByC_D_D_First(companyId, displayDate, draft, obc);
408     }
409 
410     public static com.liferay.portlet.blogs.model.BlogsEntry findByC_D_D_Last(
411         long companyId, java.util.Date displayDate, boolean draft,
412         com.liferay.portal.kernel.util.OrderByComparator obc)
413         throws com.liferay.portal.SystemException,
414             com.liferay.portlet.blogs.NoSuchEntryException {
415         return getPersistence()
416                    .findByC_D_D_Last(companyId, displayDate, draft, obc);
417     }
418 
419     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByC_D_D_PrevAndNext(
420         long entryId, long companyId, java.util.Date displayDate,
421         boolean draft, com.liferay.portal.kernel.util.OrderByComparator obc)
422         throws com.liferay.portal.SystemException,
423             com.liferay.portlet.blogs.NoSuchEntryException {
424         return getPersistence()
425                    .findByC_D_D_PrevAndNext(entryId, companyId, displayDate,
426             draft, obc);
427     }
428 
429     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
430         long groupId, long userId, java.util.Date displayDate, boolean draft)
431         throws com.liferay.portal.SystemException {
432         return getPersistence()
433                    .findByG_U_D_D(groupId, userId, displayDate, draft);
434     }
435 
436     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
437         long groupId, long userId, java.util.Date displayDate, boolean draft,
438         int start, int end) throws com.liferay.portal.SystemException {
439         return getPersistence()
440                    .findByG_U_D_D(groupId, userId, displayDate, draft, start,
441             end);
442     }
443 
444     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
445         long groupId, long userId, java.util.Date displayDate, boolean draft,
446         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
447         throws com.liferay.portal.SystemException {
448         return getPersistence()
449                    .findByG_U_D_D(groupId, userId, displayDate, draft, start,
450             end, obc);
451     }
452 
453     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_D_D_First(
454         long groupId, long userId, java.util.Date displayDate, boolean draft,
455         com.liferay.portal.kernel.util.OrderByComparator obc)
456         throws com.liferay.portal.SystemException,
457             com.liferay.portlet.blogs.NoSuchEntryException {
458         return getPersistence()
459                    .findByG_U_D_D_First(groupId, userId, displayDate, draft, obc);
460     }
461 
462     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_D_D_Last(
463         long groupId, long userId, java.util.Date displayDate, boolean draft,
464         com.liferay.portal.kernel.util.OrderByComparator obc)
465         throws com.liferay.portal.SystemException,
466             com.liferay.portlet.blogs.NoSuchEntryException {
467         return getPersistence()
468                    .findByG_U_D_D_Last(groupId, userId, displayDate, draft, obc);
469     }
470 
471     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_D_D_PrevAndNext(
472         long entryId, long groupId, long userId, java.util.Date displayDate,
473         boolean draft, com.liferay.portal.kernel.util.OrderByComparator obc)
474         throws com.liferay.portal.SystemException,
475             com.liferay.portlet.blogs.NoSuchEntryException {
476         return getPersistence()
477                    .findByG_U_D_D_PrevAndNext(entryId, groupId, userId,
478             displayDate, draft, obc);
479     }
480 
481     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll()
482         throws com.liferay.portal.SystemException {
483         return getPersistence().findAll();
484     }
485 
486     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll(
487         int start, int end) throws com.liferay.portal.SystemException {
488         return getPersistence().findAll(start, end);
489     }
490 
491     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll(
492         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
493         throws com.liferay.portal.SystemException {
494         return getPersistence().findAll(start, end, obc);
495     }
496 
497     public static void removeByUuid(java.lang.String uuid)
498         throws com.liferay.portal.SystemException {
499         getPersistence().removeByUuid(uuid);
500     }
501 
502     public static void removeByUUID_G(java.lang.String uuid, long groupId)
503         throws com.liferay.portal.SystemException,
504             com.liferay.portlet.blogs.NoSuchEntryException {
505         getPersistence().removeByUUID_G(uuid, groupId);
506     }
507 
508     public static void removeByGroupId(long groupId)
509         throws com.liferay.portal.SystemException {
510         getPersistence().removeByGroupId(groupId);
511     }
512 
513     public static void removeByCompanyId(long companyId)
514         throws com.liferay.portal.SystemException {
515         getPersistence().removeByCompanyId(companyId);
516     }
517 
518     public static void removeByG_U(long groupId, long userId)
519         throws com.liferay.portal.SystemException {
520         getPersistence().removeByG_U(groupId, userId);
521     }
522 
523     public static void removeByG_UT(long groupId, java.lang.String urlTitle)
524         throws com.liferay.portal.SystemException,
525             com.liferay.portlet.blogs.NoSuchEntryException {
526         getPersistence().removeByG_UT(groupId, urlTitle);
527     }
528 
529     public static void removeByG_D_D(long groupId, java.util.Date displayDate,
530         boolean draft) throws com.liferay.portal.SystemException {
531         getPersistence().removeByG_D_D(groupId, displayDate, draft);
532     }
533 
534     public static void removeByC_D_D(long companyId,
535         java.util.Date displayDate, boolean draft)
536         throws com.liferay.portal.SystemException {
537         getPersistence().removeByC_D_D(companyId, displayDate, draft);
538     }
539 
540     public static void removeByG_U_D_D(long groupId, long userId,
541         java.util.Date displayDate, boolean draft)
542         throws com.liferay.portal.SystemException {
543         getPersistence().removeByG_U_D_D(groupId, userId, displayDate, draft);
544     }
545 
546     public static void removeAll() throws com.liferay.portal.SystemException {
547         getPersistence().removeAll();
548     }
549 
550     public static int countByUuid(java.lang.String uuid)
551         throws com.liferay.portal.SystemException {
552         return getPersistence().countByUuid(uuid);
553     }
554 
555     public static int countByUUID_G(java.lang.String uuid, long groupId)
556         throws com.liferay.portal.SystemException {
557         return getPersistence().countByUUID_G(uuid, groupId);
558     }
559 
560     public static int countByGroupId(long groupId)
561         throws com.liferay.portal.SystemException {
562         return getPersistence().countByGroupId(groupId);
563     }
564 
565     public static int countByCompanyId(long companyId)
566         throws com.liferay.portal.SystemException {
567         return getPersistence().countByCompanyId(companyId);
568     }
569 
570     public static int countByG_U(long groupId, long userId)
571         throws com.liferay.portal.SystemException {
572         return getPersistence().countByG_U(groupId, userId);
573     }
574 
575     public static int countByG_UT(long groupId, java.lang.String urlTitle)
576         throws com.liferay.portal.SystemException {
577         return getPersistence().countByG_UT(groupId, urlTitle);
578     }
579 
580     public static int countByG_D_D(long groupId, java.util.Date displayDate,
581         boolean draft) throws com.liferay.portal.SystemException {
582         return getPersistence().countByG_D_D(groupId, displayDate, draft);
583     }
584 
585     public static int countByC_D_D(long companyId, java.util.Date displayDate,
586         boolean draft) throws com.liferay.portal.SystemException {
587         return getPersistence().countByC_D_D(companyId, displayDate, draft);
588     }
589 
590     public static int countByG_U_D_D(long groupId, long userId,
591         java.util.Date displayDate, boolean draft)
592         throws com.liferay.portal.SystemException {
593         return getPersistence()
594                    .countByG_U_D_D(groupId, userId, displayDate, draft);
595     }
596 
597     public static int countAll() throws com.liferay.portal.SystemException {
598         return getPersistence().countAll();
599     }
600 
601     public static BlogsEntryPersistence getPersistence() {
602         if (_persistence == null) {
603             _persistence = (BlogsEntryPersistence)PortalBeanLocatorUtil.locate(BlogsEntryPersistence.class.getName());
604         }
605 
606         return _persistence;
607     }
608 
609     public void setPersistence(BlogsEntryPersistence persistence) {
610         _persistence = persistence;
611     }
612 
613     private static BlogsEntryPersistence _persistence;
614 }