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