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