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