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.dynamicdatamapping.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.dynamicdatamapping.model.DDMStorageLink;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the d d m storage link service. This utility wraps {@link DDMStorageLinkPersistenceImpl} 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 DDMStorageLinkPersistence
037     * @see DDMStorageLinkPersistenceImpl
038     * @generated
039     */
040    public class DDMStorageLinkUtil {
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(DDMStorageLink ddmStorageLink) {
058                    getPersistence().clearCache(ddmStorageLink);
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<DDMStorageLink> 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<DDMStorageLink> 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<DDMStorageLink> 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#update(com.liferay.portal.model.BaseModel)
099             */
100            public static DDMStorageLink update(DDMStorageLink ddmStorageLink)
101                    throws SystemException {
102                    return getPersistence().update(ddmStorageLink);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static DDMStorageLink update(DDMStorageLink ddmStorageLink,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(ddmStorageLink, serviceContext);
111            }
112    
113            /**
114            * Caches the d d m storage link in the entity cache if it is enabled.
115            *
116            * @param ddmStorageLink the d d m storage link
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink ddmStorageLink) {
120                    getPersistence().cacheResult(ddmStorageLink);
121            }
122    
123            /**
124            * Caches the d d m storage links in the entity cache if it is enabled.
125            *
126            * @param ddmStorageLinks the d d m storage links
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> ddmStorageLinks) {
130                    getPersistence().cacheResult(ddmStorageLinks);
131            }
132    
133            /**
134            * Creates a new d d m storage link with the primary key. Does not add the d d m storage link to the database.
135            *
136            * @param storageLinkId the primary key for the new d d m storage link
137            * @return the new d d m storage link
138            */
139            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink create(
140                    long storageLinkId) {
141                    return getPersistence().create(storageLinkId);
142            }
143    
144            /**
145            * Removes the d d m storage link with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param storageLinkId the primary key of the d d m storage link
148            * @return the d d m storage link that was removed
149            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink remove(
153                    long storageLinkId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException {
156                    return getPersistence().remove(storageLinkId);
157            }
158    
159            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink updateImpl(
160                    com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink ddmStorageLink)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().updateImpl(ddmStorageLink);
163            }
164    
165            /**
166            * Returns the d d m storage link with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException} if it could not be found.
167            *
168            * @param storageLinkId the primary key of the d d m storage link
169            * @return the d d m storage link
170            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByPrimaryKey(
174                    long storageLinkId)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException {
177                    return getPersistence().findByPrimaryKey(storageLinkId);
178            }
179    
180            /**
181            * Returns the d d m storage link with the primary key or returns <code>null</code> if it could not be found.
182            *
183            * @param storageLinkId the primary key of the d d m storage link
184            * @return the d d m storage link, or <code>null</code> if a d d m storage link with the primary key could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByPrimaryKey(
188                    long storageLinkId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence().fetchByPrimaryKey(storageLinkId);
191            }
192    
193            /**
194            * Returns all the d d m storage links where uuid = &#63;.
195            *
196            * @param uuid the uuid
197            * @return the matching d d m storage links
198            * @throws SystemException if a system exception occurred
199            */
200            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid(
201                    java.lang.String uuid)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getPersistence().findByUuid(uuid);
204            }
205    
206            /**
207            * Returns a range of all the d d m storage links where uuid = &#63;.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param uuid the uuid
214            * @param start the lower bound of the range of d d m storage links
215            * @param end the upper bound of the range of d d m storage links (not inclusive)
216            * @return the range of matching d d m storage links
217            * @throws SystemException if a system exception occurred
218            */
219            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid(
220                    java.lang.String uuid, int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return getPersistence().findByUuid(uuid, start, end);
223            }
224    
225            /**
226            * Returns an ordered range of all the d d m storage links where uuid = &#63;.
227            *
228            * <p>
229            * 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.
230            * </p>
231            *
232            * @param uuid the uuid
233            * @param start the lower bound of the range of d d m storage links
234            * @param end the upper bound of the range of d d m storage links (not inclusive)
235            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
236            * @return the ordered range of matching d d m storage links
237            * @throws SystemException if a system exception occurred
238            */
239            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid(
240                    java.lang.String uuid, int start, int end,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
244            }
245    
246            /**
247            * Returns the first d d m storage link in the ordered set where uuid = &#63;.
248            *
249            * @param uuid the uuid
250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
251            * @return the first matching d d m storage link
252            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found
253            * @throws SystemException if a system exception occurred
254            */
255            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByUuid_First(
256                    java.lang.String uuid,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException,
259                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException {
260                    return getPersistence().findByUuid_First(uuid, orderByComparator);
261            }
262    
263            /**
264            * Returns the first d d m storage link in the ordered set where uuid = &#63;.
265            *
266            * @param uuid the uuid
267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
268            * @return the first matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found
269            * @throws SystemException if a system exception occurred
270            */
271            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByUuid_First(
272                    java.lang.String uuid,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
276            }
277    
278            /**
279            * Returns the last d d m storage link in the ordered set where uuid = &#63;.
280            *
281            * @param uuid the uuid
282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
283            * @return the last matching d d m storage link
284            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByUuid_Last(
288                    java.lang.String uuid,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.kernel.exception.SystemException,
291                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException {
292                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
293            }
294    
295            /**
296            * Returns the last d d m storage link in the ordered set where uuid = &#63;.
297            *
298            * @param uuid the uuid
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the last matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByUuid_Last(
304                    java.lang.String uuid,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
308            }
309    
310            /**
311            * Returns the d d m storage links before and after the current d d m storage link in the ordered set where uuid = &#63;.
312            *
313            * @param storageLinkId the primary key of the current d d m storage link
314            * @param uuid the uuid
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the previous, current, and next d d m storage link
317            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink[] findByUuid_PrevAndNext(
321                    long storageLinkId, java.lang.String uuid,
322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException {
325                    return getPersistence()
326                                       .findByUuid_PrevAndNext(storageLinkId, uuid,
327                            orderByComparator);
328            }
329    
330            /**
331            * Returns the d d m storage link where classPK = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException} if it could not be found.
332            *
333            * @param classPK the class p k
334            * @return the matching d d m storage link
335            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found
336            * @throws SystemException if a system exception occurred
337            */
338            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByClassPK(
339                    long classPK)
340                    throws com.liferay.portal.kernel.exception.SystemException,
341                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException {
342                    return getPersistence().findByClassPK(classPK);
343            }
344    
345            /**
346            * Returns the d d m storage link where classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
347            *
348            * @param classPK the class p k
349            * @return the matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found
350            * @throws SystemException if a system exception occurred
351            */
352            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByClassPK(
353                    long classPK)
354                    throws com.liferay.portal.kernel.exception.SystemException {
355                    return getPersistence().fetchByClassPK(classPK);
356            }
357    
358            /**
359            * Returns the d d m storage link where classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
360            *
361            * @param classPK the class p k
362            * @param retrieveFromCache whether to use the finder cache
363            * @return the matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found
364            * @throws SystemException if a system exception occurred
365            */
366            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByClassPK(
367                    long classPK, boolean retrieveFromCache)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return getPersistence().fetchByClassPK(classPK, retrieveFromCache);
370            }
371    
372            /**
373            * Returns all the d d m storage links where structureId = &#63;.
374            *
375            * @param structureId the structure ID
376            * @return the matching d d m storage links
377            * @throws SystemException if a system exception occurred
378            */
379            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByStructureId(
380                    long structureId)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return getPersistence().findByStructureId(structureId);
383            }
384    
385            /**
386            * Returns a range of all the d d m storage links where structureId = &#63;.
387            *
388            * <p>
389            * 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.
390            * </p>
391            *
392            * @param structureId the structure ID
393            * @param start the lower bound of the range of d d m storage links
394            * @param end the upper bound of the range of d d m storage links (not inclusive)
395            * @return the range of matching d d m storage links
396            * @throws SystemException if a system exception occurred
397            */
398            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByStructureId(
399                    long structureId, int start, int end)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return getPersistence().findByStructureId(structureId, start, end);
402            }
403    
404            /**
405            * Returns an ordered range of all the d d m storage links where structureId = &#63;.
406            *
407            * <p>
408            * 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.
409            * </p>
410            *
411            * @param structureId the structure ID
412            * @param start the lower bound of the range of d d m storage links
413            * @param end the upper bound of the range of d d m storage links (not inclusive)
414            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
415            * @return the ordered range of matching d d m storage links
416            * @throws SystemException if a system exception occurred
417            */
418            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByStructureId(
419                    long structureId, int start, int end,
420                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421                    throws com.liferay.portal.kernel.exception.SystemException {
422                    return getPersistence()
423                                       .findByStructureId(structureId, start, end, orderByComparator);
424            }
425    
426            /**
427            * Returns the first d d m storage link in the ordered set where structureId = &#63;.
428            *
429            * @param structureId the structure ID
430            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
431            * @return the first matching d d m storage link
432            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found
433            * @throws SystemException if a system exception occurred
434            */
435            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByStructureId_First(
436                    long structureId,
437                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
438                    throws com.liferay.portal.kernel.exception.SystemException,
439                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException {
440                    return getPersistence()
441                                       .findByStructureId_First(structureId, orderByComparator);
442            }
443    
444            /**
445            * Returns the first d d m storage link in the ordered set where structureId = &#63;.
446            *
447            * @param structureId the structure ID
448            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
449            * @return the first matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found
450            * @throws SystemException if a system exception occurred
451            */
452            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByStructureId_First(
453                    long structureId,
454                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
455                    throws com.liferay.portal.kernel.exception.SystemException {
456                    return getPersistence()
457                                       .fetchByStructureId_First(structureId, orderByComparator);
458            }
459    
460            /**
461            * Returns the last d d m storage link in the ordered set where structureId = &#63;.
462            *
463            * @param structureId the structure ID
464            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
465            * @return the last matching d d m storage link
466            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByStructureId_Last(
470                    long structureId,
471                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
472                    throws com.liferay.portal.kernel.exception.SystemException,
473                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException {
474                    return getPersistence()
475                                       .findByStructureId_Last(structureId, orderByComparator);
476            }
477    
478            /**
479            * Returns the last d d m storage link in the ordered set where structureId = &#63;.
480            *
481            * @param structureId the structure ID
482            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
483            * @return the last matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found
484            * @throws SystemException if a system exception occurred
485            */
486            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByStructureId_Last(
487                    long structureId,
488                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    return getPersistence()
491                                       .fetchByStructureId_Last(structureId, orderByComparator);
492            }
493    
494            /**
495            * Returns the d d m storage links before and after the current d d m storage link in the ordered set where structureId = &#63;.
496            *
497            * @param storageLinkId the primary key of the current d d m storage link
498            * @param structureId the structure ID
499            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
500            * @return the previous, current, and next d d m storage link
501            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage link with the primary key could not be found
502            * @throws SystemException if a system exception occurred
503            */
504            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink[] findByStructureId_PrevAndNext(
505                    long storageLinkId, long structureId,
506                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507                    throws com.liferay.portal.kernel.exception.SystemException,
508                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException {
509                    return getPersistence()
510                                       .findByStructureId_PrevAndNext(storageLinkId, structureId,
511                            orderByComparator);
512            }
513    
514            /**
515            * Returns all the d d m storage links.
516            *
517            * @return the d d m storage links
518            * @throws SystemException if a system exception occurred
519            */
520            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findAll()
521                    throws com.liferay.portal.kernel.exception.SystemException {
522                    return getPersistence().findAll();
523            }
524    
525            /**
526            * Returns a range of all the d d m storage links.
527            *
528            * <p>
529            * 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.
530            * </p>
531            *
532            * @param start the lower bound of the range of d d m storage links
533            * @param end the upper bound of the range of d d m storage links (not inclusive)
534            * @return the range of d d m storage links
535            * @throws SystemException if a system exception occurred
536            */
537            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findAll(
538                    int start, int end)
539                    throws com.liferay.portal.kernel.exception.SystemException {
540                    return getPersistence().findAll(start, end);
541            }
542    
543            /**
544            * Returns an ordered range of all the d d m storage links.
545            *
546            * <p>
547            * 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.
548            * </p>
549            *
550            * @param start the lower bound of the range of d d m storage links
551            * @param end the upper bound of the range of d d m storage links (not inclusive)
552            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
553            * @return the ordered range of d d m storage links
554            * @throws SystemException if a system exception occurred
555            */
556            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findAll(
557                    int start, int end,
558                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
559                    throws com.liferay.portal.kernel.exception.SystemException {
560                    return getPersistence().findAll(start, end, orderByComparator);
561            }
562    
563            /**
564            * Removes all the d d m storage links where uuid = &#63; from the database.
565            *
566            * @param uuid the uuid
567            * @throws SystemException if a system exception occurred
568            */
569            public static void removeByUuid(java.lang.String uuid)
570                    throws com.liferay.portal.kernel.exception.SystemException {
571                    getPersistence().removeByUuid(uuid);
572            }
573    
574            /**
575            * Removes the d d m storage link where classPK = &#63; from the database.
576            *
577            * @param classPK the class p k
578            * @return the d d m storage link that was removed
579            * @throws SystemException if a system exception occurred
580            */
581            public static com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink removeByClassPK(
582                    long classPK)
583                    throws com.liferay.portal.kernel.exception.SystemException,
584                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException {
585                    return getPersistence().removeByClassPK(classPK);
586            }
587    
588            /**
589            * Removes all the d d m storage links where structureId = &#63; from the database.
590            *
591            * @param structureId the structure ID
592            * @throws SystemException if a system exception occurred
593            */
594            public static void removeByStructureId(long structureId)
595                    throws com.liferay.portal.kernel.exception.SystemException {
596                    getPersistence().removeByStructureId(structureId);
597            }
598    
599            /**
600            * Removes all the d d m storage links from the database.
601            *
602            * @throws SystemException if a system exception occurred
603            */
604            public static void removeAll()
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    getPersistence().removeAll();
607            }
608    
609            /**
610            * Returns the number of d d m storage links where uuid = &#63;.
611            *
612            * @param uuid the uuid
613            * @return the number of matching d d m storage links
614            * @throws SystemException if a system exception occurred
615            */
616            public static int countByUuid(java.lang.String uuid)
617                    throws com.liferay.portal.kernel.exception.SystemException {
618                    return getPersistence().countByUuid(uuid);
619            }
620    
621            /**
622            * Returns the number of d d m storage links where classPK = &#63;.
623            *
624            * @param classPK the class p k
625            * @return the number of matching d d m storage links
626            * @throws SystemException if a system exception occurred
627            */
628            public static int countByClassPK(long classPK)
629                    throws com.liferay.portal.kernel.exception.SystemException {
630                    return getPersistence().countByClassPK(classPK);
631            }
632    
633            /**
634            * Returns the number of d d m storage links where structureId = &#63;.
635            *
636            * @param structureId the structure ID
637            * @return the number of matching d d m storage links
638            * @throws SystemException if a system exception occurred
639            */
640            public static int countByStructureId(long structureId)
641                    throws com.liferay.portal.kernel.exception.SystemException {
642                    return getPersistence().countByStructureId(structureId);
643            }
644    
645            /**
646            * Returns the number of d d m storage links.
647            *
648            * @return the number of d d m storage links
649            * @throws SystemException if a system exception occurred
650            */
651            public static int countAll()
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    return getPersistence().countAll();
654            }
655    
656            public static DDMStorageLinkPersistence getPersistence() {
657                    if (_persistence == null) {
658                            _persistence = (DDMStorageLinkPersistence)PortalBeanLocatorUtil.locate(DDMStorageLinkPersistence.class.getName());
659    
660                            ReferenceRegistry.registerReference(DDMStorageLinkUtil.class,
661                                    "_persistence");
662                    }
663    
664                    return _persistence;
665            }
666    
667            /**
668             * @deprecated
669             */
670            public void setPersistence(DDMStorageLinkPersistence persistence) {
671            }
672    
673            private static DDMStorageLinkPersistence _persistence;
674    }