1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  /**
26   * <a href="BlogsEntryUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class BlogsEntryUtil {
32      public static com.liferay.portlet.blogs.model.BlogsEntry create(
33          long entryId) {
34          return getPersistence().create(entryId);
35      }
36  
37      public static com.liferay.portlet.blogs.model.BlogsEntry remove(
38          long entryId)
39          throws com.liferay.portal.SystemException, 
40              com.liferay.portlet.blogs.NoSuchEntryException {
41          return getPersistence().remove(entryId);
42      }
43  
44      public static com.liferay.portlet.blogs.model.BlogsEntry remove(
45          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
46          throws com.liferay.portal.SystemException {
47          return getPersistence().remove(blogsEntry);
48      }
49  
50      public static com.liferay.portlet.blogs.model.BlogsEntry update(
51          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
52          throws com.liferay.portal.SystemException {
53          return getPersistence().update(blogsEntry);
54      }
55  
56      public static com.liferay.portlet.blogs.model.BlogsEntry update(
57          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
58          throws com.liferay.portal.SystemException {
59          return getPersistence().update(blogsEntry, merge);
60      }
61  
62      public static com.liferay.portlet.blogs.model.BlogsEntry updateImpl(
63          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
64          throws com.liferay.portal.SystemException {
65          return getPersistence().updateImpl(blogsEntry, merge);
66      }
67  
68      public static com.liferay.portlet.blogs.model.BlogsEntry findByPrimaryKey(
69          long entryId)
70          throws com.liferay.portal.SystemException, 
71              com.liferay.portlet.blogs.NoSuchEntryException {
72          return getPersistence().findByPrimaryKey(entryId);
73      }
74  
75      public static com.liferay.portlet.blogs.model.BlogsEntry fetchByPrimaryKey(
76          long entryId) throws com.liferay.portal.SystemException {
77          return getPersistence().fetchByPrimaryKey(entryId);
78      }
79  
80      public static java.util.List findByUuid(java.lang.String uuid)
81          throws com.liferay.portal.SystemException {
82          return getPersistence().findByUuid(uuid);
83      }
84  
85      public static java.util.List findByUuid(java.lang.String uuid, int begin,
86          int end) throws com.liferay.portal.SystemException {
87          return getPersistence().findByUuid(uuid, begin, end);
88      }
89  
90      public static java.util.List findByUuid(java.lang.String uuid, int begin,
91          int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.SystemException {
93          return getPersistence().findByUuid(uuid, begin, end, obc);
94      }
95  
96      public static com.liferay.portlet.blogs.model.BlogsEntry findByUuid_First(
97          java.lang.String uuid,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException, 
100             com.liferay.portlet.blogs.NoSuchEntryException {
101         return getPersistence().findByUuid_First(uuid, obc);
102     }
103 
104     public static com.liferay.portlet.blogs.model.BlogsEntry findByUuid_Last(
105         java.lang.String uuid,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portlet.blogs.NoSuchEntryException {
109         return getPersistence().findByUuid_Last(uuid, obc);
110     }
111 
112     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByUuid_PrevAndNext(
113         long entryId, java.lang.String uuid,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException, 
116             com.liferay.portlet.blogs.NoSuchEntryException {
117         return getPersistence().findByUuid_PrevAndNext(entryId, uuid, obc);
118     }
119 
120     public static com.liferay.portlet.blogs.model.BlogsEntry findByUUID_G(
121         java.lang.String uuid, long groupId)
122         throws com.liferay.portal.SystemException, 
123             com.liferay.portlet.blogs.NoSuchEntryException {
124         return getPersistence().findByUUID_G(uuid, groupId);
125     }
126 
127     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByUUID_G(
128         java.lang.String uuid, long groupId)
129         throws com.liferay.portal.SystemException {
130         return getPersistence().fetchByUUID_G(uuid, groupId);
131     }
132 
133     public static java.util.List findByGroupId(long groupId)
134         throws com.liferay.portal.SystemException {
135         return getPersistence().findByGroupId(groupId);
136     }
137 
138     public static java.util.List findByGroupId(long groupId, int begin, int end)
139         throws com.liferay.portal.SystemException {
140         return getPersistence().findByGroupId(groupId, begin, end);
141     }
142 
143     public static java.util.List findByGroupId(long groupId, int begin,
144         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException {
146         return getPersistence().findByGroupId(groupId, begin, end, obc);
147     }
148 
149     public static com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_First(
150         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException, 
152             com.liferay.portlet.blogs.NoSuchEntryException {
153         return getPersistence().findByGroupId_First(groupId, obc);
154     }
155 
156     public static com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_Last(
157         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException, 
159             com.liferay.portlet.blogs.NoSuchEntryException {
160         return getPersistence().findByGroupId_Last(groupId, obc);
161     }
162 
163     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByGroupId_PrevAndNext(
164         long entryId, long groupId,
165         com.liferay.portal.kernel.util.OrderByComparator obc)
166         throws com.liferay.portal.SystemException, 
167             com.liferay.portlet.blogs.NoSuchEntryException {
168         return getPersistence().findByGroupId_PrevAndNext(entryId, groupId, obc);
169     }
170 
171     public static java.util.List findByCompanyId(long companyId)
172         throws com.liferay.portal.SystemException {
173         return getPersistence().findByCompanyId(companyId);
174     }
175 
176     public static java.util.List findByCompanyId(long companyId, int begin,
177         int end) throws com.liferay.portal.SystemException {
178         return getPersistence().findByCompanyId(companyId, begin, end);
179     }
180 
181     public static java.util.List findByCompanyId(long companyId, int begin,
182         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException {
184         return getPersistence().findByCompanyId(companyId, begin, end, obc);
185     }
186 
187     public static com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_First(
188         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException, 
190             com.liferay.portlet.blogs.NoSuchEntryException {
191         return getPersistence().findByCompanyId_First(companyId, obc);
192     }
193 
194     public static com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_Last(
195         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
196         throws com.liferay.portal.SystemException, 
197             com.liferay.portlet.blogs.NoSuchEntryException {
198         return getPersistence().findByCompanyId_Last(companyId, obc);
199     }
200 
201     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByCompanyId_PrevAndNext(
202         long entryId, long companyId,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException, 
205             com.liferay.portlet.blogs.NoSuchEntryException {
206         return getPersistence().findByCompanyId_PrevAndNext(entryId, companyId,
207             obc);
208     }
209 
210     public static java.util.List findByG_U(long groupId, long userId)
211         throws com.liferay.portal.SystemException {
212         return getPersistence().findByG_U(groupId, userId);
213     }
214 
215     public static java.util.List findByG_U(long groupId, long userId,
216         int begin, int end) throws com.liferay.portal.SystemException {
217         return getPersistence().findByG_U(groupId, userId, begin, end);
218     }
219 
220     public static java.util.List findByG_U(long groupId, long userId,
221         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
222         throws com.liferay.portal.SystemException {
223         return getPersistence().findByG_U(groupId, userId, begin, end, obc);
224     }
225 
226     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_First(
227         long groupId, long userId,
228         com.liferay.portal.kernel.util.OrderByComparator obc)
229         throws com.liferay.portal.SystemException, 
230             com.liferay.portlet.blogs.NoSuchEntryException {
231         return getPersistence().findByG_U_First(groupId, userId, obc);
232     }
233 
234     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_U_Last(
235         long groupId, long userId,
236         com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.SystemException, 
238             com.liferay.portlet.blogs.NoSuchEntryException {
239         return getPersistence().findByG_U_Last(groupId, userId, obc);
240     }
241 
242     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_PrevAndNext(
243         long entryId, long groupId, long userId,
244         com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.SystemException, 
246             com.liferay.portlet.blogs.NoSuchEntryException {
247         return getPersistence().findByG_U_PrevAndNext(entryId, groupId, userId,
248             obc);
249     }
250 
251     public static com.liferay.portlet.blogs.model.BlogsEntry findByG_UT(
252         long groupId, java.lang.String urlTitle)
253         throws com.liferay.portal.SystemException, 
254             com.liferay.portlet.blogs.NoSuchEntryException {
255         return getPersistence().findByG_UT(groupId, urlTitle);
256     }
257 
258     public static com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
259         long groupId, java.lang.String urlTitle)
260         throws com.liferay.portal.SystemException {
261         return getPersistence().fetchByG_UT(groupId, urlTitle);
262     }
263 
264     public static java.util.List findByC_U(long companyId, long userId)
265         throws com.liferay.portal.SystemException {
266         return getPersistence().findByC_U(companyId, userId);
267     }
268 
269     public static java.util.List findByC_U(long companyId, long userId,
270         int begin, int end) throws com.liferay.portal.SystemException {
271         return getPersistence().findByC_U(companyId, userId, begin, end);
272     }
273 
274     public static java.util.List findByC_U(long companyId, long userId,
275         int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
276         throws com.liferay.portal.SystemException {
277         return getPersistence().findByC_U(companyId, userId, begin, end, obc);
278     }
279 
280     public static com.liferay.portlet.blogs.model.BlogsEntry findByC_U_First(
281         long companyId, long userId,
282         com.liferay.portal.kernel.util.OrderByComparator obc)
283         throws com.liferay.portal.SystemException, 
284             com.liferay.portlet.blogs.NoSuchEntryException {
285         return getPersistence().findByC_U_First(companyId, userId, obc);
286     }
287 
288     public static com.liferay.portlet.blogs.model.BlogsEntry findByC_U_Last(
289         long companyId, long userId,
290         com.liferay.portal.kernel.util.OrderByComparator obc)
291         throws com.liferay.portal.SystemException, 
292             com.liferay.portlet.blogs.NoSuchEntryException {
293         return getPersistence().findByC_U_Last(companyId, userId, obc);
294     }
295 
296     public static com.liferay.portlet.blogs.model.BlogsEntry[] findByC_U_PrevAndNext(
297         long entryId, long companyId, long userId,
298         com.liferay.portal.kernel.util.OrderByComparator obc)
299         throws com.liferay.portal.SystemException, 
300             com.liferay.portlet.blogs.NoSuchEntryException {
301         return getPersistence().findByC_U_PrevAndNext(entryId, companyId,
302             userId, obc);
303     }
304 
305     public static java.util.List findWithDynamicQuery(
306         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
307         throws com.liferay.portal.SystemException {
308         return getPersistence().findWithDynamicQuery(queryInitializer);
309     }
310 
311     public static java.util.List findWithDynamicQuery(
312         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
313         int begin, int end) throws com.liferay.portal.SystemException {
314         return getPersistence().findWithDynamicQuery(queryInitializer, begin,
315             end);
316     }
317 
318     public static java.util.List findAll()
319         throws com.liferay.portal.SystemException {
320         return getPersistence().findAll();
321     }
322 
323     public static java.util.List findAll(int begin, int end)
324         throws com.liferay.portal.SystemException {
325         return getPersistence().findAll(begin, end);
326     }
327 
328     public static java.util.List findAll(int begin, int end,
329         com.liferay.portal.kernel.util.OrderByComparator obc)
330         throws com.liferay.portal.SystemException {
331         return getPersistence().findAll(begin, end, obc);
332     }
333 
334     public static void removeByUuid(java.lang.String uuid)
335         throws com.liferay.portal.SystemException {
336         getPersistence().removeByUuid(uuid);
337     }
338 
339     public static void removeByUUID_G(java.lang.String uuid, long groupId)
340         throws com.liferay.portal.SystemException, 
341             com.liferay.portlet.blogs.NoSuchEntryException {
342         getPersistence().removeByUUID_G(uuid, groupId);
343     }
344 
345     public static void removeByGroupId(long groupId)
346         throws com.liferay.portal.SystemException {
347         getPersistence().removeByGroupId(groupId);
348     }
349 
350     public static void removeByCompanyId(long companyId)
351         throws com.liferay.portal.SystemException {
352         getPersistence().removeByCompanyId(companyId);
353     }
354 
355     public static void removeByG_U(long groupId, long userId)
356         throws com.liferay.portal.SystemException {
357         getPersistence().removeByG_U(groupId, userId);
358     }
359 
360     public static void removeByG_UT(long groupId, java.lang.String urlTitle)
361         throws com.liferay.portal.SystemException, 
362             com.liferay.portlet.blogs.NoSuchEntryException {
363         getPersistence().removeByG_UT(groupId, urlTitle);
364     }
365 
366     public static void removeByC_U(long companyId, long userId)
367         throws com.liferay.portal.SystemException {
368         getPersistence().removeByC_U(companyId, userId);
369     }
370 
371     public static void removeAll() throws com.liferay.portal.SystemException {
372         getPersistence().removeAll();
373     }
374 
375     public static int countByUuid(java.lang.String uuid)
376         throws com.liferay.portal.SystemException {
377         return getPersistence().countByUuid(uuid);
378     }
379 
380     public static int countByUUID_G(java.lang.String uuid, long groupId)
381         throws com.liferay.portal.SystemException {
382         return getPersistence().countByUUID_G(uuid, groupId);
383     }
384 
385     public static int countByGroupId(long groupId)
386         throws com.liferay.portal.SystemException {
387         return getPersistence().countByGroupId(groupId);
388     }
389 
390     public static int countByCompanyId(long companyId)
391         throws com.liferay.portal.SystemException {
392         return getPersistence().countByCompanyId(companyId);
393     }
394 
395     public static int countByG_U(long groupId, long userId)
396         throws com.liferay.portal.SystemException {
397         return getPersistence().countByG_U(groupId, userId);
398     }
399 
400     public static int countByG_UT(long groupId, java.lang.String urlTitle)
401         throws com.liferay.portal.SystemException {
402         return getPersistence().countByG_UT(groupId, urlTitle);
403     }
404 
405     public static int countByC_U(long companyId, long userId)
406         throws com.liferay.portal.SystemException {
407         return getPersistence().countByC_U(companyId, userId);
408     }
409 
410     public static int countAll() throws com.liferay.portal.SystemException {
411         return getPersistence().countAll();
412     }
413 
414     public static BlogsEntryPersistence getPersistence() {
415         return _getUtil()._persistence;
416     }
417 
418     public void setPersistence(BlogsEntryPersistence persistence) {
419         _persistence = persistence;
420     }
421 
422     private static BlogsEntryUtil _getUtil() {
423         if (_util == null) {
424             _util = (BlogsEntryUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
425         }
426 
427         return _util;
428     }
429 
430     private static final String _UTIL = BlogsEntryUtil.class.getName();
431     private static BlogsEntryUtil _util;
432     private BlogsEntryPersistence _persistence;
433 }