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  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  
30  /**
31   * <a href="BlogsEntryPersistence.java.html"><b><i>View Source</i></b></a>
32   *
33   * @author Brian Wing Shun Chan
34   *
35   */
36  @Transactional(rollbackFor =  {
37      PortalException.class, SystemException.class})
38  public interface BlogsEntryPersistence {
39      public com.liferay.portlet.blogs.model.BlogsEntry create(long entryId);
40  
41      public com.liferay.portlet.blogs.model.BlogsEntry remove(long entryId)
42          throws com.liferay.portal.SystemException,
43              com.liferay.portlet.blogs.NoSuchEntryException;
44  
45      public com.liferay.portlet.blogs.model.BlogsEntry remove(
46          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
47          throws com.liferay.portal.SystemException;
48  
49      /**
50       * @deprecated Use <code>update(BlogsEntry blogsEntry, boolean merge)</code>.
51       */
52      public com.liferay.portlet.blogs.model.BlogsEntry update(
53          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
54          throws com.liferay.portal.SystemException;
55  
56      /**
57       * Add, update, or merge, the entity. This method also calls the model
58       * listeners to trigger the proper events associated with adding, deleting,
59       * or updating an entity.
60       *
61       * @param        blogsEntry the entity to add, update, or merge
62       * @param        merge boolean value for whether to merge the entity. The
63       *                default value is false. Setting merge to true is more
64       *                expensive and should only be true when blogsEntry is
65       *                transient. See LEP-5473 for a detailed discussion of this
66       *                method.
67       * @return        true if the portlet can be displayed via Ajax
68       */
69      public com.liferay.portlet.blogs.model.BlogsEntry update(
70          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
71          throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.blogs.model.BlogsEntry updateImpl(
74          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
75          throws com.liferay.portal.SystemException;
76  
77      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78      public com.liferay.portlet.blogs.model.BlogsEntry findByPrimaryKey(
79          long entryId)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portlet.blogs.NoSuchEntryException;
82  
83      public com.liferay.portlet.blogs.model.BlogsEntry fetchByPrimaryKey(
84          long entryId) throws com.liferay.portal.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
88          java.lang.String uuid) throws com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
92          java.lang.String uuid, int start, int end)
93          throws com.liferay.portal.SystemException;
94  
95      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
97          java.lang.String uuid, int start, int end,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException;
100 
101     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102     public com.liferay.portlet.blogs.model.BlogsEntry findByUuid_First(
103         java.lang.String uuid,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException,
106             com.liferay.portlet.blogs.NoSuchEntryException;
107 
108     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109     public com.liferay.portlet.blogs.model.BlogsEntry findByUuid_Last(
110         java.lang.String uuid,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.blogs.NoSuchEntryException;
114 
115     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116     public com.liferay.portlet.blogs.model.BlogsEntry[] findByUuid_PrevAndNext(
117         long entryId, java.lang.String uuid,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException,
120             com.liferay.portlet.blogs.NoSuchEntryException;
121 
122     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123     public com.liferay.portlet.blogs.model.BlogsEntry findByUUID_G(
124         java.lang.String uuid, long groupId)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.blogs.NoSuchEntryException;
127 
128     public com.liferay.portlet.blogs.model.BlogsEntry fetchByUUID_G(
129         java.lang.String uuid, long groupId)
130         throws com.liferay.portal.SystemException;
131 
132     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
134         long groupId) throws com.liferay.portal.SystemException;
135 
136     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
138         long groupId, int start, int end)
139         throws com.liferay.portal.SystemException;
140 
141     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
143         long groupId, int start, int end,
144         com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException;
146 
147     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148     public com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_First(
149         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException,
151             com.liferay.portlet.blogs.NoSuchEntryException;
152 
153     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154     public com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_Last(
155         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.blogs.NoSuchEntryException;
158 
159     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160     public com.liferay.portlet.blogs.model.BlogsEntry[] findByGroupId_PrevAndNext(
161         long entryId, long groupId,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException,
164             com.liferay.portlet.blogs.NoSuchEntryException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
168         long companyId) throws com.liferay.portal.SystemException;
169 
170     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
172         long companyId, int start, int end)
173         throws com.liferay.portal.SystemException;
174 
175     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
177         long companyId, int start, int end,
178         com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException;
180 
181     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182     public com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_First(
183         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException,
185             com.liferay.portlet.blogs.NoSuchEntryException;
186 
187     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188     public com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_Last(
189         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.blogs.NoSuchEntryException;
192 
193     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public com.liferay.portlet.blogs.model.BlogsEntry[] findByCompanyId_PrevAndNext(
195         long entryId, long companyId,
196         com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.blogs.NoSuchEntryException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
202         long groupId, long userId) throws com.liferay.portal.SystemException;
203 
204     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
206         long groupId, long userId, int start, int end)
207         throws com.liferay.portal.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
211         long groupId, long userId, int start, int end,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException;
214 
215     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_First(
217         long groupId, long userId,
218         com.liferay.portal.kernel.util.OrderByComparator obc)
219         throws com.liferay.portal.SystemException,
220             com.liferay.portlet.blogs.NoSuchEntryException;
221 
222     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_Last(
224         long groupId, long userId,
225         com.liferay.portal.kernel.util.OrderByComparator obc)
226         throws com.liferay.portal.SystemException,
227             com.liferay.portlet.blogs.NoSuchEntryException;
228 
229     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230     public com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_PrevAndNext(
231         long entryId, long groupId, long userId,
232         com.liferay.portal.kernel.util.OrderByComparator obc)
233         throws com.liferay.portal.SystemException,
234             com.liferay.portlet.blogs.NoSuchEntryException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public com.liferay.portlet.blogs.model.BlogsEntry findByG_UT(long groupId,
238         java.lang.String urlTitle)
239         throws com.liferay.portal.SystemException,
240             com.liferay.portlet.blogs.NoSuchEntryException;
241 
242     public com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
243         long groupId, java.lang.String urlTitle)
244         throws com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
248         long groupId, java.util.Date displayDate, boolean draft)
249         throws com.liferay.portal.SystemException;
250 
251     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
253         long groupId, java.util.Date displayDate, boolean draft, int start,
254         int end) throws com.liferay.portal.SystemException;
255 
256     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
258         long groupId, java.util.Date displayDate, boolean draft, int start,
259         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
260         throws com.liferay.portal.SystemException;
261 
262     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263     public com.liferay.portlet.blogs.model.BlogsEntry findByG_D_D_First(
264         long groupId, java.util.Date displayDate, boolean draft,
265         com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.SystemException,
267             com.liferay.portlet.blogs.NoSuchEntryException;
268 
269     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270     public com.liferay.portlet.blogs.model.BlogsEntry findByG_D_D_Last(
271         long groupId, java.util.Date displayDate, boolean draft,
272         com.liferay.portal.kernel.util.OrderByComparator obc)
273         throws com.liferay.portal.SystemException,
274             com.liferay.portlet.blogs.NoSuchEntryException;
275 
276     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277     public com.liferay.portlet.blogs.model.BlogsEntry[] findByG_D_D_PrevAndNext(
278         long entryId, long groupId, java.util.Date displayDate, boolean draft,
279         com.liferay.portal.kernel.util.OrderByComparator obc)
280         throws com.liferay.portal.SystemException,
281             com.liferay.portlet.blogs.NoSuchEntryException;
282 
283     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
285         long companyId, java.util.Date displayDate, boolean draft)
286         throws com.liferay.portal.SystemException;
287 
288     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
290         long companyId, java.util.Date displayDate, boolean draft, int start,
291         int end) throws com.liferay.portal.SystemException;
292 
293     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
295         long companyId, java.util.Date displayDate, boolean draft, int start,
296         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
297         throws com.liferay.portal.SystemException;
298 
299     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300     public com.liferay.portlet.blogs.model.BlogsEntry findByC_D_D_First(
301         long companyId, java.util.Date displayDate, boolean draft,
302         com.liferay.portal.kernel.util.OrderByComparator obc)
303         throws com.liferay.portal.SystemException,
304             com.liferay.portlet.blogs.NoSuchEntryException;
305 
306     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307     public com.liferay.portlet.blogs.model.BlogsEntry findByC_D_D_Last(
308         long companyId, java.util.Date displayDate, boolean draft,
309         com.liferay.portal.kernel.util.OrderByComparator obc)
310         throws com.liferay.portal.SystemException,
311             com.liferay.portlet.blogs.NoSuchEntryException;
312 
313     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
314     public com.liferay.portlet.blogs.model.BlogsEntry[] findByC_D_D_PrevAndNext(
315         long entryId, long companyId, java.util.Date displayDate,
316         boolean draft, com.liferay.portal.kernel.util.OrderByComparator obc)
317         throws com.liferay.portal.SystemException,
318             com.liferay.portlet.blogs.NoSuchEntryException;
319 
320     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
322         long groupId, long userId, java.util.Date displayDate, boolean draft)
323         throws com.liferay.portal.SystemException;
324 
325     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
327         long groupId, long userId, java.util.Date displayDate, boolean draft,
328         int start, int end) throws com.liferay.portal.SystemException;
329 
330     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
332         long groupId, long userId, java.util.Date displayDate, boolean draft,
333         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
334         throws com.liferay.portal.SystemException;
335 
336     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_D_D_First(
338         long groupId, long userId, java.util.Date displayDate, boolean draft,
339         com.liferay.portal.kernel.util.OrderByComparator obc)
340         throws com.liferay.portal.SystemException,
341             com.liferay.portlet.blogs.NoSuchEntryException;
342 
343     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_D_D_Last(
345         long groupId, long userId, java.util.Date displayDate, boolean draft,
346         com.liferay.portal.kernel.util.OrderByComparator obc)
347         throws com.liferay.portal.SystemException,
348             com.liferay.portlet.blogs.NoSuchEntryException;
349 
350     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351     public com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_D_D_PrevAndNext(
352         long entryId, long groupId, long userId, java.util.Date displayDate,
353         boolean draft, com.liferay.portal.kernel.util.OrderByComparator obc)
354         throws com.liferay.portal.SystemException,
355             com.liferay.portlet.blogs.NoSuchEntryException;
356 
357     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358     public java.util.List<Object> findWithDynamicQuery(
359         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
360         throws com.liferay.portal.SystemException;
361 
362     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363     public java.util.List<Object> findWithDynamicQuery(
364         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
365         int end) throws com.liferay.portal.SystemException;
366 
367     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll()
369         throws com.liferay.portal.SystemException;
370 
371     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
372     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll(
373         int start, int end) throws com.liferay.portal.SystemException;
374 
375     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll(
377         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
378         throws com.liferay.portal.SystemException;
379 
380     public void removeByUuid(java.lang.String uuid)
381         throws com.liferay.portal.SystemException;
382 
383     public void removeByUUID_G(java.lang.String uuid, long groupId)
384         throws com.liferay.portal.SystemException,
385             com.liferay.portlet.blogs.NoSuchEntryException;
386 
387     public void removeByGroupId(long groupId)
388         throws com.liferay.portal.SystemException;
389 
390     public void removeByCompanyId(long companyId)
391         throws com.liferay.portal.SystemException;
392 
393     public void removeByG_U(long groupId, long userId)
394         throws com.liferay.portal.SystemException;
395 
396     public void removeByG_UT(long groupId, java.lang.String urlTitle)
397         throws com.liferay.portal.SystemException,
398             com.liferay.portlet.blogs.NoSuchEntryException;
399 
400     public void removeByG_D_D(long groupId, java.util.Date displayDate,
401         boolean draft) throws com.liferay.portal.SystemException;
402 
403     public void removeByC_D_D(long companyId, java.util.Date displayDate,
404         boolean draft) throws com.liferay.portal.SystemException;
405 
406     public void removeByG_U_D_D(long groupId, long userId,
407         java.util.Date displayDate, boolean draft)
408         throws com.liferay.portal.SystemException;
409 
410     public void removeAll() throws com.liferay.portal.SystemException;
411 
412     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
413     public int countByUuid(java.lang.String uuid)
414         throws com.liferay.portal.SystemException;
415 
416     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
417     public int countByUUID_G(java.lang.String uuid, long groupId)
418         throws com.liferay.portal.SystemException;
419 
420     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421     public int countByGroupId(long groupId)
422         throws com.liferay.portal.SystemException;
423 
424     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425     public int countByCompanyId(long companyId)
426         throws com.liferay.portal.SystemException;
427 
428     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
429     public int countByG_U(long groupId, long userId)
430         throws com.liferay.portal.SystemException;
431 
432     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
433     public int countByG_UT(long groupId, java.lang.String urlTitle)
434         throws com.liferay.portal.SystemException;
435 
436     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437     public int countByG_D_D(long groupId, java.util.Date displayDate,
438         boolean draft) throws com.liferay.portal.SystemException;
439 
440     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441     public int countByC_D_D(long companyId, java.util.Date displayDate,
442         boolean draft) throws com.liferay.portal.SystemException;
443 
444     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
445     public int countByG_U_D_D(long groupId, long userId,
446         java.util.Date displayDate, boolean draft)
447         throws com.liferay.portal.SystemException;
448 
449     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450     public int countAll() throws com.liferay.portal.SystemException;
451 
452     public void registerListener(
453         com.liferay.portal.model.ModelListener listener);
454 
455     public void unregisterListener(
456         com.liferay.portal.model.ModelListener listener);
457 }