001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.util.OrderByComparator;
022    import com.liferay.portal.kernel.util.ReferenceRegistry;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink;
026    
027    import java.util.List;
028    
029    /**
030     * The persistence utility for the d d m structure link service. This utility wraps {@link DDMStructureLinkPersistenceImpl} 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.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see DDMStructureLinkPersistence
038     * @see DDMStructureLinkPersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class DDMStructureLinkUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(DDMStructureLink ddmStructureLink) {
060                    getPersistence().clearCache(ddmStructureLink);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
067                    return getPersistence().countWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
072             */
073            public static List<DDMStructureLink> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery) {
075                    return getPersistence().findWithDynamicQuery(dynamicQuery);
076            }
077    
078            /**
079             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
080             */
081            public static List<DDMStructureLink> findWithDynamicQuery(
082                    DynamicQuery dynamicQuery, int start, int end) {
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<DDMStructureLink> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator<DDMStructureLink> orderByComparator) {
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 DDMStructureLink update(DDMStructureLink ddmStructureLink) {
101                    return getPersistence().update(ddmStructureLink);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static DDMStructureLink update(DDMStructureLink ddmStructureLink,
108                    ServiceContext serviceContext) {
109                    return getPersistence().update(ddmStructureLink, serviceContext);
110            }
111    
112            /**
113            * Returns all the d d m structure links where classNameId = &#63;.
114            *
115            * @param classNameId the class name ID
116            * @return the matching d d m structure links
117            */
118            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(
119                    long classNameId) {
120                    return getPersistence().findByClassNameId(classNameId);
121            }
122    
123            /**
124            * Returns a range of all the d d m structure links where classNameId = &#63;.
125            *
126            * <p>
127            * 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.DDMStructureLinkModelImpl}. 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.
128            * </p>
129            *
130            * @param classNameId the class name ID
131            * @param start the lower bound of the range of d d m structure links
132            * @param end the upper bound of the range of d d m structure links (not inclusive)
133            * @return the range of matching d d m structure links
134            */
135            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(
136                    long classNameId, int start, int end) {
137                    return getPersistence().findByClassNameId(classNameId, start, end);
138            }
139    
140            /**
141            * Returns an ordered range of all the d d m structure links where classNameId = &#63;.
142            *
143            * <p>
144            * 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.DDMStructureLinkModelImpl}. 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.
145            * </p>
146            *
147            * @param classNameId the class name ID
148            * @param start the lower bound of the range of d d m structure links
149            * @param end the upper bound of the range of d d m structure links (not inclusive)
150            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
151            * @return the ordered range of matching d d m structure links
152            */
153            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(
154                    long classNameId, int start, int end,
155                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator) {
156                    return getPersistence()
157                                       .findByClassNameId(classNameId, start, end, orderByComparator);
158            }
159    
160            /**
161            * Returns the first d d m structure link in the ordered set where classNameId = &#63;.
162            *
163            * @param classNameId the class name ID
164            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
165            * @return the first matching d d m structure link
166            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found
167            */
168            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_First(
169                    long classNameId,
170                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator)
171                    throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException {
172                    return getPersistence()
173                                       .findByClassNameId_First(classNameId, orderByComparator);
174            }
175    
176            /**
177            * Returns the first d d m structure link in the ordered set where classNameId = &#63;.
178            *
179            * @param classNameId the class name ID
180            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
181            * @return the first matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found
182            */
183            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassNameId_First(
184                    long classNameId,
185                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator) {
186                    return getPersistence()
187                                       .fetchByClassNameId_First(classNameId, orderByComparator);
188            }
189    
190            /**
191            * Returns the last d d m structure link in the ordered set where classNameId = &#63;.
192            *
193            * @param classNameId the class name ID
194            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
195            * @return the last matching d d m structure link
196            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found
197            */
198            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_Last(
199                    long classNameId,
200                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator)
201                    throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException {
202                    return getPersistence()
203                                       .findByClassNameId_Last(classNameId, orderByComparator);
204            }
205    
206            /**
207            * Returns the last d d m structure link in the ordered set where classNameId = &#63;.
208            *
209            * @param classNameId the class name ID
210            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
211            * @return the last matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found
212            */
213            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassNameId_Last(
214                    long classNameId,
215                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator) {
216                    return getPersistence()
217                                       .fetchByClassNameId_Last(classNameId, orderByComparator);
218            }
219    
220            /**
221            * Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = &#63;.
222            *
223            * @param structureLinkId the primary key of the current d d m structure link
224            * @param classNameId the class name ID
225            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
226            * @return the previous, current, and next d d m structure link
227            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found
228            */
229            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByClassNameId_PrevAndNext(
230                    long structureLinkId, long classNameId,
231                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator)
232                    throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException {
233                    return getPersistence()
234                                       .findByClassNameId_PrevAndNext(structureLinkId, classNameId,
235                            orderByComparator);
236            }
237    
238            /**
239            * Removes all the d d m structure links where classNameId = &#63; from the database.
240            *
241            * @param classNameId the class name ID
242            */
243            public static void removeByClassNameId(long classNameId) {
244                    getPersistence().removeByClassNameId(classNameId);
245            }
246    
247            /**
248            * Returns the number of d d m structure links where classNameId = &#63;.
249            *
250            * @param classNameId the class name ID
251            * @return the number of matching d d m structure links
252            */
253            public static int countByClassNameId(long classNameId) {
254                    return getPersistence().countByClassNameId(classNameId);
255            }
256    
257            /**
258            * Returns the d d m structure link where classPK = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException} if it could not be found.
259            *
260            * @param classPK the class p k
261            * @return the matching d d m structure link
262            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found
263            */
264            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassPK(
265                    long classPK)
266                    throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException {
267                    return getPersistence().findByClassPK(classPK);
268            }
269    
270            /**
271            * Returns the d d m structure link where classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
272            *
273            * @param classPK the class p k
274            * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found
275            */
276            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK(
277                    long classPK) {
278                    return getPersistence().fetchByClassPK(classPK);
279            }
280    
281            /**
282            * Returns the d d m structure link where classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
283            *
284            * @param classPK the class p k
285            * @param retrieveFromCache whether to use the finder cache
286            * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found
287            */
288            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK(
289                    long classPK, boolean retrieveFromCache) {
290                    return getPersistence().fetchByClassPK(classPK, retrieveFromCache);
291            }
292    
293            /**
294            * Removes the d d m structure link where classPK = &#63; from the database.
295            *
296            * @param classPK the class p k
297            * @return the d d m structure link that was removed
298            */
299            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink removeByClassPK(
300                    long classPK)
301                    throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException {
302                    return getPersistence().removeByClassPK(classPK);
303            }
304    
305            /**
306            * Returns the number of d d m structure links where classPK = &#63;.
307            *
308            * @param classPK the class p k
309            * @return the number of matching d d m structure links
310            */
311            public static int countByClassPK(long classPK) {
312                    return getPersistence().countByClassPK(classPK);
313            }
314    
315            /**
316            * Returns all the d d m structure links where structureId = &#63;.
317            *
318            * @param structureId the structure ID
319            * @return the matching d d m structure links
320            */
321            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(
322                    long structureId) {
323                    return getPersistence().findByStructureId(structureId);
324            }
325    
326            /**
327            * Returns a range of all the d d m structure links where structureId = &#63;.
328            *
329            * <p>
330            * 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.DDMStructureLinkModelImpl}. 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.
331            * </p>
332            *
333            * @param structureId the structure ID
334            * @param start the lower bound of the range of d d m structure links
335            * @param end the upper bound of the range of d d m structure links (not inclusive)
336            * @return the range of matching d d m structure links
337            */
338            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(
339                    long structureId, int start, int end) {
340                    return getPersistence().findByStructureId(structureId, start, end);
341            }
342    
343            /**
344            * Returns an ordered range of all the d d m structure links where structureId = &#63;.
345            *
346            * <p>
347            * 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.DDMStructureLinkModelImpl}. 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.
348            * </p>
349            *
350            * @param structureId the structure ID
351            * @param start the lower bound of the range of d d m structure links
352            * @param end the upper bound of the range of d d m structure links (not inclusive)
353            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
354            * @return the ordered range of matching d d m structure links
355            */
356            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(
357                    long structureId, int start, int end,
358                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator) {
359                    return getPersistence()
360                                       .findByStructureId(structureId, start, end, orderByComparator);
361            }
362    
363            /**
364            * Returns the first d d m structure link in the ordered set where structureId = &#63;.
365            *
366            * @param structureId the structure ID
367            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
368            * @return the first matching d d m structure link
369            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found
370            */
371            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_First(
372                    long structureId,
373                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator)
374                    throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException {
375                    return getPersistence()
376                                       .findByStructureId_First(structureId, orderByComparator);
377            }
378    
379            /**
380            * Returns the first d d m structure link in the ordered set where structureId = &#63;.
381            *
382            * @param structureId the structure ID
383            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
384            * @return the first matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found
385            */
386            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByStructureId_First(
387                    long structureId,
388                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator) {
389                    return getPersistence()
390                                       .fetchByStructureId_First(structureId, orderByComparator);
391            }
392    
393            /**
394            * Returns the last d d m structure link in the ordered set where structureId = &#63;.
395            *
396            * @param structureId the structure ID
397            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
398            * @return the last matching d d m structure link
399            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found
400            */
401            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_Last(
402                    long structureId,
403                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator)
404                    throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException {
405                    return getPersistence()
406                                       .findByStructureId_Last(structureId, orderByComparator);
407            }
408    
409            /**
410            * Returns the last d d m structure link in the ordered set where structureId = &#63;.
411            *
412            * @param structureId the structure ID
413            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
414            * @return the last matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found
415            */
416            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByStructureId_Last(
417                    long structureId,
418                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator) {
419                    return getPersistence()
420                                       .fetchByStructureId_Last(structureId, orderByComparator);
421            }
422    
423            /**
424            * Returns the d d m structure links before and after the current d d m structure link in the ordered set where structureId = &#63;.
425            *
426            * @param structureLinkId the primary key of the current d d m structure link
427            * @param structureId the structure ID
428            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
429            * @return the previous, current, and next d d m structure link
430            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found
431            */
432            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByStructureId_PrevAndNext(
433                    long structureLinkId, long structureId,
434                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator)
435                    throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException {
436                    return getPersistence()
437                                       .findByStructureId_PrevAndNext(structureLinkId, structureId,
438                            orderByComparator);
439            }
440    
441            /**
442            * Removes all the d d m structure links where structureId = &#63; from the database.
443            *
444            * @param structureId the structure ID
445            */
446            public static void removeByStructureId(long structureId) {
447                    getPersistence().removeByStructureId(structureId);
448            }
449    
450            /**
451            * Returns the number of d d m structure links where structureId = &#63;.
452            *
453            * @param structureId the structure ID
454            * @return the number of matching d d m structure links
455            */
456            public static int countByStructureId(long structureId) {
457                    return getPersistence().countByStructureId(structureId);
458            }
459    
460            /**
461            * Caches the d d m structure link in the entity cache if it is enabled.
462            *
463            * @param ddmStructureLink the d d m structure link
464            */
465            public static void cacheResult(
466                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink) {
467                    getPersistence().cacheResult(ddmStructureLink);
468            }
469    
470            /**
471            * Caches the d d m structure links in the entity cache if it is enabled.
472            *
473            * @param ddmStructureLinks the d d m structure links
474            */
475            public static void cacheResult(
476                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> ddmStructureLinks) {
477                    getPersistence().cacheResult(ddmStructureLinks);
478            }
479    
480            /**
481            * Creates a new d d m structure link with the primary key. Does not add the d d m structure link to the database.
482            *
483            * @param structureLinkId the primary key for the new d d m structure link
484            * @return the new d d m structure link
485            */
486            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink create(
487                    long structureLinkId) {
488                    return getPersistence().create(structureLinkId);
489            }
490    
491            /**
492            * Removes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners.
493            *
494            * @param structureLinkId the primary key of the d d m structure link
495            * @return the d d m structure link that was removed
496            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found
497            */
498            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink remove(
499                    long structureLinkId)
500                    throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException {
501                    return getPersistence().remove(structureLinkId);
502            }
503    
504            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink updateImpl(
505                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink) {
506                    return getPersistence().updateImpl(ddmStructureLink);
507            }
508    
509            /**
510            * Returns the d d m structure link with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException} if it could not be found.
511            *
512            * @param structureLinkId the primary key of the d d m structure link
513            * @return the d d m structure link
514            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found
515            */
516            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByPrimaryKey(
517                    long structureLinkId)
518                    throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException {
519                    return getPersistence().findByPrimaryKey(structureLinkId);
520            }
521    
522            /**
523            * Returns the d d m structure link with the primary key or returns <code>null</code> if it could not be found.
524            *
525            * @param structureLinkId the primary key of the d d m structure link
526            * @return the d d m structure link, or <code>null</code> if a d d m structure link with the primary key could not be found
527            */
528            public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByPrimaryKey(
529                    long structureLinkId) {
530                    return getPersistence().fetchByPrimaryKey(structureLinkId);
531            }
532    
533            public static java.util.Map<java.io.Serializable, com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> fetchByPrimaryKeys(
534                    java.util.Set<java.io.Serializable> primaryKeys) {
535                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
536            }
537    
538            /**
539            * Returns all the d d m structure links.
540            *
541            * @return the d d m structure links
542            */
543            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll() {
544                    return getPersistence().findAll();
545            }
546    
547            /**
548            * Returns a range of all the d d m structure links.
549            *
550            * <p>
551            * 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.DDMStructureLinkModelImpl}. 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.
552            * </p>
553            *
554            * @param start the lower bound of the range of d d m structure links
555            * @param end the upper bound of the range of d d m structure links (not inclusive)
556            * @return the range of d d m structure links
557            */
558            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll(
559                    int start, int end) {
560                    return getPersistence().findAll(start, end);
561            }
562    
563            /**
564            * Returns an ordered range of all the d d m structure links.
565            *
566            * <p>
567            * 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.DDMStructureLinkModelImpl}. 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.
568            * </p>
569            *
570            * @param start the lower bound of the range of d d m structure links
571            * @param end the upper bound of the range of d d m structure links (not inclusive)
572            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
573            * @return the ordered range of d d m structure links
574            */
575            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll(
576                    int start, int end,
577                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> orderByComparator) {
578                    return getPersistence().findAll(start, end, orderByComparator);
579            }
580    
581            /**
582            * Removes all the d d m structure links from the database.
583            */
584            public static void removeAll() {
585                    getPersistence().removeAll();
586            }
587    
588            /**
589            * Returns the number of d d m structure links.
590            *
591            * @return the number of d d m structure links
592            */
593            public static int countAll() {
594                    return getPersistence().countAll();
595            }
596    
597            public static DDMStructureLinkPersistence getPersistence() {
598                    if (_persistence == null) {
599                            _persistence = (DDMStructureLinkPersistence)PortalBeanLocatorUtil.locate(DDMStructureLinkPersistence.class.getName());
600    
601                            ReferenceRegistry.registerReference(DDMStructureLinkUtil.class,
602                                    "_persistence");
603                    }
604    
605                    return _persistence;
606            }
607    
608            /**
609             * @deprecated As of 6.2.0
610             */
611            @Deprecated
612            public void setPersistence(DDMStructureLinkPersistence persistence) {
613            }
614    
615            private static DDMStructureLinkPersistence _persistence;
616    }