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