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.trash.kernel.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.service.persistence.BasePersistence;
020    
021    import com.liferay.trash.kernel.exception.NoSuchVersionException;
022    import com.liferay.trash.kernel.model.TrashVersion;
023    
024    /**
025     * The persistence interface for the trash version service.
026     *
027     * <p>
028     * Caching information and settings can be found in <code>portal.properties</code>
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see com.liferay.portlet.trash.service.persistence.impl.TrashVersionPersistenceImpl
033     * @see TrashVersionUtil
034     * @generated
035     */
036    @ProviderType
037    public interface TrashVersionPersistence extends BasePersistence<TrashVersion> {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify or reference this interface directly. Always use {@link TrashVersionUtil} to access the trash version persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
042             */
043    
044            /**
045            * Returns all the trash versions where entryId = &#63;.
046            *
047            * @param entryId the entry ID
048            * @return the matching trash versions
049            */
050            public java.util.List<TrashVersion> findByEntryId(long entryId);
051    
052            /**
053            * Returns a range of all the trash versions where entryId = &#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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashVersionModelImpl}. 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 entryId the entry ID
060            * @param start the lower bound of the range of trash versions
061            * @param end the upper bound of the range of trash versions (not inclusive)
062            * @return the range of matching trash versions
063            */
064            public java.util.List<TrashVersion> findByEntryId(long entryId, int start,
065                    int end);
066    
067            /**
068            * Returns an ordered range of all the trash versions where entryId = &#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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashVersionModelImpl}. 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 entryId the entry ID
075            * @param start the lower bound of the range of trash versions
076            * @param end the upper bound of the range of trash versions (not inclusive)
077            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
078            * @return the ordered range of matching trash versions
079            */
080            public java.util.List<TrashVersion> findByEntryId(long entryId, int start,
081                    int end,
082                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator);
083    
084            /**
085            * Returns an ordered range of all the trash versions where entryId = &#63;.
086            *
087            * <p>
088            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashVersionModelImpl}. 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.
089            * </p>
090            *
091            * @param entryId the entry ID
092            * @param start the lower bound of the range of trash versions
093            * @param end the upper bound of the range of trash versions (not inclusive)
094            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
095            * @param retrieveFromCache whether to retrieve from the finder cache
096            * @return the ordered range of matching trash versions
097            */
098            public java.util.List<TrashVersion> findByEntryId(long entryId, int start,
099                    int end,
100                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator,
101                    boolean retrieveFromCache);
102    
103            /**
104            * Returns the first trash version in the ordered set where entryId = &#63;.
105            *
106            * @param entryId the entry ID
107            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
108            * @return the first matching trash version
109            * @throws NoSuchVersionException if a matching trash version could not be found
110            */
111            public TrashVersion findByEntryId_First(long entryId,
112                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator)
113                    throws NoSuchVersionException;
114    
115            /**
116            * Returns the first trash version in the ordered set where entryId = &#63;.
117            *
118            * @param entryId the entry ID
119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
120            * @return the first matching trash version, or <code>null</code> if a matching trash version could not be found
121            */
122            public TrashVersion fetchByEntryId_First(long entryId,
123                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator);
124    
125            /**
126            * Returns the last trash version in the ordered set where entryId = &#63;.
127            *
128            * @param entryId the entry ID
129            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
130            * @return the last matching trash version
131            * @throws NoSuchVersionException if a matching trash version could not be found
132            */
133            public TrashVersion findByEntryId_Last(long entryId,
134                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator)
135                    throws NoSuchVersionException;
136    
137            /**
138            * Returns the last trash version in the ordered set where entryId = &#63;.
139            *
140            * @param entryId the entry ID
141            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
142            * @return the last matching trash version, or <code>null</code> if a matching trash version could not be found
143            */
144            public TrashVersion fetchByEntryId_Last(long entryId,
145                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator);
146    
147            /**
148            * Returns the trash versions before and after the current trash version in the ordered set where entryId = &#63;.
149            *
150            * @param versionId the primary key of the current trash version
151            * @param entryId the entry ID
152            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
153            * @return the previous, current, and next trash version
154            * @throws NoSuchVersionException if a trash version with the primary key could not be found
155            */
156            public TrashVersion[] findByEntryId_PrevAndNext(long versionId,
157                    long entryId,
158                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator)
159                    throws NoSuchVersionException;
160    
161            /**
162            * Removes all the trash versions where entryId = &#63; from the database.
163            *
164            * @param entryId the entry ID
165            */
166            public void removeByEntryId(long entryId);
167    
168            /**
169            * Returns the number of trash versions where entryId = &#63;.
170            *
171            * @param entryId the entry ID
172            * @return the number of matching trash versions
173            */
174            public int countByEntryId(long entryId);
175    
176            /**
177            * Returns all the trash versions where entryId = &#63; and classNameId = &#63;.
178            *
179            * @param entryId the entry ID
180            * @param classNameId the class name ID
181            * @return the matching trash versions
182            */
183            public java.util.List<TrashVersion> findByE_C(long entryId, long classNameId);
184    
185            /**
186            * Returns a range of all the trash versions where entryId = &#63; and classNameId = &#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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashVersionModelImpl}. 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 entryId the entry ID
193            * @param classNameId the class name ID
194            * @param start the lower bound of the range of trash versions
195            * @param end the upper bound of the range of trash versions (not inclusive)
196            * @return the range of matching trash versions
197            */
198            public java.util.List<TrashVersion> findByE_C(long entryId,
199                    long classNameId, int start, int end);
200    
201            /**
202            * Returns an ordered range of all the trash versions where entryId = &#63; and classNameId = &#63;.
203            *
204            * <p>
205            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashVersionModelImpl}. 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.
206            * </p>
207            *
208            * @param entryId the entry ID
209            * @param classNameId the class name ID
210            * @param start the lower bound of the range of trash versions
211            * @param end the upper bound of the range of trash versions (not inclusive)
212            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
213            * @return the ordered range of matching trash versions
214            */
215            public java.util.List<TrashVersion> findByE_C(long entryId,
216                    long classNameId, int start, int end,
217                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator);
218    
219            /**
220            * Returns an ordered range of all the trash versions where entryId = &#63; and classNameId = &#63;.
221            *
222            * <p>
223            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashVersionModelImpl}. 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.
224            * </p>
225            *
226            * @param entryId the entry ID
227            * @param classNameId the class name ID
228            * @param start the lower bound of the range of trash versions
229            * @param end the upper bound of the range of trash versions (not inclusive)
230            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
231            * @param retrieveFromCache whether to retrieve from the finder cache
232            * @return the ordered range of matching trash versions
233            */
234            public java.util.List<TrashVersion> findByE_C(long entryId,
235                    long classNameId, int start, int end,
236                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator,
237                    boolean retrieveFromCache);
238    
239            /**
240            * Returns the first trash version in the ordered set where entryId = &#63; and classNameId = &#63;.
241            *
242            * @param entryId the entry ID
243            * @param classNameId the class name ID
244            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
245            * @return the first matching trash version
246            * @throws NoSuchVersionException if a matching trash version could not be found
247            */
248            public TrashVersion findByE_C_First(long entryId, long classNameId,
249                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator)
250                    throws NoSuchVersionException;
251    
252            /**
253            * Returns the first trash version in the ordered set where entryId = &#63; and classNameId = &#63;.
254            *
255            * @param entryId the entry ID
256            * @param classNameId the class name ID
257            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
258            * @return the first matching trash version, or <code>null</code> if a matching trash version could not be found
259            */
260            public TrashVersion fetchByE_C_First(long entryId, long classNameId,
261                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator);
262    
263            /**
264            * Returns the last trash version in the ordered set where entryId = &#63; and classNameId = &#63;.
265            *
266            * @param entryId the entry ID
267            * @param classNameId the class name ID
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the last matching trash version
270            * @throws NoSuchVersionException if a matching trash version could not be found
271            */
272            public TrashVersion findByE_C_Last(long entryId, long classNameId,
273                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator)
274                    throws NoSuchVersionException;
275    
276            /**
277            * Returns the last trash version in the ordered set where entryId = &#63; and classNameId = &#63;.
278            *
279            * @param entryId the entry ID
280            * @param classNameId the class name ID
281            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
282            * @return the last matching trash version, or <code>null</code> if a matching trash version could not be found
283            */
284            public TrashVersion fetchByE_C_Last(long entryId, long classNameId,
285                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator);
286    
287            /**
288            * Returns the trash versions before and after the current trash version in the ordered set where entryId = &#63; and classNameId = &#63;.
289            *
290            * @param versionId the primary key of the current trash version
291            * @param entryId the entry ID
292            * @param classNameId the class name ID
293            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
294            * @return the previous, current, and next trash version
295            * @throws NoSuchVersionException if a trash version with the primary key could not be found
296            */
297            public TrashVersion[] findByE_C_PrevAndNext(long versionId, long entryId,
298                    long classNameId,
299                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator)
300                    throws NoSuchVersionException;
301    
302            /**
303            * Removes all the trash versions where entryId = &#63; and classNameId = &#63; from the database.
304            *
305            * @param entryId the entry ID
306            * @param classNameId the class name ID
307            */
308            public void removeByE_C(long entryId, long classNameId);
309    
310            /**
311            * Returns the number of trash versions where entryId = &#63; and classNameId = &#63;.
312            *
313            * @param entryId the entry ID
314            * @param classNameId the class name ID
315            * @return the number of matching trash versions
316            */
317            public int countByE_C(long entryId, long classNameId);
318    
319            /**
320            * Returns the trash version where classNameId = &#63; and classPK = &#63; or throws a {@link NoSuchVersionException} if it could not be found.
321            *
322            * @param classNameId the class name ID
323            * @param classPK the class p k
324            * @return the matching trash version
325            * @throws NoSuchVersionException if a matching trash version could not be found
326            */
327            public TrashVersion findByC_C(long classNameId, long classPK)
328                    throws NoSuchVersionException;
329    
330            /**
331            * Returns the trash version where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
332            *
333            * @param classNameId the class name ID
334            * @param classPK the class p k
335            * @return the matching trash version, or <code>null</code> if a matching trash version could not be found
336            */
337            public TrashVersion fetchByC_C(long classNameId, long classPK);
338    
339            /**
340            * Returns the trash version where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
341            *
342            * @param classNameId the class name ID
343            * @param classPK the class p k
344            * @param retrieveFromCache whether to retrieve from the finder cache
345            * @return the matching trash version, or <code>null</code> if a matching trash version could not be found
346            */
347            public TrashVersion fetchByC_C(long classNameId, long classPK,
348                    boolean retrieveFromCache);
349    
350            /**
351            * Removes the trash version where classNameId = &#63; and classPK = &#63; from the database.
352            *
353            * @param classNameId the class name ID
354            * @param classPK the class p k
355            * @return the trash version that was removed
356            */
357            public TrashVersion removeByC_C(long classNameId, long classPK)
358                    throws NoSuchVersionException;
359    
360            /**
361            * Returns the number of trash versions where classNameId = &#63; and classPK = &#63;.
362            *
363            * @param classNameId the class name ID
364            * @param classPK the class p k
365            * @return the number of matching trash versions
366            */
367            public int countByC_C(long classNameId, long classPK);
368    
369            /**
370            * Caches the trash version in the entity cache if it is enabled.
371            *
372            * @param trashVersion the trash version
373            */
374            public void cacheResult(TrashVersion trashVersion);
375    
376            /**
377            * Caches the trash versions in the entity cache if it is enabled.
378            *
379            * @param trashVersions the trash versions
380            */
381            public void cacheResult(java.util.List<TrashVersion> trashVersions);
382    
383            /**
384            * Creates a new trash version with the primary key. Does not add the trash version to the database.
385            *
386            * @param versionId the primary key for the new trash version
387            * @return the new trash version
388            */
389            public TrashVersion create(long versionId);
390    
391            /**
392            * Removes the trash version with the primary key from the database. Also notifies the appropriate model listeners.
393            *
394            * @param versionId the primary key of the trash version
395            * @return the trash version that was removed
396            * @throws NoSuchVersionException if a trash version with the primary key could not be found
397            */
398            public TrashVersion remove(long versionId) throws NoSuchVersionException;
399    
400            public TrashVersion updateImpl(TrashVersion trashVersion);
401    
402            /**
403            * Returns the trash version with the primary key or throws a {@link NoSuchVersionException} if it could not be found.
404            *
405            * @param versionId the primary key of the trash version
406            * @return the trash version
407            * @throws NoSuchVersionException if a trash version with the primary key could not be found
408            */
409            public TrashVersion findByPrimaryKey(long versionId)
410                    throws NoSuchVersionException;
411    
412            /**
413            * Returns the trash version with the primary key or returns <code>null</code> if it could not be found.
414            *
415            * @param versionId the primary key of the trash version
416            * @return the trash version, or <code>null</code> if a trash version with the primary key could not be found
417            */
418            public TrashVersion fetchByPrimaryKey(long versionId);
419    
420            @Override
421            public java.util.Map<java.io.Serializable, TrashVersion> fetchByPrimaryKeys(
422                    java.util.Set<java.io.Serializable> primaryKeys);
423    
424            /**
425            * Returns all the trash versions.
426            *
427            * @return the trash versions
428            */
429            public java.util.List<TrashVersion> findAll();
430    
431            /**
432            * Returns a range of all the trash versions.
433            *
434            * <p>
435            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashVersionModelImpl}. 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.
436            * </p>
437            *
438            * @param start the lower bound of the range of trash versions
439            * @param end the upper bound of the range of trash versions (not inclusive)
440            * @return the range of trash versions
441            */
442            public java.util.List<TrashVersion> findAll(int start, int end);
443    
444            /**
445            * Returns an ordered range of all the trash versions.
446            *
447            * <p>
448            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashVersionModelImpl}. 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.
449            * </p>
450            *
451            * @param start the lower bound of the range of trash versions
452            * @param end the upper bound of the range of trash versions (not inclusive)
453            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
454            * @return the ordered range of trash versions
455            */
456            public java.util.List<TrashVersion> findAll(int start, int end,
457                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator);
458    
459            /**
460            * Returns an ordered range of all the trash versions.
461            *
462            * <p>
463            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashVersionModelImpl}. 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.
464            * </p>
465            *
466            * @param start the lower bound of the range of trash versions
467            * @param end the upper bound of the range of trash versions (not inclusive)
468            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
469            * @param retrieveFromCache whether to retrieve from the finder cache
470            * @return the ordered range of trash versions
471            */
472            public java.util.List<TrashVersion> findAll(int start, int end,
473                    com.liferay.portal.kernel.util.OrderByComparator<TrashVersion> orderByComparator,
474                    boolean retrieveFromCache);
475    
476            /**
477            * Removes all the trash versions from the database.
478            */
479            public void removeAll();
480    
481            /**
482            * Returns the number of trash versions.
483            *
484            * @return the number of trash versions
485            */
486            public int countAll();
487    }