1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.blogs.service.persistence;
21  
22  /**
23   * <a href="BlogsEntryUtil.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public class BlogsEntryUtil {
29      public static void cacheResult(
30          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
31          getPersistence().cacheResult(blogsEntry);
32      }
33  
34      public static void cacheResult(
35          java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> blogsEntries) {
36          getPersistence().cacheResult(blogsEntries);
37      }
38  
39      public static void clearCache() {
40          getPersistence().clearCache();
41      }
42  
43      public static com.liferay.portlet.blogs.model.BlogsEntry create(
44          long entryId) {
45          return getPersistence().create(entryId);
46      }
47  
48      public static com.liferay.portlet.blogs.model.BlogsEntry remove(
49          long entryId)
50          throws com.liferay.portal.SystemException,
51              com.liferay.portlet.blogs.NoSuchEntryException {
52          return getPersistence().remove(entryId);
53      }
54  
55      public static com.liferay.portlet.blogs.model.BlogsEntry remove(
56          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
57          throws com.liferay.portal.SystemException {
58          return getPersistence().remove(blogsEntry);
59      }
60  
61      /**
62       * @deprecated Use <code>update(BlogsEntry blogsEntry, boolean merge)</code>.
63       */
64      public static com.liferay.portlet.blogs.model.BlogsEntry update(
65          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
66          throws com.liferay.portal.SystemException {
67          return getPersistence().update(blogsEntry);
68      }
69  
70      /**
71       * Add, update, or merge, the entity. This method also calls the model
72       * listeners to trigger the proper events associated with adding, deleting,
73       * or updating an entity.
74       *
75       * @param        blogsEntry the entity to add, update, or merge
76       * @param        merge boolean value for whether to merge the entity. The
77       *                default value is false. Setting merge to true is more
78       *                expensive and should only be true when blogsEntry is
79       *                transient. See LEP-5473 for a detailed discussion of this
80       *                method.
81       * @return        true if the portlet can be displayed via Ajax
82       */
83      public static com.liferay.portlet.blogs.model.BlogsEntry update(
84          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
85          throws com.liferay.portal.SystemException {
86          return getPersistence().update(blogsEntry, merge);
87      }
88  
89      public static com.liferay.portlet.blogs.model.BlogsEntry updateImpl(
90          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
91          throws com.liferay.portal.SystemException {
92          return getPersistence().updateImpl(blogsEntry, merge);
93      }
94  
95      public static com.liferay.portlet.blogs.model.BlogsEntry findByPrimaryKey(
96          long entryId)
97          throws com.liferay.portal.SystemException,
98              com.liferay.portlet.blogs.NoSuchEntryException {
99          return getPersistence().findByPrimaryKey(entryId);
100     }
101 
102     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByPrimaryKey(
103         long entryId) throws com.liferay.portal.SystemException {
104         return getPersistence().fetchByPrimaryKey(entryId);
105     }
106 
107     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
108         java.lang.String uuid) throws com.liferay.portal.SystemException {
109         return getPersistence().findByUuid(uuid);
110     }
111 
112     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
113         java.lang.String uuid, int start, int end)
114         throws com.liferay.portal.SystemException {
115         return getPersistence().findByUuid(uuid, start, end);
116     }
117 
118     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
119         java.lang.String uuid, int start, int end,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException {
122         return getPersistence().findByUuid(uuid, start, end, obc);
123     }
124 
125     public static com.liferay.portlet.blogs.model.BlogsEntry findByUuid_First(
126         java.lang.String uuid,
127         com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.blogs.NoSuchEntryException {
130         return getPersistence().findByUuid_First(uuid, obc);
131     }
132 
133     public static com.liferay.portlet.blogs.model.BlogsEntry findByUuid_Last(
134         java.lang.String uuid,
135         com.liferay.portal.kernel.util.OrderByComparator obc)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.blogs.NoSuchEntryException {
138         return getPersistence().findByUuid_Last(uuid, obc);
139     }
140 
141     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByUuid_PrevAndNext(
142         long entryId, java.lang.String uuid,
143         com.liferay.portal.kernel.util.OrderByComparator obc)
144         throws com.liferay.portal.SystemException,
145             com.liferay.portlet.blogs.NoSuchEntryException {
146         return getPersistence().findByUuid_PrevAndNext(entryId, uuid, obc);
147     }
148 
149     public static com.liferay.portlet.blogs.model.BlogsEntry findByUUID_G(
150         java.lang.String uuid, long groupId)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.blogs.NoSuchEntryException {
153         return getPersistence().findByUUID_G(uuid, groupId);
154     }
155 
156     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByUUID_G(
157         java.lang.String uuid, long groupId)
158         throws com.liferay.portal.SystemException {
159         return getPersistence().fetchByUUID_G(uuid, groupId);
160     }
161 
162     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByUUID_G(
163         java.lang.String uuid, long groupId, boolean retrieveFromCache)
164         throws com.liferay.portal.SystemException {
165         return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
166     }
167 
168     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
169         long groupId) throws com.liferay.portal.SystemException {
170         return getPersistence().findByGroupId(groupId);
171     }
172 
173     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
174         long groupId, int start, int end)
175         throws com.liferay.portal.SystemException {
176         return getPersistence().findByGroupId(groupId, start, end);
177     }
178 
179     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
180         long groupId, int start, int end,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException {
183         return getPersistence().findByGroupId(groupId, start, end, obc);
184     }
185 
186     public static com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_First(
187         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.blogs.NoSuchEntryException {
190         return getPersistence().findByGroupId_First(groupId, obc);
191     }
192 
193     public static com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_Last(
194         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException,
196             com.liferay.portlet.blogs.NoSuchEntryException {
197         return getPersistence().findByGroupId_Last(groupId, obc);
198     }
199 
200     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByGroupId_PrevAndNext(
201         long entryId, long groupId,
202         com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.SystemException,
204             com.liferay.portlet.blogs.NoSuchEntryException {
205         return getPersistence().findByGroupId_PrevAndNext(entryId, groupId, obc);
206     }
207 
208     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
209         long companyId) throws com.liferay.portal.SystemException {
210         return getPersistence().findByCompanyId(companyId);
211     }
212 
213     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
214         long companyId, int start, int end)
215         throws com.liferay.portal.SystemException {
216         return getPersistence().findByCompanyId(companyId, start, end);
217     }
218 
219     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
220         long companyId, int start, int end,
221         com.liferay.portal.kernel.util.OrderByComparator obc)
222         throws com.liferay.portal.SystemException {
223         return getPersistence().findByCompanyId(companyId, start, end, obc);
224     }
225 
226     public static com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_First(
227         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portlet.blogs.NoSuchEntryException {
230         return getPersistence().findByCompanyId_First(companyId, obc);
231     }
232 
233     public static com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_Last(
234         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
235         throws com.liferay.portal.SystemException,
236             com.liferay.portlet.blogs.NoSuchEntryException {
237         return getPersistence().findByCompanyId_Last(companyId, obc);
238     }
239 
240     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByCompanyId_PrevAndNext(
241         long entryId, long companyId,
242         com.liferay.portal.kernel.util.OrderByComparator obc)
243         throws com.liferay.portal.SystemException,
244             com.liferay.portlet.blogs.NoSuchEntryException {
245         return getPersistence()
246                    .findByCompanyId_PrevAndNext(entryId, companyId, obc);
247     }
248 
249     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
250         long groupId, long userId) throws com.liferay.portal.SystemException {
251         return getPersistence().findByG_U(groupId, userId);
252     }
253 
254     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
255         long groupId, long userId, int start, int end)
256         throws com.liferay.portal.SystemException {
257         return getPersistence().findByG_U(groupId, userId, start, end);
258     }
259 
260     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
261         long groupId, long userId, int start, int end,
262         com.liferay.portal.kernel.util.OrderByComparator obc)
263         throws com.liferay.portal.SystemException {
264         return getPersistence().findByG_U(groupId, userId, start, end, obc);
265     }
266 
267     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_First(
268         long groupId, long userId,
269         com.liferay.portal.kernel.util.OrderByComparator obc)
270         throws com.liferay.portal.SystemException,
271             com.liferay.portlet.blogs.NoSuchEntryException {
272         return getPersistence().findByG_U_First(groupId, userId, obc);
273     }
274 
275     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_Last(
276         long groupId, long userId,
277         com.liferay.portal.kernel.util.OrderByComparator obc)
278         throws com.liferay.portal.SystemException,
279             com.liferay.portlet.blogs.NoSuchEntryException {
280         return getPersistence().findByG_U_Last(groupId, userId, obc);
281     }
282 
283     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_PrevAndNext(
284         long entryId, long groupId, long userId,
285         com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException,
287             com.liferay.portlet.blogs.NoSuchEntryException {
288         return getPersistence()
289                    .findByG_U_PrevAndNext(entryId, groupId, userId, obc);
290     }
291 
292     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_UT(
293         long groupId, java.lang.String urlTitle)
294         throws com.liferay.portal.SystemException,
295             com.liferay.portlet.blogs.NoSuchEntryException {
296         return getPersistence().findByG_UT(groupId, urlTitle);
297     }
298 
299     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
300         long groupId, java.lang.String urlTitle)
301         throws com.liferay.portal.SystemException {
302         return getPersistence().fetchByG_UT(groupId, urlTitle);
303     }
304 
305     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
306         long groupId, java.lang.String urlTitle, boolean retrieveFromCache)
307         throws com.liferay.portal.SystemException {
308         return getPersistence().fetchByG_UT(groupId, urlTitle, retrieveFromCache);
309     }
310 
311     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
312         long groupId, java.util.Date displayDate, boolean draft)
313         throws com.liferay.portal.SystemException {
314         return getPersistence().findByG_D_D(groupId, displayDate, draft);
315     }
316 
317     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
318         long groupId, java.util.Date displayDate, boolean draft, int start,
319         int end) throws com.liferay.portal.SystemException {
320         return getPersistence()
321                    .findByG_D_D(groupId, displayDate, draft, start, end);
322     }
323 
324     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
325         long groupId, java.util.Date displayDate, boolean draft, int start,
326         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
327         throws com.liferay.portal.SystemException {
328         return getPersistence()
329                    .findByG_D_D(groupId, displayDate, draft, start, end, obc);
330     }
331 
332     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_D_D_First(
333         long groupId, java.util.Date displayDate, boolean draft,
334         com.liferay.portal.kernel.util.OrderByComparator obc)
335         throws com.liferay.portal.SystemException,
336             com.liferay.portlet.blogs.NoSuchEntryException {
337         return getPersistence()
338                    .findByG_D_D_First(groupId, displayDate, draft, obc);
339     }
340 
341     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_D_D_Last(
342         long groupId, java.util.Date displayDate, boolean draft,
343         com.liferay.portal.kernel.util.OrderByComparator obc)
344         throws com.liferay.portal.SystemException,
345             com.liferay.portlet.blogs.NoSuchEntryException {
346         return getPersistence()
347                    .findByG_D_D_Last(groupId, displayDate, draft, obc);
348     }
349 
350     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByG_D_D_PrevAndNext(
351         long entryId, long groupId, java.util.Date displayDate, boolean draft,
352         com.liferay.portal.kernel.util.OrderByComparator obc)
353         throws com.liferay.portal.SystemException,
354             com.liferay.portlet.blogs.NoSuchEntryException {
355         return getPersistence()
356                    .findByG_D_D_PrevAndNext(entryId, groupId, displayDate,
357             draft, obc);
358     }
359 
360     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
361         long companyId, java.util.Date displayDate, boolean draft)
362         throws com.liferay.portal.SystemException {
363         return getPersistence().findByC_D_D(companyId, displayDate, draft);
364     }
365 
366     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
367         long companyId, java.util.Date displayDate, boolean draft, int start,
368         int end) throws com.liferay.portal.SystemException {
369         return getPersistence()
370                    .findByC_D_D(companyId, displayDate, draft, start, end);
371     }
372 
373     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
374         long companyId, java.util.Date displayDate, boolean draft, int start,
375         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
376         throws com.liferay.portal.SystemException {
377         return getPersistence()
378                    .findByC_D_D(companyId, displayDate, draft, start, end, obc);
379     }
380 
381     public static com.liferay.portlet.blogs.model.BlogsEntry findByC_D_D_First(
382         long companyId, java.util.Date displayDate, boolean draft,
383         com.liferay.portal.kernel.util.OrderByComparator obc)
384         throws com.liferay.portal.SystemException,
385             com.liferay.portlet.blogs.NoSuchEntryException {
386         return getPersistence()
387                    .findByC_D_D_First(companyId, displayDate, draft, obc);
388     }
389 
390     public static com.liferay.portlet.blogs.model.BlogsEntry findByC_D_D_Last(
391         long companyId, java.util.Date displayDate, boolean draft,
392         com.liferay.portal.kernel.util.OrderByComparator obc)
393         throws com.liferay.portal.SystemException,
394             com.liferay.portlet.blogs.NoSuchEntryException {
395         return getPersistence()
396                    .findByC_D_D_Last(companyId, displayDate, draft, obc);
397     }
398 
399     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByC_D_D_PrevAndNext(
400         long entryId, long companyId, java.util.Date displayDate,
401         boolean draft, com.liferay.portal.kernel.util.OrderByComparator obc)
402         throws com.liferay.portal.SystemException,
403             com.liferay.portlet.blogs.NoSuchEntryException {
404         return getPersistence()
405                    .findByC_D_D_PrevAndNext(entryId, companyId, displayDate,
406             draft, obc);
407     }
408 
409     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
410         long groupId, long userId, java.util.Date displayDate, boolean draft)
411         throws com.liferay.portal.SystemException {
412         return getPersistence()
413                    .findByG_U_D_D(groupId, userId, displayDate, draft);
414     }
415 
416     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
417         long groupId, long userId, java.util.Date displayDate, boolean draft,
418         int start, int end) throws com.liferay.portal.SystemException {
419         return getPersistence()
420                    .findByG_U_D_D(groupId, userId, displayDate, draft, start,
421             end);
422     }
423 
424     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
425         long groupId, long userId, java.util.Date displayDate, boolean draft,
426         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
427         throws com.liferay.portal.SystemException {
428         return getPersistence()
429                    .findByG_U_D_D(groupId, userId, displayDate, draft, start,
430             end, obc);
431     }
432 
433     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_D_D_First(
434         long groupId, long userId, java.util.Date displayDate, boolean draft,
435         com.liferay.portal.kernel.util.OrderByComparator obc)
436         throws com.liferay.portal.SystemException,
437             com.liferay.portlet.blogs.NoSuchEntryException {
438         return getPersistence()
439                    .findByG_U_D_D_First(groupId, userId, displayDate, draft, obc);
440     }
441 
442     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_D_D_Last(
443         long groupId, long userId, java.util.Date displayDate, boolean draft,
444         com.liferay.portal.kernel.util.OrderByComparator obc)
445         throws com.liferay.portal.SystemException,
446             com.liferay.portlet.blogs.NoSuchEntryException {
447         return getPersistence()
448                    .findByG_U_D_D_Last(groupId, userId, displayDate, draft, obc);
449     }
450 
451     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_D_D_PrevAndNext(
452         long entryId, long groupId, long userId, java.util.Date displayDate,
453         boolean draft, com.liferay.portal.kernel.util.OrderByComparator obc)
454         throws com.liferay.portal.SystemException,
455             com.liferay.portlet.blogs.NoSuchEntryException {
456         return getPersistence()
457                    .findByG_U_D_D_PrevAndNext(entryId, groupId, userId,
458             displayDate, draft, obc);
459     }
460 
461     public static java.util.List<Object> findWithDynamicQuery(
462         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
463         throws com.liferay.portal.SystemException {
464         return getPersistence().findWithDynamicQuery(dynamicQuery);
465     }
466 
467     public static java.util.List<Object> findWithDynamicQuery(
468         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
469         int end) throws com.liferay.portal.SystemException {
470         return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
471     }
472 
473     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll()
474         throws com.liferay.portal.SystemException {
475         return getPersistence().findAll();
476     }
477 
478     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll(
479         int start, int end) throws com.liferay.portal.SystemException {
480         return getPersistence().findAll(start, end);
481     }
482 
483     public static java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll(
484         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
485         throws com.liferay.portal.SystemException {
486         return getPersistence().findAll(start, end, obc);
487     }
488 
489     public static void removeByUuid(java.lang.String uuid)
490         throws com.liferay.portal.SystemException {
491         getPersistence().removeByUuid(uuid);
492     }
493 
494     public static void removeByUUID_G(java.lang.String uuid, long groupId)
495         throws com.liferay.portal.SystemException,
496             com.liferay.portlet.blogs.NoSuchEntryException {
497         getPersistence().removeByUUID_G(uuid, groupId);
498     }
499 
500     public static void removeByGroupId(long groupId)
501         throws com.liferay.portal.SystemException {
502         getPersistence().removeByGroupId(groupId);
503     }
504 
505     public static void removeByCompanyId(long companyId)
506         throws com.liferay.portal.SystemException {
507         getPersistence().removeByCompanyId(companyId);
508     }
509 
510     public static void removeByG_U(long groupId, long userId)
511         throws com.liferay.portal.SystemException {
512         getPersistence().removeByG_U(groupId, userId);
513     }
514 
515     public static void removeByG_UT(long groupId, java.lang.String urlTitle)
516         throws com.liferay.portal.SystemException,
517             com.liferay.portlet.blogs.NoSuchEntryException {
518         getPersistence().removeByG_UT(groupId, urlTitle);
519     }
520 
521     public static void removeByG_D_D(long groupId, java.util.Date displayDate,
522         boolean draft) throws com.liferay.portal.SystemException {
523         getPersistence().removeByG_D_D(groupId, displayDate, draft);
524     }
525 
526     public static void removeByC_D_D(long companyId,
527         java.util.Date displayDate, boolean draft)
528         throws com.liferay.portal.SystemException {
529         getPersistence().removeByC_D_D(companyId, displayDate, draft);
530     }
531 
532     public static void removeByG_U_D_D(long groupId, long userId,
533         java.util.Date displayDate, boolean draft)
534         throws com.liferay.portal.SystemException {
535         getPersistence().removeByG_U_D_D(groupId, userId, displayDate, draft);
536     }
537 
538     public static void removeAll() throws com.liferay.portal.SystemException {
539         getPersistence().removeAll();
540     }
541 
542     public static int countByUuid(java.lang.String uuid)
543         throws com.liferay.portal.SystemException {
544         return getPersistence().countByUuid(uuid);
545     }
546 
547     public static int countByUUID_G(java.lang.String uuid, long groupId)
548         throws com.liferay.portal.SystemException {
549         return getPersistence().countByUUID_G(uuid, groupId);
550     }
551 
552     public static int countByGroupId(long groupId)
553         throws com.liferay.portal.SystemException {
554         return getPersistence().countByGroupId(groupId);
555     }
556 
557     public static int countByCompanyId(long companyId)
558         throws com.liferay.portal.SystemException {
559         return getPersistence().countByCompanyId(companyId);
560     }
561 
562     public static int countByG_U(long groupId, long userId)
563         throws com.liferay.portal.SystemException {
564         return getPersistence().countByG_U(groupId, userId);
565     }
566 
567     public static int countByG_UT(long groupId, java.lang.String urlTitle)
568         throws com.liferay.portal.SystemException {
569         return getPersistence().countByG_UT(groupId, urlTitle);
570     }
571 
572     public static int countByG_D_D(long groupId, java.util.Date displayDate,
573         boolean draft) throws com.liferay.portal.SystemException {
574         return getPersistence().countByG_D_D(groupId, displayDate, draft);
575     }
576 
577     public static int countByC_D_D(long companyId, java.util.Date displayDate,
578         boolean draft) throws com.liferay.portal.SystemException {
579         return getPersistence().countByC_D_D(companyId, displayDate, draft);
580     }
581 
582     public static int countByG_U_D_D(long groupId, long userId,
583         java.util.Date displayDate, boolean draft)
584         throws com.liferay.portal.SystemException {
585         return getPersistence()
586                    .countByG_U_D_D(groupId, userId, displayDate, draft);
587     }
588 
589     public static int countAll() throws com.liferay.portal.SystemException {
590         return getPersistence().countAll();
591     }
592 
593     public static BlogsEntryPersistence getPersistence() {
594         return _persistence;
595     }
596 
597     public void setPersistence(BlogsEntryPersistence persistence) {
598         _persistence = persistence;
599     }
600 
601     private static BlogsEntryPersistence _persistence;
602 }