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