001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.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.DLSync;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the d l sync service. This utility wraps {@link DLSyncPersistenceImpl} 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 DLSyncPersistence
037     * @see DLSyncPersistenceImpl
038     * @generated
039     */
040    public class DLSyncUtil {
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(DLSync dlSync) {
058                    getPersistence().clearCache(dlSync);
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<DLSync> findWithDynamicQuery(DynamicQuery dynamicQuery)
073                    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<DLSync> findWithDynamicQuery(DynamicQuery dynamicQuery,
081                    int start, int end) throws SystemException {
082                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
083            }
084    
085            /**
086             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
087             */
088            public static List<DLSync> findWithDynamicQuery(DynamicQuery dynamicQuery,
089                    int start, int end, OrderByComparator orderByComparator)
090                    throws SystemException {
091                    return getPersistence()
092                                       .findWithDynamicQuery(dynamicQuery, start, end,
093                            orderByComparator);
094            }
095    
096            /**
097             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
098             */
099            public static DLSync update(DLSync dlSync) throws SystemException {
100                    return getPersistence().update(dlSync);
101            }
102    
103            /**
104             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
105             */
106            public static DLSync update(DLSync dlSync, ServiceContext serviceContext)
107                    throws SystemException {
108                    return getPersistence().update(dlSync, serviceContext);
109            }
110    
111            /**
112            * Returns the d l sync where fileId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchSyncException} if it could not be found.
113            *
114            * @param fileId the file ID
115            * @return the matching d l sync
116            * @throws com.liferay.portlet.documentlibrary.NoSuchSyncException if a matching d l sync could not be found
117            * @throws SystemException if a system exception occurred
118            */
119            public static com.liferay.portlet.documentlibrary.model.DLSync findByFileId(
120                    long fileId)
121                    throws com.liferay.portal.kernel.exception.SystemException,
122                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
123                    return getPersistence().findByFileId(fileId);
124            }
125    
126            /**
127            * Returns the d l sync where fileId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
128            *
129            * @param fileId the file ID
130            * @return the matching d l sync, or <code>null</code> if a matching d l sync could not be found
131            * @throws SystemException if a system exception occurred
132            */
133            public static com.liferay.portlet.documentlibrary.model.DLSync fetchByFileId(
134                    long fileId) throws com.liferay.portal.kernel.exception.SystemException {
135                    return getPersistence().fetchByFileId(fileId);
136            }
137    
138            /**
139            * Returns the d l sync where fileId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
140            *
141            * @param fileId the file ID
142            * @param retrieveFromCache whether to use the finder cache
143            * @return the matching d l sync, or <code>null</code> if a matching d l sync could not be found
144            * @throws SystemException if a system exception occurred
145            */
146            public static com.liferay.portlet.documentlibrary.model.DLSync fetchByFileId(
147                    long fileId, boolean retrieveFromCache)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return getPersistence().fetchByFileId(fileId, retrieveFromCache);
150            }
151    
152            /**
153            * Removes the d l sync where fileId = &#63; from the database.
154            *
155            * @param fileId the file ID
156            * @return the d l sync that was removed
157            * @throws SystemException if a system exception occurred
158            */
159            public static com.liferay.portlet.documentlibrary.model.DLSync removeByFileId(
160                    long fileId)
161                    throws com.liferay.portal.kernel.exception.SystemException,
162                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
163                    return getPersistence().removeByFileId(fileId);
164            }
165    
166            /**
167            * Returns the number of d l syncs where fileId = &#63;.
168            *
169            * @param fileId the file ID
170            * @return the number of matching d l syncs
171            * @throws SystemException if a system exception occurred
172            */
173            public static int countByFileId(long fileId)
174                    throws com.liferay.portal.kernel.exception.SystemException {
175                    return getPersistence().countByFileId(fileId);
176            }
177    
178            /**
179            * Returns all the d l syncs where companyId = &#63; and modifiedDate &ge; &#63; and repositoryId = &#63;.
180            *
181            * @param companyId the company ID
182            * @param modifiedDate the modified date
183            * @param repositoryId the repository ID
184            * @return the matching d l syncs
185            * @throws SystemException if a system exception occurred
186            */
187            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findByC_M_R(
188                    long companyId, java.util.Date modifiedDate, long repositoryId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence()
191                                       .findByC_M_R(companyId, modifiedDate, repositoryId);
192            }
193    
194            /**
195            * Returns a range of all the d l syncs where companyId = &#63; and modifiedDate &ge; &#63; and repositoryId = &#63;.
196            *
197            * <p>
198            * 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.portlet.documentlibrary.model.impl.DLSyncModelImpl}. 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.
199            * </p>
200            *
201            * @param companyId the company ID
202            * @param modifiedDate the modified date
203            * @param repositoryId the repository ID
204            * @param start the lower bound of the range of d l syncs
205            * @param end the upper bound of the range of d l syncs (not inclusive)
206            * @return the range of matching d l syncs
207            * @throws SystemException if a system exception occurred
208            */
209            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findByC_M_R(
210                    long companyId, java.util.Date modifiedDate, long repositoryId,
211                    int start, int end)
212                    throws com.liferay.portal.kernel.exception.SystemException {
213                    return getPersistence()
214                                       .findByC_M_R(companyId, modifiedDate, repositoryId, start,
215                            end);
216            }
217    
218            /**
219            * Returns an ordered range of all the d l syncs where companyId = &#63; and modifiedDate &ge; &#63; and repositoryId = &#63;.
220            *
221            * <p>
222            * 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.portlet.documentlibrary.model.impl.DLSyncModelImpl}. 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.
223            * </p>
224            *
225            * @param companyId the company ID
226            * @param modifiedDate the modified date
227            * @param repositoryId the repository ID
228            * @param start the lower bound of the range of d l syncs
229            * @param end the upper bound of the range of d l syncs (not inclusive)
230            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
231            * @return the ordered range of matching d l syncs
232            * @throws SystemException if a system exception occurred
233            */
234            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findByC_M_R(
235                    long companyId, java.util.Date modifiedDate, long repositoryId,
236                    int start, int end,
237                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238                    throws com.liferay.portal.kernel.exception.SystemException {
239                    return getPersistence()
240                                       .findByC_M_R(companyId, modifiedDate, repositoryId, start,
241                            end, orderByComparator);
242            }
243    
244            /**
245            * Returns the first d l sync in the ordered set where companyId = &#63; and modifiedDate &ge; &#63; and repositoryId = &#63;.
246            *
247            * @param companyId the company ID
248            * @param modifiedDate the modified date
249            * @param repositoryId the repository ID
250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
251            * @return the first matching d l sync
252            * @throws com.liferay.portlet.documentlibrary.NoSuchSyncException if a matching d l sync could not be found
253            * @throws SystemException if a system exception occurred
254            */
255            public static com.liferay.portlet.documentlibrary.model.DLSync findByC_M_R_First(
256                    long companyId, java.util.Date modifiedDate, long repositoryId,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException,
259                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
260                    return getPersistence()
261                                       .findByC_M_R_First(companyId, modifiedDate, repositoryId,
262                            orderByComparator);
263            }
264    
265            /**
266            * Returns the first d l sync in the ordered set where companyId = &#63; and modifiedDate &ge; &#63; and repositoryId = &#63;.
267            *
268            * @param companyId the company ID
269            * @param modifiedDate the modified date
270            * @param repositoryId the repository ID
271            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
272            * @return the first matching d l sync, or <code>null</code> if a matching d l sync could not be found
273            * @throws SystemException if a system exception occurred
274            */
275            public static com.liferay.portlet.documentlibrary.model.DLSync fetchByC_M_R_First(
276                    long companyId, java.util.Date modifiedDate, long repositoryId,
277                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    return getPersistence()
280                                       .fetchByC_M_R_First(companyId, modifiedDate, repositoryId,
281                            orderByComparator);
282            }
283    
284            /**
285            * Returns the last d l sync in the ordered set where companyId = &#63; and modifiedDate &ge; &#63; and repositoryId = &#63;.
286            *
287            * @param companyId the company ID
288            * @param modifiedDate the modified date
289            * @param repositoryId the repository ID
290            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
291            * @return the last matching d l sync
292            * @throws com.liferay.portlet.documentlibrary.NoSuchSyncException if a matching d l sync could not be found
293            * @throws SystemException if a system exception occurred
294            */
295            public static com.liferay.portlet.documentlibrary.model.DLSync findByC_M_R_Last(
296                    long companyId, java.util.Date modifiedDate, long repositoryId,
297                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
298                    throws com.liferay.portal.kernel.exception.SystemException,
299                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
300                    return getPersistence()
301                                       .findByC_M_R_Last(companyId, modifiedDate, repositoryId,
302                            orderByComparator);
303            }
304    
305            /**
306            * Returns the last d l sync in the ordered set where companyId = &#63; and modifiedDate &ge; &#63; and repositoryId = &#63;.
307            *
308            * @param companyId the company ID
309            * @param modifiedDate the modified date
310            * @param repositoryId the repository ID
311            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
312            * @return the last matching d l sync, or <code>null</code> if a matching d l sync could not be found
313            * @throws SystemException if a system exception occurred
314            */
315            public static com.liferay.portlet.documentlibrary.model.DLSync fetchByC_M_R_Last(
316                    long companyId, java.util.Date modifiedDate, long repositoryId,
317                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return getPersistence()
320                                       .fetchByC_M_R_Last(companyId, modifiedDate, repositoryId,
321                            orderByComparator);
322            }
323    
324            /**
325            * Returns the d l syncs before and after the current d l sync in the ordered set where companyId = &#63; and modifiedDate &ge; &#63; and repositoryId = &#63;.
326            *
327            * @param syncId the primary key of the current d l sync
328            * @param companyId the company ID
329            * @param modifiedDate the modified date
330            * @param repositoryId the repository ID
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the previous, current, and next d l sync
333            * @throws com.liferay.portlet.documentlibrary.NoSuchSyncException if a d l sync with the primary key could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public static com.liferay.portlet.documentlibrary.model.DLSync[] findByC_M_R_PrevAndNext(
337                    long syncId, long companyId, java.util.Date modifiedDate,
338                    long repositoryId,
339                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340                    throws com.liferay.portal.kernel.exception.SystemException,
341                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
342                    return getPersistence()
343                                       .findByC_M_R_PrevAndNext(syncId, companyId, modifiedDate,
344                            repositoryId, orderByComparator);
345            }
346    
347            /**
348            * Removes all the d l syncs where companyId = &#63; and modifiedDate &ge; &#63; and repositoryId = &#63; from the database.
349            *
350            * @param companyId the company ID
351            * @param modifiedDate the modified date
352            * @param repositoryId the repository ID
353            * @throws SystemException if a system exception occurred
354            */
355            public static void removeByC_M_R(long companyId,
356                    java.util.Date modifiedDate, long repositoryId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    getPersistence().removeByC_M_R(companyId, modifiedDate, repositoryId);
359            }
360    
361            /**
362            * Returns the number of d l syncs where companyId = &#63; and modifiedDate &ge; &#63; and repositoryId = &#63;.
363            *
364            * @param companyId the company ID
365            * @param modifiedDate the modified date
366            * @param repositoryId the repository ID
367            * @return the number of matching d l syncs
368            * @throws SystemException if a system exception occurred
369            */
370            public static int countByC_M_R(long companyId, java.util.Date modifiedDate,
371                    long repositoryId)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return getPersistence()
374                                       .countByC_M_R(companyId, modifiedDate, repositoryId);
375            }
376    
377            /**
378            * Caches the d l sync in the entity cache if it is enabled.
379            *
380            * @param dlSync the d l sync
381            */
382            public static void cacheResult(
383                    com.liferay.portlet.documentlibrary.model.DLSync dlSync) {
384                    getPersistence().cacheResult(dlSync);
385            }
386    
387            /**
388            * Caches the d l syncs in the entity cache if it is enabled.
389            *
390            * @param dlSyncs the d l syncs
391            */
392            public static void cacheResult(
393                    java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> dlSyncs) {
394                    getPersistence().cacheResult(dlSyncs);
395            }
396    
397            /**
398            * Creates a new d l sync with the primary key. Does not add the d l sync to the database.
399            *
400            * @param syncId the primary key for the new d l sync
401            * @return the new d l sync
402            */
403            public static com.liferay.portlet.documentlibrary.model.DLSync create(
404                    long syncId) {
405                    return getPersistence().create(syncId);
406            }
407    
408            /**
409            * Removes the d l sync with the primary key from the database. Also notifies the appropriate model listeners.
410            *
411            * @param syncId the primary key of the d l sync
412            * @return the d l sync that was removed
413            * @throws com.liferay.portlet.documentlibrary.NoSuchSyncException if a d l sync with the primary key could not be found
414            * @throws SystemException if a system exception occurred
415            */
416            public static com.liferay.portlet.documentlibrary.model.DLSync remove(
417                    long syncId)
418                    throws com.liferay.portal.kernel.exception.SystemException,
419                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
420                    return getPersistence().remove(syncId);
421            }
422    
423            public static com.liferay.portlet.documentlibrary.model.DLSync updateImpl(
424                    com.liferay.portlet.documentlibrary.model.DLSync dlSync)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return getPersistence().updateImpl(dlSync);
427            }
428    
429            /**
430            * Returns the d l sync with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchSyncException} if it could not be found.
431            *
432            * @param syncId the primary key of the d l sync
433            * @return the d l sync
434            * @throws com.liferay.portlet.documentlibrary.NoSuchSyncException if a d l sync with the primary key could not be found
435            * @throws SystemException if a system exception occurred
436            */
437            public static com.liferay.portlet.documentlibrary.model.DLSync findByPrimaryKey(
438                    long syncId)
439                    throws com.liferay.portal.kernel.exception.SystemException,
440                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
441                    return getPersistence().findByPrimaryKey(syncId);
442            }
443    
444            /**
445            * Returns the d l sync with the primary key or returns <code>null</code> if it could not be found.
446            *
447            * @param syncId the primary key of the d l sync
448            * @return the d l sync, or <code>null</code> if a d l sync with the primary key could not be found
449            * @throws SystemException if a system exception occurred
450            */
451            public static com.liferay.portlet.documentlibrary.model.DLSync fetchByPrimaryKey(
452                    long syncId) throws com.liferay.portal.kernel.exception.SystemException {
453                    return getPersistence().fetchByPrimaryKey(syncId);
454            }
455    
456            /**
457            * Returns all the d l syncs.
458            *
459            * @return the d l syncs
460            * @throws SystemException if a system exception occurred
461            */
462            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll()
463                    throws com.liferay.portal.kernel.exception.SystemException {
464                    return getPersistence().findAll();
465            }
466    
467            /**
468            * Returns a range of all the d l syncs.
469            *
470            * <p>
471            * 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.portlet.documentlibrary.model.impl.DLSyncModelImpl}. 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.
472            * </p>
473            *
474            * @param start the lower bound of the range of d l syncs
475            * @param end the upper bound of the range of d l syncs (not inclusive)
476            * @return the range of d l syncs
477            * @throws SystemException if a system exception occurred
478            */
479            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll(
480                    int start, int end)
481                    throws com.liferay.portal.kernel.exception.SystemException {
482                    return getPersistence().findAll(start, end);
483            }
484    
485            /**
486            * Returns an ordered range of all the d l syncs.
487            *
488            * <p>
489            * 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.portlet.documentlibrary.model.impl.DLSyncModelImpl}. 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.
490            * </p>
491            *
492            * @param start the lower bound of the range of d l syncs
493            * @param end the upper bound of the range of d l syncs (not inclusive)
494            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
495            * @return the ordered range of d l syncs
496            * @throws SystemException if a system exception occurred
497            */
498            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll(
499                    int start, int end,
500                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
501                    throws com.liferay.portal.kernel.exception.SystemException {
502                    return getPersistence().findAll(start, end, orderByComparator);
503            }
504    
505            /**
506            * Removes all the d l syncs from the database.
507            *
508            * @throws SystemException if a system exception occurred
509            */
510            public static void removeAll()
511                    throws com.liferay.portal.kernel.exception.SystemException {
512                    getPersistence().removeAll();
513            }
514    
515            /**
516            * Returns the number of d l syncs.
517            *
518            * @return the number of d l syncs
519            * @throws SystemException if a system exception occurred
520            */
521            public static int countAll()
522                    throws com.liferay.portal.kernel.exception.SystemException {
523                    return getPersistence().countAll();
524            }
525    
526            public static DLSyncPersistence getPersistence() {
527                    if (_persistence == null) {
528                            _persistence = (DLSyncPersistence)PortalBeanLocatorUtil.locate(DLSyncPersistence.class.getName());
529    
530                            ReferenceRegistry.registerReference(DLSyncUtil.class, "_persistence");
531                    }
532    
533                    return _persistence;
534            }
535    
536            /**
537             * @deprecated
538             */
539            public void setPersistence(DLSyncPersistence persistence) {
540            }
541    
542            private static DLSyncPersistence _persistence;
543    }