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