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