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