001    /**
002     * Copyright (c) 2000-2012 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.portal.service.persistence;
016    
017    import com.liferay.portal.model.RepositoryEntry;
018    
019    /**
020     * The persistence interface for the repository entry service.
021     *
022     * <p>
023     * Caching information and settings can be found in <code>portal.properties</code>
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see RepositoryEntryPersistenceImpl
028     * @see RepositoryEntryUtil
029     * @generated
030     */
031    public interface RepositoryEntryPersistence extends BasePersistence<RepositoryEntry> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify or reference this interface directly. Always use {@link RepositoryEntryUtil} to access the repository entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
036             */
037    
038            /**
039            * Returns all the repository entries where uuid = &#63;.
040            *
041            * @param uuid the uuid
042            * @return the matching repository entries
043            * @throws SystemException if a system exception occurred
044            */
045            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid(
046                    java.lang.String uuid)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            /**
050            * Returns a range of all the repository entries where uuid = &#63;.
051            *
052            * <p>
053            * 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.portal.model.impl.RepositoryEntryModelImpl}. 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.
054            * </p>
055            *
056            * @param uuid the uuid
057            * @param start the lower bound of the range of repository entries
058            * @param end the upper bound of the range of repository entries (not inclusive)
059            * @return the range of matching repository entries
060            * @throws SystemException if a system exception occurred
061            */
062            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid(
063                    java.lang.String uuid, int start, int end)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            /**
067            * Returns an ordered range of all the repository entries where uuid = &#63;.
068            *
069            * <p>
070            * 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.portal.model.impl.RepositoryEntryModelImpl}. 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.
071            * </p>
072            *
073            * @param uuid the uuid
074            * @param start the lower bound of the range of repository entries
075            * @param end the upper bound of the range of repository entries (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching repository entries
078            * @throws SystemException if a system exception occurred
079            */
080            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid(
081                    java.lang.String uuid, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            /**
086            * Returns the first repository entry in the ordered set where uuid = &#63;.
087            *
088            * @param uuid the uuid
089            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
090            * @return the first matching repository entry
091            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portal.model.RepositoryEntry findByUuid_First(
095                    java.lang.String uuid,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.NoSuchRepositoryEntryException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            /**
101            * Returns the first repository entry in the ordered set where uuid = &#63;.
102            *
103            * @param uuid the uuid
104            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
105            * @return the first matching repository entry, or <code>null</code> if a matching repository entry could not be found
106            * @throws SystemException if a system exception occurred
107            */
108            public com.liferay.portal.model.RepositoryEntry fetchByUuid_First(
109                    java.lang.String uuid,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            /**
114            * Returns the last repository entry in the ordered set where uuid = &#63;.
115            *
116            * @param uuid the uuid
117            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
118            * @return the last matching repository entry
119            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
120            * @throws SystemException if a system exception occurred
121            */
122            public com.liferay.portal.model.RepositoryEntry findByUuid_Last(
123                    java.lang.String uuid,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.NoSuchRepositoryEntryException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * Returns the last repository entry in the ordered set where uuid = &#63;.
130            *
131            * @param uuid the uuid
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the last matching repository entry, or <code>null</code> if a matching repository entry could not be found
134            * @throws SystemException if a system exception occurred
135            */
136            public com.liferay.portal.model.RepositoryEntry fetchByUuid_Last(
137                    java.lang.String uuid,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            /**
142            * Returns the repository entries before and after the current repository entry in the ordered set where uuid = &#63;.
143            *
144            * @param repositoryEntryId the primary key of the current repository entry
145            * @param uuid the uuid
146            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
147            * @return the previous, current, and next repository entry
148            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public com.liferay.portal.model.RepositoryEntry[] findByUuid_PrevAndNext(
152                    long repositoryEntryId, java.lang.String uuid,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.NoSuchRepositoryEntryException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Removes all the repository entries where uuid = &#63; from the database.
159            *
160            * @param uuid the uuid
161            * @throws SystemException if a system exception occurred
162            */
163            public void removeByUuid(java.lang.String uuid)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            /**
167            * Returns the number of repository entries where uuid = &#63;.
168            *
169            * @param uuid the uuid
170            * @return the number of matching repository entries
171            * @throws SystemException if a system exception occurred
172            */
173            public int countByUuid(java.lang.String uuid)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            /**
177            * Returns the repository entry where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portal.NoSuchRepositoryEntryException} if it could not be found.
178            *
179            * @param uuid the uuid
180            * @param groupId the group ID
181            * @return the matching repository entry
182            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
183            * @throws SystemException if a system exception occurred
184            */
185            public com.liferay.portal.model.RepositoryEntry findByUUID_G(
186                    java.lang.String uuid, long groupId)
187                    throws com.liferay.portal.NoSuchRepositoryEntryException,
188                            com.liferay.portal.kernel.exception.SystemException;
189    
190            /**
191            * Returns the repository entry where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
192            *
193            * @param uuid the uuid
194            * @param groupId the group ID
195            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
196            * @throws SystemException if a system exception occurred
197            */
198            public com.liferay.portal.model.RepositoryEntry fetchByUUID_G(
199                    java.lang.String uuid, long groupId)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            /**
203            * Returns the repository entry where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
204            *
205            * @param uuid the uuid
206            * @param groupId the group ID
207            * @param retrieveFromCache whether to use the finder cache
208            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
209            * @throws SystemException if a system exception occurred
210            */
211            public com.liferay.portal.model.RepositoryEntry fetchByUUID_G(
212                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
213                    throws com.liferay.portal.kernel.exception.SystemException;
214    
215            /**
216            * Removes the repository entry where uuid = &#63; and groupId = &#63; from the database.
217            *
218            * @param uuid the uuid
219            * @param groupId the group ID
220            * @return the repository entry that was removed
221            * @throws SystemException if a system exception occurred
222            */
223            public com.liferay.portal.model.RepositoryEntry removeByUUID_G(
224                    java.lang.String uuid, long groupId)
225                    throws com.liferay.portal.NoSuchRepositoryEntryException,
226                            com.liferay.portal.kernel.exception.SystemException;
227    
228            /**
229            * Returns the number of repository entries where uuid = &#63; and groupId = &#63;.
230            *
231            * @param uuid the uuid
232            * @param groupId the group ID
233            * @return the number of matching repository entries
234            * @throws SystemException if a system exception occurred
235            */
236            public int countByUUID_G(java.lang.String uuid, long groupId)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * Returns all the repository entries where repositoryId = &#63;.
241            *
242            * @param repositoryId the repository ID
243            * @return the matching repository entries
244            * @throws SystemException if a system exception occurred
245            */
246            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId(
247                    long repositoryId)
248                    throws com.liferay.portal.kernel.exception.SystemException;
249    
250            /**
251            * Returns a range of all the repository entries where repositoryId = &#63;.
252            *
253            * <p>
254            * 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.portal.model.impl.RepositoryEntryModelImpl}. 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.
255            * </p>
256            *
257            * @param repositoryId the repository ID
258            * @param start the lower bound of the range of repository entries
259            * @param end the upper bound of the range of repository entries (not inclusive)
260            * @return the range of matching repository entries
261            * @throws SystemException if a system exception occurred
262            */
263            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId(
264                    long repositoryId, int start, int end)
265                    throws com.liferay.portal.kernel.exception.SystemException;
266    
267            /**
268            * Returns an ordered range of all the repository entries where repositoryId = &#63;.
269            *
270            * <p>
271            * 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.portal.model.impl.RepositoryEntryModelImpl}. 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.
272            * </p>
273            *
274            * @param repositoryId the repository ID
275            * @param start the lower bound of the range of repository entries
276            * @param end the upper bound of the range of repository entries (not inclusive)
277            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
278            * @return the ordered range of matching repository entries
279            * @throws SystemException if a system exception occurred
280            */
281            public java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId(
282                    long repositoryId, int start, int end,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException;
285    
286            /**
287            * Returns the first repository entry in the ordered set where repositoryId = &#63;.
288            *
289            * @param repositoryId the repository ID
290            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
291            * @return the first matching repository entry
292            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
293            * @throws SystemException if a system exception occurred
294            */
295            public com.liferay.portal.model.RepositoryEntry findByRepositoryId_First(
296                    long repositoryId,
297                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
298                    throws com.liferay.portal.NoSuchRepositoryEntryException,
299                            com.liferay.portal.kernel.exception.SystemException;
300    
301            /**
302            * Returns the first repository entry in the ordered set where repositoryId = &#63;.
303            *
304            * @param repositoryId the repository ID
305            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
306            * @return the first matching repository entry, or <code>null</code> if a matching repository entry could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public com.liferay.portal.model.RepositoryEntry fetchByRepositoryId_First(
310                    long repositoryId,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException;
313    
314            /**
315            * Returns the last repository entry in the ordered set where repositoryId = &#63;.
316            *
317            * @param repositoryId the repository ID
318            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
319            * @return the last matching repository entry
320            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
321            * @throws SystemException if a system exception occurred
322            */
323            public com.liferay.portal.model.RepositoryEntry findByRepositoryId_Last(
324                    long repositoryId,
325                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326                    throws com.liferay.portal.NoSuchRepositoryEntryException,
327                            com.liferay.portal.kernel.exception.SystemException;
328    
329            /**
330            * Returns the last repository entry in the ordered set where repositoryId = &#63;.
331            *
332            * @param repositoryId the repository ID
333            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
334            * @return the last matching repository entry, or <code>null</code> if a matching repository entry could not be found
335            * @throws SystemException if a system exception occurred
336            */
337            public com.liferay.portal.model.RepositoryEntry fetchByRepositoryId_Last(
338                    long repositoryId,
339                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * Returns the repository entries before and after the current repository entry in the ordered set where repositoryId = &#63;.
344            *
345            * @param repositoryEntryId the primary key of the current repository entry
346            * @param repositoryId the repository ID
347            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
348            * @return the previous, current, and next repository entry
349            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
350            * @throws SystemException if a system exception occurred
351            */
352            public com.liferay.portal.model.RepositoryEntry[] findByRepositoryId_PrevAndNext(
353                    long repositoryEntryId, long repositoryId,
354                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
355                    throws com.liferay.portal.NoSuchRepositoryEntryException,
356                            com.liferay.portal.kernel.exception.SystemException;
357    
358            /**
359            * Removes all the repository entries where repositoryId = &#63; from the database.
360            *
361            * @param repositoryId the repository ID
362            * @throws SystemException if a system exception occurred
363            */
364            public void removeByRepositoryId(long repositoryId)
365                    throws com.liferay.portal.kernel.exception.SystemException;
366    
367            /**
368            * Returns the number of repository entries where repositoryId = &#63;.
369            *
370            * @param repositoryId the repository ID
371            * @return the number of matching repository entries
372            * @throws SystemException if a system exception occurred
373            */
374            public int countByRepositoryId(long repositoryId)
375                    throws com.liferay.portal.kernel.exception.SystemException;
376    
377            /**
378            * Returns the repository entry where repositoryId = &#63; and mappedId = &#63; or throws a {@link com.liferay.portal.NoSuchRepositoryEntryException} if it could not be found.
379            *
380            * @param repositoryId the repository ID
381            * @param mappedId the mapped ID
382            * @return the matching repository entry
383            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
384            * @throws SystemException if a system exception occurred
385            */
386            public com.liferay.portal.model.RepositoryEntry findByR_M(
387                    long repositoryId, java.lang.String mappedId)
388                    throws com.liferay.portal.NoSuchRepositoryEntryException,
389                            com.liferay.portal.kernel.exception.SystemException;
390    
391            /**
392            * Returns the repository entry where repositoryId = &#63; and mappedId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
393            *
394            * @param repositoryId the repository ID
395            * @param mappedId the mapped ID
396            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
397            * @throws SystemException if a system exception occurred
398            */
399            public com.liferay.portal.model.RepositoryEntry fetchByR_M(
400                    long repositoryId, java.lang.String mappedId)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            /**
404            * Returns the repository entry where repositoryId = &#63; and mappedId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
405            *
406            * @param repositoryId the repository ID
407            * @param mappedId the mapped ID
408            * @param retrieveFromCache whether to use the finder cache
409            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public com.liferay.portal.model.RepositoryEntry fetchByR_M(
413                    long repositoryId, java.lang.String mappedId, boolean retrieveFromCache)
414                    throws com.liferay.portal.kernel.exception.SystemException;
415    
416            /**
417            * Removes the repository entry where repositoryId = &#63; and mappedId = &#63; from the database.
418            *
419            * @param repositoryId the repository ID
420            * @param mappedId the mapped ID
421            * @return the repository entry that was removed
422            * @throws SystemException if a system exception occurred
423            */
424            public com.liferay.portal.model.RepositoryEntry removeByR_M(
425                    long repositoryId, java.lang.String mappedId)
426                    throws com.liferay.portal.NoSuchRepositoryEntryException,
427                            com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Returns the number of repository entries where repositoryId = &#63; and mappedId = &#63;.
431            *
432            * @param repositoryId the repository ID
433            * @param mappedId the mapped ID
434            * @return the number of matching repository entries
435            * @throws SystemException if a system exception occurred
436            */
437            public int countByR_M(long repositoryId, java.lang.String mappedId)
438                    throws com.liferay.portal.kernel.exception.SystemException;
439    
440            /**
441            * Caches the repository entry in the entity cache if it is enabled.
442            *
443            * @param repositoryEntry the repository entry
444            */
445            public void cacheResult(
446                    com.liferay.portal.model.RepositoryEntry repositoryEntry);
447    
448            /**
449            * Caches the repository entries in the entity cache if it is enabled.
450            *
451            * @param repositoryEntries the repository entries
452            */
453            public void cacheResult(
454                    java.util.List<com.liferay.portal.model.RepositoryEntry> repositoryEntries);
455    
456            /**
457            * Creates a new repository entry with the primary key. Does not add the repository entry to the database.
458            *
459            * @param repositoryEntryId the primary key for the new repository entry
460            * @return the new repository entry
461            */
462            public com.liferay.portal.model.RepositoryEntry create(
463                    long repositoryEntryId);
464    
465            /**
466            * Removes the repository entry with the primary key from the database. Also notifies the appropriate model listeners.
467            *
468            * @param repositoryEntryId the primary key of the repository entry
469            * @return the repository entry that was removed
470            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
471            * @throws SystemException if a system exception occurred
472            */
473            public com.liferay.portal.model.RepositoryEntry remove(
474                    long repositoryEntryId)
475                    throws com.liferay.portal.NoSuchRepositoryEntryException,
476                            com.liferay.portal.kernel.exception.SystemException;
477    
478            public com.liferay.portal.model.RepositoryEntry updateImpl(
479                    com.liferay.portal.model.RepositoryEntry repositoryEntry)
480                    throws com.liferay.portal.kernel.exception.SystemException;
481    
482            /**
483            * Returns the repository entry with the primary key or throws a {@link com.liferay.portal.NoSuchRepositoryEntryException} if it could not be found.
484            *
485            * @param repositoryEntryId the primary key of the repository entry
486            * @return the repository entry
487            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public com.liferay.portal.model.RepositoryEntry findByPrimaryKey(
491                    long repositoryEntryId)
492                    throws com.liferay.portal.NoSuchRepositoryEntryException,
493                            com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * Returns the repository entry with the primary key or returns <code>null</code> if it could not be found.
497            *
498            * @param repositoryEntryId the primary key of the repository entry
499            * @return the repository entry, or <code>null</code> if a repository entry with the primary key could not be found
500            * @throws SystemException if a system exception occurred
501            */
502            public com.liferay.portal.model.RepositoryEntry fetchByPrimaryKey(
503                    long repositoryEntryId)
504                    throws com.liferay.portal.kernel.exception.SystemException;
505    
506            /**
507            * Returns all the repository entries.
508            *
509            * @return the repository entries
510            * @throws SystemException if a system exception occurred
511            */
512            public java.util.List<com.liferay.portal.model.RepositoryEntry> findAll()
513                    throws com.liferay.portal.kernel.exception.SystemException;
514    
515            /**
516            * Returns a range of all the repository entries.
517            *
518            * <p>
519            * 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.portal.model.impl.RepositoryEntryModelImpl}. 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.
520            * </p>
521            *
522            * @param start the lower bound of the range of repository entries
523            * @param end the upper bound of the range of repository entries (not inclusive)
524            * @return the range of repository entries
525            * @throws SystemException if a system exception occurred
526            */
527            public java.util.List<com.liferay.portal.model.RepositoryEntry> findAll(
528                    int start, int end)
529                    throws com.liferay.portal.kernel.exception.SystemException;
530    
531            /**
532            * Returns an ordered range of all the repository entries.
533            *
534            * <p>
535            * 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.portal.model.impl.RepositoryEntryModelImpl}. 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.
536            * </p>
537            *
538            * @param start the lower bound of the range of repository entries
539            * @param end the upper bound of the range of repository entries (not inclusive)
540            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
541            * @return the ordered range of repository entries
542            * @throws SystemException if a system exception occurred
543            */
544            public java.util.List<com.liferay.portal.model.RepositoryEntry> findAll(
545                    int start, int end,
546                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
547                    throws com.liferay.portal.kernel.exception.SystemException;
548    
549            /**
550            * Removes all the repository entries from the database.
551            *
552            * @throws SystemException if a system exception occurred
553            */
554            public void removeAll()
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Returns the number of repository entries.
559            *
560            * @return the number of repository entries
561            * @throws SystemException if a system exception occurred
562            */
563            public int countAll()
564                    throws com.liferay.portal.kernel.exception.SystemException;
565    }