001    /**
002     * Copyright (c) 2000-2012 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.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink;
020    
021    /**
022     * The persistence interface for the d d m structure link service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see DDMStructureLinkPersistenceImpl
030     * @see DDMStructureLinkUtil
031     * @generated
032     */
033    public interface DDMStructureLinkPersistence extends BasePersistence<DDMStructureLink> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link DDMStructureLinkUtil} to access the d d m structure link persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Returns all the d d m structure links where classNameId = &#63;.
042            *
043            * @param classNameId the class name ID
044            * @return the matching d d m structure links
045            * @throws SystemException if a system exception occurred
046            */
047            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(
048                    long classNameId)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            /**
052            * Returns a range of all the d d m structure links where classNameId = &#63;.
053            *
054            * <p>
055            * 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.
056            * </p>
057            *
058            * @param classNameId the class name ID
059            * @param start the lower bound of the range of d d m structure links
060            * @param end the upper bound of the range of d d m structure links (not inclusive)
061            * @return the range of matching d d m structure links
062            * @throws SystemException if a system exception occurred
063            */
064            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(
065                    long classNameId, int start, int end)
066                    throws com.liferay.portal.kernel.exception.SystemException;
067    
068            /**
069            * Returns an ordered range of all the d d m structure links where classNameId = &#63;.
070            *
071            * <p>
072            * 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.
073            * </p>
074            *
075            * @param classNameId the class name ID
076            * @param start the lower bound of the range of d d m structure links
077            * @param end the upper bound of the range of d d m structure links (not inclusive)
078            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
079            * @return the ordered range of matching d d m structure links
080            * @throws SystemException if a system exception occurred
081            */
082            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByClassNameId(
083                    long classNameId, int start, int end,
084                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            /**
088            * Returns the first d d m structure link in the ordered set where classNameId = &#63;.
089            *
090            * @param classNameId the class name ID
091            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
092            * @return the first matching d d m structure link
093            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found
094            * @throws SystemException if a system exception occurred
095            */
096            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_First(
097                    long classNameId,
098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099                    throws com.liferay.portal.kernel.exception.SystemException,
100                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException;
101    
102            /**
103            * Returns the first d d m structure link in the ordered set where classNameId = &#63;.
104            *
105            * @param classNameId the class name ID
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @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
108            * @throws SystemException if a system exception occurred
109            */
110            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassNameId_First(
111                    long classNameId,
112                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns the last d d m structure link in the ordered set where classNameId = &#63;.
117            *
118            * @param classNameId the class name ID
119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
120            * @return the last matching d d m structure link
121            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found
122            * @throws SystemException if a system exception occurred
123            */
124            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassNameId_Last(
125                    long classNameId,
126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127                    throws com.liferay.portal.kernel.exception.SystemException,
128                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException;
129    
130            /**
131            * Returns the last d d m structure link in the ordered set where classNameId = &#63;.
132            *
133            * @param classNameId the class name ID
134            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
135            * @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
136            * @throws SystemException if a system exception occurred
137            */
138            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassNameId_Last(
139                    long classNameId,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the d d m structure links before and after the current d d m structure link in the ordered set where classNameId = &#63;.
145            *
146            * @param structureLinkId the primary key of the current d d m structure link
147            * @param classNameId the class name ID
148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
149            * @return the previous, current, and next d d m structure link
150            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found
151            * @throws SystemException if a system exception occurred
152            */
153            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByClassNameId_PrevAndNext(
154                    long structureLinkId, long classNameId,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.kernel.exception.SystemException,
157                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException;
158    
159            /**
160            * Removes all the d d m structure links where classNameId = &#63; from the database.
161            *
162            * @param classNameId the class name ID
163            * @throws SystemException if a system exception occurred
164            */
165            public void removeByClassNameId(long classNameId)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns the number of d d m structure links where classNameId = &#63;.
170            *
171            * @param classNameId the class name ID
172            * @return the number of matching d d m structure links
173            * @throws SystemException if a system exception occurred
174            */
175            public int countByClassNameId(long classNameId)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * 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.
180            *
181            * @param classPK the class p k
182            * @return the matching d d m structure link
183            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByClassPK(
187                    long classPK)
188                    throws com.liferay.portal.kernel.exception.SystemException,
189                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException;
190    
191            /**
192            * 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.
193            *
194            * @param classPK the class p k
195            * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found
196            * @throws SystemException if a system exception occurred
197            */
198            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK(
199                    long classPK)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            /**
203            * 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.
204            *
205            * @param classPK the class p k
206            * @param retrieveFromCache whether to use the finder cache
207            * @return the matching d d m structure link, or <code>null</code> if a matching d d m structure link could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByClassPK(
211                    long classPK, boolean retrieveFromCache)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            /**
215            * Removes the d d m structure link where classPK = &#63; from the database.
216            *
217            * @param classPK the class p k
218            * @return the d d m structure link that was removed
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink removeByClassPK(
222                    long classPK)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException;
225    
226            /**
227            * Returns the number of d d m structure links where classPK = &#63;.
228            *
229            * @param classPK the class p k
230            * @return the number of matching d d m structure links
231            * @throws SystemException if a system exception occurred
232            */
233            public int countByClassPK(long classPK)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            /**
237            * Returns all the d d m structure links where structureId = &#63;.
238            *
239            * @param structureId the structure ID
240            * @return the matching d d m structure links
241            * @throws SystemException if a system exception occurred
242            */
243            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(
244                    long structureId)
245                    throws com.liferay.portal.kernel.exception.SystemException;
246    
247            /**
248            * Returns a range of all the d d m structure links where structureId = &#63;.
249            *
250            * <p>
251            * 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.
252            * </p>
253            *
254            * @param structureId the structure ID
255            * @param start the lower bound of the range of d d m structure links
256            * @param end the upper bound of the range of d d m structure links (not inclusive)
257            * @return the range of matching d d m structure links
258            * @throws SystemException if a system exception occurred
259            */
260            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(
261                    long structureId, int start, int end)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            /**
265            * Returns an ordered range of all the d d m structure links where structureId = &#63;.
266            *
267            * <p>
268            * 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.
269            * </p>
270            *
271            * @param structureId the structure ID
272            * @param start the lower bound of the range of d d m structure links
273            * @param end the upper bound of the range of d d m structure links (not inclusive)
274            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
275            * @return the ordered range of matching d d m structure links
276            * @throws SystemException if a system exception occurred
277            */
278            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findByStructureId(
279                    long structureId, int start, int end,
280                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281                    throws com.liferay.portal.kernel.exception.SystemException;
282    
283            /**
284            * Returns the first d d m structure link in the ordered set where structureId = &#63;.
285            *
286            * @param structureId the structure ID
287            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
288            * @return the first matching d d m structure link
289            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found
290            * @throws SystemException if a system exception occurred
291            */
292            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_First(
293                    long structureId,
294                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295                    throws com.liferay.portal.kernel.exception.SystemException,
296                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException;
297    
298            /**
299            * Returns the first d d m structure link in the ordered set where structureId = &#63;.
300            *
301            * @param structureId the structure ID
302            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
303            * @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
304            * @throws SystemException if a system exception occurred
305            */
306            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByStructureId_First(
307                    long structureId,
308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309                    throws com.liferay.portal.kernel.exception.SystemException;
310    
311            /**
312            * Returns the last d d m structure link in the ordered set where structureId = &#63;.
313            *
314            * @param structureId the structure ID
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the last matching d d m structure link
317            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a matching d d m structure link could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByStructureId_Last(
321                    long structureId,
322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException;
325    
326            /**
327            * Returns the last d d m structure link in the ordered set where structureId = &#63;.
328            *
329            * @param structureId the structure ID
330            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
331            * @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
332            * @throws SystemException if a system exception occurred
333            */
334            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByStructureId_Last(
335                    long structureId,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.kernel.exception.SystemException;
338    
339            /**
340            * Returns the d d m structure links before and after the current d d m structure link in the ordered set where structureId = &#63;.
341            *
342            * @param structureLinkId the primary key of the current d d m structure link
343            * @param structureId the structure ID
344            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
345            * @return the previous, current, and next d d m structure link
346            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink[] findByStructureId_PrevAndNext(
350                    long structureLinkId, long structureId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException,
353                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException;
354    
355            /**
356            * Removes all the d d m structure links where structureId = &#63; from the database.
357            *
358            * @param structureId the structure ID
359            * @throws SystemException if a system exception occurred
360            */
361            public void removeByStructureId(long structureId)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Returns the number of d d m structure links where structureId = &#63;.
366            *
367            * @param structureId the structure ID
368            * @return the number of matching d d m structure links
369            * @throws SystemException if a system exception occurred
370            */
371            public int countByStructureId(long structureId)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            /**
375            * Caches the d d m structure link in the entity cache if it is enabled.
376            *
377            * @param ddmStructureLink the d d m structure link
378            */
379            public void cacheResult(
380                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink);
381    
382            /**
383            * Caches the d d m structure links in the entity cache if it is enabled.
384            *
385            * @param ddmStructureLinks the d d m structure links
386            */
387            public void cacheResult(
388                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> ddmStructureLinks);
389    
390            /**
391            * Creates a new d d m structure link with the primary key. Does not add the d d m structure link to the database.
392            *
393            * @param structureLinkId the primary key for the new d d m structure link
394            * @return the new d d m structure link
395            */
396            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink create(
397                    long structureLinkId);
398    
399            /**
400            * Removes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners.
401            *
402            * @param structureLinkId the primary key of the d d m structure link
403            * @return the d d m structure link that was removed
404            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found
405            * @throws SystemException if a system exception occurred
406            */
407            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink remove(
408                    long structureLinkId)
409                    throws com.liferay.portal.kernel.exception.SystemException,
410                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException;
411    
412            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink updateImpl(
413                    com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink ddmStructureLink)
414                    throws com.liferay.portal.kernel.exception.SystemException;
415    
416            /**
417            * 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.
418            *
419            * @param structureLinkId the primary key of the d d m structure link
420            * @return the d d m structure link
421            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException if a d d m structure link with the primary key could not be found
422            * @throws SystemException if a system exception occurred
423            */
424            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink findByPrimaryKey(
425                    long structureLinkId)
426                    throws com.liferay.portal.kernel.exception.SystemException,
427                            com.liferay.portlet.dynamicdatamapping.NoSuchStructureLinkException;
428    
429            /**
430            * Returns the d d m structure link with the primary key or returns <code>null</code> if it could not be found.
431            *
432            * @param structureLinkId the primary key of the d d m structure link
433            * @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
434            * @throws SystemException if a system exception occurred
435            */
436            public com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink fetchByPrimaryKey(
437                    long structureLinkId)
438                    throws com.liferay.portal.kernel.exception.SystemException;
439    
440            /**
441            * Returns all the d d m structure links.
442            *
443            * @return the d d m structure links
444            * @throws SystemException if a system exception occurred
445            */
446            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll()
447                    throws com.liferay.portal.kernel.exception.SystemException;
448    
449            /**
450            * Returns a range of all the d d m structure links.
451            *
452            * <p>
453            * 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.
454            * </p>
455            *
456            * @param start the lower bound of the range of d d m structure links
457            * @param end the upper bound of the range of d d m structure links (not inclusive)
458            * @return the range of d d m structure links
459            * @throws SystemException if a system exception occurred
460            */
461            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll(
462                    int start, int end)
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            /**
466            * Returns an ordered range of all the d d m structure links.
467            *
468            * <p>
469            * 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.
470            * </p>
471            *
472            * @param start the lower bound of the range of d d m structure links
473            * @param end the upper bound of the range of d d m structure links (not inclusive)
474            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
475            * @return the ordered range of d d m structure links
476            * @throws SystemException if a system exception occurred
477            */
478            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructureLink> findAll(
479                    int start, int end,
480                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
481                    throws com.liferay.portal.kernel.exception.SystemException;
482    
483            /**
484            * Removes all the d d m structure links from the database.
485            *
486            * @throws SystemException if a system exception occurred
487            */
488            public void removeAll()
489                    throws com.liferay.portal.kernel.exception.SystemException;
490    
491            /**
492            * Returns the number of d d m structure links.
493            *
494            * @return the number of d d m structure links
495            * @throws SystemException if a system exception occurred
496            */
497            public int countAll()
498                    throws com.liferay.portal.kernel.exception.SystemException;
499    }