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 all the trash entries where groupId = &#63; and classNameId = &#63;.
466            *
467            * @param groupId the group ID
468            * @param classNameId the class name ID
469            * @return the matching trash entries
470            * @throws SystemException if a system exception occurred
471            */
472            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_C(
473                    long groupId, long classNameId)
474                    throws com.liferay.portal.kernel.exception.SystemException;
475    
476            /**
477            * Returns a range of all the trash entries where groupId = &#63; and classNameId = &#63;.
478            *
479            * <p>
480            * 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.
481            * </p>
482            *
483            * @param groupId the group ID
484            * @param classNameId the class name ID
485            * @param start the lower bound of the range of trash entries
486            * @param end the upper bound of the range of trash entries (not inclusive)
487            * @return the range of matching trash entries
488            * @throws SystemException if a system exception occurred
489            */
490            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_C(
491                    long groupId, long classNameId, int start, int end)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns an ordered range of all the trash entries where groupId = &#63; and classNameId = &#63;.
496            *
497            * <p>
498            * 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.
499            * </p>
500            *
501            * @param groupId the group ID
502            * @param classNameId the class name ID
503            * @param start the lower bound of the range of trash entries
504            * @param end the upper bound of the range of trash entries (not inclusive)
505            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
506            * @return the ordered range of matching trash entries
507            * @throws SystemException if a system exception occurred
508            */
509            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findByG_C(
510                    long groupId, long classNameId, int start, int end,
511                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            /**
515            * Returns the first trash entry in the ordered set where groupId = &#63; and classNameId = &#63;.
516            *
517            * @param groupId the group ID
518            * @param classNameId the class name ID
519            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
520            * @return the first matching trash entry
521            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
522            * @throws SystemException if a system exception occurred
523            */
524            public com.liferay.portlet.trash.model.TrashEntry findByG_C_First(
525                    long groupId, long classNameId,
526                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
527                    throws com.liferay.portal.kernel.exception.SystemException,
528                            com.liferay.portlet.trash.NoSuchEntryException;
529    
530            /**
531            * Returns the first trash entry in the ordered set where groupId = &#63; and classNameId = &#63;.
532            *
533            * @param groupId the group ID
534            * @param classNameId the class name ID
535            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
536            * @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
537            * @throws SystemException if a system exception occurred
538            */
539            public com.liferay.portlet.trash.model.TrashEntry fetchByG_C_First(
540                    long groupId, long classNameId,
541                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    
544            /**
545            * Returns the last trash entry in the ordered set where groupId = &#63; and classNameId = &#63;.
546            *
547            * @param groupId the group ID
548            * @param classNameId the class name ID
549            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
550            * @return the last matching trash entry
551            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
552            * @throws SystemException if a system exception occurred
553            */
554            public com.liferay.portlet.trash.model.TrashEntry findByG_C_Last(
555                    long groupId, long classNameId,
556                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
557                    throws com.liferay.portal.kernel.exception.SystemException,
558                            com.liferay.portlet.trash.NoSuchEntryException;
559    
560            /**
561            * Returns the last trash entry in the ordered set where groupId = &#63; and classNameId = &#63;.
562            *
563            * @param groupId the group ID
564            * @param classNameId the class name ID
565            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
566            * @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
567            * @throws SystemException if a system exception occurred
568            */
569            public com.liferay.portlet.trash.model.TrashEntry fetchByG_C_Last(
570                    long groupId, long classNameId,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException;
573    
574            /**
575            * Returns the trash entries before and after the current trash entry in the ordered set where groupId = &#63; and classNameId = &#63;.
576            *
577            * @param entryId the primary key of the current trash entry
578            * @param groupId the group ID
579            * @param classNameId the class name ID
580            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
581            * @return the previous, current, and next trash entry
582            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
583            * @throws SystemException if a system exception occurred
584            */
585            public com.liferay.portlet.trash.model.TrashEntry[] findByG_C_PrevAndNext(
586                    long entryId, long groupId, long classNameId,
587                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
588                    throws com.liferay.portal.kernel.exception.SystemException,
589                            com.liferay.portlet.trash.NoSuchEntryException;
590    
591            /**
592            * Removes all the trash entries where groupId = &#63; and classNameId = &#63; from the database.
593            *
594            * @param groupId the group ID
595            * @param classNameId the class name ID
596            * @throws SystemException if a system exception occurred
597            */
598            public void removeByG_C(long groupId, long classNameId)
599                    throws com.liferay.portal.kernel.exception.SystemException;
600    
601            /**
602            * Returns the number of trash entries where groupId = &#63; and classNameId = &#63;.
603            *
604            * @param groupId the group ID
605            * @param classNameId the class name ID
606            * @return the number of matching trash entries
607            * @throws SystemException if a system exception occurred
608            */
609            public int countByG_C(long groupId, long classNameId)
610                    throws com.liferay.portal.kernel.exception.SystemException;
611    
612            /**
613            * 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.
614            *
615            * @param classNameId the class name ID
616            * @param classPK the class p k
617            * @return the matching trash entry
618            * @throws com.liferay.portlet.trash.NoSuchEntryException if a matching trash entry could not be found
619            * @throws SystemException if a system exception occurred
620            */
621            public com.liferay.portlet.trash.model.TrashEntry findByC_C(
622                    long classNameId, long classPK)
623                    throws com.liferay.portal.kernel.exception.SystemException,
624                            com.liferay.portlet.trash.NoSuchEntryException;
625    
626            /**
627            * 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.
628            *
629            * @param classNameId the class name ID
630            * @param classPK the class p k
631            * @return the matching trash entry, or <code>null</code> if a matching trash entry could not be found
632            * @throws SystemException if a system exception occurred
633            */
634            public com.liferay.portlet.trash.model.TrashEntry fetchByC_C(
635                    long classNameId, long classPK)
636                    throws com.liferay.portal.kernel.exception.SystemException;
637    
638            /**
639            * 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.
640            *
641            * @param classNameId the class name ID
642            * @param classPK the class p k
643            * @param retrieveFromCache whether to use the finder cache
644            * @return the matching trash entry, or <code>null</code> if a matching trash entry could not be found
645            * @throws SystemException if a system exception occurred
646            */
647            public com.liferay.portlet.trash.model.TrashEntry fetchByC_C(
648                    long classNameId, long classPK, boolean retrieveFromCache)
649                    throws com.liferay.portal.kernel.exception.SystemException;
650    
651            /**
652            * Removes the trash entry where classNameId = &#63; and classPK = &#63; from the database.
653            *
654            * @param classNameId the class name ID
655            * @param classPK the class p k
656            * @return the trash entry that was removed
657            * @throws SystemException if a system exception occurred
658            */
659            public com.liferay.portlet.trash.model.TrashEntry removeByC_C(
660                    long classNameId, long classPK)
661                    throws com.liferay.portal.kernel.exception.SystemException,
662                            com.liferay.portlet.trash.NoSuchEntryException;
663    
664            /**
665            * Returns the number of trash entries where classNameId = &#63; and classPK = &#63;.
666            *
667            * @param classNameId the class name ID
668            * @param classPK the class p k
669            * @return the number of matching trash entries
670            * @throws SystemException if a system exception occurred
671            */
672            public int countByC_C(long classNameId, long classPK)
673                    throws com.liferay.portal.kernel.exception.SystemException;
674    
675            /**
676            * Caches the trash entry in the entity cache if it is enabled.
677            *
678            * @param trashEntry the trash entry
679            */
680            public void cacheResult(
681                    com.liferay.portlet.trash.model.TrashEntry trashEntry);
682    
683            /**
684            * Caches the trash entries in the entity cache if it is enabled.
685            *
686            * @param trashEntries the trash entries
687            */
688            public void cacheResult(
689                    java.util.List<com.liferay.portlet.trash.model.TrashEntry> trashEntries);
690    
691            /**
692            * Creates a new trash entry with the primary key. Does not add the trash entry to the database.
693            *
694            * @param entryId the primary key for the new trash entry
695            * @return the new trash entry
696            */
697            public com.liferay.portlet.trash.model.TrashEntry create(long entryId);
698    
699            /**
700            * Removes the trash entry with the primary key from the database. Also notifies the appropriate model listeners.
701            *
702            * @param entryId the primary key of the trash entry
703            * @return the trash entry that was removed
704            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
705            * @throws SystemException if a system exception occurred
706            */
707            public com.liferay.portlet.trash.model.TrashEntry remove(long entryId)
708                    throws com.liferay.portal.kernel.exception.SystemException,
709                            com.liferay.portlet.trash.NoSuchEntryException;
710    
711            public com.liferay.portlet.trash.model.TrashEntry updateImpl(
712                    com.liferay.portlet.trash.model.TrashEntry trashEntry)
713                    throws com.liferay.portal.kernel.exception.SystemException;
714    
715            /**
716            * Returns the trash entry with the primary key or throws a {@link com.liferay.portlet.trash.NoSuchEntryException} if it could not be found.
717            *
718            * @param entryId the primary key of the trash entry
719            * @return the trash entry
720            * @throws com.liferay.portlet.trash.NoSuchEntryException if a trash entry with the primary key could not be found
721            * @throws SystemException if a system exception occurred
722            */
723            public com.liferay.portlet.trash.model.TrashEntry findByPrimaryKey(
724                    long entryId)
725                    throws com.liferay.portal.kernel.exception.SystemException,
726                            com.liferay.portlet.trash.NoSuchEntryException;
727    
728            /**
729            * Returns the trash entry with the primary key or returns <code>null</code> if it could not be found.
730            *
731            * @param entryId the primary key of the trash entry
732            * @return the trash entry, or <code>null</code> if a trash entry with the primary key could not be found
733            * @throws SystemException if a system exception occurred
734            */
735            public com.liferay.portlet.trash.model.TrashEntry fetchByPrimaryKey(
736                    long entryId)
737                    throws com.liferay.portal.kernel.exception.SystemException;
738    
739            /**
740            * Returns all the trash entries.
741            *
742            * @return the trash entries
743            * @throws SystemException if a system exception occurred
744            */
745            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll()
746                    throws com.liferay.portal.kernel.exception.SystemException;
747    
748            /**
749            * Returns a range of all the trash entries.
750            *
751            * <p>
752            * 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.
753            * </p>
754            *
755            * @param start the lower bound of the range of trash entries
756            * @param end the upper bound of the range of trash entries (not inclusive)
757            * @return the range of trash entries
758            * @throws SystemException if a system exception occurred
759            */
760            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll(
761                    int start, int end)
762                    throws com.liferay.portal.kernel.exception.SystemException;
763    
764            /**
765            * Returns an ordered range of all the trash entries.
766            *
767            * <p>
768            * 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.
769            * </p>
770            *
771            * @param start the lower bound of the range of trash entries
772            * @param end the upper bound of the range of trash entries (not inclusive)
773            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
774            * @return the ordered range of trash entries
775            * @throws SystemException if a system exception occurred
776            */
777            public java.util.List<com.liferay.portlet.trash.model.TrashEntry> findAll(
778                    int start, int end,
779                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
780                    throws com.liferay.portal.kernel.exception.SystemException;
781    
782            /**
783            * Removes all the trash entries from the database.
784            *
785            * @throws SystemException if a system exception occurred
786            */
787            public void removeAll()
788                    throws com.liferay.portal.kernel.exception.SystemException;
789    
790            /**
791            * Returns the number of trash entries.
792            *
793            * @return the number of trash entries
794            * @throws SystemException if a system exception occurred
795            */
796            public int countAll()
797                    throws com.liferay.portal.kernel.exception.SystemException;
798    }