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.trash.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.trash.model.TrashEntry;
022    
023    /**
024     * The persistence interface for the trash 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 TrashEntryPersistenceImpl
032     * @see TrashEntryUtil
033     * @generated
034     */
035    @ProviderType
036    public interface TrashEntryPersistence extends BasePersistence<TrashEntry> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link TrashEntryUtil} to access the trash entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the trash entries where groupId = &#63;.
045            *
046            * @param groupId the group ID
047            * @return the matching trash entries
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByGroupId(
051                    long groupId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the trash entries where groupId = &#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.trash.model.impl.TrashEntryModelImpl}. 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 groupId the group ID
062            * @param start the lower bound of the range of trash entries
063            * @param end the upper bound of the range of trash entries (not inclusive)
064            * @return the range of matching trash entries
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByGroupId(
068                    long groupId, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the trash entries where groupId = &#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.trash.model.impl.TrashEntryModelImpl}. 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 groupId the group ID
079            * @param start the lower bound of the range of trash entries
080            * @param end the upper bound of the range of trash entries (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching trash entries
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByGroupId(
086                    long groupId, 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 trash entry in the ordered set where groupId = &#63;.
092            *
093            * @param groupId the group ID
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching trash entry
096            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.trash.model.TrashEntry findByGroupId_First(
100                    long groupId,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.trash.NoSuchEntryException;
104    
105            /**
106            * Returns the first trash entry in the ordered set where groupId = &#63;.
107            *
108            * @param groupId the group ID
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.trash.model.TrashEntry fetchByGroupId_First(
114                    long groupId,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last trash entry in the ordered set where groupId = &#63;.
120            *
121            * @param groupId the group ID
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching trash entry
124            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.trash.model.TrashEntry findByGroupId_Last(
128                    long groupId,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.trash.NoSuchEntryException;
132    
133            /**
134            * Returns the last trash entry in the ordered set where groupId = &#63;.
135            *
136            * @param groupId the group ID
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.trash.model.TrashEntry fetchByGroupId_Last(
142                    long groupId,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the trash entries before and after the current trash entry in the ordered set where groupId = &#63;.
148            *
149            * @param entryId the primary key of the current trash entry
150            * @param groupId the group ID
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next trash entry
153            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.trash.model.TrashEntry[] findByGroupId_PrevAndNext(
157                    long entryId, long groupId,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.trash.NoSuchEntryException;
161    
162            /**
163            * Removes all the trash entries where groupId = &#63; from the database.
164            *
165            * @param groupId the group ID
166            * @throws SystemException if a system exception occurred
167            */
168            public void removeByGroupId(long groupId)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the number of trash entries where groupId = &#63;.
173            *
174            * @param groupId the group ID
175            * @return the number of matching trash entries
176            * @throws SystemException if a system exception occurred
177            */
178            public int countByGroupId(long groupId)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns all the trash entries where companyId = &#63;.
183            *
184            * @param companyId the company ID
185            * @return the matching trash entries
186            * @throws SystemException if a system exception occurred
187            */
188            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByCompanyId(
189                    long companyId)
190                    throws com.liferay.portal.kernel.exception.SystemException;
191    
192            /**
193            * Returns a range of all the trash entries where companyId = &#63;.
194            *
195            * <p>
196            * 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.trash.model.impl.TrashEntryModelImpl}. 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.
197            * </p>
198            *
199            * @param companyId the company ID
200            * @param start the lower bound of the range of trash entries
201            * @param end the upper bound of the range of trash entries (not inclusive)
202            * @return the range of matching trash entries
203            * @throws SystemException if a system exception occurred
204            */
205            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByCompanyId(
206                    long companyId, int start, int end)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns an ordered range of all the trash entries where companyId = &#63;.
211            *
212            * <p>
213            * 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.trash.model.impl.TrashEntryModelImpl}. 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.
214            * </p>
215            *
216            * @param companyId the company ID
217            * @param start the lower bound of the range of trash entries
218            * @param end the upper bound of the range of trash entries (not inclusive)
219            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
220            * @return the ordered range of matching trash entries
221            * @throws SystemException if a system exception occurred
222            */
223            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByCompanyId(
224                    long companyId, int start, int end,
225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226                    throws com.liferay.portal.kernel.exception.SystemException;
227    
228            /**
229            * Returns the first trash entry in the ordered set where companyId = &#63;.
230            *
231            * @param companyId the company ID
232            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
233            * @return the first matching trash entry
234            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
235            * @throws SystemException if a system exception occurred
236            */
237            public com.liferay.portlet.trash.model.TrashEntry findByCompanyId_First(
238                    long companyId,
239                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240                    throws com.liferay.portal.kernel.exception.SystemException,
241                            com.liferay.portlet.trash.NoSuchEntryException;
242    
243            /**
244            * Returns the first trash entry in the ordered set where companyId = &#63;.
245            *
246            * @param companyId the company ID
247            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
248            * @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
249            * @throws SystemException if a system exception occurred
250            */
251            public com.liferay.portlet.trash.model.TrashEntry fetchByCompanyId_First(
252                    long companyId,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns the last trash entry in the ordered set where companyId = &#63;.
258            *
259            * @param companyId the company ID
260            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
261            * @return the last matching trash entry
262            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
263            * @throws SystemException if a system exception occurred
264            */
265            public com.liferay.portlet.trash.model.TrashEntry findByCompanyId_Last(
266                    long companyId,
267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268                    throws com.liferay.portal.kernel.exception.SystemException,
269                            com.liferay.portlet.trash.NoSuchEntryException;
270    
271            /**
272            * Returns the last trash entry in the ordered set where companyId = &#63;.
273            *
274            * @param companyId the company ID
275            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
276            * @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
277            * @throws SystemException if a system exception occurred
278            */
279            public com.liferay.portlet.trash.model.TrashEntry fetchByCompanyId_Last(
280                    long companyId,
281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282                    throws com.liferay.portal.kernel.exception.SystemException;
283    
284            /**
285            * Returns the trash entries before and after the current trash entry in the ordered set where companyId = &#63;.
286            *
287            * @param entryId the primary key of the current trash entry
288            * @param companyId the company ID
289            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
290            * @return the previous, current, and next trash entry
291            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
292            * @throws SystemException if a system exception occurred
293            */
294            public com.liferay.portlet.trash.model.TrashEntry[] findByCompanyId_PrevAndNext(
295                    long entryId, long companyId,
296                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297                    throws com.liferay.portal.kernel.exception.SystemException,
298                            com.liferay.portlet.trash.NoSuchEntryException;
299    
300            /**
301            * Removes all the trash entries where companyId = &#63; from the database.
302            *
303            * @param companyId the company ID
304            * @throws SystemException if a system exception occurred
305            */
306            public void removeByCompanyId(long companyId)
307                    throws com.liferay.portal.kernel.exception.SystemException;
308    
309            /**
310            * Returns the number of trash entries where companyId = &#63;.
311            *
312            * @param companyId the company ID
313            * @return the number of matching trash entries
314            * @throws SystemException if a system exception occurred
315            */
316            public int countByCompanyId(long companyId)
317                    throws com.liferay.portal.kernel.exception.SystemException;
318    
319            /**
320            * Returns all the trash entries where groupId = &#63; and createDate &lt; &#63;.
321            *
322            * @param groupId the group ID
323            * @param createDate the create date
324            * @return the matching trash entries
325            * @throws SystemException if a system exception occurred
326            */
327            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_LtCD(
328                    long groupId, java.util.Date createDate)
329                    throws com.liferay.portal.kernel.exception.SystemException;
330    
331            /**
332            * Returns a range of all the trash entries where groupId = &#63; and createDate &lt; &#63;.
333            *
334            * <p>
335            * 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.trash.model.impl.TrashEntryModelImpl}. 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.
336            * </p>
337            *
338            * @param groupId the group ID
339            * @param createDate the create date
340            * @param start the lower bound of the range of trash entries
341            * @param end the upper bound of the range of trash entries (not inclusive)
342            * @return the range of matching trash entries
343            * @throws SystemException if a system exception occurred
344            */
345            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_LtCD(
346                    long groupId, java.util.Date createDate, int start, int end)
347                    throws com.liferay.portal.kernel.exception.SystemException;
348    
349            /**
350            * Returns an ordered range of all the trash entries where groupId = &#63; and createDate &lt; &#63;.
351            *
352            * <p>
353            * 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.trash.model.impl.TrashEntryModelImpl}. 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.
354            * </p>
355            *
356            * @param groupId the group ID
357            * @param createDate the create date
358            * @param start the lower bound of the range of trash entries
359            * @param end the upper bound of the range of trash entries (not inclusive)
360            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
361            * @return the ordered range of matching trash entries
362            * @throws SystemException if a system exception occurred
363            */
364            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_LtCD(
365                    long groupId, java.util.Date createDate, int start, int end,
366                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
367                    throws com.liferay.portal.kernel.exception.SystemException;
368    
369            /**
370            * Returns the first trash entry in the ordered set where groupId = &#63; and createDate &lt; &#63;.
371            *
372            * @param groupId the group ID
373            * @param createDate the create date
374            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
375            * @return the first matching trash entry
376            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
377            * @throws SystemException if a system exception occurred
378            */
379            public com.liferay.portlet.trash.model.TrashEntry findByG_LtCD_First(
380                    long groupId, java.util.Date createDate,
381                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
382                    throws com.liferay.portal.kernel.exception.SystemException,
383                            com.liferay.portlet.trash.NoSuchEntryException;
384    
385            /**
386            * Returns the first trash entry in the ordered set where groupId = &#63; and createDate &lt; &#63;.
387            *
388            * @param groupId the group ID
389            * @param createDate the create date
390            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
391            * @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
392            * @throws SystemException if a system exception occurred
393            */
394            public com.liferay.portlet.trash.model.TrashEntry fetchByG_LtCD_First(
395                    long groupId, java.util.Date createDate,
396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397                    throws com.liferay.portal.kernel.exception.SystemException;
398    
399            /**
400            * Returns the last trash entry in the ordered set where groupId = &#63; and createDate &lt; &#63;.
401            *
402            * @param groupId the group ID
403            * @param createDate the create date
404            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
405            * @return the last matching trash entry
406            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
407            * @throws SystemException if a system exception occurred
408            */
409            public com.liferay.portlet.trash.model.TrashEntry findByG_LtCD_Last(
410                    long groupId, java.util.Date createDate,
411                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412                    throws com.liferay.portal.kernel.exception.SystemException,
413                            com.liferay.portlet.trash.NoSuchEntryException;
414    
415            /**
416            * Returns the last trash entry in the ordered set where groupId = &#63; and createDate &lt; &#63;.
417            *
418            * @param groupId the group ID
419            * @param createDate the create date
420            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
421            * @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
422            * @throws SystemException if a system exception occurred
423            */
424            public com.liferay.portlet.trash.model.TrashEntry fetchByG_LtCD_Last(
425                    long groupId, java.util.Date createDate,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Returns the trash entries before and after the current trash entry in the ordered set where groupId = &#63; and createDate &lt; &#63;.
431            *
432            * @param entryId the primary key of the current trash entry
433            * @param groupId the group ID
434            * @param createDate the create date
435            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
436            * @return the previous, current, and next trash entry
437            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
438            * @throws SystemException if a system exception occurred
439            */
440            public com.liferay.portlet.trash.model.TrashEntry[] findByG_LtCD_PrevAndNext(
441                    long entryId, long groupId, java.util.Date createDate,
442                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
443                    throws com.liferay.portal.kernel.exception.SystemException,
444                            com.liferay.portlet.trash.NoSuchEntryException;
445    
446            /**
447            * Removes all the trash entries where groupId = &#63; and createDate &lt; &#63; from the database.
448            *
449            * @param groupId the group ID
450            * @param createDate the create date
451            * @throws SystemException if a system exception occurred
452            */
453            public void removeByG_LtCD(long groupId, java.util.Date createDate)
454                    throws com.liferay.portal.kernel.exception.SystemException;
455    
456            /**
457            * Returns the number of trash entries where groupId = &#63; and createDate &lt; &#63;.
458            *
459            * @param groupId the group ID
460            * @param createDate the create date
461            * @return the number of matching trash entries
462            * @throws SystemException if a system exception occurred
463            */
464            public int countByG_LtCD(long groupId, java.util.Date createDate)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns all the trash entries where groupId = &#63; and classNameId = &#63;.
469            *
470            * @param groupId the group ID
471            * @param classNameId the class name ID
472            * @return the matching trash entries
473            * @throws SystemException if a system exception occurred
474            */
475            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_C(
476                    long groupId, long classNameId)
477                    throws com.liferay.portal.kernel.exception.SystemException;
478    
479            /**
480            * Returns a range of all the trash entries where groupId = &#63; and classNameId = &#63;.
481            *
482            * <p>
483            * 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.trash.model.impl.TrashEntryModelImpl}. 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.
484            * </p>
485            *
486            * @param groupId the group ID
487            * @param classNameId the class name ID
488            * @param start the lower bound of the range of trash entries
489            * @param end the upper bound of the range of trash entries (not inclusive)
490            * @return the range of matching trash entries
491            * @throws SystemException if a system exception occurred
492            */
493            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_C(
494                    long groupId, long classNameId, int start, int end)
495                    throws com.liferay.portal.kernel.exception.SystemException;
496    
497            /**
498            * Returns an ordered range of all the trash entries where groupId = &#63; and classNameId = &#63;.
499            *
500            * <p>
501            * 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.trash.model.impl.TrashEntryModelImpl}. 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.
502            * </p>
503            *
504            * @param groupId the group ID
505            * @param classNameId the class name ID
506            * @param start the lower bound of the range of trash entries
507            * @param end the upper bound of the range of trash entries (not inclusive)
508            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
509            * @return the ordered range of matching trash entries
510            * @throws SystemException if a system exception occurred
511            */
512            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_C(
513                    long groupId, long classNameId, int start, int end,
514                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
515                    throws com.liferay.portal.kernel.exception.SystemException;
516    
517            /**
518            * Returns the first trash entry in the ordered set where groupId = &#63; and classNameId = &#63;.
519            *
520            * @param groupId the group ID
521            * @param classNameId the class name ID
522            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
523            * @return the first matching trash entry
524            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
525            * @throws SystemException if a system exception occurred
526            */
527            public com.liferay.portlet.trash.model.TrashEntry findByG_C_First(
528                    long groupId, long classNameId,
529                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
530                    throws com.liferay.portal.kernel.exception.SystemException,
531                            com.liferay.portlet.trash.NoSuchEntryException;
532    
533            /**
534            * Returns the first trash entry in the ordered set where groupId = &#63; and classNameId = &#63;.
535            *
536            * @param groupId the group ID
537            * @param classNameId the class name ID
538            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
539            * @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
540            * @throws SystemException if a system exception occurred
541            */
542            public com.liferay.portlet.trash.model.TrashEntry fetchByG_C_First(
543                    long groupId, long classNameId,
544                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
545                    throws com.liferay.portal.kernel.exception.SystemException;
546    
547            /**
548            * Returns the last trash entry in the ordered set where groupId = &#63; and classNameId = &#63;.
549            *
550            * @param groupId the group ID
551            * @param classNameId the class name ID
552            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
553            * @return the last matching trash entry
554            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
555            * @throws SystemException if a system exception occurred
556            */
557            public com.liferay.portlet.trash.model.TrashEntry findByG_C_Last(
558                    long groupId, long classNameId,
559                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
560                    throws com.liferay.portal.kernel.exception.SystemException,
561                            com.liferay.portlet.trash.NoSuchEntryException;
562    
563            /**
564            * Returns the last trash entry in the ordered set where groupId = &#63; and classNameId = &#63;.
565            *
566            * @param groupId the group ID
567            * @param classNameId the class name ID
568            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
569            * @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
570            * @throws SystemException if a system exception occurred
571            */
572            public com.liferay.portlet.trash.model.TrashEntry fetchByG_C_Last(
573                    long groupId, long classNameId,
574                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
575                    throws com.liferay.portal.kernel.exception.SystemException;
576    
577            /**
578            * Returns the trash entries before and after the current trash entry in the ordered set where groupId = &#63; and classNameId = &#63;.
579            *
580            * @param entryId the primary key of the current trash entry
581            * @param groupId the group ID
582            * @param classNameId the class name ID
583            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
584            * @return the previous, current, and next trash entry
585            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
586            * @throws SystemException if a system exception occurred
587            */
588            public com.liferay.portlet.trash.model.TrashEntry[] findByG_C_PrevAndNext(
589                    long entryId, long groupId, long classNameId,
590                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
591                    throws com.liferay.portal.kernel.exception.SystemException,
592                            com.liferay.portlet.trash.NoSuchEntryException;
593    
594            /**
595            * Removes all the trash entries where groupId = &#63; and classNameId = &#63; from the database.
596            *
597            * @param groupId the group ID
598            * @param classNameId the class name ID
599            * @throws SystemException if a system exception occurred
600            */
601            public void removeByG_C(long groupId, long classNameId)
602                    throws com.liferay.portal.kernel.exception.SystemException;
603    
604            /**
605            * Returns the number of trash entries where groupId = &#63; and classNameId = &#63;.
606            *
607            * @param groupId the group ID
608            * @param classNameId the class name ID
609            * @return the number of matching trash entries
610            * @throws SystemException if a system exception occurred
611            */
612            public int countByG_C(long groupId, long classNameId)
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    
615            /**
616            * Returns the trash entry where classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portlet.trash.NoSuchEntryException} if it could not be found.
617            *
618            * @param classNameId the class name ID
619            * @param classPK the class p k
620            * @return the matching trash entry
621            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
622            * @throws SystemException if a system exception occurred
623            */
624            public com.liferay.portlet.trash.model.TrashEntry findByC_C(
625                    long classNameId, long classPK)
626                    throws com.liferay.portal.kernel.exception.SystemException,
627                            com.liferay.portlet.trash.NoSuchEntryException;
628    
629            /**
630            * Returns the trash entry where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
631            *
632            * @param classNameId the class name ID
633            * @param classPK the class p k
634            * @return the matching trash entry, or <code>null</code> if a matching trash entry could not be found
635            * @throws SystemException if a system exception occurred
636            */
637            public com.liferay.portlet.trash.model.TrashEntry fetchByC_C(
638                    long classNameId, long classPK)
639                    throws com.liferay.portal.kernel.exception.SystemException;
640    
641            /**
642            * Returns the trash entry where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
643            *
644            * @param classNameId the class name ID
645            * @param classPK the class p k
646            * @param retrieveFromCache whether to use the finder cache
647            * @return the matching trash entry, or <code>null</code> if a matching trash entry could not be found
648            * @throws SystemException if a system exception occurred
649            */
650            public com.liferay.portlet.trash.model.TrashEntry fetchByC_C(
651                    long classNameId, long classPK, boolean retrieveFromCache)
652                    throws com.liferay.portal.kernel.exception.SystemException;
653    
654            /**
655            * Removes the trash entry where classNameId = &#63; and classPK = &#63; from the database.
656            *
657            * @param classNameId the class name ID
658            * @param classPK the class p k
659            * @return the trash entry that was removed
660            * @throws SystemException if a system exception occurred
661            */
662            public com.liferay.portlet.trash.model.TrashEntry removeByC_C(
663                    long classNameId, long classPK)
664                    throws com.liferay.portal.kernel.exception.SystemException,
665                            com.liferay.portlet.trash.NoSuchEntryException;
666    
667            /**
668            * Returns the number of trash entries where classNameId = &#63; and classPK = &#63;.
669            *
670            * @param classNameId the class name ID
671            * @param classPK the class p k
672            * @return the number of matching trash entries
673            * @throws SystemException if a system exception occurred
674            */
675            public int countByC_C(long classNameId, long classPK)
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Caches the trash entry in the entity cache if it is enabled.
680            *
681            * @param trashEntry the trash entry
682            */
683            public void cacheResult(
684                    com.liferay.portlet.trash.model.TrashEntry trashEntry);
685    
686            /**
687            * Caches the trash entries in the entity cache if it is enabled.
688            *
689            * @param trashEntries the trash entries
690            */
691            public void cacheResult(
692                    java.util.List<com.liferay.portlet.trash.model.TrashEntry> trashEntries);
693    
694            /**
695            * Creates a new trash entry with the primary key. Does not add the trash entry to the database.
696            *
697            * @param entryId the primary key for the new trash entry
698            * @return the new trash entry
699            */
700            public com.liferay.portlet.trash.model.TrashEntry create(long entryId);
701    
702            /**
703            * Removes the trash entry with the primary key from the database. Also notifies the appropriate model listeners.
704            *
705            * @param entryId the primary key of the trash entry
706            * @return the trash entry that was removed
707            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
708            * @throws SystemException if a system exception occurred
709            */
710            public com.liferay.portlet.trash.model.TrashEntry remove(long entryId)
711                    throws com.liferay.portal.kernel.exception.SystemException,
712                            com.liferay.portlet.trash.NoSuchEntryException;
713    
714            public com.liferay.portlet.trash.model.TrashEntry updateImpl(
715                    com.liferay.portlet.trash.model.TrashEntry trashEntry)
716                    throws com.liferay.portal.kernel.exception.SystemException;
717    
718            /**
719            * Returns the trash entry with the primary key or throws a {@link com.liferay.portlet.trash.NoSuchEntryException} if it could not be found.
720            *
721            * @param entryId the primary key of the trash entry
722            * @return the trash entry
723            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
724            * @throws SystemException if a system exception occurred
725            */
726            public com.liferay.portlet.trash.model.TrashEntry findByPrimaryKey(
727                    long entryId)
728                    throws com.liferay.portal.kernel.exception.SystemException,
729                            com.liferay.portlet.trash.NoSuchEntryException;
730    
731            /**
732            * Returns the trash entry with the primary key or returns <code>null</code> if it could not be found.
733            *
734            * @param entryId the primary key of the trash entry
735            * @return the trash entry, or <code>null</code> if a trash entry with the primary key could not be found
736            * @throws SystemException if a system exception occurred
737            */
738            public com.liferay.portlet.trash.model.TrashEntry fetchByPrimaryKey(
739                    long entryId)
740                    throws com.liferay.portal.kernel.exception.SystemException;
741    
742            /**
743            * Returns all the trash entries.
744            *
745            * @return the trash entries
746            * @throws SystemException if a system exception occurred
747            */
748            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll()
749                    throws com.liferay.portal.kernel.exception.SystemException;
750    
751            /**
752            * Returns a range of all the trash entries.
753            *
754            * <p>
755            * 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.trash.model.impl.TrashEntryModelImpl}. 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.
756            * </p>
757            *
758            * @param start the lower bound of the range of trash entries
759            * @param end the upper bound of the range of trash entries (not inclusive)
760            * @return the range of trash entries
761            * @throws SystemException if a system exception occurred
762            */
763            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll(
764                    int start, int end)
765                    throws com.liferay.portal.kernel.exception.SystemException;
766    
767            /**
768            * Returns an ordered range of all the trash entries.
769            *
770            * <p>
771            * 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.trash.model.impl.TrashEntryModelImpl}. 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.
772            * </p>
773            *
774            * @param start the lower bound of the range of trash entries
775            * @param end the upper bound of the range of trash entries (not inclusive)
776            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
777            * @return the ordered range of trash entries
778            * @throws SystemException if a system exception occurred
779            */
780            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll(
781                    int start, int end,
782                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
783                    throws com.liferay.portal.kernel.exception.SystemException;
784    
785            /**
786            * Removes all the trash entries from the database.
787            *
788            * @throws SystemException if a system exception occurred
789            */
790            public void removeAll()
791                    throws com.liferay.portal.kernel.exception.SystemException;
792    
793            /**
794            * Returns the number of trash entries.
795            *
796            * @return the number of trash entries
797            * @throws SystemException if a system exception occurred
798            */
799            public int countAll()
800                    throws com.liferay.portal.kernel.exception.SystemException;
801    }