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 &gt; &#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, long 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 &gt; &#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, long modifiedDate, long repositoryId, int start, int end)
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return getPersistence()
213                                       .findByC_M_R(companyId, modifiedDate, repositoryId, start,
214                            end);
215            }
216    
217            /**
218            * Returns an ordered range of all the d l syncs where companyId = &#63; and modifiedDate &gt; &#63; and repositoryId = &#63;.
219            *
220            * <p>
221            * 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.
222            * </p>
223            *
224            * @param companyId the company ID
225            * @param modifiedDate the modified date
226            * @param repositoryId the repository ID
227            * @param start the lower bound of the range of d l syncs
228            * @param end the upper bound of the range of d l syncs (not inclusive)
229            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
230            * @return the ordered range of matching d l syncs
231            * @throws SystemException if a system exception occurred
232            */
233            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findByC_M_R(
234                    long companyId, long modifiedDate, long repositoryId, int start,
235                    int end,
236                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return getPersistence()
239                                       .findByC_M_R(companyId, modifiedDate, repositoryId, start,
240                            end, orderByComparator);
241            }
242    
243            /**
244            * Returns the first d l sync in the ordered set where companyId = &#63; and modifiedDate &gt; &#63; and repositoryId = &#63;.
245            *
246            * @param companyId the company ID
247            * @param modifiedDate the modified date
248            * @param repositoryId the repository ID
249            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
250            * @return the first matching d l sync
251            * @throws com.liferay.portlet.documentlibrary.NoSuchSyncException if a matching d l sync could not be found
252            * @throws SystemException if a system exception occurred
253            */
254            public static com.liferay.portlet.documentlibrary.model.DLSync findByC_M_R_First(
255                    long companyId, long modifiedDate, long repositoryId,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.kernel.exception.SystemException,
258                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
259                    return getPersistence()
260                                       .findByC_M_R_First(companyId, modifiedDate, repositoryId,
261                            orderByComparator);
262            }
263    
264            /**
265            * Returns the first d l sync in the ordered set where companyId = &#63; and modifiedDate &gt; &#63; and repositoryId = &#63;.
266            *
267            * @param companyId the company ID
268            * @param modifiedDate the modified date
269            * @param repositoryId the repository ID
270            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
271            * @return the first matching d l sync, or <code>null</code> if a matching d l sync could not be found
272            * @throws SystemException if a system exception occurred
273            */
274            public static com.liferay.portlet.documentlibrary.model.DLSync fetchByC_M_R_First(
275                    long companyId, long modifiedDate, long repositoryId,
276                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    return getPersistence()
279                                       .fetchByC_M_R_First(companyId, modifiedDate, repositoryId,
280                            orderByComparator);
281            }
282    
283            /**
284            * Returns the last d l sync in the ordered set where companyId = &#63; and modifiedDate &gt; &#63; and repositoryId = &#63;.
285            *
286            * @param companyId the company ID
287            * @param modifiedDate the modified date
288            * @param repositoryId the repository ID
289            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
290            * @return the last matching d l sync
291            * @throws com.liferay.portlet.documentlibrary.NoSuchSyncException if a matching d l sync could not be found
292            * @throws SystemException if a system exception occurred
293            */
294            public static com.liferay.portlet.documentlibrary.model.DLSync findByC_M_R_Last(
295                    long companyId, long modifiedDate, long repositoryId,
296                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297                    throws com.liferay.portal.kernel.exception.SystemException,
298                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
299                    return getPersistence()
300                                       .findByC_M_R_Last(companyId, modifiedDate, repositoryId,
301                            orderByComparator);
302            }
303    
304            /**
305            * Returns the last d l sync in the ordered set where companyId = &#63; and modifiedDate &gt; &#63; and repositoryId = &#63;.
306            *
307            * @param companyId the company ID
308            * @param modifiedDate the modified date
309            * @param repositoryId the repository ID
310            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
311            * @return the last matching d l sync, or <code>null</code> if a matching d l sync could not be found
312            * @throws SystemException if a system exception occurred
313            */
314            public static com.liferay.portlet.documentlibrary.model.DLSync fetchByC_M_R_Last(
315                    long companyId, long modifiedDate, long repositoryId,
316                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return getPersistence()
319                                       .fetchByC_M_R_Last(companyId, modifiedDate, repositoryId,
320                            orderByComparator);
321            }
322    
323            /**
324            * Returns the d l syncs before and after the current d l sync in the ordered set where companyId = &#63; and modifiedDate &gt; &#63; and repositoryId = &#63;.
325            *
326            * @param syncId the primary key of the current d l sync
327            * @param companyId the company ID
328            * @param modifiedDate the modified date
329            * @param repositoryId the repository ID
330            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
331            * @return the previous, current, and next d l sync
332            * @throws com.liferay.portlet.documentlibrary.NoSuchSyncException if a d l sync with the primary key could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public static com.liferay.portlet.documentlibrary.model.DLSync[] findByC_M_R_PrevAndNext(
336                    long syncId, long companyId, long modifiedDate, long repositoryId,
337                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
338                    throws com.liferay.portal.kernel.exception.SystemException,
339                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
340                    return getPersistence()
341                                       .findByC_M_R_PrevAndNext(syncId, companyId, modifiedDate,
342                            repositoryId, orderByComparator);
343            }
344    
345            /**
346            * Removes all the d l syncs where companyId = &#63; and modifiedDate &gt; &#63; and repositoryId = &#63; from the database.
347            *
348            * @param companyId the company ID
349            * @param modifiedDate the modified date
350            * @param repositoryId the repository ID
351            * @throws SystemException if a system exception occurred
352            */
353            public static void removeByC_M_R(long companyId, long modifiedDate,
354                    long repositoryId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    getPersistence().removeByC_M_R(companyId, modifiedDate, repositoryId);
357            }
358    
359            /**
360            * Returns the number of d l syncs where companyId = &#63; and modifiedDate &gt; &#63; and repositoryId = &#63;.
361            *
362            * @param companyId the company ID
363            * @param modifiedDate the modified date
364            * @param repositoryId the repository ID
365            * @return the number of matching d l syncs
366            * @throws SystemException if a system exception occurred
367            */
368            public static int countByC_M_R(long companyId, long modifiedDate,
369                    long repositoryId)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return getPersistence()
372                                       .countByC_M_R(companyId, modifiedDate, repositoryId);
373            }
374    
375            /**
376            * Caches the d l sync in the entity cache if it is enabled.
377            *
378            * @param dlSync the d l sync
379            */
380            public static void cacheResult(
381                    com.liferay.portlet.documentlibrary.model.DLSync dlSync) {
382                    getPersistence().cacheResult(dlSync);
383            }
384    
385            /**
386            * Caches the d l syncs in the entity cache if it is enabled.
387            *
388            * @param dlSyncs the d l syncs
389            */
390            public static void cacheResult(
391                    java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> dlSyncs) {
392                    getPersistence().cacheResult(dlSyncs);
393            }
394    
395            /**
396            * Creates a new d l sync with the primary key. Does not add the d l sync to the database.
397            *
398            * @param syncId the primary key for the new d l sync
399            * @return the new d l sync
400            */
401            public static com.liferay.portlet.documentlibrary.model.DLSync create(
402                    long syncId) {
403                    return getPersistence().create(syncId);
404            }
405    
406            /**
407            * Removes the d l sync with the primary key from the database. Also notifies the appropriate model listeners.
408            *
409            * @param syncId the primary key of the d l sync
410            * @return the d l sync that was removed
411            * @throws com.liferay.portlet.documentlibrary.NoSuchSyncException if a d l sync with the primary key could not be found
412            * @throws SystemException if a system exception occurred
413            */
414            public static com.liferay.portlet.documentlibrary.model.DLSync remove(
415                    long syncId)
416                    throws com.liferay.portal.kernel.exception.SystemException,
417                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
418                    return getPersistence().remove(syncId);
419            }
420    
421            public static com.liferay.portlet.documentlibrary.model.DLSync updateImpl(
422                    com.liferay.portlet.documentlibrary.model.DLSync dlSync)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return getPersistence().updateImpl(dlSync);
425            }
426    
427            /**
428            * Returns the d l sync with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchSyncException} if it could not be found.
429            *
430            * @param syncId the primary key of the d l sync
431            * @return the d l sync
432            * @throws com.liferay.portlet.documentlibrary.NoSuchSyncException if a d l sync with the primary key could not be found
433            * @throws SystemException if a system exception occurred
434            */
435            public static com.liferay.portlet.documentlibrary.model.DLSync findByPrimaryKey(
436                    long syncId)
437                    throws com.liferay.portal.kernel.exception.SystemException,
438                            com.liferay.portlet.documentlibrary.NoSuchSyncException {
439                    return getPersistence().findByPrimaryKey(syncId);
440            }
441    
442            /**
443            * Returns the d l sync with the primary key or returns <code>null</code> if it could not be found.
444            *
445            * @param syncId the primary key of the d l sync
446            * @return the d l sync, or <code>null</code> if a d l sync with the primary key could not be found
447            * @throws SystemException if a system exception occurred
448            */
449            public static com.liferay.portlet.documentlibrary.model.DLSync fetchByPrimaryKey(
450                    long syncId) throws com.liferay.portal.kernel.exception.SystemException {
451                    return getPersistence().fetchByPrimaryKey(syncId);
452            }
453    
454            /**
455            * Returns all the d l syncs.
456            *
457            * @return the d l syncs
458            * @throws SystemException if a system exception occurred
459            */
460            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll()
461                    throws com.liferay.portal.kernel.exception.SystemException {
462                    return getPersistence().findAll();
463            }
464    
465            /**
466            * Returns a range of all the d l syncs.
467            *
468            * <p>
469            * 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.
470            * </p>
471            *
472            * @param start the lower bound of the range of d l syncs
473            * @param end the upper bound of the range of d l syncs (not inclusive)
474            * @return the range of d l syncs
475            * @throws SystemException if a system exception occurred
476            */
477            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll(
478                    int start, int end)
479                    throws com.liferay.portal.kernel.exception.SystemException {
480                    return getPersistence().findAll(start, end);
481            }
482    
483            /**
484            * Returns an ordered range of all the d l syncs.
485            *
486            * <p>
487            * 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.
488            * </p>
489            *
490            * @param start the lower bound of the range of d l syncs
491            * @param end the upper bound of the range of d l syncs (not inclusive)
492            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
493            * @return the ordered range of d l syncs
494            * @throws SystemException if a system exception occurred
495            */
496            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll(
497                    int start, int end,
498                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
499                    throws com.liferay.portal.kernel.exception.SystemException {
500                    return getPersistence().findAll(start, end, orderByComparator);
501            }
502    
503            /**
504            * Removes all the d l syncs from the database.
505            *
506            * @throws SystemException if a system exception occurred
507            */
508            public static void removeAll()
509                    throws com.liferay.portal.kernel.exception.SystemException {
510                    getPersistence().removeAll();
511            }
512    
513            /**
514            * Returns the number of d l syncs.
515            *
516            * @return the number of d l syncs
517            * @throws SystemException if a system exception occurred
518            */
519            public static int countAll()
520                    throws com.liferay.portal.kernel.exception.SystemException {
521                    return getPersistence().countAll();
522            }
523    
524            public static DLSyncPersistence getPersistence() {
525                    if (_persistence == null) {
526                            _persistence = (DLSyncPersistence)PortalBeanLocatorUtil.locate(DLSyncPersistence.class.getName());
527    
528                            ReferenceRegistry.registerReference(DLSyncUtil.class, "_persistence");
529                    }
530    
531                    return _persistence;
532            }
533    
534            /**
535             * @deprecated
536             */
537            public void setPersistence(DLSyncPersistence persistence) {
538            }
539    
540            private static DLSyncPersistence _persistence;
541    }