001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.documentlibrary.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.service.ServiceContext;
023    
024    import com.liferay.portlet.documentlibrary.model.DLFileShortcut;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the d l file shortcut service. This utility wraps {@link DLFileShortcutPersistenceImpl} 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.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see DLFileShortcutPersistence
037     * @see DLFileShortcutPersistenceImpl
038     * @generated
039     */
040    public class DLFileShortcutUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(DLFileShortcut dlFileShortcut) {
058                    getPersistence().clearCache(dlFileShortcut);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<DLFileShortcut> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<DLFileShortcut> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<DLFileShortcut> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
099             */
100            public static DLFileShortcut remove(DLFileShortcut dlFileShortcut)
101                    throws SystemException {
102                    return getPersistence().remove(dlFileShortcut);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
107             */
108            public static DLFileShortcut update(DLFileShortcut dlFileShortcut,
109                    boolean merge) throws SystemException {
110                    return getPersistence().update(dlFileShortcut, merge);
111            }
112    
113            /**
114             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
115             */
116            public static DLFileShortcut update(DLFileShortcut dlFileShortcut,
117                    boolean merge, ServiceContext serviceContext) throws SystemException {
118                    return getPersistence().update(dlFileShortcut, merge, serviceContext);
119            }
120    
121            /**
122            * Caches the d l file shortcut in the entity cache if it is enabled.
123            *
124            * @param dlFileShortcut the d l file shortcut to cache
125            */
126            public static void cacheResult(
127                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut) {
128                    getPersistence().cacheResult(dlFileShortcut);
129            }
130    
131            /**
132            * Caches the d l file shortcuts in the entity cache if it is enabled.
133            *
134            * @param dlFileShortcuts the d l file shortcuts to cache
135            */
136            public static void cacheResult(
137                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> dlFileShortcuts) {
138                    getPersistence().cacheResult(dlFileShortcuts);
139            }
140    
141            /**
142            * Creates a new d l file shortcut with the primary key. Does not add the d l file shortcut to the database.
143            *
144            * @param fileShortcutId the primary key for the new d l file shortcut
145            * @return the new d l file shortcut
146            */
147            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut create(
148                    long fileShortcutId) {
149                    return getPersistence().create(fileShortcutId);
150            }
151    
152            /**
153            * Removes the d l file shortcut with the primary key from the database. Also notifies the appropriate model listeners.
154            *
155            * @param fileShortcutId the primary key of the d l file shortcut to remove
156            * @return the d l file shortcut that was removed
157            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a d l file shortcut with the primary key could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut remove(
161                    long fileShortcutId)
162                    throws com.liferay.portal.kernel.exception.SystemException,
163                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
164                    return getPersistence().remove(fileShortcutId);
165            }
166    
167            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateImpl(
168                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
169                    boolean merge)
170                    throws com.liferay.portal.kernel.exception.SystemException {
171                    return getPersistence().updateImpl(dlFileShortcut, merge);
172            }
173    
174            /**
175            * Finds the d l file shortcut with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileShortcutException} if it could not be found.
176            *
177            * @param fileShortcutId the primary key of the d l file shortcut to find
178            * @return the d l file shortcut
179            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a d l file shortcut with the primary key could not be found
180            * @throws SystemException if a system exception occurred
181            */
182            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByPrimaryKey(
183                    long fileShortcutId)
184                    throws com.liferay.portal.kernel.exception.SystemException,
185                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
186                    return getPersistence().findByPrimaryKey(fileShortcutId);
187            }
188    
189            /**
190            * Finds the d l file shortcut with the primary key or returns <code>null</code> if it could not be found.
191            *
192            * @param fileShortcutId the primary key of the d l file shortcut to find
193            * @return the d l file shortcut, or <code>null</code> if a d l file shortcut with the primary key could not be found
194            * @throws SystemException if a system exception occurred
195            */
196            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByPrimaryKey(
197                    long fileShortcutId)
198                    throws com.liferay.portal.kernel.exception.SystemException {
199                    return getPersistence().fetchByPrimaryKey(fileShortcutId);
200            }
201    
202            /**
203            * Finds all the d l file shortcuts where uuid = &#63;.
204            *
205            * @param uuid the uuid to search with
206            * @return the matching d l file shortcuts
207            * @throws SystemException if a system exception occurred
208            */
209            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
210                    java.lang.String uuid)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence().findByUuid(uuid);
213            }
214    
215            /**
216            * Finds a range of all the d l file shortcuts where uuid = &#63;.
217            *
218            * <p>
219            * 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.
220            * </p>
221            *
222            * @param uuid the uuid to search with
223            * @param start the lower bound of the range of d l file shortcuts to return
224            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
225            * @return the range of matching d l file shortcuts
226            * @throws SystemException if a system exception occurred
227            */
228            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
229                    java.lang.String uuid, int start, int end)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return getPersistence().findByUuid(uuid, start, end);
232            }
233    
234            /**
235            * Finds an ordered range of all the d l file shortcuts where uuid = &#63;.
236            *
237            * <p>
238            * 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.
239            * </p>
240            *
241            * @param uuid the uuid to search with
242            * @param start the lower bound of the range of d l file shortcuts to return
243            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
244            * @param orderByComparator the comparator to order the results by
245            * @return the ordered range of matching d l file shortcuts
246            * @throws SystemException if a system exception occurred
247            */
248            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByUuid(
249                    java.lang.String uuid, int start, int end,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
253            }
254    
255            /**
256            * Finds the first d l file shortcut in the ordered set where uuid = &#63;.
257            *
258            * <p>
259            * 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.
260            * </p>
261            *
262            * @param uuid the uuid to search with
263            * @param orderByComparator the comparator to order the set by
264            * @return the first matching d l file shortcut
265            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching d l file shortcut could not be found
266            * @throws SystemException if a system exception occurred
267            */
268            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_First(
269                    java.lang.String uuid,
270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271                    throws com.liferay.portal.kernel.exception.SystemException,
272                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
273                    return getPersistence().findByUuid_First(uuid, orderByComparator);
274            }
275    
276            /**
277            * Finds the last d l file shortcut in the ordered set where uuid = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param uuid the uuid to search with
284            * @param orderByComparator the comparator to order the set by
285            * @return the last matching d l file shortcut
286            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching d l file shortcut could not be found
287            * @throws SystemException if a system exception occurred
288            */
289            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUuid_Last(
290                    java.lang.String uuid,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException,
293                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
294                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
295            }
296    
297            /**
298            * Finds the d l file shortcuts before and after the current d l file shortcut in the ordered set where uuid = &#63;.
299            *
300            * <p>
301            * 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.
302            * </p>
303            *
304            * @param fileShortcutId the primary key of the current d l file shortcut
305            * @param uuid the uuid to search with
306            * @param orderByComparator the comparator to order the set by
307            * @return the previous, current, and next d l file shortcut
308            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a d l file shortcut with the primary key could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByUuid_PrevAndNext(
312                    long fileShortcutId, java.lang.String uuid,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
316                    return getPersistence()
317                                       .findByUuid_PrevAndNext(fileShortcutId, uuid,
318                            orderByComparator);
319            }
320    
321            /**
322            * Finds the d l file shortcut where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileShortcutException} if it could not be found.
323            *
324            * @param uuid the uuid to search with
325            * @param groupId the group ID to search with
326            * @return the matching d l file shortcut
327            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching d l file shortcut could not be found
328            * @throws SystemException if a system exception occurred
329            */
330            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByUUID_G(
331                    java.lang.String uuid, long groupId)
332                    throws com.liferay.portal.kernel.exception.SystemException,
333                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
334                    return getPersistence().findByUUID_G(uuid, groupId);
335            }
336    
337            /**
338            * Finds the d l file shortcut where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
339            *
340            * @param uuid the uuid to search with
341            * @param groupId the group ID to search with
342            * @return the matching d l file shortcut, or <code>null</code> if a matching d l file shortcut could not be found
343            * @throws SystemException if a system exception occurred
344            */
345            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
346                    java.lang.String uuid, long groupId)
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    return getPersistence().fetchByUUID_G(uuid, groupId);
349            }
350    
351            /**
352            * Finds the d l file shortcut where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
353            *
354            * @param uuid the uuid to search with
355            * @param groupId the group ID to search with
356            * @return the matching d l file shortcut, or <code>null</code> if a matching d l file shortcut could not be found
357            * @throws SystemException if a system exception occurred
358            */
359            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut fetchByUUID_G(
360                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
361                    throws com.liferay.portal.kernel.exception.SystemException {
362                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
363            }
364    
365            /**
366            * Finds all the d l file shortcuts where toFileEntryId = &#63;.
367            *
368            * @param toFileEntryId the to file entry ID to search with
369            * @return the matching d l file shortcuts
370            * @throws SystemException if a system exception occurred
371            */
372            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByToFileEntryId(
373                    long toFileEntryId)
374                    throws com.liferay.portal.kernel.exception.SystemException {
375                    return getPersistence().findByToFileEntryId(toFileEntryId);
376            }
377    
378            /**
379            * Finds a range of all the d l file shortcuts where toFileEntryId = &#63;.
380            *
381            * <p>
382            * 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.
383            * </p>
384            *
385            * @param toFileEntryId the to file entry ID to search with
386            * @param start the lower bound of the range of d l file shortcuts to return
387            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
388            * @return the range of matching d l file shortcuts
389            * @throws SystemException if a system exception occurred
390            */
391            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByToFileEntryId(
392                    long toFileEntryId, int start, int end)
393                    throws com.liferay.portal.kernel.exception.SystemException {
394                    return getPersistence().findByToFileEntryId(toFileEntryId, start, end);
395            }
396    
397            /**
398            * Finds an ordered range of all the d l file shortcuts where toFileEntryId = &#63;.
399            *
400            * <p>
401            * 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.
402            * </p>
403            *
404            * @param toFileEntryId the to file entry ID to search with
405            * @param start the lower bound of the range of d l file shortcuts to return
406            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
407            * @param orderByComparator the comparator to order the results by
408            * @return the ordered range of matching d l file shortcuts
409            * @throws SystemException if a system exception occurred
410            */
411            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByToFileEntryId(
412                    long toFileEntryId, int start, int end,
413                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return getPersistence()
416                                       .findByToFileEntryId(toFileEntryId, start, end,
417                            orderByComparator);
418            }
419    
420            /**
421            * Finds the first d l file shortcut in the ordered set where toFileEntryId = &#63;.
422            *
423            * <p>
424            * 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.
425            * </p>
426            *
427            * @param toFileEntryId the to file entry ID to search with
428            * @param orderByComparator the comparator to order the set by
429            * @return the first matching d l file shortcut
430            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching d l file shortcut could not be found
431            * @throws SystemException if a system exception occurred
432            */
433            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByToFileEntryId_First(
434                    long toFileEntryId,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.kernel.exception.SystemException,
437                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
438                    return getPersistence()
439                                       .findByToFileEntryId_First(toFileEntryId, orderByComparator);
440            }
441    
442            /**
443            * Finds the last d l file shortcut in the ordered set where toFileEntryId = &#63;.
444            *
445            * <p>
446            * 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.
447            * </p>
448            *
449            * @param toFileEntryId the to file entry ID to search with
450            * @param orderByComparator the comparator to order the set by
451            * @return the last matching d l file shortcut
452            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching d l file shortcut could not be found
453            * @throws SystemException if a system exception occurred
454            */
455            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByToFileEntryId_Last(
456                    long toFileEntryId,
457                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
458                    throws com.liferay.portal.kernel.exception.SystemException,
459                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
460                    return getPersistence()
461                                       .findByToFileEntryId_Last(toFileEntryId, orderByComparator);
462            }
463    
464            /**
465            * Finds the d l file shortcuts before and after the current d l file shortcut in the ordered set where toFileEntryId = &#63;.
466            *
467            * <p>
468            * 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.
469            * </p>
470            *
471            * @param fileShortcutId the primary key of the current d l file shortcut
472            * @param toFileEntryId the to file entry ID to search with
473            * @param orderByComparator the comparator to order the set by
474            * @return the previous, current, and next d l file shortcut
475            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a d l file shortcut with the primary key could not be found
476            * @throws SystemException if a system exception occurred
477            */
478            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByToFileEntryId_PrevAndNext(
479                    long fileShortcutId, long toFileEntryId,
480                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
481                    throws com.liferay.portal.kernel.exception.SystemException,
482                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
483                    return getPersistence()
484                                       .findByToFileEntryId_PrevAndNext(fileShortcutId,
485                            toFileEntryId, orderByComparator);
486            }
487    
488            /**
489            * Finds all the d l file shortcuts where groupId = &#63; and folderId = &#63;.
490            *
491            * @param groupId the group ID to search with
492            * @param folderId the folder ID to search with
493            * @return the matching d l file shortcuts
494            * @throws SystemException if a system exception occurred
495            */
496            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F(
497                    long groupId, long folderId)
498                    throws com.liferay.portal.kernel.exception.SystemException {
499                    return getPersistence().findByG_F(groupId, folderId);
500            }
501    
502            /**
503            * Finds a range of all the d l file shortcuts where groupId = &#63; and folderId = &#63;.
504            *
505            * <p>
506            * 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.
507            * </p>
508            *
509            * @param groupId the group ID to search with
510            * @param folderId the folder ID to search with
511            * @param start the lower bound of the range of d l file shortcuts to return
512            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
513            * @return the range of matching d l file shortcuts
514            * @throws SystemException if a system exception occurred
515            */
516            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F(
517                    long groupId, long folderId, int start, int end)
518                    throws com.liferay.portal.kernel.exception.SystemException {
519                    return getPersistence().findByG_F(groupId, folderId, start, end);
520            }
521    
522            /**
523            * Finds an ordered range of all the d l file shortcuts where groupId = &#63; and folderId = &#63;.
524            *
525            * <p>
526            * 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.
527            * </p>
528            *
529            * @param groupId the group ID to search with
530            * @param folderId the folder ID to search with
531            * @param start the lower bound of the range of d l file shortcuts to return
532            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
533            * @param orderByComparator the comparator to order the results by
534            * @return the ordered range of matching d l file shortcuts
535            * @throws SystemException if a system exception occurred
536            */
537            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F(
538                    long groupId, long folderId, int start, int end,
539                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
540                    throws com.liferay.portal.kernel.exception.SystemException {
541                    return getPersistence()
542                                       .findByG_F(groupId, folderId, start, end, orderByComparator);
543            }
544    
545            /**
546            * Finds the first d l file shortcut in the ordered set where groupId = &#63; and folderId = &#63;.
547            *
548            * <p>
549            * 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.
550            * </p>
551            *
552            * @param groupId the group ID to search with
553            * @param folderId the folder ID to search with
554            * @param orderByComparator the comparator to order the set by
555            * @return the first matching d l file shortcut
556            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching d l file shortcut could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_First(
560                    long groupId, long folderId,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.kernel.exception.SystemException,
563                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
564                    return getPersistence()
565                                       .findByG_F_First(groupId, folderId, orderByComparator);
566            }
567    
568            /**
569            * Finds the last d l file shortcut in the ordered set where groupId = &#63; and folderId = &#63;.
570            *
571            * <p>
572            * 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.
573            * </p>
574            *
575            * @param groupId the group ID to search with
576            * @param folderId the folder ID to search with
577            * @param orderByComparator the comparator to order the set by
578            * @return the last matching d l file shortcut
579            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching d l file shortcut could not be found
580            * @throws SystemException if a system exception occurred
581            */
582            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_Last(
583                    long groupId, long folderId,
584                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
585                    throws com.liferay.portal.kernel.exception.SystemException,
586                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
587                    return getPersistence()
588                                       .findByG_F_Last(groupId, folderId, orderByComparator);
589            }
590    
591            /**
592            * Finds the d l file shortcuts before and after the current d l file shortcut in the ordered set where groupId = &#63; and folderId = &#63;.
593            *
594            * <p>
595            * 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.
596            * </p>
597            *
598            * @param fileShortcutId the primary key of the current d l file shortcut
599            * @param groupId the group ID to search with
600            * @param folderId the folder ID to search with
601            * @param orderByComparator the comparator to order the set by
602            * @return the previous, current, and next d l file shortcut
603            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a d l file shortcut with the primary key could not be found
604            * @throws SystemException if a system exception occurred
605            */
606            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_F_PrevAndNext(
607                    long fileShortcutId, long groupId, long folderId,
608                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
609                    throws com.liferay.portal.kernel.exception.SystemException,
610                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
611                    return getPersistence()
612                                       .findByG_F_PrevAndNext(fileShortcutId, groupId, folderId,
613                            orderByComparator);
614            }
615    
616            /**
617            * Filters by the user's permissions and finds all the d l file shortcuts where groupId = &#63; and folderId = &#63;.
618            *
619            * @param groupId the group ID to search with
620            * @param folderId the folder ID to search with
621            * @return the matching d l file shortcuts that the user has permission to view
622            * @throws SystemException if a system exception occurred
623            */
624            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F(
625                    long groupId, long folderId)
626                    throws com.liferay.portal.kernel.exception.SystemException {
627                    return getPersistence().filterFindByG_F(groupId, folderId);
628            }
629    
630            /**
631            * Filters by the user's permissions and finds a range of all the d l file shortcuts where groupId = &#63; and folderId = &#63;.
632            *
633            * <p>
634            * 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.
635            * </p>
636            *
637            * @param groupId the group ID to search with
638            * @param folderId the folder ID to search with
639            * @param start the lower bound of the range of d l file shortcuts to return
640            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
641            * @return the range of matching d l file shortcuts that the user has permission to view
642            * @throws SystemException if a system exception occurred
643            */
644            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F(
645                    long groupId, long folderId, int start, int end)
646                    throws com.liferay.portal.kernel.exception.SystemException {
647                    return getPersistence().filterFindByG_F(groupId, folderId, start, end);
648            }
649    
650            /**
651            * Filters by the user's permissions and finds an ordered range of all the d l file shortcuts where groupId = &#63; and folderId = &#63;.
652            *
653            * <p>
654            * 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.
655            * </p>
656            *
657            * @param groupId the group ID to search with
658            * @param folderId the folder ID to search with
659            * @param start the lower bound of the range of d l file shortcuts to return
660            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
661            * @param orderByComparator the comparator to order the results by
662            * @return the ordered range of matching d l file shortcuts that the user has permission to view
663            * @throws SystemException if a system exception occurred
664            */
665            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F(
666                    long groupId, long folderId, int start, int end,
667                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
668                    throws com.liferay.portal.kernel.exception.SystemException {
669                    return getPersistence()
670                                       .filterFindByG_F(groupId, folderId, start, end,
671                            orderByComparator);
672            }
673    
674            /**
675            * Filters the d l file shortcuts before and after the current d l file shortcut in the ordered set where groupId = &#63; and folderId = &#63;.
676            *
677            * <p>
678            * 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.
679            * </p>
680            *
681            * @param fileShortcutId the primary key of the current d l file shortcut
682            * @param groupId the group ID to search with
683            * @param folderId the folder ID to search with
684            * @param orderByComparator the comparator to order the set by
685            * @return the previous, current, and next d l file shortcut
686            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a d l file shortcut with the primary key could not be found
687            * @throws SystemException if a system exception occurred
688            */
689            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] filterFindByG_F_PrevAndNext(
690                    long fileShortcutId, long groupId, long folderId,
691                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
692                    throws com.liferay.portal.kernel.exception.SystemException,
693                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
694                    return getPersistence()
695                                       .filterFindByG_F_PrevAndNext(fileShortcutId, groupId,
696                            folderId, orderByComparator);
697            }
698    
699            /**
700            * Finds all the d l file shortcuts where groupId = &#63; and folderId = &#63; and status = &#63;.
701            *
702            * @param groupId the group ID to search with
703            * @param folderId the folder ID to search with
704            * @param status the status to search with
705            * @return the matching d l file shortcuts
706            * @throws SystemException if a system exception occurred
707            */
708            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S(
709                    long groupId, long folderId, int status)
710                    throws com.liferay.portal.kernel.exception.SystemException {
711                    return getPersistence().findByG_F_S(groupId, folderId, status);
712            }
713    
714            /**
715            * Finds a range of all the d l file shortcuts where groupId = &#63; and folderId = &#63; and status = &#63;.
716            *
717            * <p>
718            * 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.
719            * </p>
720            *
721            * @param groupId the group ID to search with
722            * @param folderId the folder ID to search with
723            * @param status the status to search with
724            * @param start the lower bound of the range of d l file shortcuts to return
725            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
726            * @return the range of matching d l file shortcuts
727            * @throws SystemException if a system exception occurred
728            */
729            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S(
730                    long groupId, long folderId, int status, int start, int end)
731                    throws com.liferay.portal.kernel.exception.SystemException {
732                    return getPersistence()
733                                       .findByG_F_S(groupId, folderId, status, start, end);
734            }
735    
736            /**
737            * Finds an ordered range of all the d l file shortcuts where groupId = &#63; and folderId = &#63; and status = &#63;.
738            *
739            * <p>
740            * 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.
741            * </p>
742            *
743            * @param groupId the group ID to search with
744            * @param folderId the folder ID to search with
745            * @param status the status to search with
746            * @param start the lower bound of the range of d l file shortcuts to return
747            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
748            * @param orderByComparator the comparator to order the results by
749            * @return the ordered range of matching d l file shortcuts
750            * @throws SystemException if a system exception occurred
751            */
752            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findByG_F_S(
753                    long groupId, long folderId, int status, int start, int end,
754                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
755                    throws com.liferay.portal.kernel.exception.SystemException {
756                    return getPersistence()
757                                       .findByG_F_S(groupId, folderId, status, start, end,
758                            orderByComparator);
759            }
760    
761            /**
762            * Finds the first d l file shortcut in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
763            *
764            * <p>
765            * 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.
766            * </p>
767            *
768            * @param groupId the group ID to search with
769            * @param folderId the folder ID to search with
770            * @param status the status to search with
771            * @param orderByComparator the comparator to order the set by
772            * @return the first matching d l file shortcut
773            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching d l file shortcut could not be found
774            * @throws SystemException if a system exception occurred
775            */
776            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_S_First(
777                    long groupId, long folderId, int status,
778                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
779                    throws com.liferay.portal.kernel.exception.SystemException,
780                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
781                    return getPersistence()
782                                       .findByG_F_S_First(groupId, folderId, status,
783                            orderByComparator);
784            }
785    
786            /**
787            * Finds the last d l file shortcut in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
788            *
789            * <p>
790            * 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.
791            * </p>
792            *
793            * @param groupId the group ID to search with
794            * @param folderId the folder ID to search with
795            * @param status the status to search with
796            * @param orderByComparator the comparator to order the set by
797            * @return the last matching d l file shortcut
798            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a matching d l file shortcut could not be found
799            * @throws SystemException if a system exception occurred
800            */
801            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut findByG_F_S_Last(
802                    long groupId, long folderId, int status,
803                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
804                    throws com.liferay.portal.kernel.exception.SystemException,
805                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
806                    return getPersistence()
807                                       .findByG_F_S_Last(groupId, folderId, status,
808                            orderByComparator);
809            }
810    
811            /**
812            * Finds the d l file shortcuts before and after the current d l file shortcut in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
813            *
814            * <p>
815            * 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.
816            * </p>
817            *
818            * @param fileShortcutId the primary key of the current d l file shortcut
819            * @param groupId the group ID to search with
820            * @param folderId the folder ID to search with
821            * @param status the status to search with
822            * @param orderByComparator the comparator to order the set by
823            * @return the previous, current, and next d l file shortcut
824            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a d l file shortcut with the primary key could not be found
825            * @throws SystemException if a system exception occurred
826            */
827            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] findByG_F_S_PrevAndNext(
828                    long fileShortcutId, long groupId, long folderId, int status,
829                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
830                    throws com.liferay.portal.kernel.exception.SystemException,
831                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
832                    return getPersistence()
833                                       .findByG_F_S_PrevAndNext(fileShortcutId, groupId, folderId,
834                            status, orderByComparator);
835            }
836    
837            /**
838            * Filters by the user's permissions and finds all the d l file shortcuts where groupId = &#63; and folderId = &#63; and status = &#63;.
839            *
840            * @param groupId the group ID to search with
841            * @param folderId the folder ID to search with
842            * @param status the status to search with
843            * @return the matching d l file shortcuts that the user has permission to view
844            * @throws SystemException if a system exception occurred
845            */
846            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F_S(
847                    long groupId, long folderId, int status)
848                    throws com.liferay.portal.kernel.exception.SystemException {
849                    return getPersistence().filterFindByG_F_S(groupId, folderId, status);
850            }
851    
852            /**
853            * Filters by the user's permissions and finds a range of all the d l file shortcuts where groupId = &#63; and folderId = &#63; and status = &#63;.
854            *
855            * <p>
856            * 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.
857            * </p>
858            *
859            * @param groupId the group ID to search with
860            * @param folderId the folder ID to search with
861            * @param status the status to search with
862            * @param start the lower bound of the range of d l file shortcuts to return
863            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
864            * @return the range of matching d l file shortcuts that the user has permission to view
865            * @throws SystemException if a system exception occurred
866            */
867            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F_S(
868                    long groupId, long folderId, int status, int start, int end)
869                    throws com.liferay.portal.kernel.exception.SystemException {
870                    return getPersistence()
871                                       .filterFindByG_F_S(groupId, folderId, status, start, end);
872            }
873    
874            /**
875            * Filters by the user's permissions and finds an ordered range of all the d l file shortcuts where groupId = &#63; and folderId = &#63; and status = &#63;.
876            *
877            * <p>
878            * 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.
879            * </p>
880            *
881            * @param groupId the group ID to search with
882            * @param folderId the folder ID to search with
883            * @param status the status to search with
884            * @param start the lower bound of the range of d l file shortcuts to return
885            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
886            * @param orderByComparator the comparator to order the results by
887            * @return the ordered range of matching d l file shortcuts that the user has permission to view
888            * @throws SystemException if a system exception occurred
889            */
890            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> filterFindByG_F_S(
891                    long groupId, long folderId, int status, int start, int end,
892                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
893                    throws com.liferay.portal.kernel.exception.SystemException {
894                    return getPersistence()
895                                       .filterFindByG_F_S(groupId, folderId, status, start, end,
896                            orderByComparator);
897            }
898    
899            /**
900            * Filters the d l file shortcuts before and after the current d l file shortcut in the ordered set where groupId = &#63; and folderId = &#63; and status = &#63;.
901            *
902            * <p>
903            * 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.
904            * </p>
905            *
906            * @param fileShortcutId the primary key of the current d l file shortcut
907            * @param groupId the group ID to search with
908            * @param folderId the folder ID to search with
909            * @param status the status to search with
910            * @param orderByComparator the comparator to order the set by
911            * @return the previous, current, and next d l file shortcut
912            * @throws com.liferay.portlet.documentlibrary.NoSuchFileShortcutException if a d l file shortcut with the primary key could not be found
913            * @throws SystemException if a system exception occurred
914            */
915            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut[] filterFindByG_F_S_PrevAndNext(
916                    long fileShortcutId, long groupId, long folderId, int status,
917                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
918                    throws com.liferay.portal.kernel.exception.SystemException,
919                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
920                    return getPersistence()
921                                       .filterFindByG_F_S_PrevAndNext(fileShortcutId, groupId,
922                            folderId, status, orderByComparator);
923            }
924    
925            /**
926            * Finds all the d l file shortcuts.
927            *
928            * @return the d l file shortcuts
929            * @throws SystemException if a system exception occurred
930            */
931            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll()
932                    throws com.liferay.portal.kernel.exception.SystemException {
933                    return getPersistence().findAll();
934            }
935    
936            /**
937            * Finds a range of all the d l file shortcuts.
938            *
939            * <p>
940            * 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.
941            * </p>
942            *
943            * @param start the lower bound of the range of d l file shortcuts to return
944            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
945            * @return the range of d l file shortcuts
946            * @throws SystemException if a system exception occurred
947            */
948            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
949                    int start, int end)
950                    throws com.liferay.portal.kernel.exception.SystemException {
951                    return getPersistence().findAll(start, end);
952            }
953    
954            /**
955            * Finds an ordered range of all the d l file shortcuts.
956            *
957            * <p>
958            * 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.
959            * </p>
960            *
961            * @param start the lower bound of the range of d l file shortcuts to return
962            * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
963            * @param orderByComparator the comparator to order the results by
964            * @return the ordered range of d l file shortcuts
965            * @throws SystemException if a system exception occurred
966            */
967            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> findAll(
968                    int start, int end,
969                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
970                    throws com.liferay.portal.kernel.exception.SystemException {
971                    return getPersistence().findAll(start, end, orderByComparator);
972            }
973    
974            /**
975            * Removes all the d l file shortcuts where uuid = &#63; from the database.
976            *
977            * @param uuid the uuid to search with
978            * @throws SystemException if a system exception occurred
979            */
980            public static void removeByUuid(java.lang.String uuid)
981                    throws com.liferay.portal.kernel.exception.SystemException {
982                    getPersistence().removeByUuid(uuid);
983            }
984    
985            /**
986            * Removes the d l file shortcut where uuid = &#63; and groupId = &#63; from the database.
987            *
988            * @param uuid the uuid to search with
989            * @param groupId the group ID to search with
990            * @throws SystemException if a system exception occurred
991            */
992            public static void removeByUUID_G(java.lang.String uuid, long groupId)
993                    throws com.liferay.portal.kernel.exception.SystemException,
994                            com.liferay.portlet.documentlibrary.NoSuchFileShortcutException {
995                    getPersistence().removeByUUID_G(uuid, groupId);
996            }
997    
998            /**
999            * Removes all the d l file shortcuts where toFileEntryId = &#63; from the database.
1000            *
1001            * @param toFileEntryId the to file entry ID to search with
1002            * @throws SystemException if a system exception occurred
1003            */
1004            public static void removeByToFileEntryId(long toFileEntryId)
1005                    throws com.liferay.portal.kernel.exception.SystemException {
1006                    getPersistence().removeByToFileEntryId(toFileEntryId);
1007            }
1008    
1009            /**
1010            * Removes all the d l file shortcuts where groupId = &#63; and folderId = &#63; from the database.
1011            *
1012            * @param groupId the group ID to search with
1013            * @param folderId the folder ID to search with
1014            * @throws SystemException if a system exception occurred
1015            */
1016            public static void removeByG_F(long groupId, long folderId)
1017                    throws com.liferay.portal.kernel.exception.SystemException {
1018                    getPersistence().removeByG_F(groupId, folderId);
1019            }
1020    
1021            /**
1022            * Removes all the d l file shortcuts where groupId = &#63; and folderId = &#63; and status = &#63; from the database.
1023            *
1024            * @param groupId the group ID to search with
1025            * @param folderId the folder ID to search with
1026            * @param status the status to search with
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public static void removeByG_F_S(long groupId, long folderId, int status)
1030                    throws com.liferay.portal.kernel.exception.SystemException {
1031                    getPersistence().removeByG_F_S(groupId, folderId, status);
1032            }
1033    
1034            /**
1035            * Removes all the d l file shortcuts from the database.
1036            *
1037            * @throws SystemException if a system exception occurred
1038            */
1039            public static void removeAll()
1040                    throws com.liferay.portal.kernel.exception.SystemException {
1041                    getPersistence().removeAll();
1042            }
1043    
1044            /**
1045            * Counts all the d l file shortcuts where uuid = &#63;.
1046            *
1047            * @param uuid the uuid to search with
1048            * @return the number of matching d l file shortcuts
1049            * @throws SystemException if a system exception occurred
1050            */
1051            public static int countByUuid(java.lang.String uuid)
1052                    throws com.liferay.portal.kernel.exception.SystemException {
1053                    return getPersistence().countByUuid(uuid);
1054            }
1055    
1056            /**
1057            * Counts all the d l file shortcuts where uuid = &#63; and groupId = &#63;.
1058            *
1059            * @param uuid the uuid to search with
1060            * @param groupId the group ID to search with
1061            * @return the number of matching d l file shortcuts
1062            * @throws SystemException if a system exception occurred
1063            */
1064            public static int countByUUID_G(java.lang.String uuid, long groupId)
1065                    throws com.liferay.portal.kernel.exception.SystemException {
1066                    return getPersistence().countByUUID_G(uuid, groupId);
1067            }
1068    
1069            /**
1070            * Counts all the d l file shortcuts where toFileEntryId = &#63;.
1071            *
1072            * @param toFileEntryId the to file entry ID to search with
1073            * @return the number of matching d l file shortcuts
1074            * @throws SystemException if a system exception occurred
1075            */
1076            public static int countByToFileEntryId(long toFileEntryId)
1077                    throws com.liferay.portal.kernel.exception.SystemException {
1078                    return getPersistence().countByToFileEntryId(toFileEntryId);
1079            }
1080    
1081            /**
1082            * Counts all the d l file shortcuts where groupId = &#63; and folderId = &#63;.
1083            *
1084            * @param groupId the group ID to search with
1085            * @param folderId the folder ID to search with
1086            * @return the number of matching d l file shortcuts
1087            * @throws SystemException if a system exception occurred
1088            */
1089            public static int countByG_F(long groupId, long folderId)
1090                    throws com.liferay.portal.kernel.exception.SystemException {
1091                    return getPersistence().countByG_F(groupId, folderId);
1092            }
1093    
1094            /**
1095            * Filters by the user's permissions and counts all the d l file shortcuts where groupId = &#63; and folderId = &#63;.
1096            *
1097            * @param groupId the group ID to search with
1098            * @param folderId the folder ID to search with
1099            * @return the number of matching d l file shortcuts that the user has permission to view
1100            * @throws SystemException if a system exception occurred
1101            */
1102            public static int filterCountByG_F(long groupId, long folderId)
1103                    throws com.liferay.portal.kernel.exception.SystemException {
1104                    return getPersistence().filterCountByG_F(groupId, folderId);
1105            }
1106    
1107            /**
1108            * Counts all the d l file shortcuts where groupId = &#63; and folderId = &#63; and status = &#63;.
1109            *
1110            * @param groupId the group ID to search with
1111            * @param folderId the folder ID to search with
1112            * @param status the status to search with
1113            * @return the number of matching d l file shortcuts
1114            * @throws SystemException if a system exception occurred
1115            */
1116            public static int countByG_F_S(long groupId, long folderId, int status)
1117                    throws com.liferay.portal.kernel.exception.SystemException {
1118                    return getPersistence().countByG_F_S(groupId, folderId, status);
1119            }
1120    
1121            /**
1122            * Filters by the user's permissions and counts all the d l file shortcuts where groupId = &#63; and folderId = &#63; and status = &#63;.
1123            *
1124            * @param groupId the group ID to search with
1125            * @param folderId the folder ID to search with
1126            * @param status the status to search with
1127            * @return the number of matching d l file shortcuts that the user has permission to view
1128            * @throws SystemException if a system exception occurred
1129            */
1130            public static int filterCountByG_F_S(long groupId, long folderId, int status)
1131                    throws com.liferay.portal.kernel.exception.SystemException {
1132                    return getPersistence().filterCountByG_F_S(groupId, folderId, status);
1133            }
1134    
1135            /**
1136            * Counts all the d l file shortcuts.
1137            *
1138            * @return the number of d l file shortcuts
1139            * @throws SystemException if a system exception occurred
1140            */
1141            public static int countAll()
1142                    throws com.liferay.portal.kernel.exception.SystemException {
1143                    return getPersistence().countAll();
1144            }
1145    
1146            public static DLFileShortcutPersistence getPersistence() {
1147                    if (_persistence == null) {
1148                            _persistence = (DLFileShortcutPersistence)PortalBeanLocatorUtil.locate(DLFileShortcutPersistence.class.getName());
1149    
1150                            ReferenceRegistry.registerReference(DLFileShortcutUtil.class,
1151                                    "_persistence");
1152                    }
1153    
1154                    return _persistence;
1155            }
1156    
1157            public void setPersistence(DLFileShortcutPersistence persistence) {
1158                    _persistence = persistence;
1159    
1160                    ReferenceRegistry.registerReference(DLFileShortcutUtil.class,
1161                            "_persistence");
1162            }
1163    
1164            private static DLFileShortcutPersistence _persistence;
1165    }