001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.announcements.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.announcements.model.AnnouncementsEntry;
020    
021    /**
022     * The persistence interface for the announcements entry service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see AnnouncementsEntryPersistenceImpl
030     * @see AnnouncementsEntryUtil
031     * @generated
032     */
033    public interface AnnouncementsEntryPersistence extends BasePersistence<AnnouncementsEntry> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link AnnouncementsEntryUtil} to access the announcements entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the announcements entry in the entity cache if it is enabled.
042            *
043            * @param announcementsEntry the announcements entry
044            */
045            public void cacheResult(
046                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry);
047    
048            /**
049            * Caches the announcements entries in the entity cache if it is enabled.
050            *
051            * @param announcementsEntries the announcements entries
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries);
055    
056            /**
057            * Creates a new announcements entry with the primary key. Does not add the announcements entry to the database.
058            *
059            * @param entryId the primary key for the new announcements entry
060            * @return the new announcements entry
061            */
062            public com.liferay.portlet.announcements.model.AnnouncementsEntry create(
063                    long entryId);
064    
065            /**
066            * Removes the announcements entry with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param entryId the primary key of the announcements entry
069            * @return the announcements entry that was removed
070            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
074                    long entryId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.announcements.NoSuchEntryException;
077    
078            public com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
079                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * Returns the announcements entry with the primary key or throws a {@link com.liferay.portlet.announcements.NoSuchEntryException} if it could not be found.
085            *
086            * @param entryId the primary key of the announcements entry
087            * @return the announcements entry
088            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
092                    long entryId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.announcements.NoSuchEntryException;
095    
096            /**
097            * Returns the announcements entry with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param entryId the primary key of the announcements entry
100            * @return the announcements entry, or <code>null</code> if a announcements entry with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
104                    long entryId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the announcements entries where uuid = &#63;.
109            *
110            * @param uuid the uuid
111            * @return the matching announcements entries
112            * @throws SystemException if a system exception occurred
113            */
114            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
115                    java.lang.String uuid)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the announcements entries where uuid = &#63;.
120            *
121            * <p>
122            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
123            * </p>
124            *
125            * @param uuid the uuid
126            * @param start the lower bound of the range of announcements entries
127            * @param end the upper bound of the range of announcements entries (not inclusive)
128            * @return the range of matching announcements entries
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
132                    java.lang.String uuid, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            /**
136            * Returns an ordered range of all the announcements entries where uuid = &#63;.
137            *
138            * <p>
139            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
140            * </p>
141            *
142            * @param uuid the uuid
143            * @param start the lower bound of the range of announcements entries
144            * @param end the upper bound of the range of announcements entries (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching announcements entries
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
150                    java.lang.String uuid, int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            /**
155            * Returns the first announcements entry in the ordered set where uuid = &#63;.
156            *
157            * @param uuid the uuid
158            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
159            * @return the first matching announcements entry
160            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First(
164                    java.lang.String uuid,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.announcements.NoSuchEntryException;
168    
169            /**
170            * Returns the first announcements entry in the ordered set where uuid = &#63;.
171            *
172            * @param uuid the uuid
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUuid_First(
178                    java.lang.String uuid,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            /**
183            * Returns the last announcements entry in the ordered set where uuid = &#63;.
184            *
185            * @param uuid the uuid
186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
187            * @return the last matching announcements entry
188            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
192                    java.lang.String uuid,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException,
195                            com.liferay.portlet.announcements.NoSuchEntryException;
196    
197            /**
198            * Returns the last announcements entry in the ordered set where uuid = &#63;.
199            *
200            * @param uuid the uuid
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUuid_Last(
206                    java.lang.String uuid,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Returns the announcements entries before and after the current announcements entry in the ordered set where uuid = &#63;.
212            *
213            * @param entryId the primary key of the current announcements entry
214            * @param uuid the uuid
215            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
216            * @return the previous, current, and next announcements entry
217            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
221                    long entryId, java.lang.String uuid,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.announcements.NoSuchEntryException;
225    
226            /**
227            * Returns all the announcements entries that the user has permission to view where uuid = &#63;.
228            *
229            * @param uuid the uuid
230            * @return the matching announcements entries that the user has permission to view
231            * @throws SystemException if a system exception occurred
232            */
233            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid(
234                    java.lang.String uuid)
235                    throws com.liferay.portal.kernel.exception.SystemException;
236    
237            /**
238            * Returns a range of all the announcements entries that the user has permission to view where uuid = &#63;.
239            *
240            * <p>
241            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
242            * </p>
243            *
244            * @param uuid the uuid
245            * @param start the lower bound of the range of announcements entries
246            * @param end the upper bound of the range of announcements entries (not inclusive)
247            * @return the range of matching announcements entries that the user has permission to view
248            * @throws SystemException if a system exception occurred
249            */
250            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid(
251                    java.lang.String uuid, int start, int end)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            /**
255            * Returns an ordered range of all the announcements entries that the user has permissions to view where uuid = &#63;.
256            *
257            * <p>
258            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
259            * </p>
260            *
261            * @param uuid the uuid
262            * @param start the lower bound of the range of announcements entries
263            * @param end the upper bound of the range of announcements entries (not inclusive)
264            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
265            * @return the ordered range of matching announcements entries that the user has permission to view
266            * @throws SystemException if a system exception occurred
267            */
268            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid(
269                    java.lang.String uuid, int start, int end,
270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271                    throws com.liferay.portal.kernel.exception.SystemException;
272    
273            /**
274            * Returns the announcements entries before and after the current announcements entry in the ordered set of announcements entries that the user has permission to view where uuid = &#63;.
275            *
276            * @param entryId the primary key of the current announcements entry
277            * @param uuid the uuid
278            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
279            * @return the previous, current, and next announcements entry
280            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
281            * @throws SystemException if a system exception occurred
282            */
283            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByUuid_PrevAndNext(
284                    long entryId, java.lang.String uuid,
285                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
286                    throws com.liferay.portal.kernel.exception.SystemException,
287                            com.liferay.portlet.announcements.NoSuchEntryException;
288    
289            /**
290            * Returns all the announcements entries where userId = &#63;.
291            *
292            * @param userId the user ID
293            * @return the matching announcements entries
294            * @throws SystemException if a system exception occurred
295            */
296            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
297                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
298    
299            /**
300            * Returns a range of all the announcements entries where userId = &#63;.
301            *
302            * <p>
303            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
304            * </p>
305            *
306            * @param userId the user ID
307            * @param start the lower bound of the range of announcements entries
308            * @param end the upper bound of the range of announcements entries (not inclusive)
309            * @return the range of matching announcements entries
310            * @throws SystemException if a system exception occurred
311            */
312            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
313                    long userId, int start, int end)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    
316            /**
317            * Returns an ordered range of all the announcements entries where userId = &#63;.
318            *
319            * <p>
320            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
321            * </p>
322            *
323            * @param userId the user ID
324            * @param start the lower bound of the range of announcements entries
325            * @param end the upper bound of the range of announcements entries (not inclusive)
326            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
327            * @return the ordered range of matching announcements entries
328            * @throws SystemException if a system exception occurred
329            */
330            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
331                    long userId, int start, int end,
332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333                    throws com.liferay.portal.kernel.exception.SystemException;
334    
335            /**
336            * Returns the first announcements entry in the ordered set where userId = &#63;.
337            *
338            * @param userId the user ID
339            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
340            * @return the first matching announcements entry
341            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
342            * @throws SystemException if a system exception occurred
343            */
344            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
345                    long userId,
346                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
347                    throws com.liferay.portal.kernel.exception.SystemException,
348                            com.liferay.portlet.announcements.NoSuchEntryException;
349    
350            /**
351            * Returns the first announcements entry in the ordered set where userId = &#63;.
352            *
353            * @param userId the user ID
354            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
355            * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
356            * @throws SystemException if a system exception occurred
357            */
358            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUserId_First(
359                    long userId,
360                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
361                    throws com.liferay.portal.kernel.exception.SystemException;
362    
363            /**
364            * Returns the last announcements entry in the ordered set where userId = &#63;.
365            *
366            * @param userId the user ID
367            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
368            * @return the last matching announcements entry
369            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
370            * @throws SystemException if a system exception occurred
371            */
372            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
373                    long userId,
374                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
375                    throws com.liferay.portal.kernel.exception.SystemException,
376                            com.liferay.portlet.announcements.NoSuchEntryException;
377    
378            /**
379            * Returns the last announcements entry in the ordered set where userId = &#63;.
380            *
381            * @param userId the user ID
382            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
383            * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
384            * @throws SystemException if a system exception occurred
385            */
386            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUserId_Last(
387                    long userId,
388                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            /**
392            * Returns the announcements entries before and after the current announcements entry in the ordered set where userId = &#63;.
393            *
394            * @param entryId the primary key of the current announcements entry
395            * @param userId the user ID
396            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
397            * @return the previous, current, and next announcements entry
398            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
399            * @throws SystemException if a system exception occurred
400            */
401            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
402                    long entryId, long userId,
403                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
404                    throws com.liferay.portal.kernel.exception.SystemException,
405                            com.liferay.portlet.announcements.NoSuchEntryException;
406    
407            /**
408            * Returns all the announcements entries that the user has permission to view where userId = &#63;.
409            *
410            * @param userId the user ID
411            * @return the matching announcements entries that the user has permission to view
412            * @throws SystemException if a system exception occurred
413            */
414            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId(
415                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
416    
417            /**
418            * Returns a range of all the announcements entries that the user has permission to view where userId = &#63;.
419            *
420            * <p>
421            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
422            * </p>
423            *
424            * @param userId the user ID
425            * @param start the lower bound of the range of announcements entries
426            * @param end the upper bound of the range of announcements entries (not inclusive)
427            * @return the range of matching announcements entries that the user has permission to view
428            * @throws SystemException if a system exception occurred
429            */
430            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId(
431                    long userId, int start, int end)
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            /**
435            * Returns an ordered range of all the announcements entries that the user has permissions to view where userId = &#63;.
436            *
437            * <p>
438            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
439            * </p>
440            *
441            * @param userId the user ID
442            * @param start the lower bound of the range of announcements entries
443            * @param end the upper bound of the range of announcements entries (not inclusive)
444            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
445            * @return the ordered range of matching announcements entries that the user has permission to view
446            * @throws SystemException if a system exception occurred
447            */
448            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId(
449                    long userId, int start, int end,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.kernel.exception.SystemException;
452    
453            /**
454            * Returns the announcements entries before and after the current announcements entry in the ordered set of announcements entries that the user has permission to view where userId = &#63;.
455            *
456            * @param entryId the primary key of the current announcements entry
457            * @param userId the user ID
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the previous, current, and next announcements entry
460            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
461            * @throws SystemException if a system exception occurred
462            */
463            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByUserId_PrevAndNext(
464                    long entryId, long userId,
465                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
466                    throws com.liferay.portal.kernel.exception.SystemException,
467                            com.liferay.portlet.announcements.NoSuchEntryException;
468    
469            /**
470            * Returns all the announcements entries where classNameId = &#63; and classPK = &#63;.
471            *
472            * @param classNameId the class name ID
473            * @param classPK the class p k
474            * @return the matching announcements entries
475            * @throws SystemException if a system exception occurred
476            */
477            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
478                    long classNameId, long classPK)
479                    throws com.liferay.portal.kernel.exception.SystemException;
480    
481            /**
482            * Returns a range of all the announcements entries where classNameId = &#63; and classPK = &#63;.
483            *
484            * <p>
485            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
486            * </p>
487            *
488            * @param classNameId the class name ID
489            * @param classPK the class p k
490            * @param start the lower bound of the range of announcements entries
491            * @param end the upper bound of the range of announcements entries (not inclusive)
492            * @return the range of matching announcements entries
493            * @throws SystemException if a system exception occurred
494            */
495            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
496                    long classNameId, long classPK, int start, int end)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            /**
500            * Returns an ordered range of all the announcements entries where classNameId = &#63; and classPK = &#63;.
501            *
502            * <p>
503            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
504            * </p>
505            *
506            * @param classNameId the class name ID
507            * @param classPK the class p k
508            * @param start the lower bound of the range of announcements entries
509            * @param end the upper bound of the range of announcements entries (not inclusive)
510            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
511            * @return the ordered range of matching announcements entries
512            * @throws SystemException if a system exception occurred
513            */
514            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
515                    long classNameId, long classPK, int start, int end,
516                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
517                    throws com.liferay.portal.kernel.exception.SystemException;
518    
519            /**
520            * Returns the first announcements entry in the ordered set where classNameId = &#63; and classPK = &#63;.
521            *
522            * @param classNameId the class name ID
523            * @param classPK the class p k
524            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
525            * @return the first matching announcements entry
526            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
527            * @throws SystemException if a system exception occurred
528            */
529            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
530                    long classNameId, long classPK,
531                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
532                    throws com.liferay.portal.kernel.exception.SystemException,
533                            com.liferay.portlet.announcements.NoSuchEntryException;
534    
535            /**
536            * Returns the first announcements entry in the ordered set where classNameId = &#63; and classPK = &#63;.
537            *
538            * @param classNameId the class name ID
539            * @param classPK the class p k
540            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
541            * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
542            * @throws SystemException if a system exception occurred
543            */
544            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_First(
545                    long classNameId, long classPK,
546                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    
549            /**
550            * Returns the last announcements entry in the ordered set where classNameId = &#63; and classPK = &#63;.
551            *
552            * @param classNameId the class name ID
553            * @param classPK the class p k
554            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
555            * @return the last matching announcements entry
556            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
560                    long classNameId, long classPK,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.kernel.exception.SystemException,
563                            com.liferay.portlet.announcements.NoSuchEntryException;
564    
565            /**
566            * Returns the last announcements entry in the ordered set where classNameId = &#63; and classPK = &#63;.
567            *
568            * @param classNameId the class name ID
569            * @param classPK the class p k
570            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
571            * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
572            * @throws SystemException if a system exception occurred
573            */
574            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_Last(
575                    long classNameId, long classPK,
576                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
577                    throws com.liferay.portal.kernel.exception.SystemException;
578    
579            /**
580            * Returns the announcements entries before and after the current announcements entry in the ordered set where classNameId = &#63; and classPK = &#63;.
581            *
582            * @param entryId the primary key of the current announcements entry
583            * @param classNameId the class name ID
584            * @param classPK the class p k
585            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
586            * @return the previous, current, and next announcements entry
587            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
588            * @throws SystemException if a system exception occurred
589            */
590            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
591                    long entryId, long classNameId, long classPK,
592                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
593                    throws com.liferay.portal.kernel.exception.SystemException,
594                            com.liferay.portlet.announcements.NoSuchEntryException;
595    
596            /**
597            * Returns all the announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63;.
598            *
599            * @param classNameId the class name ID
600            * @param classPK the class p k
601            * @return the matching announcements entries that the user has permission to view
602            * @throws SystemException if a system exception occurred
603            */
604            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C(
605                    long classNameId, long classPK)
606                    throws com.liferay.portal.kernel.exception.SystemException;
607    
608            /**
609            * Returns a range of all the announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63;.
610            *
611            * <p>
612            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
613            * </p>
614            *
615            * @param classNameId the class name ID
616            * @param classPK the class p k
617            * @param start the lower bound of the range of announcements entries
618            * @param end the upper bound of the range of announcements entries (not inclusive)
619            * @return the range of matching announcements entries that the user has permission to view
620            * @throws SystemException if a system exception occurred
621            */
622            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C(
623                    long classNameId, long classPK, int start, int end)
624                    throws com.liferay.portal.kernel.exception.SystemException;
625    
626            /**
627            * Returns an ordered range of all the announcements entries that the user has permissions to view where classNameId = &#63; and classPK = &#63;.
628            *
629            * <p>
630            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
631            * </p>
632            *
633            * @param classNameId the class name ID
634            * @param classPK the class p k
635            * @param start the lower bound of the range of announcements entries
636            * @param end the upper bound of the range of announcements entries (not inclusive)
637            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
638            * @return the ordered range of matching announcements entries that the user has permission to view
639            * @throws SystemException if a system exception occurred
640            */
641            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C(
642                    long classNameId, long classPK, int start, int end,
643                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
644                    throws com.liferay.portal.kernel.exception.SystemException;
645    
646            /**
647            * Returns the announcements entries before and after the current announcements entry in the ordered set of announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63;.
648            *
649            * @param entryId the primary key of the current announcements entry
650            * @param classNameId the class name ID
651            * @param classPK the class p k
652            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
653            * @return the previous, current, and next announcements entry
654            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
655            * @throws SystemException if a system exception occurred
656            */
657            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByC_C_PrevAndNext(
658                    long entryId, long classNameId, long classPK,
659                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
660                    throws com.liferay.portal.kernel.exception.SystemException,
661                            com.liferay.portlet.announcements.NoSuchEntryException;
662    
663            /**
664            * Returns all the announcements entries where classNameId = &#63; and classPK = &#63; and alert = &#63;.
665            *
666            * @param classNameId the class name ID
667            * @param classPK the class p k
668            * @param alert the alert
669            * @return the matching announcements entries
670            * @throws SystemException if a system exception occurred
671            */
672            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
673                    long classNameId, long classPK, boolean alert)
674                    throws com.liferay.portal.kernel.exception.SystemException;
675    
676            /**
677            * Returns a range of all the announcements entries where classNameId = &#63; and classPK = &#63; and alert = &#63;.
678            *
679            * <p>
680            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
681            * </p>
682            *
683            * @param classNameId the class name ID
684            * @param classPK the class p k
685            * @param alert the alert
686            * @param start the lower bound of the range of announcements entries
687            * @param end the upper bound of the range of announcements entries (not inclusive)
688            * @return the range of matching announcements entries
689            * @throws SystemException if a system exception occurred
690            */
691            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
692                    long classNameId, long classPK, boolean alert, int start, int end)
693                    throws com.liferay.portal.kernel.exception.SystemException;
694    
695            /**
696            * Returns an ordered range of all the announcements entries where classNameId = &#63; and classPK = &#63; and alert = &#63;.
697            *
698            * <p>
699            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
700            * </p>
701            *
702            * @param classNameId the class name ID
703            * @param classPK the class p k
704            * @param alert the alert
705            * @param start the lower bound of the range of announcements entries
706            * @param end the upper bound of the range of announcements entries (not inclusive)
707            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
708            * @return the ordered range of matching announcements entries
709            * @throws SystemException if a system exception occurred
710            */
711            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
712                    long classNameId, long classPK, boolean alert, int start, int end,
713                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
714                    throws com.liferay.portal.kernel.exception.SystemException;
715    
716            /**
717            * Returns the first announcements entry in the ordered set where classNameId = &#63; and classPK = &#63; and alert = &#63;.
718            *
719            * @param classNameId the class name ID
720            * @param classPK the class p k
721            * @param alert the alert
722            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
723            * @return the first matching announcements entry
724            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
725            * @throws SystemException if a system exception occurred
726            */
727            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
728                    long classNameId, long classPK, boolean alert,
729                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
730                    throws com.liferay.portal.kernel.exception.SystemException,
731                            com.liferay.portlet.announcements.NoSuchEntryException;
732    
733            /**
734            * Returns the first announcements entry in the ordered set where classNameId = &#63; and classPK = &#63; and alert = &#63;.
735            *
736            * @param classNameId the class name ID
737            * @param classPK the class p k
738            * @param alert the alert
739            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
740            * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
741            * @throws SystemException if a system exception occurred
742            */
743            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_A_First(
744                    long classNameId, long classPK, boolean alert,
745                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
746                    throws com.liferay.portal.kernel.exception.SystemException;
747    
748            /**
749            * Returns the last announcements entry in the ordered set where classNameId = &#63; and classPK = &#63; and alert = &#63;.
750            *
751            * @param classNameId the class name ID
752            * @param classPK the class p k
753            * @param alert the alert
754            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
755            * @return the last matching announcements entry
756            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
757            * @throws SystemException if a system exception occurred
758            */
759            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
760                    long classNameId, long classPK, boolean alert,
761                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
762                    throws com.liferay.portal.kernel.exception.SystemException,
763                            com.liferay.portlet.announcements.NoSuchEntryException;
764    
765            /**
766            * Returns the last announcements entry in the ordered set where classNameId = &#63; and classPK = &#63; and alert = &#63;.
767            *
768            * @param classNameId the class name ID
769            * @param classPK the class p k
770            * @param alert the alert
771            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
772            * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
773            * @throws SystemException if a system exception occurred
774            */
775            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_A_Last(
776                    long classNameId, long classPK, boolean alert,
777                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
778                    throws com.liferay.portal.kernel.exception.SystemException;
779    
780            /**
781            * Returns the announcements entries before and after the current announcements entry in the ordered set where classNameId = &#63; and classPK = &#63; and alert = &#63;.
782            *
783            * @param entryId the primary key of the current announcements entry
784            * @param classNameId the class name ID
785            * @param classPK the class p k
786            * @param alert the alert
787            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
788            * @return the previous, current, and next announcements entry
789            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
790            * @throws SystemException if a system exception occurred
791            */
792            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
793                    long entryId, long classNameId, long classPK, boolean alert,
794                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
795                    throws com.liferay.portal.kernel.exception.SystemException,
796                            com.liferay.portlet.announcements.NoSuchEntryException;
797    
798            /**
799            * Returns all the announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63; and alert = &#63;.
800            *
801            * @param classNameId the class name ID
802            * @param classPK the class p k
803            * @param alert the alert
804            * @return the matching announcements entries that the user has permission to view
805            * @throws SystemException if a system exception occurred
806            */
807            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A(
808                    long classNameId, long classPK, boolean alert)
809                    throws com.liferay.portal.kernel.exception.SystemException;
810    
811            /**
812            * Returns a range of all the announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63; and alert = &#63;.
813            *
814            * <p>
815            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
816            * </p>
817            *
818            * @param classNameId the class name ID
819            * @param classPK the class p k
820            * @param alert the alert
821            * @param start the lower bound of the range of announcements entries
822            * @param end the upper bound of the range of announcements entries (not inclusive)
823            * @return the range of matching announcements entries that the user has permission to view
824            * @throws SystemException if a system exception occurred
825            */
826            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A(
827                    long classNameId, long classPK, boolean alert, int start, int end)
828                    throws com.liferay.portal.kernel.exception.SystemException;
829    
830            /**
831            * Returns an ordered range of all the announcements entries that the user has permissions to view where classNameId = &#63; and classPK = &#63; and alert = &#63;.
832            *
833            * <p>
834            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
835            * </p>
836            *
837            * @param classNameId the class name ID
838            * @param classPK the class p k
839            * @param alert the alert
840            * @param start the lower bound of the range of announcements entries
841            * @param end the upper bound of the range of announcements entries (not inclusive)
842            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
843            * @return the ordered range of matching announcements entries that the user has permission to view
844            * @throws SystemException if a system exception occurred
845            */
846            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A(
847                    long classNameId, long classPK, boolean alert, int start, int end,
848                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
849                    throws com.liferay.portal.kernel.exception.SystemException;
850    
851            /**
852            * Returns the announcements entries before and after the current announcements entry in the ordered set of announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63; and alert = &#63;.
853            *
854            * @param entryId the primary key of the current announcements entry
855            * @param classNameId the class name ID
856            * @param classPK the class p k
857            * @param alert the alert
858            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
859            * @return the previous, current, and next announcements entry
860            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
861            * @throws SystemException if a system exception occurred
862            */
863            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByC_C_A_PrevAndNext(
864                    long entryId, long classNameId, long classPK, boolean alert,
865                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
866                    throws com.liferay.portal.kernel.exception.SystemException,
867                            com.liferay.portlet.announcements.NoSuchEntryException;
868    
869            /**
870            * Returns all the announcements entries.
871            *
872            * @return the announcements entries
873            * @throws SystemException if a system exception occurred
874            */
875            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
876                    throws com.liferay.portal.kernel.exception.SystemException;
877    
878            /**
879            * Returns a range of all the announcements entries.
880            *
881            * <p>
882            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
883            * </p>
884            *
885            * @param start the lower bound of the range of announcements entries
886            * @param end the upper bound of the range of announcements entries (not inclusive)
887            * @return the range of announcements entries
888            * @throws SystemException if a system exception occurred
889            */
890            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
891                    int start, int end)
892                    throws com.liferay.portal.kernel.exception.SystemException;
893    
894            /**
895            * Returns an ordered range of all the announcements entries.
896            *
897            * <p>
898            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
899            * </p>
900            *
901            * @param start the lower bound of the range of announcements entries
902            * @param end the upper bound of the range of announcements entries (not inclusive)
903            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
904            * @return the ordered range of announcements entries
905            * @throws SystemException if a system exception occurred
906            */
907            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
908                    int start, int end,
909                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
910                    throws com.liferay.portal.kernel.exception.SystemException;
911    
912            /**
913            * Removes all the announcements entries where uuid = &#63; from the database.
914            *
915            * @param uuid the uuid
916            * @throws SystemException if a system exception occurred
917            */
918            public void removeByUuid(java.lang.String uuid)
919                    throws com.liferay.portal.kernel.exception.SystemException;
920    
921            /**
922            * Removes all the announcements entries where userId = &#63; from the database.
923            *
924            * @param userId the user ID
925            * @throws SystemException if a system exception occurred
926            */
927            public void removeByUserId(long userId)
928                    throws com.liferay.portal.kernel.exception.SystemException;
929    
930            /**
931            * Removes all the announcements entries where classNameId = &#63; and classPK = &#63; from the database.
932            *
933            * @param classNameId the class name ID
934            * @param classPK the class p k
935            * @throws SystemException if a system exception occurred
936            */
937            public void removeByC_C(long classNameId, long classPK)
938                    throws com.liferay.portal.kernel.exception.SystemException;
939    
940            /**
941            * Removes all the announcements entries where classNameId = &#63; and classPK = &#63; and alert = &#63; from the database.
942            *
943            * @param classNameId the class name ID
944            * @param classPK the class p k
945            * @param alert the alert
946            * @throws SystemException if a system exception occurred
947            */
948            public void removeByC_C_A(long classNameId, long classPK, boolean alert)
949                    throws com.liferay.portal.kernel.exception.SystemException;
950    
951            /**
952            * Removes all the announcements entries from the database.
953            *
954            * @throws SystemException if a system exception occurred
955            */
956            public void removeAll()
957                    throws com.liferay.portal.kernel.exception.SystemException;
958    
959            /**
960            * Returns the number of announcements entries where uuid = &#63;.
961            *
962            * @param uuid the uuid
963            * @return the number of matching announcements entries
964            * @throws SystemException if a system exception occurred
965            */
966            public int countByUuid(java.lang.String uuid)
967                    throws com.liferay.portal.kernel.exception.SystemException;
968    
969            /**
970            * Returns the number of announcements entries that the user has permission to view where uuid = &#63;.
971            *
972            * @param uuid the uuid
973            * @return the number of matching announcements entries that the user has permission to view
974            * @throws SystemException if a system exception occurred
975            */
976            public int filterCountByUuid(java.lang.String uuid)
977                    throws com.liferay.portal.kernel.exception.SystemException;
978    
979            /**
980            * Returns the number of announcements entries where userId = &#63;.
981            *
982            * @param userId the user ID
983            * @return the number of matching announcements entries
984            * @throws SystemException if a system exception occurred
985            */
986            public int countByUserId(long userId)
987                    throws com.liferay.portal.kernel.exception.SystemException;
988    
989            /**
990            * Returns the number of announcements entries that the user has permission to view where userId = &#63;.
991            *
992            * @param userId the user ID
993            * @return the number of matching announcements entries that the user has permission to view
994            * @throws SystemException if a system exception occurred
995            */
996            public int filterCountByUserId(long userId)
997                    throws com.liferay.portal.kernel.exception.SystemException;
998    
999            /**
1000            * Returns the number of announcements entries where classNameId = &#63; and classPK = &#63;.
1001            *
1002            * @param classNameId the class name ID
1003            * @param classPK the class p k
1004            * @return the number of matching announcements entries
1005            * @throws SystemException if a system exception occurred
1006            */
1007            public int countByC_C(long classNameId, long classPK)
1008                    throws com.liferay.portal.kernel.exception.SystemException;
1009    
1010            /**
1011            * Returns the number of announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63;.
1012            *
1013            * @param classNameId the class name ID
1014            * @param classPK the class p k
1015            * @return the number of matching announcements entries that the user has permission to view
1016            * @throws SystemException if a system exception occurred
1017            */
1018            public int filterCountByC_C(long classNameId, long classPK)
1019                    throws com.liferay.portal.kernel.exception.SystemException;
1020    
1021            /**
1022            * Returns the number of announcements entries where classNameId = &#63; and classPK = &#63; and alert = &#63;.
1023            *
1024            * @param classNameId the class name ID
1025            * @param classPK the class p k
1026            * @param alert the alert
1027            * @return the number of matching announcements entries
1028            * @throws SystemException if a system exception occurred
1029            */
1030            public int countByC_C_A(long classNameId, long classPK, boolean alert)
1031                    throws com.liferay.portal.kernel.exception.SystemException;
1032    
1033            /**
1034            * Returns the number of announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63; and alert = &#63;.
1035            *
1036            * @param classNameId the class name ID
1037            * @param classPK the class p k
1038            * @param alert the alert
1039            * @return the number of matching announcements entries that the user has permission to view
1040            * @throws SystemException if a system exception occurred
1041            */
1042            public int filterCountByC_C_A(long classNameId, long classPK, boolean alert)
1043                    throws com.liferay.portal.kernel.exception.SystemException;
1044    
1045            /**
1046            * Returns the number of announcements entries.
1047            *
1048            * @return the number of announcements entries
1049            * @throws SystemException if a system exception occurred
1050            */
1051            public int countAll()
1052                    throws com.liferay.portal.kernel.exception.SystemException;
1053    }