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