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 com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.model.RepositoryEntry;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the repository entry service. This utility wraps {@link RepositoryEntryPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
029     *
030     * <p>
031     * Caching information and settings can be found in <code>portal.properties</code>
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see RepositoryEntryPersistence
036     * @see RepositoryEntryPersistenceImpl
037     * @generated
038     */
039    public class RepositoryEntryUtil {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
044             */
045    
046            /**
047             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
048             */
049            public static void clearCache() {
050                    getPersistence().clearCache();
051            }
052    
053            /**
054             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
055             */
056            public static void clearCache(RepositoryEntry repositoryEntry) {
057                    getPersistence().clearCache(repositoryEntry);
058            }
059    
060            /**
061             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
062             */
063            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
064                    throws SystemException {
065                    return getPersistence().countWithDynamicQuery(dynamicQuery);
066            }
067    
068            /**
069             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
070             */
071            public static List<RepositoryEntry> findWithDynamicQuery(
072                    DynamicQuery dynamicQuery) throws SystemException {
073                    return getPersistence().findWithDynamicQuery(dynamicQuery);
074            }
075    
076            /**
077             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
078             */
079            public static List<RepositoryEntry> findWithDynamicQuery(
080                    DynamicQuery dynamicQuery, int start, int end)
081                    throws SystemException {
082                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
083            }
084    
085            /**
086             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
087             */
088            public static List<RepositoryEntry> findWithDynamicQuery(
089                    DynamicQuery dynamicQuery, int start, int end,
090                    OrderByComparator orderByComparator) throws SystemException {
091                    return getPersistence()
092                                       .findWithDynamicQuery(dynamicQuery, start, end,
093                            orderByComparator);
094            }
095    
096            /**
097             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
098             */
099            public static RepositoryEntry update(RepositoryEntry repositoryEntry)
100                    throws SystemException {
101                    return getPersistence().update(repositoryEntry);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static RepositoryEntry update(RepositoryEntry repositoryEntry,
108                    ServiceContext serviceContext) throws SystemException {
109                    return getPersistence().update(repositoryEntry, serviceContext);
110            }
111    
112            /**
113            * Returns all the repository entries where uuid = &#63;.
114            *
115            * @param uuid the uuid
116            * @return the matching repository entries
117            * @throws SystemException if a system exception occurred
118            */
119            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid(
120                    java.lang.String uuid)
121                    throws com.liferay.portal.kernel.exception.SystemException {
122                    return getPersistence().findByUuid(uuid);
123            }
124    
125            /**
126            * Returns a range of all the repository entries where uuid = &#63;.
127            *
128            * <p>
129            * 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.
130            * </p>
131            *
132            * @param uuid the uuid
133            * @param start the lower bound of the range of repository entries
134            * @param end the upper bound of the range of repository entries (not inclusive)
135            * @return the range of matching repository entries
136            * @throws SystemException if a system exception occurred
137            */
138            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid(
139                    java.lang.String uuid, int start, int end)
140                    throws com.liferay.portal.kernel.exception.SystemException {
141                    return getPersistence().findByUuid(uuid, start, end);
142            }
143    
144            /**
145            * Returns an ordered range of all the repository entries where uuid = &#63;.
146            *
147            * <p>
148            * 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.
149            * </p>
150            *
151            * @param uuid the uuid
152            * @param start the lower bound of the range of repository entries
153            * @param end the upper bound of the range of repository entries (not inclusive)
154            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
155            * @return the ordered range of matching repository entries
156            * @throws SystemException if a system exception occurred
157            */
158            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid(
159                    java.lang.String uuid, int start, int end,
160                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
163            }
164    
165            /**
166            * Returns the first repository entry in the ordered set where uuid = &#63;.
167            *
168            * @param uuid the uuid
169            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
170            * @return the first matching repository entry
171            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portal.model.RepositoryEntry findByUuid_First(
175                    java.lang.String uuid,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177                    throws com.liferay.portal.NoSuchRepositoryEntryException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    return getPersistence().findByUuid_First(uuid, orderByComparator);
180            }
181    
182            /**
183            * Returns the first repository entry in the ordered set where uuid = &#63;.
184            *
185            * @param uuid the uuid
186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
187            * @return the first matching repository entry, or <code>null</code> if a matching repository entry could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public static com.liferay.portal.model.RepositoryEntry fetchByUuid_First(
191                    java.lang.String uuid,
192                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
195            }
196    
197            /**
198            * Returns the last repository entry in the ordered set where uuid = &#63;.
199            *
200            * @param uuid the uuid
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the last matching repository entry
203            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            public static com.liferay.portal.model.RepositoryEntry findByUuid_Last(
207                    java.lang.String uuid,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.NoSuchRepositoryEntryException,
210                            com.liferay.portal.kernel.exception.SystemException {
211                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
212            }
213    
214            /**
215            * Returns the last repository entry in the ordered set where uuid = &#63;.
216            *
217            * @param uuid the uuid
218            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
219            * @return the last matching repository entry, or <code>null</code> if a matching repository entry could not be found
220            * @throws SystemException if a system exception occurred
221            */
222            public static com.liferay.portal.model.RepositoryEntry fetchByUuid_Last(
223                    java.lang.String uuid,
224                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
227            }
228    
229            /**
230            * Returns the repository entries before and after the current repository entry in the ordered set where uuid = &#63;.
231            *
232            * @param repositoryEntryId the primary key of the current repository entry
233            * @param uuid the uuid
234            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
235            * @return the previous, current, and next repository entry
236            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
237            * @throws SystemException if a system exception occurred
238            */
239            public static com.liferay.portal.model.RepositoryEntry[] findByUuid_PrevAndNext(
240                    long repositoryEntryId, java.lang.String uuid,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.NoSuchRepositoryEntryException,
243                            com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence()
245                                       .findByUuid_PrevAndNext(repositoryEntryId, uuid,
246                            orderByComparator);
247            }
248    
249            /**
250            * Removes all the repository entries where uuid = &#63; from the database.
251            *
252            * @param uuid the uuid
253            * @throws SystemException if a system exception occurred
254            */
255            public static void removeByUuid(java.lang.String uuid)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    getPersistence().removeByUuid(uuid);
258            }
259    
260            /**
261            * Returns the number of repository entries where uuid = &#63;.
262            *
263            * @param uuid the uuid
264            * @return the number of matching repository entries
265            * @throws SystemException if a system exception occurred
266            */
267            public static int countByUuid(java.lang.String uuid)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    return getPersistence().countByUuid(uuid);
270            }
271    
272            /**
273            * Returns the repository entry where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portal.NoSuchRepositoryEntryException} if it could not be found.
274            *
275            * @param uuid the uuid
276            * @param groupId the group ID
277            * @return the matching repository entry
278            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public static com.liferay.portal.model.RepositoryEntry findByUUID_G(
282                    java.lang.String uuid, long groupId)
283                    throws com.liferay.portal.NoSuchRepositoryEntryException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    return getPersistence().findByUUID_G(uuid, groupId);
286            }
287    
288            /**
289            * 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.
290            *
291            * @param uuid the uuid
292            * @param groupId the group ID
293            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
294            * @throws SystemException if a system exception occurred
295            */
296            public static com.liferay.portal.model.RepositoryEntry fetchByUUID_G(
297                    java.lang.String uuid, long groupId)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return getPersistence().fetchByUUID_G(uuid, groupId);
300            }
301    
302            /**
303            * 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.
304            *
305            * @param uuid the uuid
306            * @param groupId the group ID
307            * @param retrieveFromCache whether to use the finder cache
308            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public static com.liferay.portal.model.RepositoryEntry fetchByUUID_G(
312                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
315            }
316    
317            /**
318            * Removes the repository entry where uuid = &#63; and groupId = &#63; from the database.
319            *
320            * @param uuid the uuid
321            * @param groupId the group ID
322            * @return the repository entry that was removed
323            * @throws SystemException if a system exception occurred
324            */
325            public static com.liferay.portal.model.RepositoryEntry removeByUUID_G(
326                    java.lang.String uuid, long groupId)
327                    throws com.liferay.portal.NoSuchRepositoryEntryException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    return getPersistence().removeByUUID_G(uuid, groupId);
330            }
331    
332            /**
333            * Returns the number of repository entries where uuid = &#63; and groupId = &#63;.
334            *
335            * @param uuid the uuid
336            * @param groupId the group ID
337            * @return the number of matching repository entries
338            * @throws SystemException if a system exception occurred
339            */
340            public static int countByUUID_G(java.lang.String uuid, long groupId)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence().countByUUID_G(uuid, groupId);
343            }
344    
345            /**
346            * Returns all the repository entries where uuid = &#63; and companyId = &#63;.
347            *
348            * @param uuid the uuid
349            * @param companyId the company ID
350            * @return the matching repository entries
351            * @throws SystemException if a system exception occurred
352            */
353            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid_C(
354                    java.lang.String uuid, long companyId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return getPersistence().findByUuid_C(uuid, companyId);
357            }
358    
359            /**
360            * Returns a range of all the repository entries where uuid = &#63; and companyId = &#63;.
361            *
362            * <p>
363            * 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.
364            * </p>
365            *
366            * @param uuid the uuid
367            * @param companyId the company ID
368            * @param start the lower bound of the range of repository entries
369            * @param end the upper bound of the range of repository entries (not inclusive)
370            * @return the range of matching repository entries
371            * @throws SystemException if a system exception occurred
372            */
373            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid_C(
374                    java.lang.String uuid, long companyId, int start, int end)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
377            }
378    
379            /**
380            * Returns an ordered range of all the repository entries where uuid = &#63; and companyId = &#63;.
381            *
382            * <p>
383            * 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.
384            * </p>
385            *
386            * @param uuid the uuid
387            * @param companyId the company ID
388            * @param start the lower bound of the range of repository entries
389            * @param end the upper bound of the range of repository entries (not inclusive)
390            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
391            * @return the ordered range of matching repository entries
392            * @throws SystemException if a system exception occurred
393            */
394            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByUuid_C(
395                    java.lang.String uuid, long companyId, int start, int end,
396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return getPersistence()
399                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
400            }
401    
402            /**
403            * Returns the first repository entry in the ordered set where uuid = &#63; and companyId = &#63;.
404            *
405            * @param uuid the uuid
406            * @param companyId the company ID
407            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
408            * @return the first matching repository entry
409            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public static com.liferay.portal.model.RepositoryEntry findByUuid_C_First(
413                    java.lang.String uuid, long companyId,
414                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415                    throws com.liferay.portal.NoSuchRepositoryEntryException,
416                            com.liferay.portal.kernel.exception.SystemException {
417                    return getPersistence()
418                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
419            }
420    
421            /**
422            * Returns the first repository entry in the ordered set where uuid = &#63; and companyId = &#63;.
423            *
424            * @param uuid the uuid
425            * @param companyId the company ID
426            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
427            * @return the first matching repository entry, or <code>null</code> if a matching repository entry could not be found
428            * @throws SystemException if a system exception occurred
429            */
430            public static com.liferay.portal.model.RepositoryEntry fetchByUuid_C_First(
431                    java.lang.String uuid, long companyId,
432                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    return getPersistence()
435                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
436            }
437    
438            /**
439            * Returns the last repository entry in the ordered set where uuid = &#63; and companyId = &#63;.
440            *
441            * @param uuid the uuid
442            * @param companyId the company ID
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the last matching repository entry
445            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public static com.liferay.portal.model.RepositoryEntry findByUuid_C_Last(
449                    java.lang.String uuid, long companyId,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.NoSuchRepositoryEntryException,
452                            com.liferay.portal.kernel.exception.SystemException {
453                    return getPersistence()
454                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
455            }
456    
457            /**
458            * Returns the last repository entry in the ordered set where uuid = &#63; and companyId = &#63;.
459            *
460            * @param uuid the uuid
461            * @param companyId the company ID
462            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
463            * @return the last matching repository entry, or <code>null</code> if a matching repository entry could not be found
464            * @throws SystemException if a system exception occurred
465            */
466            public static com.liferay.portal.model.RepositoryEntry fetchByUuid_C_Last(
467                    java.lang.String uuid, long companyId,
468                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    return getPersistence()
471                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
472            }
473    
474            /**
475            * Returns the repository entries before and after the current repository entry in the ordered set where uuid = &#63; and companyId = &#63;.
476            *
477            * @param repositoryEntryId the primary key of the current repository entry
478            * @param uuid the uuid
479            * @param companyId the company ID
480            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
481            * @return the previous, current, and next repository entry
482            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
483            * @throws SystemException if a system exception occurred
484            */
485            public static com.liferay.portal.model.RepositoryEntry[] findByUuid_C_PrevAndNext(
486                    long repositoryEntryId, java.lang.String uuid, long companyId,
487                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
488                    throws com.liferay.portal.NoSuchRepositoryEntryException,
489                            com.liferay.portal.kernel.exception.SystemException {
490                    return getPersistence()
491                                       .findByUuid_C_PrevAndNext(repositoryEntryId, uuid,
492                            companyId, orderByComparator);
493            }
494    
495            /**
496            * Removes all the repository entries where uuid = &#63; and companyId = &#63; from the database.
497            *
498            * @param uuid the uuid
499            * @param companyId the company ID
500            * @throws SystemException if a system exception occurred
501            */
502            public static void removeByUuid_C(java.lang.String uuid, long companyId)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    getPersistence().removeByUuid_C(uuid, companyId);
505            }
506    
507            /**
508            * Returns the number of repository entries where uuid = &#63; and companyId = &#63;.
509            *
510            * @param uuid the uuid
511            * @param companyId the company ID
512            * @return the number of matching repository entries
513            * @throws SystemException if a system exception occurred
514            */
515            public static int countByUuid_C(java.lang.String uuid, long companyId)
516                    throws com.liferay.portal.kernel.exception.SystemException {
517                    return getPersistence().countByUuid_C(uuid, companyId);
518            }
519    
520            /**
521            * Returns all the repository entries where repositoryId = &#63;.
522            *
523            * @param repositoryId the repository ID
524            * @return the matching repository entries
525            * @throws SystemException if a system exception occurred
526            */
527            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId(
528                    long repositoryId)
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    return getPersistence().findByRepositoryId(repositoryId);
531            }
532    
533            /**
534            * Returns a range of all the repository entries where repositoryId = &#63;.
535            *
536            * <p>
537            * 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.
538            * </p>
539            *
540            * @param repositoryId the repository ID
541            * @param start the lower bound of the range of repository entries
542            * @param end the upper bound of the range of repository entries (not inclusive)
543            * @return the range of matching repository entries
544            * @throws SystemException if a system exception occurred
545            */
546            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId(
547                    long repositoryId, int start, int end)
548                    throws com.liferay.portal.kernel.exception.SystemException {
549                    return getPersistence().findByRepositoryId(repositoryId, start, end);
550            }
551    
552            /**
553            * Returns an ordered range of all the repository entries where repositoryId = &#63;.
554            *
555            * <p>
556            * 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.
557            * </p>
558            *
559            * @param repositoryId the repository ID
560            * @param start the lower bound of the range of repository entries
561            * @param end the upper bound of the range of repository entries (not inclusive)
562            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
563            * @return the ordered range of matching repository entries
564            * @throws SystemException if a system exception occurred
565            */
566            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findByRepositoryId(
567                    long repositoryId, int start, int end,
568                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    return getPersistence()
571                                       .findByRepositoryId(repositoryId, start, end,
572                            orderByComparator);
573            }
574    
575            /**
576            * Returns the first repository entry in the ordered set where repositoryId = &#63;.
577            *
578            * @param repositoryId the repository ID
579            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
580            * @return the first matching repository entry
581            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
582            * @throws SystemException if a system exception occurred
583            */
584            public static com.liferay.portal.model.RepositoryEntry findByRepositoryId_First(
585                    long repositoryId,
586                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
587                    throws com.liferay.portal.NoSuchRepositoryEntryException,
588                            com.liferay.portal.kernel.exception.SystemException {
589                    return getPersistence()
590                                       .findByRepositoryId_First(repositoryId, orderByComparator);
591            }
592    
593            /**
594            * Returns the first repository entry in the ordered set where repositoryId = &#63;.
595            *
596            * @param repositoryId the repository ID
597            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
598            * @return the first matching repository entry, or <code>null</code> if a matching repository entry could not be found
599            * @throws SystemException if a system exception occurred
600            */
601            public static com.liferay.portal.model.RepositoryEntry fetchByRepositoryId_First(
602                    long repositoryId,
603                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    return getPersistence()
606                                       .fetchByRepositoryId_First(repositoryId, orderByComparator);
607            }
608    
609            /**
610            * Returns the last repository entry in the ordered set where repositoryId = &#63;.
611            *
612            * @param repositoryId the repository ID
613            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
614            * @return the last matching repository entry
615            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
616            * @throws SystemException if a system exception occurred
617            */
618            public static com.liferay.portal.model.RepositoryEntry findByRepositoryId_Last(
619                    long repositoryId,
620                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
621                    throws com.liferay.portal.NoSuchRepositoryEntryException,
622                            com.liferay.portal.kernel.exception.SystemException {
623                    return getPersistence()
624                                       .findByRepositoryId_Last(repositoryId, orderByComparator);
625            }
626    
627            /**
628            * Returns the last repository entry in the ordered set where repositoryId = &#63;.
629            *
630            * @param repositoryId the repository ID
631            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
632            * @return the last matching repository entry, or <code>null</code> if a matching repository entry could not be found
633            * @throws SystemException if a system exception occurred
634            */
635            public static com.liferay.portal.model.RepositoryEntry fetchByRepositoryId_Last(
636                    long repositoryId,
637                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
638                    throws com.liferay.portal.kernel.exception.SystemException {
639                    return getPersistence()
640                                       .fetchByRepositoryId_Last(repositoryId, orderByComparator);
641            }
642    
643            /**
644            * Returns the repository entries before and after the current repository entry in the ordered set where repositoryId = &#63;.
645            *
646            * @param repositoryEntryId the primary key of the current repository entry
647            * @param repositoryId the repository ID
648            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
649            * @return the previous, current, and next repository entry
650            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
651            * @throws SystemException if a system exception occurred
652            */
653            public static com.liferay.portal.model.RepositoryEntry[] findByRepositoryId_PrevAndNext(
654                    long repositoryEntryId, long repositoryId,
655                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
656                    throws com.liferay.portal.NoSuchRepositoryEntryException,
657                            com.liferay.portal.kernel.exception.SystemException {
658                    return getPersistence()
659                                       .findByRepositoryId_PrevAndNext(repositoryEntryId,
660                            repositoryId, orderByComparator);
661            }
662    
663            /**
664            * Removes all the repository entries where repositoryId = &#63; from the database.
665            *
666            * @param repositoryId the repository ID
667            * @throws SystemException if a system exception occurred
668            */
669            public static void removeByRepositoryId(long repositoryId)
670                    throws com.liferay.portal.kernel.exception.SystemException {
671                    getPersistence().removeByRepositoryId(repositoryId);
672            }
673    
674            /**
675            * Returns the number of repository entries where repositoryId = &#63;.
676            *
677            * @param repositoryId the repository ID
678            * @return the number of matching repository entries
679            * @throws SystemException if a system exception occurred
680            */
681            public static int countByRepositoryId(long repositoryId)
682                    throws com.liferay.portal.kernel.exception.SystemException {
683                    return getPersistence().countByRepositoryId(repositoryId);
684            }
685    
686            /**
687            * Returns the repository entry where repositoryId = &#63; and mappedId = &#63; or throws a {@link com.liferay.portal.NoSuchRepositoryEntryException} if it could not be found.
688            *
689            * @param repositoryId the repository ID
690            * @param mappedId the mapped ID
691            * @return the matching repository entry
692            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a matching repository entry could not be found
693            * @throws SystemException if a system exception occurred
694            */
695            public static com.liferay.portal.model.RepositoryEntry findByR_M(
696                    long repositoryId, java.lang.String mappedId)
697                    throws com.liferay.portal.NoSuchRepositoryEntryException,
698                            com.liferay.portal.kernel.exception.SystemException {
699                    return getPersistence().findByR_M(repositoryId, mappedId);
700            }
701    
702            /**
703            * 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.
704            *
705            * @param repositoryId the repository ID
706            * @param mappedId the mapped ID
707            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
708            * @throws SystemException if a system exception occurred
709            */
710            public static com.liferay.portal.model.RepositoryEntry fetchByR_M(
711                    long repositoryId, java.lang.String mappedId)
712                    throws com.liferay.portal.kernel.exception.SystemException {
713                    return getPersistence().fetchByR_M(repositoryId, mappedId);
714            }
715    
716            /**
717            * 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.
718            *
719            * @param repositoryId the repository ID
720            * @param mappedId the mapped ID
721            * @param retrieveFromCache whether to use the finder cache
722            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
723            * @throws SystemException if a system exception occurred
724            */
725            public static com.liferay.portal.model.RepositoryEntry fetchByR_M(
726                    long repositoryId, java.lang.String mappedId, boolean retrieveFromCache)
727                    throws com.liferay.portal.kernel.exception.SystemException {
728                    return getPersistence()
729                                       .fetchByR_M(repositoryId, mappedId, retrieveFromCache);
730            }
731    
732            /**
733            * Removes the repository entry where repositoryId = &#63; and mappedId = &#63; from the database.
734            *
735            * @param repositoryId the repository ID
736            * @param mappedId the mapped ID
737            * @return the repository entry that was removed
738            * @throws SystemException if a system exception occurred
739            */
740            public static com.liferay.portal.model.RepositoryEntry removeByR_M(
741                    long repositoryId, java.lang.String mappedId)
742                    throws com.liferay.portal.NoSuchRepositoryEntryException,
743                            com.liferay.portal.kernel.exception.SystemException {
744                    return getPersistence().removeByR_M(repositoryId, mappedId);
745            }
746    
747            /**
748            * Returns the number of repository entries where repositoryId = &#63; and mappedId = &#63;.
749            *
750            * @param repositoryId the repository ID
751            * @param mappedId the mapped ID
752            * @return the number of matching repository entries
753            * @throws SystemException if a system exception occurred
754            */
755            public static int countByR_M(long repositoryId, java.lang.String mappedId)
756                    throws com.liferay.portal.kernel.exception.SystemException {
757                    return getPersistence().countByR_M(repositoryId, mappedId);
758            }
759    
760            /**
761            * Caches the repository entry in the entity cache if it is enabled.
762            *
763            * @param repositoryEntry the repository entry
764            */
765            public static void cacheResult(
766                    com.liferay.portal.model.RepositoryEntry repositoryEntry) {
767                    getPersistence().cacheResult(repositoryEntry);
768            }
769    
770            /**
771            * Caches the repository entries in the entity cache if it is enabled.
772            *
773            * @param repositoryEntries the repository entries
774            */
775            public static void cacheResult(
776                    java.util.List<com.liferay.portal.model.RepositoryEntry> repositoryEntries) {
777                    getPersistence().cacheResult(repositoryEntries);
778            }
779    
780            /**
781            * Creates a new repository entry with the primary key. Does not add the repository entry to the database.
782            *
783            * @param repositoryEntryId the primary key for the new repository entry
784            * @return the new repository entry
785            */
786            public static com.liferay.portal.model.RepositoryEntry create(
787                    long repositoryEntryId) {
788                    return getPersistence().create(repositoryEntryId);
789            }
790    
791            /**
792            * Removes the repository entry with the primary key from the database. Also notifies the appropriate model listeners.
793            *
794            * @param repositoryEntryId the primary key of the repository entry
795            * @return the repository entry that was removed
796            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
797            * @throws SystemException if a system exception occurred
798            */
799            public static com.liferay.portal.model.RepositoryEntry remove(
800                    long repositoryEntryId)
801                    throws com.liferay.portal.NoSuchRepositoryEntryException,
802                            com.liferay.portal.kernel.exception.SystemException {
803                    return getPersistence().remove(repositoryEntryId);
804            }
805    
806            public static com.liferay.portal.model.RepositoryEntry updateImpl(
807                    com.liferay.portal.model.RepositoryEntry repositoryEntry)
808                    throws com.liferay.portal.kernel.exception.SystemException {
809                    return getPersistence().updateImpl(repositoryEntry);
810            }
811    
812            /**
813            * Returns the repository entry with the primary key or throws a {@link com.liferay.portal.NoSuchRepositoryEntryException} if it could not be found.
814            *
815            * @param repositoryEntryId the primary key of the repository entry
816            * @return the repository entry
817            * @throws com.liferay.portal.NoSuchRepositoryEntryException if a repository entry with the primary key could not be found
818            * @throws SystemException if a system exception occurred
819            */
820            public static com.liferay.portal.model.RepositoryEntry findByPrimaryKey(
821                    long repositoryEntryId)
822                    throws com.liferay.portal.NoSuchRepositoryEntryException,
823                            com.liferay.portal.kernel.exception.SystemException {
824                    return getPersistence().findByPrimaryKey(repositoryEntryId);
825            }
826    
827            /**
828            * Returns the repository entry with the primary key or returns <code>null</code> if it could not be found.
829            *
830            * @param repositoryEntryId the primary key of the repository entry
831            * @return the repository entry, or <code>null</code> if a repository entry with the primary key could not be found
832            * @throws SystemException if a system exception occurred
833            */
834            public static com.liferay.portal.model.RepositoryEntry fetchByPrimaryKey(
835                    long repositoryEntryId)
836                    throws com.liferay.portal.kernel.exception.SystemException {
837                    return getPersistence().fetchByPrimaryKey(repositoryEntryId);
838            }
839    
840            /**
841            * Returns all the repository entries.
842            *
843            * @return the repository entries
844            * @throws SystemException if a system exception occurred
845            */
846            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findAll()
847                    throws com.liferay.portal.kernel.exception.SystemException {
848                    return getPersistence().findAll();
849            }
850    
851            /**
852            * Returns a range of all the repository entries.
853            *
854            * <p>
855            * 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.
856            * </p>
857            *
858            * @param start the lower bound of the range of repository entries
859            * @param end the upper bound of the range of repository entries (not inclusive)
860            * @return the range of repository entries
861            * @throws SystemException if a system exception occurred
862            */
863            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findAll(
864                    int start, int end)
865                    throws com.liferay.portal.kernel.exception.SystemException {
866                    return getPersistence().findAll(start, end);
867            }
868    
869            /**
870            * Returns an ordered range of all the repository entries.
871            *
872            * <p>
873            * 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.
874            * </p>
875            *
876            * @param start the lower bound of the range of repository entries
877            * @param end the upper bound of the range of repository entries (not inclusive)
878            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
879            * @return the ordered range of repository entries
880            * @throws SystemException if a system exception occurred
881            */
882            public static java.util.List<com.liferay.portal.model.RepositoryEntry> findAll(
883                    int start, int end,
884                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
885                    throws com.liferay.portal.kernel.exception.SystemException {
886                    return getPersistence().findAll(start, end, orderByComparator);
887            }
888    
889            /**
890            * Removes all the repository entries from the database.
891            *
892            * @throws SystemException if a system exception occurred
893            */
894            public static void removeAll()
895                    throws com.liferay.portal.kernel.exception.SystemException {
896                    getPersistence().removeAll();
897            }
898    
899            /**
900            * Returns the number of repository entries.
901            *
902            * @return the number of repository entries
903            * @throws SystemException if a system exception occurred
904            */
905            public static int countAll()
906                    throws com.liferay.portal.kernel.exception.SystemException {
907                    return getPersistence().countAll();
908            }
909    
910            public static RepositoryEntryPersistence getPersistence() {
911                    if (_persistence == null) {
912                            _persistence = (RepositoryEntryPersistence)PortalBeanLocatorUtil.locate(RepositoryEntryPersistence.class.getName());
913    
914                            ReferenceRegistry.registerReference(RepositoryEntryUtil.class,
915                                    "_persistence");
916                    }
917    
918                    return _persistence;
919            }
920    
921            /**
922             * @deprecated As of 6.2.0
923             */
924            public void setPersistence(RepositoryEntryPersistence persistence) {
925            }
926    
927            private static RepositoryEntryPersistence _persistence;
928    }