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.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink;
020    
021    /**
022     * The persistence interface for the d d m storage 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 DDMStorageLinkPersistenceImpl
030     * @see DDMStorageLinkUtil
031     * @generated
032     */
033    public interface DDMStorageLinkPersistence extends BasePersistence<DDMStorageLink> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link DDMStorageLinkUtil} to access the d d m storage link persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Returns all the d d m storage links where uuid = &#63;.
042            *
043            * @param uuid the uuid
044            * @return the matching d d m storage links
045            * @throws SystemException if a system exception occurred
046            */
047            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid(
048                    java.lang.String uuid)
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            /**
052            * Returns a range of all the d d m storage links where uuid = &#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.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
056            * </p>
057            *
058            * @param uuid the uuid
059            * @param start the lower bound of the range of d d m storage links
060            * @param end the upper bound of the range of d d m storage links (not inclusive)
061            * @return the range of matching d d m storage links
062            * @throws SystemException if a system exception occurred
063            */
064            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid(
065                    java.lang.String uuid, 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 storage links where uuid = &#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.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
073            * </p>
074            *
075            * @param uuid the uuid
076            * @param start the lower bound of the range of d d m storage links
077            * @param end the upper bound of the range of d d m storage 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 storage links
080            * @throws SystemException if a system exception occurred
081            */
082            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByUuid(
083                    java.lang.String uuid, 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 storage link in the ordered set where uuid = &#63;.
089            *
090            * @param uuid the uuid
091            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
092            * @return the first matching d d m storage link
093            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found
094            * @throws SystemException if a system exception occurred
095            */
096            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByUuid_First(
097                    java.lang.String uuid,
098                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099                    throws com.liferay.portal.kernel.exception.SystemException,
100                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException;
101    
102            /**
103            * Returns the first d d m storage link in the ordered set where uuid = &#63;.
104            *
105            * @param uuid the uuid
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found
108            * @throws SystemException if a system exception occurred
109            */
110            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByUuid_First(
111                    java.lang.String uuid,
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 storage link in the ordered set where uuid = &#63;.
117            *
118            * @param uuid the uuid
119            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
120            * @return the last matching d d m storage link
121            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found
122            * @throws SystemException if a system exception occurred
123            */
124            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByUuid_Last(
125                    java.lang.String uuid,
126                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127                    throws com.liferay.portal.kernel.exception.SystemException,
128                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException;
129    
130            /**
131            * Returns the last d d m storage link in the ordered set where uuid = &#63;.
132            *
133            * @param uuid the uuid
134            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
135            * @return the last matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found
136            * @throws SystemException if a system exception occurred
137            */
138            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByUuid_Last(
139                    java.lang.String uuid,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Returns the d d m storage links before and after the current d d m storage link in the ordered set where uuid = &#63;.
145            *
146            * @param storageLinkId the primary key of the current d d m storage link
147            * @param uuid the uuid
148            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
149            * @return the previous, current, and next d d m storage link
150            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage 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.DDMStorageLink[] findByUuid_PrevAndNext(
154                    long storageLinkId, java.lang.String uuid,
155                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156                    throws com.liferay.portal.kernel.exception.SystemException,
157                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException;
158    
159            /**
160            * Removes all the d d m storage links where uuid = &#63; from the database.
161            *
162            * @param uuid the uuid
163            * @throws SystemException if a system exception occurred
164            */
165            public void removeByUuid(java.lang.String uuid)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            /**
169            * Returns the number of d d m storage links where uuid = &#63;.
170            *
171            * @param uuid the uuid
172            * @return the number of matching d d m storage links
173            * @throws SystemException if a system exception occurred
174            */
175            public int countByUuid(java.lang.String uuid)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Returns the d d m storage link where classPK = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException} if it could not be found.
180            *
181            * @param classPK the class p k
182            * @return the matching d d m storage link
183            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink findByClassPK(
187                    long classPK)
188                    throws com.liferay.portal.kernel.exception.SystemException,
189                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException;
190    
191            /**
192            * Returns the d d m storage link where classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
193            *
194            * @param classPK the class p k
195            * @return the matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found
196            * @throws SystemException if a system exception occurred
197            */
198            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByClassPK(
199                    long classPK)
200                    throws com.liferay.portal.kernel.exception.SystemException;
201    
202            /**
203            * Returns the d d m storage link where classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
204            *
205            * @param classPK the class p k
206            * @param retrieveFromCache whether to use the finder cache
207            * @return the matching d d m storage link, or <code>null</code> if a matching d d m storage link could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByClassPK(
211                    long classPK, boolean retrieveFromCache)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            /**
215            * Removes the d d m storage link where classPK = &#63; from the database.
216            *
217            * @param classPK the class p k
218            * @return the d d m storage link that was removed
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink removeByClassPK(
222                    long classPK)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException;
225    
226            /**
227            * Returns the number of d d m storage links where classPK = &#63;.
228            *
229            * @param classPK the class p k
230            * @return the number of matching d d m storage 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 storage links where structureId = &#63;.
238            *
239            * @param structureId the structure ID
240            * @return the matching d d m storage links
241            * @throws SystemException if a system exception occurred
242            */
243            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findByStructureId(
244                    long structureId)
245                    throws com.liferay.portal.kernel.exception.SystemException;
246    
247            /**
248            * Returns a range of all the d d m storage 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.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
252            * </p>
253            *
254            * @param structureId the structure ID
255            * @param start the lower bound of the range of d d m storage links
256            * @param end the upper bound of the range of d d m storage links (not inclusive)
257            * @return the range of matching d d m storage links
258            * @throws SystemException if a system exception occurred
259            */
260            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> 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 storage 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.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
269            * </p>
270            *
271            * @param structureId the structure ID
272            * @param start the lower bound of the range of d d m storage links
273            * @param end the upper bound of the range of d d m storage 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 storage links
276            * @throws SystemException if a system exception occurred
277            */
278            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> 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 storage 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 storage link
289            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found
290            * @throws SystemException if a system exception occurred
291            */
292            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink 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.NoSuchStorageLinkException;
297    
298            /**
299            * Returns the first d d m storage 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 storage link, or <code>null</code> if a matching d d m storage link could not be found
304            * @throws SystemException if a system exception occurred
305            */
306            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink 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 storage 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 storage link
317            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a matching d d m storage link could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink 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.NoSuchStorageLinkException;
325    
326            /**
327            * Returns the last d d m storage 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 storage link, or <code>null</code> if a matching d d m storage link could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink 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 storage links before and after the current d d m storage link in the ordered set where structureId = &#63;.
341            *
342            * @param storageLinkId the primary key of the current d d m storage 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 storage link
346            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage 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.DDMStorageLink[] findByStructureId_PrevAndNext(
350                    long storageLinkId, long structureId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException,
353                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException;
354    
355            /**
356            * Removes all the d d m storage 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 storage links where structureId = &#63;.
366            *
367            * @param structureId the structure ID
368            * @return the number of matching d d m storage 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 storage link in the entity cache if it is enabled.
376            *
377            * @param ddmStorageLink the d d m storage link
378            */
379            public void cacheResult(
380                    com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink ddmStorageLink);
381    
382            /**
383            * Caches the d d m storage links in the entity cache if it is enabled.
384            *
385            * @param ddmStorageLinks the d d m storage links
386            */
387            public void cacheResult(
388                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> ddmStorageLinks);
389    
390            /**
391            * Creates a new d d m storage link with the primary key. Does not add the d d m storage link to the database.
392            *
393            * @param storageLinkId the primary key for the new d d m storage link
394            * @return the new d d m storage link
395            */
396            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink create(
397                    long storageLinkId);
398    
399            /**
400            * Removes the d d m storage link with the primary key from the database. Also notifies the appropriate model listeners.
401            *
402            * @param storageLinkId the primary key of the d d m storage link
403            * @return the d d m storage link that was removed
404            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage 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.DDMStorageLink remove(
408                    long storageLinkId)
409                    throws com.liferay.portal.kernel.exception.SystemException,
410                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException;
411    
412            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink updateImpl(
413                    com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink ddmStorageLink)
414                    throws com.liferay.portal.kernel.exception.SystemException;
415    
416            /**
417            * Returns the d d m storage link with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException} if it could not be found.
418            *
419            * @param storageLinkId the primary key of the d d m storage link
420            * @return the d d m storage link
421            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException if a d d m storage 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.DDMStorageLink findByPrimaryKey(
425                    long storageLinkId)
426                    throws com.liferay.portal.kernel.exception.SystemException,
427                            com.liferay.portlet.dynamicdatamapping.NoSuchStorageLinkException;
428    
429            /**
430            * Returns the d d m storage link with the primary key or returns <code>null</code> if it could not be found.
431            *
432            * @param storageLinkId the primary key of the d d m storage link
433            * @return the d d m storage link, or <code>null</code> if a d d m storage link with the primary key could not be found
434            * @throws SystemException if a system exception occurred
435            */
436            public com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink fetchByPrimaryKey(
437                    long storageLinkId)
438                    throws com.liferay.portal.kernel.exception.SystemException;
439    
440            /**
441            * Returns all the d d m storage links.
442            *
443            * @return the d d m storage links
444            * @throws SystemException if a system exception occurred
445            */
446            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> findAll()
447                    throws com.liferay.portal.kernel.exception.SystemException;
448    
449            /**
450            * Returns a range of all the d d m storage 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.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
454            * </p>
455            *
456            * @param start the lower bound of the range of d d m storage links
457            * @param end the upper bound of the range of d d m storage links (not inclusive)
458            * @return the range of d d m storage links
459            * @throws SystemException if a system exception occurred
460            */
461            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> 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 storage 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.DDMStorageLinkModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
470            * </p>
471            *
472            * @param start the lower bound of the range of d d m storage links
473            * @param end the upper bound of the range of d d m storage 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 storage links
476            * @throws SystemException if a system exception occurred
477            */
478            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink> 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 storage 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 storage links.
493            *
494            * @return the number of d d m storage links
495            * @throws SystemException if a system exception occurred
496            */
497            public int countAll()
498                    throws com.liferay.portal.kernel.exception.SystemException;
499    }