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 com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.trash.model.TrashEntry;
020    
021    /**
022     * The persistence interface for the trash entry service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see TrashEntryPersistenceImpl
030     * @see TrashEntryUtil
031     * @generated
032     */
033    public interface TrashEntryPersistence extends BasePersistence<TrashEntry> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * 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.
038             */
039    
040            /**
041            * Returns all the trash entries where groupId = &#63;.
042            *
043            * @param groupId the group ID
044            * @return the matching trash entries
045            * @throws SystemException if a system exception occurred
046            */
047            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByGroupId(
048                    long groupId)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            /**
052            * Returns a range of all the trash entries where groupId = &#63;.
053            *
054            * <p>
055            * 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.
056            * </p>
057            *
058            * @param groupId the group ID
059            * @param start the lower bound of the range of trash entries
060            * @param end the upper bound of the range of trash entries (not inclusive)
061            * @return the range of matching trash entries
062            * @throws SystemException if a system exception occurred
063            */
064            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByGroupId(
065                    long groupId, int start, int end)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            /**
069            * Returns an ordered range of all the trash entries where groupId = &#63;.
070            *
071            * <p>
072            * 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.
073            * </p>
074            *
075            * @param groupId the group ID
076            * @param start the lower bound of the range of trash entries
077            * @param end the upper bound of the range of trash entries (not inclusive)
078            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
079            * @return the ordered range of matching trash entries
080            * @throws SystemException if a system exception occurred
081            */
082            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByGroupId(
083                    long groupId, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Returns the first trash entry in the ordered set where groupId = &#63;.
089            *
090            * @param groupId the group ID
091            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
092            * @return the first matching trash entry
093            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
094            * @throws SystemException if a system exception occurred
095            */
096            public com.liferay.portlet.trash.model.TrashEntry findByGroupId_First(
097                    long groupId,
098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099                    throws com.liferay.portal.kernel.exception.SystemException,
100                            com.liferay.portlet.trash.NoSuchEntryException;
101    
102            /**
103            * Returns the first trash entry in the ordered set where groupId = &#63;.
104            *
105            * @param groupId the group ID
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
108            * @throws SystemException if a system exception occurred
109            */
110            public com.liferay.portlet.trash.model.TrashEntry fetchByGroupId_First(
111                    long groupId,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns the last trash entry in the ordered set where groupId = &#63;.
117            *
118            * @param groupId the group ID
119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
120            * @return the last matching trash entry
121            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
122            * @throws SystemException if a system exception occurred
123            */
124            public com.liferay.portlet.trash.model.TrashEntry findByGroupId_Last(
125                    long groupId,
126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127                    throws com.liferay.portal.kernel.exception.SystemException,
128                            com.liferay.portlet.trash.NoSuchEntryException;
129    
130            /**
131            * Returns the last trash entry in the ordered set where groupId = &#63;.
132            *
133            * @param groupId the group ID
134            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
135            * @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
136            * @throws SystemException if a system exception occurred
137            */
138            public com.liferay.portlet.trash.model.TrashEntry fetchByGroupId_Last(
139                    long groupId,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the trash entries before and after the current trash entry in the ordered set where groupId = &#63;.
145            *
146            * @param entryId the primary key of the current trash entry
147            * @param groupId the group ID
148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
149            * @return the previous, current, and next trash entry
150            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public com.liferay.portlet.trash.model.TrashEntry[] findByGroupId_PrevAndNext(
154                    long entryId, long groupId,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.kernel.exception.SystemException,
157                            com.liferay.portlet.trash.NoSuchEntryException;
158    
159            /**
160            * Removes all the trash entries where groupId = &#63; from the database.
161            *
162            * @param groupId the group ID
163            * @throws SystemException if a system exception occurred
164            */
165            public void removeByGroupId(long groupId)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns the number of trash entries where groupId = &#63;.
170            *
171            * @param groupId the group ID
172            * @return the number of matching trash entries
173            * @throws SystemException if a system exception occurred
174            */
175            public int countByGroupId(long groupId)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns all the trash entries where companyId = &#63;.
180            *
181            * @param companyId the company ID
182            * @return the matching trash entries
183            * @throws SystemException if a system exception occurred
184            */
185            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByCompanyId(
186                    long companyId)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Returns a range of all the trash entries where companyId = &#63;.
191            *
192            * <p>
193            * 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.
194            * </p>
195            *
196            * @param companyId the company ID
197            * @param start the lower bound of the range of trash entries
198            * @param end the upper bound of the range of trash entries (not inclusive)
199            * @return the range of matching trash entries
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByCompanyId(
203                    long companyId, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns an ordered range of all the trash entries where companyId = &#63;.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param companyId the company ID
214            * @param start the lower bound of the range of trash entries
215            * @param end the upper bound of the range of trash entries (not inclusive)
216            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
217            * @return the ordered range of matching trash entries
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByCompanyId(
221                    long companyId, int start, int end,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            /**
226            * Returns the first trash entry in the ordered set where companyId = &#63;.
227            *
228            * @param companyId the company ID
229            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
230            * @return the first matching trash entry
231            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.trash.model.TrashEntry findByCompanyId_First(
235                    long companyId,
236                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237                    throws com.liferay.portal.kernel.exception.SystemException,
238                            com.liferay.portlet.trash.NoSuchEntryException;
239    
240            /**
241            * Returns the first trash entry in the ordered set where companyId = &#63;.
242            *
243            * @param companyId the company ID
244            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
245            * @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public com.liferay.portlet.trash.model.TrashEntry fetchByCompanyId_First(
249                    long companyId,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            /**
254            * Returns the last trash entry in the ordered set where companyId = &#63;.
255            *
256            * @param companyId the company ID
257            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
258            * @return the last matching trash entry
259            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
260            * @throws SystemException if a system exception occurred
261            */
262            public com.liferay.portlet.trash.model.TrashEntry findByCompanyId_Last(
263                    long companyId,
264                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
265                    throws com.liferay.portal.kernel.exception.SystemException,
266                            com.liferay.portlet.trash.NoSuchEntryException;
267    
268            /**
269            * Returns the last trash entry in the ordered set where companyId = &#63;.
270            *
271            * @param companyId the company ID
272            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
273            * @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
274            * @throws SystemException if a system exception occurred
275            */
276            public com.liferay.portlet.trash.model.TrashEntry fetchByCompanyId_Last(
277                    long companyId,
278                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
279                    throws com.liferay.portal.kernel.exception.SystemException;
280    
281            /**
282            * Returns the trash entries before and after the current trash entry in the ordered set where companyId = &#63;.
283            *
284            * @param entryId the primary key of the current trash entry
285            * @param companyId the company ID
286            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
287            * @return the previous, current, and next trash entry
288            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
289            * @throws SystemException if a system exception occurred
290            */
291            public com.liferay.portlet.trash.model.TrashEntry[] findByCompanyId_PrevAndNext(
292                    long entryId, long companyId,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.kernel.exception.SystemException,
295                            com.liferay.portlet.trash.NoSuchEntryException;
296    
297            /**
298            * Removes all the trash entries where companyId = &#63; from the database.
299            *
300            * @param companyId the company ID
301            * @throws SystemException if a system exception occurred
302            */
303            public void removeByCompanyId(long companyId)
304                    throws com.liferay.portal.kernel.exception.SystemException;
305    
306            /**
307            * Returns the number of trash entries where companyId = &#63;.
308            *
309            * @param companyId the company ID
310            * @return the number of matching trash entries
311            * @throws SystemException if a system exception occurred
312            */
313            public int countByCompanyId(long companyId)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    
316            /**
317            * Returns all the trash entries where groupId = &#63; and createDate &lt; &#63;.
318            *
319            * @param groupId the group ID
320            * @param createDate the create date
321            * @return the matching trash entries
322            * @throws SystemException if a system exception occurred
323            */
324            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_LtCD(
325                    long groupId, java.util.Date createDate)
326                    throws com.liferay.portal.kernel.exception.SystemException;
327    
328            /**
329            * Returns a range of all the trash entries where groupId = &#63; and createDate &lt; &#63;.
330            *
331            * <p>
332            * 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.
333            * </p>
334            *
335            * @param groupId the group ID
336            * @param createDate the create date
337            * @param start the lower bound of the range of trash entries
338            * @param end the upper bound of the range of trash entries (not inclusive)
339            * @return the range of matching trash entries
340            * @throws SystemException if a system exception occurred
341            */
342            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_LtCD(
343                    long groupId, java.util.Date createDate, int start, int end)
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            /**
347            * Returns an ordered range of all the trash entries where groupId = &#63; and createDate &lt; &#63;.
348            *
349            * <p>
350            * 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.
351            * </p>
352            *
353            * @param groupId the group ID
354            * @param createDate the create date
355            * @param start the lower bound of the range of trash entries
356            * @param end the upper bound of the range of trash entries (not inclusive)
357            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
358            * @return the ordered range of matching trash entries
359            * @throws SystemException if a system exception occurred
360            */
361            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_LtCD(
362                    long groupId, java.util.Date createDate, int start, int end,
363                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364                    throws com.liferay.portal.kernel.exception.SystemException;
365    
366            /**
367            * Returns the first trash entry in the ordered set where groupId = &#63; and createDate &lt; &#63;.
368            *
369            * @param groupId the group ID
370            * @param createDate the create date
371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
372            * @return the first matching trash entry
373            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
374            * @throws SystemException if a system exception occurred
375            */
376            public com.liferay.portlet.trash.model.TrashEntry findByG_LtCD_First(
377                    long groupId, java.util.Date createDate,
378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379                    throws com.liferay.portal.kernel.exception.SystemException,
380                            com.liferay.portlet.trash.NoSuchEntryException;
381    
382            /**
383            * Returns the first trash entry in the ordered set where groupId = &#63; and createDate &lt; &#63;.
384            *
385            * @param groupId the group ID
386            * @param createDate the create date
387            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
388            * @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
389            * @throws SystemException if a system exception occurred
390            */
391            public com.liferay.portlet.trash.model.TrashEntry fetchByG_LtCD_First(
392                    long groupId, java.util.Date createDate,
393                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
394                    throws com.liferay.portal.kernel.exception.SystemException;
395    
396            /**
397            * Returns the last trash entry in the ordered set where groupId = &#63; and createDate &lt; &#63;.
398            *
399            * @param groupId the group ID
400            * @param createDate the create date
401            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
402            * @return the last matching trash entry
403            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
404            * @throws SystemException if a system exception occurred
405            */
406            public com.liferay.portlet.trash.model.TrashEntry findByG_LtCD_Last(
407                    long groupId, java.util.Date createDate,
408                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409                    throws com.liferay.portal.kernel.exception.SystemException,
410                            com.liferay.portlet.trash.NoSuchEntryException;
411    
412            /**
413            * Returns the last trash entry in the ordered set where groupId = &#63; and createDate &lt; &#63;.
414            *
415            * @param groupId the group ID
416            * @param createDate the create date
417            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
418            * @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
419            * @throws SystemException if a system exception occurred
420            */
421            public com.liferay.portlet.trash.model.TrashEntry fetchByG_LtCD_Last(
422                    long groupId, java.util.Date createDate,
423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns the trash entries before and after the current trash entry in the ordered set where groupId = &#63; and createDate &lt; &#63;.
428            *
429            * @param entryId the primary key of the current trash entry
430            * @param groupId the group ID
431            * @param createDate the create date
432            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
433            * @return the previous, current, and next trash entry
434            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
435            * @throws SystemException if a system exception occurred
436            */
437            public com.liferay.portlet.trash.model.TrashEntry[] findByG_LtCD_PrevAndNext(
438                    long entryId, long groupId, java.util.Date createDate,
439                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
440                    throws com.liferay.portal.kernel.exception.SystemException,
441                            com.liferay.portlet.trash.NoSuchEntryException;
442    
443            /**
444            * Removes all the trash entries where groupId = &#63; and createDate &lt; &#63; from the database.
445            *
446            * @param groupId the group ID
447            * @param createDate the create date
448            * @throws SystemException if a system exception occurred
449            */
450            public void removeByG_LtCD(long groupId, java.util.Date createDate)
451                    throws com.liferay.portal.kernel.exception.SystemException;
452    
453            /**
454            * Returns the number of trash entries where groupId = &#63; and createDate &lt; &#63;.
455            *
456            * @param groupId the group ID
457            * @param createDate the create date
458            * @return the number of matching trash entries
459            * @throws SystemException if a system exception occurred
460            */
461            public int countByG_LtCD(long groupId, java.util.Date createDate)
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    
464            /**
465            * 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.
466            *
467            * @param classNameId the class name ID
468            * @param classPK the class p k
469            * @return the matching trash entry
470            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
471            * @throws SystemException if a system exception occurred
472            */
473            public com.liferay.portlet.trash.model.TrashEntry findByC_C(
474                    long classNameId, long classPK)
475                    throws com.liferay.portal.kernel.exception.SystemException,
476                            com.liferay.portlet.trash.NoSuchEntryException;
477    
478            /**
479            * 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.
480            *
481            * @param classNameId the class name ID
482            * @param classPK the class p k
483            * @return the matching trash entry, or <code>null</code> if a matching trash entry could not be found
484            * @throws SystemException if a system exception occurred
485            */
486            public com.liferay.portlet.trash.model.TrashEntry fetchByC_C(
487                    long classNameId, long classPK)
488                    throws com.liferay.portal.kernel.exception.SystemException;
489    
490            /**
491            * 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.
492            *
493            * @param classNameId the class name ID
494            * @param classPK the class p k
495            * @param retrieveFromCache whether to use the finder cache
496            * @return the matching trash entry, or <code>null</code> if a matching trash entry could not be found
497            * @throws SystemException if a system exception occurred
498            */
499            public com.liferay.portlet.trash.model.TrashEntry fetchByC_C(
500                    long classNameId, long classPK, boolean retrieveFromCache)
501                    throws com.liferay.portal.kernel.exception.SystemException;
502    
503            /**
504            * Removes the trash entry where classNameId = &#63; and classPK = &#63; from the database.
505            *
506            * @param classNameId the class name ID
507            * @param classPK the class p k
508            * @return the trash entry that was removed
509            * @throws SystemException if a system exception occurred
510            */
511            public com.liferay.portlet.trash.model.TrashEntry removeByC_C(
512                    long classNameId, long classPK)
513                    throws com.liferay.portal.kernel.exception.SystemException,
514                            com.liferay.portlet.trash.NoSuchEntryException;
515    
516            /**
517            * Returns the number of trash entries where classNameId = &#63; and classPK = &#63;.
518            *
519            * @param classNameId the class name ID
520            * @param classPK the class p k
521            * @return the number of matching trash entries
522            * @throws SystemException if a system exception occurred
523            */
524            public int countByC_C(long classNameId, long classPK)
525                    throws com.liferay.portal.kernel.exception.SystemException;
526    
527            /**
528            * Caches the trash entry in the entity cache if it is enabled.
529            *
530            * @param trashEntry the trash entry
531            */
532            public void cacheResult(
533                    com.liferay.portlet.trash.model.TrashEntry trashEntry);
534    
535            /**
536            * Caches the trash entries in the entity cache if it is enabled.
537            *
538            * @param trashEntries the trash entries
539            */
540            public void cacheResult(
541                    java.util.List<com.liferay.portlet.trash.model.TrashEntry> trashEntries);
542    
543            /**
544            * Creates a new trash entry with the primary key. Does not add the trash entry to the database.
545            *
546            * @param entryId the primary key for the new trash entry
547            * @return the new trash entry
548            */
549            public com.liferay.portlet.trash.model.TrashEntry create(long entryId);
550    
551            /**
552            * Removes the trash entry with the primary key from the database. Also notifies the appropriate model listeners.
553            *
554            * @param entryId the primary key of the trash entry
555            * @return the trash entry that was removed
556            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public com.liferay.portlet.trash.model.TrashEntry remove(long entryId)
560                    throws com.liferay.portal.kernel.exception.SystemException,
561                            com.liferay.portlet.trash.NoSuchEntryException;
562    
563            public com.liferay.portlet.trash.model.TrashEntry updateImpl(
564                    com.liferay.portlet.trash.model.TrashEntry trashEntry)
565                    throws com.liferay.portal.kernel.exception.SystemException;
566    
567            /**
568            * Returns the trash entry with the primary key or throws a {@link com.liferay.portlet.trash.NoSuchEntryException} if it could not be found.
569            *
570            * @param entryId the primary key of the trash entry
571            * @return the trash entry
572            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
573            * @throws SystemException if a system exception occurred
574            */
575            public com.liferay.portlet.trash.model.TrashEntry findByPrimaryKey(
576                    long entryId)
577                    throws com.liferay.portal.kernel.exception.SystemException,
578                            com.liferay.portlet.trash.NoSuchEntryException;
579    
580            /**
581            * Returns the trash entry with the primary key or returns <code>null</code> if it could not be found.
582            *
583            * @param entryId the primary key of the trash entry
584            * @return the trash entry, or <code>null</code> if a trash entry with the primary key could not be found
585            * @throws SystemException if a system exception occurred
586            */
587            public com.liferay.portlet.trash.model.TrashEntry fetchByPrimaryKey(
588                    long entryId)
589                    throws com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Returns all the trash entries.
593            *
594            * @return the trash entries
595            * @throws SystemException if a system exception occurred
596            */
597            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll()
598                    throws com.liferay.portal.kernel.exception.SystemException;
599    
600            /**
601            * Returns a range of all the trash entries.
602            *
603            * <p>
604            * 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.
605            * </p>
606            *
607            * @param start the lower bound of the range of trash entries
608            * @param end the upper bound of the range of trash entries (not inclusive)
609            * @return the range of trash entries
610            * @throws SystemException if a system exception occurred
611            */
612            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll(
613                    int start, int end)
614                    throws com.liferay.portal.kernel.exception.SystemException;
615    
616            /**
617            * Returns an ordered range of all the trash entries.
618            *
619            * <p>
620            * 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.
621            * </p>
622            *
623            * @param start the lower bound of the range of trash entries
624            * @param end the upper bound of the range of trash entries (not inclusive)
625            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
626            * @return the ordered range of trash entries
627            * @throws SystemException if a system exception occurred
628            */
629            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll(
630                    int start, int end,
631                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
632                    throws com.liferay.portal.kernel.exception.SystemException;
633    
634            /**
635            * Removes all the trash entries from the database.
636            *
637            * @throws SystemException if a system exception occurred
638            */
639            public void removeAll()
640                    throws com.liferay.portal.kernel.exception.SystemException;
641    
642            /**
643            * Returns the number of trash entries.
644            *
645            * @return the number of trash entries
646            * @throws SystemException if a system exception occurred
647            */
648            public int countAll()
649                    throws com.liferay.portal.kernel.exception.SystemException;
650    }