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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.announcements.model.AnnouncementsEntry;
022    
023    /**
024     * The persistence interface for the announcements entry service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see AnnouncementsEntryPersistenceImpl
032     * @see AnnouncementsEntryUtil
033     * @generated
034     */
035    @ProviderType
036    public interface AnnouncementsEntryPersistence extends BasePersistence<AnnouncementsEntry> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * 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.
041             */
042    
043            /**
044            * Returns all the announcements entries where uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching announcements entries
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
051                    java.lang.String uuid)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the announcements entries where uuid = &#63;.
056            *
057            * <p>
058            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
059            * </p>
060            *
061            * @param uuid the uuid
062            * @param start the lower bound of the range of announcements entries
063            * @param end the upper bound of the range of announcements entries (not inclusive)
064            * @return the range of matching announcements entries
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
068                    java.lang.String uuid, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the announcements entries where uuid = &#63;.
073            *
074            * <p>
075            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
076            * </p>
077            *
078            * @param uuid the uuid
079            * @param start the lower bound of the range of announcements entries
080            * @param end the upper bound of the range of announcements entries (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching announcements entries
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid(
086                    java.lang.String uuid, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the first announcements entry in the ordered set where uuid = &#63;.
092            *
093            * @param uuid the uuid
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching announcements entry
096            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First(
100                    java.lang.String uuid,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.announcements.NoSuchEntryException;
104    
105            /**
106            * Returns the first announcements entry in the ordered set where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUuid_First(
114                    java.lang.String uuid,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last announcements entry in the ordered set where uuid = &#63;.
120            *
121            * @param uuid the uuid
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching announcements entry
124            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last(
128                    java.lang.String uuid,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.announcements.NoSuchEntryException;
132    
133            /**
134            * Returns the last announcements entry in the ordered set where uuid = &#63;.
135            *
136            * @param uuid the uuid
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUuid_Last(
142                    java.lang.String uuid,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the announcements entries before and after the current announcements entry in the ordered set where uuid = &#63;.
148            *
149            * @param entryId the primary key of the current announcements entry
150            * @param uuid the uuid
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next announcements entry
153            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext(
157                    long entryId, java.lang.String uuid,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.announcements.NoSuchEntryException;
161    
162            /**
163            * Returns all the announcements entries that the user has permission to view where uuid = &#63;.
164            *
165            * @param uuid the uuid
166            * @return the matching announcements entries that the user has permission to view
167            * @throws SystemException if a system exception occurred
168            */
169            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid(
170                    java.lang.String uuid)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            /**
174            * Returns a range of all the announcements entries that the user has permission to view where uuid = &#63;.
175            *
176            * <p>
177            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
178            * </p>
179            *
180            * @param uuid the uuid
181            * @param start the lower bound of the range of announcements entries
182            * @param end the upper bound of the range of announcements entries (not inclusive)
183            * @return the range of matching announcements entries that the user has permission to view
184            * @throws SystemException if a system exception occurred
185            */
186            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid(
187                    java.lang.String uuid, int start, int end)
188                    throws com.liferay.portal.kernel.exception.SystemException;
189    
190            /**
191            * Returns an ordered range of all the announcements entries that the user has permissions to view where uuid = &#63;.
192            *
193            * <p>
194            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
195            * </p>
196            *
197            * @param uuid the uuid
198            * @param start the lower bound of the range of announcements entries
199            * @param end the upper bound of the range of announcements entries (not inclusive)
200            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
201            * @return the ordered range of matching announcements entries that the user has permission to view
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid(
205                    java.lang.String uuid, int start, int end,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * 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;.
211            *
212            * @param entryId the primary key of the current announcements entry
213            * @param uuid the uuid
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the previous, current, and next announcements entry
216            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByUuid_PrevAndNext(
220                    long entryId, java.lang.String uuid,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.announcements.NoSuchEntryException;
224    
225            /**
226            * Removes all the announcements entries where uuid = &#63; from the database.
227            *
228            * @param uuid the uuid
229            * @throws SystemException if a system exception occurred
230            */
231            public void removeByUuid(java.lang.String uuid)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Returns the number of announcements entries where uuid = &#63;.
236            *
237            * @param uuid the uuid
238            * @return the number of matching announcements entries
239            * @throws SystemException if a system exception occurred
240            */
241            public int countByUuid(java.lang.String uuid)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns the number of announcements entries that the user has permission to view where uuid = &#63;.
246            *
247            * @param uuid the uuid
248            * @return the number of matching announcements entries that the user has permission to view
249            * @throws SystemException if a system exception occurred
250            */
251            public int filterCountByUuid(java.lang.String uuid)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            /**
255            * Returns all the announcements entries where uuid = &#63; and companyId = &#63;.
256            *
257            * @param uuid the uuid
258            * @param companyId the company ID
259            * @return the matching announcements entries
260            * @throws SystemException if a system exception occurred
261            */
262            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid_C(
263                    java.lang.String uuid, long companyId)
264                    throws com.liferay.portal.kernel.exception.SystemException;
265    
266            /**
267            * Returns a range of all the announcements entries where uuid = &#63; and companyId = &#63;.
268            *
269            * <p>
270            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
271            * </p>
272            *
273            * @param uuid the uuid
274            * @param companyId the company ID
275            * @param start the lower bound of the range of announcements entries
276            * @param end the upper bound of the range of announcements entries (not inclusive)
277            * @return the range of matching announcements entries
278            * @throws SystemException if a system exception occurred
279            */
280            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid_C(
281                    java.lang.String uuid, long companyId, int start, int end)
282                    throws com.liferay.portal.kernel.exception.SystemException;
283    
284            /**
285            * Returns an ordered range of all the announcements entries where uuid = &#63; and companyId = &#63;.
286            *
287            * <p>
288            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
289            * </p>
290            *
291            * @param uuid the uuid
292            * @param companyId the company ID
293            * @param start the lower bound of the range of announcements entries
294            * @param end the upper bound of the range of announcements entries (not inclusive)
295            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
296            * @return the ordered 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> findByUuid_C(
300                    java.lang.String uuid, long companyId, int start, int end,
301                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302                    throws com.liferay.portal.kernel.exception.SystemException;
303    
304            /**
305            * Returns the first announcements entry in the ordered set where uuid = &#63; and companyId = &#63;.
306            *
307            * @param uuid the uuid
308            * @param companyId the company ID
309            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
310            * @return the first matching announcements entry
311            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
312            * @throws SystemException if a system exception occurred
313            */
314            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_C_First(
315                    java.lang.String uuid, long companyId,
316                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317                    throws com.liferay.portal.kernel.exception.SystemException,
318                            com.liferay.portlet.announcements.NoSuchEntryException;
319    
320            /**
321            * Returns the first announcements entry in the ordered set where uuid = &#63; and companyId = &#63;.
322            *
323            * @param uuid the uuid
324            * @param companyId the company ID
325            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
326            * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
327            * @throws SystemException if a system exception occurred
328            */
329            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUuid_C_First(
330                    java.lang.String uuid, long companyId,
331                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
332                    throws com.liferay.portal.kernel.exception.SystemException;
333    
334            /**
335            * Returns the last announcements entry in the ordered set where uuid = &#63; and companyId = &#63;.
336            *
337            * @param uuid the uuid
338            * @param companyId the company ID
339            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
340            * @return the last 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 findByUuid_C_Last(
345                    java.lang.String uuid, long companyId,
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 last announcements entry in the ordered set where uuid = &#63; and companyId = &#63;.
352            *
353            * @param uuid the uuid
354            * @param companyId the company ID
355            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
356            * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
357            * @throws SystemException if a system exception occurred
358            */
359            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUuid_C_Last(
360                    java.lang.String uuid, long companyId,
361                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Returns the announcements entries before and after the current announcements entry in the ordered set where uuid = &#63; and companyId = &#63;.
366            *
367            * @param entryId the primary key of the current announcements entry
368            * @param uuid the uuid
369            * @param companyId the company ID
370            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
371            * @return the previous, current, and next announcements entry
372            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
373            * @throws SystemException if a system exception occurred
374            */
375            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_C_PrevAndNext(
376                    long entryId, java.lang.String uuid, long companyId,
377                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
378                    throws com.liferay.portal.kernel.exception.SystemException,
379                            com.liferay.portlet.announcements.NoSuchEntryException;
380    
381            /**
382            * Returns all the announcements entries that the user has permission to view where uuid = &#63; and companyId = &#63;.
383            *
384            * @param uuid the uuid
385            * @param companyId the company ID
386            * @return the matching announcements entries that the user has permission to view
387            * @throws SystemException if a system exception occurred
388            */
389            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid_C(
390                    java.lang.String uuid, long companyId)
391                    throws com.liferay.portal.kernel.exception.SystemException;
392    
393            /**
394            * Returns a range of all the announcements entries that the user has permission to view where uuid = &#63; and companyId = &#63;.
395            *
396            * <p>
397            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
398            * </p>
399            *
400            * @param uuid the uuid
401            * @param companyId the company ID
402            * @param start the lower bound of the range of announcements entries
403            * @param end the upper bound of the range of announcements entries (not inclusive)
404            * @return the range of matching announcements entries that the user has permission to view
405            * @throws SystemException if a system exception occurred
406            */
407            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid_C(
408                    java.lang.String uuid, long companyId, int start, int end)
409                    throws com.liferay.portal.kernel.exception.SystemException;
410    
411            /**
412            * Returns an ordered range of all the announcements entries that the user has permissions to view where uuid = &#63; and companyId = &#63;.
413            *
414            * <p>
415            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
416            * </p>
417            *
418            * @param uuid the uuid
419            * @param companyId the company ID
420            * @param start the lower bound of the range of announcements entries
421            * @param end the upper bound of the range of announcements entries (not inclusive)
422            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
423            * @return the ordered range of matching announcements entries that the user has permission to view
424            * @throws SystemException if a system exception occurred
425            */
426            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid_C(
427                    java.lang.String uuid, long companyId, int start, int end,
428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * 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; and companyId = &#63;.
433            *
434            * @param entryId the primary key of the current announcements entry
435            * @param uuid the uuid
436            * @param companyId the company ID
437            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
438            * @return the previous, current, and next announcements entry
439            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
440            * @throws SystemException if a system exception occurred
441            */
442            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByUuid_C_PrevAndNext(
443                    long entryId, java.lang.String uuid, long companyId,
444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
445                    throws com.liferay.portal.kernel.exception.SystemException,
446                            com.liferay.portlet.announcements.NoSuchEntryException;
447    
448            /**
449            * Removes all the announcements entries where uuid = &#63; and companyId = &#63; from the database.
450            *
451            * @param uuid the uuid
452            * @param companyId the company ID
453            * @throws SystemException if a system exception occurred
454            */
455            public void removeByUuid_C(java.lang.String uuid, long companyId)
456                    throws com.liferay.portal.kernel.exception.SystemException;
457    
458            /**
459            * Returns the number of announcements entries where uuid = &#63; and companyId = &#63;.
460            *
461            * @param uuid the uuid
462            * @param companyId the company ID
463            * @return the number of matching announcements entries
464            * @throws SystemException if a system exception occurred
465            */
466            public int countByUuid_C(java.lang.String uuid, long companyId)
467                    throws com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Returns the number of announcements entries that the user has permission to view where uuid = &#63; and companyId = &#63;.
471            *
472            * @param uuid the uuid
473            * @param companyId the company ID
474            * @return the number of matching announcements entries that the user has permission to view
475            * @throws SystemException if a system exception occurred
476            */
477            public int filterCountByUuid_C(java.lang.String uuid, long companyId)
478                    throws com.liferay.portal.kernel.exception.SystemException;
479    
480            /**
481            * Returns all the announcements entries where userId = &#63;.
482            *
483            * @param userId the user ID
484            * @return the matching announcements entries
485            * @throws SystemException if a system exception occurred
486            */
487            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
488                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
489    
490            /**
491            * Returns a range of all the announcements entries where userId = &#63;.
492            *
493            * <p>
494            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
495            * </p>
496            *
497            * @param userId the user ID
498            * @param start the lower bound of the range of announcements entries
499            * @param end the upper bound of the range of announcements entries (not inclusive)
500            * @return the range of matching announcements entries
501            * @throws SystemException if a system exception occurred
502            */
503            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
504                    long userId, int start, int end)
505                    throws com.liferay.portal.kernel.exception.SystemException;
506    
507            /**
508            * Returns an ordered range of all the announcements entries where userId = &#63;.
509            *
510            * <p>
511            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
512            * </p>
513            *
514            * @param userId the user ID
515            * @param start the lower bound of the range of announcements entries
516            * @param end the upper bound of the range of announcements entries (not inclusive)
517            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
518            * @return the ordered range of matching announcements entries
519            * @throws SystemException if a system exception occurred
520            */
521            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId(
522                    long userId, int start, int end,
523                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
524                    throws com.liferay.portal.kernel.exception.SystemException;
525    
526            /**
527            * Returns the first announcements entry in the ordered set where userId = &#63;.
528            *
529            * @param userId the user ID
530            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
531            * @return the first matching announcements entry
532            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
533            * @throws SystemException if a system exception occurred
534            */
535            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First(
536                    long userId,
537                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
538                    throws com.liferay.portal.kernel.exception.SystemException,
539                            com.liferay.portlet.announcements.NoSuchEntryException;
540    
541            /**
542            * Returns the first announcements entry in the ordered set where userId = &#63;.
543            *
544            * @param userId the user ID
545            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
546            * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
547            * @throws SystemException if a system exception occurred
548            */
549            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUserId_First(
550                    long userId,
551                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Returns the last announcements entry in the ordered set where userId = &#63;.
556            *
557            * @param userId the user ID
558            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
559            * @return the last matching announcements entry
560            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
561            * @throws SystemException if a system exception occurred
562            */
563            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last(
564                    long userId,
565                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
566                    throws com.liferay.portal.kernel.exception.SystemException,
567                            com.liferay.portlet.announcements.NoSuchEntryException;
568    
569            /**
570            * Returns the last announcements entry in the ordered set where userId = &#63;.
571            *
572            * @param userId the user ID
573            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
574            * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
575            * @throws SystemException if a system exception occurred
576            */
577            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUserId_Last(
578                    long userId,
579                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
580                    throws com.liferay.portal.kernel.exception.SystemException;
581    
582            /**
583            * Returns the announcements entries before and after the current announcements entry in the ordered set where userId = &#63;.
584            *
585            * @param entryId the primary key of the current announcements entry
586            * @param userId the user ID
587            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
588            * @return the previous, current, and next announcements entry
589            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
590            * @throws SystemException if a system exception occurred
591            */
592            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext(
593                    long entryId, long userId,
594                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
595                    throws com.liferay.portal.kernel.exception.SystemException,
596                            com.liferay.portlet.announcements.NoSuchEntryException;
597    
598            /**
599            * Returns all the announcements entries that the user has permission to view where userId = &#63;.
600            *
601            * @param userId the user ID
602            * @return the matching announcements entries that the user has permission to view
603            * @throws SystemException if a system exception occurred
604            */
605            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId(
606                    long userId) 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 userId = &#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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
613            * </p>
614            *
615            * @param userId the user ID
616            * @param start the lower bound of the range of announcements entries
617            * @param end the upper bound of the range of announcements entries (not inclusive)
618            * @return the range of matching announcements entries that the user has permission to view
619            * @throws SystemException if a system exception occurred
620            */
621            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId(
622                    long userId, int start, int end)
623                    throws com.liferay.portal.kernel.exception.SystemException;
624    
625            /**
626            * Returns an ordered range of all the announcements entries that the user has permissions to view where userId = &#63;.
627            *
628            * <p>
629            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
630            * </p>
631            *
632            * @param userId the user ID
633            * @param start the lower bound of the range of announcements entries
634            * @param end the upper bound of the range of announcements entries (not inclusive)
635            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
636            * @return the ordered range of matching announcements entries that the user has permission to view
637            * @throws SystemException if a system exception occurred
638            */
639            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId(
640                    long userId, int start, int end,
641                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
642                    throws com.liferay.portal.kernel.exception.SystemException;
643    
644            /**
645            * 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;.
646            *
647            * @param entryId the primary key of the current announcements entry
648            * @param userId the user ID
649            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
650            * @return the previous, current, and next announcements entry
651            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
652            * @throws SystemException if a system exception occurred
653            */
654            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByUserId_PrevAndNext(
655                    long entryId, long userId,
656                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
657                    throws com.liferay.portal.kernel.exception.SystemException,
658                            com.liferay.portlet.announcements.NoSuchEntryException;
659    
660            /**
661            * Removes all the announcements entries where userId = &#63; from the database.
662            *
663            * @param userId the user ID
664            * @throws SystemException if a system exception occurred
665            */
666            public void removeByUserId(long userId)
667                    throws com.liferay.portal.kernel.exception.SystemException;
668    
669            /**
670            * Returns the number of announcements entries where userId = &#63;.
671            *
672            * @param userId the user ID
673            * @return the number of matching announcements entries
674            * @throws SystemException if a system exception occurred
675            */
676            public int countByUserId(long userId)
677                    throws com.liferay.portal.kernel.exception.SystemException;
678    
679            /**
680            * Returns the number of announcements entries that the user has permission to view where userId = &#63;.
681            *
682            * @param userId the user ID
683            * @return the number of matching announcements entries that the user has permission to view
684            * @throws SystemException if a system exception occurred
685            */
686            public int filterCountByUserId(long userId)
687                    throws com.liferay.portal.kernel.exception.SystemException;
688    
689            /**
690            * Returns all the announcements entries where classNameId = &#63; and classPK = &#63;.
691            *
692            * @param classNameId the class name ID
693            * @param classPK the class p k
694            * @return the matching announcements entries
695            * @throws SystemException if a system exception occurred
696            */
697            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
698                    long classNameId, long classPK)
699                    throws com.liferay.portal.kernel.exception.SystemException;
700    
701            /**
702            * Returns a range of all the announcements entries where classNameId = &#63; and classPK = &#63;.
703            *
704            * <p>
705            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
706            * </p>
707            *
708            * @param classNameId the class name ID
709            * @param classPK the class p k
710            * @param start the lower bound of the range of announcements entries
711            * @param end the upper bound of the range of announcements entries (not inclusive)
712            * @return the range of matching announcements entries
713            * @throws SystemException if a system exception occurred
714            */
715            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
716                    long classNameId, long classPK, int start, int end)
717                    throws com.liferay.portal.kernel.exception.SystemException;
718    
719            /**
720            * Returns an ordered range of all the announcements entries where classNameId = &#63; and classPK = &#63;.
721            *
722            * <p>
723            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
724            * </p>
725            *
726            * @param classNameId the class name ID
727            * @param classPK the class p k
728            * @param start the lower bound of the range of announcements entries
729            * @param end the upper bound of the range of announcements entries (not inclusive)
730            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
731            * @return the ordered range of matching announcements entries
732            * @throws SystemException if a system exception occurred
733            */
734            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C(
735                    long classNameId, long classPK, int start, int end,
736                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
737                    throws com.liferay.portal.kernel.exception.SystemException;
738    
739            /**
740            * Returns the first announcements entry in the ordered set where classNameId = &#63; and classPK = &#63;.
741            *
742            * @param classNameId the class name ID
743            * @param classPK the class p k
744            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
745            * @return the first matching announcements entry
746            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
747            * @throws SystemException if a system exception occurred
748            */
749            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First(
750                    long classNameId, long classPK,
751                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
752                    throws com.liferay.portal.kernel.exception.SystemException,
753                            com.liferay.portlet.announcements.NoSuchEntryException;
754    
755            /**
756            * Returns the first announcements entry in the ordered set where classNameId = &#63; and classPK = &#63;.
757            *
758            * @param classNameId the class name ID
759            * @param classPK the class p k
760            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
761            * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
762            * @throws SystemException if a system exception occurred
763            */
764            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_First(
765                    long classNameId, long classPK,
766                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
767                    throws com.liferay.portal.kernel.exception.SystemException;
768    
769            /**
770            * Returns the last announcements entry in the ordered set where classNameId = &#63; and classPK = &#63;.
771            *
772            * @param classNameId the class name ID
773            * @param classPK the class p k
774            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
775            * @return the last matching announcements entry
776            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
777            * @throws SystemException if a system exception occurred
778            */
779            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last(
780                    long classNameId, long classPK,
781                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
782                    throws com.liferay.portal.kernel.exception.SystemException,
783                            com.liferay.portlet.announcements.NoSuchEntryException;
784    
785            /**
786            * Returns the last announcements entry in the ordered set where classNameId = &#63; and classPK = &#63;.
787            *
788            * @param classNameId the class name ID
789            * @param classPK the class p k
790            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
791            * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
792            * @throws SystemException if a system exception occurred
793            */
794            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_Last(
795                    long classNameId, long classPK,
796                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
797                    throws com.liferay.portal.kernel.exception.SystemException;
798    
799            /**
800            * Returns the announcements entries before and after the current announcements entry in the ordered set where classNameId = &#63; and classPK = &#63;.
801            *
802            * @param entryId the primary key of the current announcements entry
803            * @param classNameId the class name ID
804            * @param classPK the class p k
805            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
806            * @return the previous, current, and next announcements entry
807            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
808            * @throws SystemException if a system exception occurred
809            */
810            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext(
811                    long entryId, long classNameId, long classPK,
812                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
813                    throws com.liferay.portal.kernel.exception.SystemException,
814                            com.liferay.portlet.announcements.NoSuchEntryException;
815    
816            /**
817            * Returns all the announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63;.
818            *
819            * @param classNameId the class name ID
820            * @param classPK the class p k
821            * @return the matching announcements entries that the user has permission to view
822            * @throws SystemException if a system exception occurred
823            */
824            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C(
825                    long classNameId, long classPK)
826                    throws com.liferay.portal.kernel.exception.SystemException;
827    
828            /**
829            * Returns a range of all the announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63;.
830            *
831            * <p>
832            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
833            * </p>
834            *
835            * @param classNameId the class name ID
836            * @param classPK the class p k
837            * @param start the lower bound of the range of announcements entries
838            * @param end the upper bound of the range of announcements entries (not inclusive)
839            * @return the range of matching announcements entries that the user has permission to view
840            * @throws SystemException if a system exception occurred
841            */
842            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C(
843                    long classNameId, long classPK, int start, int end)
844                    throws com.liferay.portal.kernel.exception.SystemException;
845    
846            /**
847            * Returns an ordered range of all the announcements entries that the user has permissions to view where classNameId = &#63; and classPK = &#63;.
848            *
849            * <p>
850            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
851            * </p>
852            *
853            * @param classNameId the class name ID
854            * @param classPK the class p k
855            * @param start the lower bound of the range of announcements entries
856            * @param end the upper bound of the range of announcements entries (not inclusive)
857            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
858            * @return the ordered range of matching announcements entries that the user has permission to view
859            * @throws SystemException if a system exception occurred
860            */
861            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C(
862                    long classNameId, long classPK, int start, int end,
863                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
864                    throws com.liferay.portal.kernel.exception.SystemException;
865    
866            /**
867            * 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;.
868            *
869            * @param entryId the primary key of the current announcements entry
870            * @param classNameId the class name ID
871            * @param classPK the class p k
872            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
873            * @return the previous, current, and next announcements entry
874            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
875            * @throws SystemException if a system exception occurred
876            */
877            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByC_C_PrevAndNext(
878                    long entryId, long classNameId, long classPK,
879                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
880                    throws com.liferay.portal.kernel.exception.SystemException,
881                            com.liferay.portlet.announcements.NoSuchEntryException;
882    
883            /**
884            * Removes all the announcements entries where classNameId = &#63; and classPK = &#63; from the database.
885            *
886            * @param classNameId the class name ID
887            * @param classPK the class p k
888            * @throws SystemException if a system exception occurred
889            */
890            public void removeByC_C(long classNameId, long classPK)
891                    throws com.liferay.portal.kernel.exception.SystemException;
892    
893            /**
894            * Returns the number of announcements entries where classNameId = &#63; and classPK = &#63;.
895            *
896            * @param classNameId the class name ID
897            * @param classPK the class p k
898            * @return the number of matching announcements entries
899            * @throws SystemException if a system exception occurred
900            */
901            public int countByC_C(long classNameId, long classPK)
902                    throws com.liferay.portal.kernel.exception.SystemException;
903    
904            /**
905            * Returns the number of announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63;.
906            *
907            * @param classNameId the class name ID
908            * @param classPK the class p k
909            * @return the number of matching announcements entries that the user has permission to view
910            * @throws SystemException if a system exception occurred
911            */
912            public int filterCountByC_C(long classNameId, long classPK)
913                    throws com.liferay.portal.kernel.exception.SystemException;
914    
915            /**
916            * Returns all the announcements entries where classNameId = &#63; and classPK = &#63; and alert = &#63;.
917            *
918            * @param classNameId the class name ID
919            * @param classPK the class p k
920            * @param alert the alert
921            * @return the matching announcements entries
922            * @throws SystemException if a system exception occurred
923            */
924            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
925                    long classNameId, long classPK, boolean alert)
926                    throws com.liferay.portal.kernel.exception.SystemException;
927    
928            /**
929            * Returns a range of all the announcements entries where classNameId = &#63; and classPK = &#63; and alert = &#63;.
930            *
931            * <p>
932            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
933            * </p>
934            *
935            * @param classNameId the class name ID
936            * @param classPK the class p k
937            * @param alert the alert
938            * @param start the lower bound of the range of announcements entries
939            * @param end the upper bound of the range of announcements entries (not inclusive)
940            * @return the range of matching announcements entries
941            * @throws SystemException if a system exception occurred
942            */
943            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
944                    long classNameId, long classPK, boolean alert, int start, int end)
945                    throws com.liferay.portal.kernel.exception.SystemException;
946    
947            /**
948            * Returns an ordered range of all the announcements entries where classNameId = &#63; and classPK = &#63; and alert = &#63;.
949            *
950            * <p>
951            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
952            * </p>
953            *
954            * @param classNameId the class name ID
955            * @param classPK the class p k
956            * @param alert the alert
957            * @param start the lower bound of the range of announcements entries
958            * @param end the upper bound of the range of announcements entries (not inclusive)
959            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
960            * @return the ordered range of matching announcements entries
961            * @throws SystemException if a system exception occurred
962            */
963            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A(
964                    long classNameId, long classPK, boolean alert, int start, int end,
965                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
966                    throws com.liferay.portal.kernel.exception.SystemException;
967    
968            /**
969            * Returns the first announcements entry in the ordered set where classNameId = &#63; and classPK = &#63; and alert = &#63;.
970            *
971            * @param classNameId the class name ID
972            * @param classPK the class p k
973            * @param alert the alert
974            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
975            * @return the first matching announcements entry
976            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
977            * @throws SystemException if a system exception occurred
978            */
979            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First(
980                    long classNameId, long classPK, boolean alert,
981                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
982                    throws com.liferay.portal.kernel.exception.SystemException,
983                            com.liferay.portlet.announcements.NoSuchEntryException;
984    
985            /**
986            * Returns the first announcements entry in the ordered set where classNameId = &#63; and classPK = &#63; and alert = &#63;.
987            *
988            * @param classNameId the class name ID
989            * @param classPK the class p k
990            * @param alert the alert
991            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
992            * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
993            * @throws SystemException if a system exception occurred
994            */
995            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_A_First(
996                    long classNameId, long classPK, boolean alert,
997                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
998                    throws com.liferay.portal.kernel.exception.SystemException;
999    
1000            /**
1001            * Returns the last announcements entry in the ordered set where classNameId = &#63; and classPK = &#63; and alert = &#63;.
1002            *
1003            * @param classNameId the class name ID
1004            * @param classPK the class p k
1005            * @param alert the alert
1006            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1007            * @return the last matching announcements entry
1008            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found
1009            * @throws SystemException if a system exception occurred
1010            */
1011            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last(
1012                    long classNameId, long classPK, boolean alert,
1013                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1014                    throws com.liferay.portal.kernel.exception.SystemException,
1015                            com.liferay.portlet.announcements.NoSuchEntryException;
1016    
1017            /**
1018            * Returns the last announcements entry in the ordered set where classNameId = &#63; and classPK = &#63; and alert = &#63;.
1019            *
1020            * @param classNameId the class name ID
1021            * @param classPK the class p k
1022            * @param alert the alert
1023            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1024            * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found
1025            * @throws SystemException if a system exception occurred
1026            */
1027            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_A_Last(
1028                    long classNameId, long classPK, boolean alert,
1029                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1030                    throws com.liferay.portal.kernel.exception.SystemException;
1031    
1032            /**
1033            * Returns the announcements entries before and after the current announcements entry in the ordered set where classNameId = &#63; and classPK = &#63; and alert = &#63;.
1034            *
1035            * @param entryId the primary key of the current announcements entry
1036            * @param classNameId the class name ID
1037            * @param classPK the class p k
1038            * @param alert the alert
1039            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1040            * @return the previous, current, and next announcements entry
1041            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
1042            * @throws SystemException if a system exception occurred
1043            */
1044            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext(
1045                    long entryId, long classNameId, long classPK, boolean alert,
1046                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1047                    throws com.liferay.portal.kernel.exception.SystemException,
1048                            com.liferay.portlet.announcements.NoSuchEntryException;
1049    
1050            /**
1051            * Returns all the announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63; and alert = &#63;.
1052            *
1053            * @param classNameId the class name ID
1054            * @param classPK the class p k
1055            * @param alert the alert
1056            * @return the matching announcements entries that the user has permission to view
1057            * @throws SystemException if a system exception occurred
1058            */
1059            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A(
1060                    long classNameId, long classPK, boolean alert)
1061                    throws com.liferay.portal.kernel.exception.SystemException;
1062    
1063            /**
1064            * Returns a range of all the announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63; and alert = &#63;.
1065            *
1066            * <p>
1067            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1068            * </p>
1069            *
1070            * @param classNameId the class name ID
1071            * @param classPK the class p k
1072            * @param alert the alert
1073            * @param start the lower bound of the range of announcements entries
1074            * @param end the upper bound of the range of announcements entries (not inclusive)
1075            * @return the range of matching announcements entries that the user has permission to view
1076            * @throws SystemException if a system exception occurred
1077            */
1078            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A(
1079                    long classNameId, long classPK, boolean alert, int start, int end)
1080                    throws com.liferay.portal.kernel.exception.SystemException;
1081    
1082            /**
1083            * 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;.
1084            *
1085            * <p>
1086            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1087            * </p>
1088            *
1089            * @param classNameId the class name ID
1090            * @param classPK the class p k
1091            * @param alert the alert
1092            * @param start the lower bound of the range of announcements entries
1093            * @param end the upper bound of the range of announcements entries (not inclusive)
1094            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1095            * @return the ordered range of matching announcements entries that the user has permission to view
1096            * @throws SystemException if a system exception occurred
1097            */
1098            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A(
1099                    long classNameId, long classPK, boolean alert, int start, int end,
1100                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1101                    throws com.liferay.portal.kernel.exception.SystemException;
1102    
1103            /**
1104            * 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;.
1105            *
1106            * @param entryId the primary key of the current announcements entry
1107            * @param classNameId the class name ID
1108            * @param classPK the class p k
1109            * @param alert the alert
1110            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1111            * @return the previous, current, and next announcements entry
1112            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
1113            * @throws SystemException if a system exception occurred
1114            */
1115            public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByC_C_A_PrevAndNext(
1116                    long entryId, long classNameId, long classPK, boolean alert,
1117                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1118                    throws com.liferay.portal.kernel.exception.SystemException,
1119                            com.liferay.portlet.announcements.NoSuchEntryException;
1120    
1121            /**
1122            * Removes all the announcements entries where classNameId = &#63; and classPK = &#63; and alert = &#63; from the database.
1123            *
1124            * @param classNameId the class name ID
1125            * @param classPK the class p k
1126            * @param alert the alert
1127            * @throws SystemException if a system exception occurred
1128            */
1129            public void removeByC_C_A(long classNameId, long classPK, boolean alert)
1130                    throws com.liferay.portal.kernel.exception.SystemException;
1131    
1132            /**
1133            * Returns the number of announcements entries where classNameId = &#63; and classPK = &#63; and alert = &#63;.
1134            *
1135            * @param classNameId the class name ID
1136            * @param classPK the class p k
1137            * @param alert the alert
1138            * @return the number of matching announcements entries
1139            * @throws SystemException if a system exception occurred
1140            */
1141            public int countByC_C_A(long classNameId, long classPK, boolean alert)
1142                    throws com.liferay.portal.kernel.exception.SystemException;
1143    
1144            /**
1145            * Returns the number of announcements entries that the user has permission to view where classNameId = &#63; and classPK = &#63; and alert = &#63;.
1146            *
1147            * @param classNameId the class name ID
1148            * @param classPK the class p k
1149            * @param alert the alert
1150            * @return the number of matching announcements entries that the user has permission to view
1151            * @throws SystemException if a system exception occurred
1152            */
1153            public int filterCountByC_C_A(long classNameId, long classPK, boolean alert)
1154                    throws com.liferay.portal.kernel.exception.SystemException;
1155    
1156            /**
1157            * Caches the announcements entry in the entity cache if it is enabled.
1158            *
1159            * @param announcementsEntry the announcements entry
1160            */
1161            public void cacheResult(
1162                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry);
1163    
1164            /**
1165            * Caches the announcements entries in the entity cache if it is enabled.
1166            *
1167            * @param announcementsEntries the announcements entries
1168            */
1169            public void cacheResult(
1170                    java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries);
1171    
1172            /**
1173            * Creates a new announcements entry with the primary key. Does not add the announcements entry to the database.
1174            *
1175            * @param entryId the primary key for the new announcements entry
1176            * @return the new announcements entry
1177            */
1178            public com.liferay.portlet.announcements.model.AnnouncementsEntry create(
1179                    long entryId);
1180    
1181            /**
1182            * Removes the announcements entry with the primary key from the database. Also notifies the appropriate model listeners.
1183            *
1184            * @param entryId the primary key of the announcements entry
1185            * @return the announcements entry that was removed
1186            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
1187            * @throws SystemException if a system exception occurred
1188            */
1189            public com.liferay.portlet.announcements.model.AnnouncementsEntry remove(
1190                    long entryId)
1191                    throws com.liferay.portal.kernel.exception.SystemException,
1192                            com.liferay.portlet.announcements.NoSuchEntryException;
1193    
1194            public com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl(
1195                    com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry)
1196                    throws com.liferay.portal.kernel.exception.SystemException;
1197    
1198            /**
1199            * Returns the announcements entry with the primary key or throws a {@link com.liferay.portlet.announcements.NoSuchEntryException} if it could not be found.
1200            *
1201            * @param entryId the primary key of the announcements entry
1202            * @return the announcements entry
1203            * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found
1204            * @throws SystemException if a system exception occurred
1205            */
1206            public com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey(
1207                    long entryId)
1208                    throws com.liferay.portal.kernel.exception.SystemException,
1209                            com.liferay.portlet.announcements.NoSuchEntryException;
1210    
1211            /**
1212            * Returns the announcements entry with the primary key or returns <code>null</code> if it could not be found.
1213            *
1214            * @param entryId the primary key of the announcements entry
1215            * @return the announcements entry, or <code>null</code> if a announcements entry with the primary key could not be found
1216            * @throws SystemException if a system exception occurred
1217            */
1218            public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey(
1219                    long entryId)
1220                    throws com.liferay.portal.kernel.exception.SystemException;
1221    
1222            /**
1223            * Returns all the announcements entries.
1224            *
1225            * @return the announcements entries
1226            * @throws SystemException if a system exception occurred
1227            */
1228            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll()
1229                    throws com.liferay.portal.kernel.exception.SystemException;
1230    
1231            /**
1232            * Returns a range of all the announcements entries.
1233            *
1234            * <p>
1235            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1236            * </p>
1237            *
1238            * @param start the lower bound of the range of announcements entries
1239            * @param end the upper bound of the range of announcements entries (not inclusive)
1240            * @return the range of announcements entries
1241            * @throws SystemException if a system exception occurred
1242            */
1243            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
1244                    int start, int end)
1245                    throws com.liferay.portal.kernel.exception.SystemException;
1246    
1247            /**
1248            * Returns an ordered range of all the announcements entries.
1249            *
1250            * <p>
1251            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.announcements.model.impl.AnnouncementsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1252            * </p>
1253            *
1254            * @param start the lower bound of the range of announcements entries
1255            * @param end the upper bound of the range of announcements entries (not inclusive)
1256            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1257            * @return the ordered range of announcements entries
1258            * @throws SystemException if a system exception occurred
1259            */
1260            public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll(
1261                    int start, int end,
1262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1263                    throws com.liferay.portal.kernel.exception.SystemException;
1264    
1265            /**
1266            * Removes all the announcements entries from the database.
1267            *
1268            * @throws SystemException if a system exception occurred
1269            */
1270            public void removeAll()
1271                    throws com.liferay.portal.kernel.exception.SystemException;
1272    
1273            /**
1274            * Returns the number of announcements entries.
1275            *
1276            * @return the number of announcements entries
1277            * @throws SystemException if a system exception occurred
1278            */
1279            public int countAll()
1280                    throws com.liferay.portal.kernel.exception.SystemException;
1281    }