001    /**
002     * Copyright (c) 2000-2010 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.asset.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.asset.model.AssetLink;
020    
021    /**
022     * The persistence interface for the asset link service.
023     *
024     * <p>
025     * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see AssetLinkPersistenceImpl
030     * @see AssetLinkUtil
031     * @generated
032     */
033    public interface AssetLinkPersistence extends BasePersistence<AssetLink> {
034            /**
035            * Caches the asset link in the entity cache if it is enabled.
036            *
037            * @param assetLink the asset link to cache
038            */
039            public void cacheResult(com.liferay.portlet.asset.model.AssetLink assetLink);
040    
041            /**
042            * Caches the asset links in the entity cache if it is enabled.
043            *
044            * @param assetLinks the asset links to cache
045            */
046            public void cacheResult(
047                    java.util.List<com.liferay.portlet.asset.model.AssetLink> assetLinks);
048    
049            /**
050            * Creates a new asset link with the primary key.
051            *
052            * @param linkId the primary key for the new asset link
053            * @return the new asset link
054            */
055            public com.liferay.portlet.asset.model.AssetLink create(long linkId);
056    
057            /**
058            * Removes the asset link with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param linkId the primary key of the asset link to remove
061            * @return the asset link that was removed
062            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public com.liferay.portlet.asset.model.AssetLink remove(long linkId)
066                    throws com.liferay.portal.kernel.exception.SystemException,
067                            com.liferay.portlet.asset.NoSuchLinkException;
068    
069            public com.liferay.portlet.asset.model.AssetLink updateImpl(
070                    com.liferay.portlet.asset.model.AssetLink assetLink, boolean merge)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            /**
074            * Finds the asset link with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchLinkException} if it could not be found.
075            *
076            * @param linkId the primary key of the asset link to find
077            * @return the asset link
078            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.asset.model.AssetLink findByPrimaryKey(
082                    long linkId)
083                    throws com.liferay.portal.kernel.exception.SystemException,
084                            com.liferay.portlet.asset.NoSuchLinkException;
085    
086            /**
087            * Finds the asset link with the primary key or returns <code>null</code> if it could not be found.
088            *
089            * @param linkId the primary key of the asset link to find
090            * @return the asset link, or <code>null</code> if a asset link with the primary key could not be found
091            * @throws SystemException if a system exception occurred
092            */
093            public com.liferay.portlet.asset.model.AssetLink fetchByPrimaryKey(
094                    long linkId) throws com.liferay.portal.kernel.exception.SystemException;
095    
096            /**
097            * Finds all the asset links where entryId1 = &#63;.
098            *
099            * @param entryId1 the entry id1 to search with
100            * @return the matching asset links
101            * @throws SystemException if a system exception occurred
102            */
103            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
104                    long entryId1)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Finds a range of all the asset links where entryId1 = &#63;.
109            *
110            * <p>
111            * 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.
112            * </p>
113            *
114            * @param entryId1 the entry id1 to search with
115            * @param start the lower bound of the range of asset links to return
116            * @param end the upper bound of the range of asset links to return (not inclusive)
117            * @return the range of matching asset links
118            * @throws SystemException if a system exception occurred
119            */
120            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
121                    long entryId1, int start, int end)
122                    throws com.liferay.portal.kernel.exception.SystemException;
123    
124            /**
125            * Finds an ordered range of all the asset links where entryId1 = &#63;.
126            *
127            * <p>
128            * 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.
129            * </p>
130            *
131            * @param entryId1 the entry id1 to search with
132            * @param start the lower bound of the range of asset links to return
133            * @param end the upper bound of the range of asset links to return (not inclusive)
134            * @param orderByComparator the comparator to order the results by
135            * @return the ordered range of matching asset links
136            * @throws SystemException if a system exception occurred
137            */
138            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
139                    long entryId1, int start, int end,
140                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            /**
144            * Finds the first asset link in the ordered set where entryId1 = &#63;.
145            *
146            * <p>
147            * 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.
148            * </p>
149            *
150            * @param entryId1 the entry id1 to search with
151            * @param orderByComparator the comparator to order the set by
152            * @return the first matching asset link
153            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.asset.model.AssetLink findByE1_First(
157                    long entryId1,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.asset.NoSuchLinkException;
161    
162            /**
163            * Finds the last asset link in the ordered set where entryId1 = &#63;.
164            *
165            * <p>
166            * 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.
167            * </p>
168            *
169            * @param entryId1 the entry id1 to search with
170            * @param orderByComparator the comparator to order the set by
171            * @return the last matching asset link
172            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public com.liferay.portlet.asset.model.AssetLink findByE1_Last(
176                    long entryId1,
177                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178                    throws com.liferay.portal.kernel.exception.SystemException,
179                            com.liferay.portlet.asset.NoSuchLinkException;
180    
181            /**
182            * Finds the asset links before and after the current asset link in the ordered set where entryId1 = &#63;.
183            *
184            * <p>
185            * 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.
186            * </p>
187            *
188            * @param linkId the primary key of the current asset link
189            * @param entryId1 the entry id1 to search with
190            * @param orderByComparator the comparator to order the set by
191            * @return the previous, current, and next asset link
192            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
193            * @throws SystemException if a system exception occurred
194            */
195            public com.liferay.portlet.asset.model.AssetLink[] findByE1_PrevAndNext(
196                    long linkId, long entryId1,
197                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
198                    throws com.liferay.portal.kernel.exception.SystemException,
199                            com.liferay.portlet.asset.NoSuchLinkException;
200    
201            /**
202            * Finds all the asset links where entryId2 = &#63;.
203            *
204            * @param entryId2 the entry id2 to search with
205            * @return the matching asset links
206            * @throws SystemException if a system exception occurred
207            */
208            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
209                    long entryId2)
210                    throws com.liferay.portal.kernel.exception.SystemException;
211    
212            /**
213            * Finds a range of all the asset links where entryId2 = &#63;.
214            *
215            * <p>
216            * 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.
217            * </p>
218            *
219            * @param entryId2 the entry id2 to search with
220            * @param start the lower bound of the range of asset links to return
221            * @param end the upper bound of the range of asset links to return (not inclusive)
222            * @return the range of matching asset links
223            * @throws SystemException if a system exception occurred
224            */
225            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
226                    long entryId2, int start, int end)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            /**
230            * Finds an ordered range of all the asset links where entryId2 = &#63;.
231            *
232            * <p>
233            * 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.
234            * </p>
235            *
236            * @param entryId2 the entry id2 to search with
237            * @param start the lower bound of the range of asset links to return
238            * @param end the upper bound of the range of asset links to return (not inclusive)
239            * @param orderByComparator the comparator to order the results by
240            * @return the ordered range of matching asset links
241            * @throws SystemException if a system exception occurred
242            */
243            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
244                    long entryId2, int start, int end,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            /**
249            * Finds the first asset link in the ordered set where entryId2 = &#63;.
250            *
251            * <p>
252            * 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.
253            * </p>
254            *
255            * @param entryId2 the entry id2 to search with
256            * @param orderByComparator the comparator to order the set by
257            * @return the first matching asset link
258            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
259            * @throws SystemException if a system exception occurred
260            */
261            public com.liferay.portlet.asset.model.AssetLink findByE2_First(
262                    long entryId2,
263                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264                    throws com.liferay.portal.kernel.exception.SystemException,
265                            com.liferay.portlet.asset.NoSuchLinkException;
266    
267            /**
268            * Finds the last asset link in the ordered set where entryId2 = &#63;.
269            *
270            * <p>
271            * 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.
272            * </p>
273            *
274            * @param entryId2 the entry id2 to search with
275            * @param orderByComparator the comparator to order the set by
276            * @return the last matching asset link
277            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
278            * @throws SystemException if a system exception occurred
279            */
280            public com.liferay.portlet.asset.model.AssetLink findByE2_Last(
281                    long entryId2,
282                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283                    throws com.liferay.portal.kernel.exception.SystemException,
284                            com.liferay.portlet.asset.NoSuchLinkException;
285    
286            /**
287            * Finds the asset links before and after the current asset link in the ordered set where entryId2 = &#63;.
288            *
289            * <p>
290            * 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.
291            * </p>
292            *
293            * @param linkId the primary key of the current asset link
294            * @param entryId2 the entry id2 to search with
295            * @param orderByComparator the comparator to order the set by
296            * @return the previous, current, and next asset link
297            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public com.liferay.portlet.asset.model.AssetLink[] findByE2_PrevAndNext(
301                    long linkId, long entryId2,
302                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303                    throws com.liferay.portal.kernel.exception.SystemException,
304                            com.liferay.portlet.asset.NoSuchLinkException;
305    
306            /**
307            * Finds all the asset links where entryId1 = &#63; and entryId2 = &#63;.
308            *
309            * @param entryId1 the entry id1 to search with
310            * @param entryId2 the entry id2 to search with
311            * @return the matching asset links
312            * @throws SystemException if a system exception occurred
313            */
314            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
315                    long entryId1, long entryId2)
316                    throws com.liferay.portal.kernel.exception.SystemException;
317    
318            /**
319            * Finds a range of all the asset links where entryId1 = &#63; and entryId2 = &#63;.
320            *
321            * <p>
322            * 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.
323            * </p>
324            *
325            * @param entryId1 the entry id1 to search with
326            * @param entryId2 the entry id2 to search with
327            * @param start the lower bound of the range of asset links to return
328            * @param end the upper bound of the range of asset links to return (not inclusive)
329            * @return the range of matching asset links
330            * @throws SystemException if a system exception occurred
331            */
332            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
333                    long entryId1, long entryId2, int start, int end)
334                    throws com.liferay.portal.kernel.exception.SystemException;
335    
336            /**
337            * Finds an ordered range of all the asset links where entryId1 = &#63; and entryId2 = &#63;.
338            *
339            * <p>
340            * 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.
341            * </p>
342            *
343            * @param entryId1 the entry id1 to search with
344            * @param entryId2 the entry id2 to search with
345            * @param start the lower bound of the range of asset links to return
346            * @param end the upper bound of the range of asset links to return (not inclusive)
347            * @param orderByComparator the comparator to order the results by
348            * @return the ordered range of matching asset links
349            * @throws SystemException if a system exception occurred
350            */
351            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
352                    long entryId1, long entryId2, int start, int end,
353                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
354                    throws com.liferay.portal.kernel.exception.SystemException;
355    
356            /**
357            * Finds the first asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63;.
358            *
359            * <p>
360            * 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.
361            * </p>
362            *
363            * @param entryId1 the entry id1 to search with
364            * @param entryId2 the entry id2 to search with
365            * @param orderByComparator the comparator to order the set by
366            * @return the first matching asset link
367            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
368            * @throws SystemException if a system exception occurred
369            */
370            public com.liferay.portlet.asset.model.AssetLink findByE_E_First(
371                    long entryId1, long entryId2,
372                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
373                    throws com.liferay.portal.kernel.exception.SystemException,
374                            com.liferay.portlet.asset.NoSuchLinkException;
375    
376            /**
377            * Finds the last asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63;.
378            *
379            * <p>
380            * 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.
381            * </p>
382            *
383            * @param entryId1 the entry id1 to search with
384            * @param entryId2 the entry id2 to search with
385            * @param orderByComparator the comparator to order the set by
386            * @return the last matching asset link
387            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
388            * @throws SystemException if a system exception occurred
389            */
390            public com.liferay.portlet.asset.model.AssetLink findByE_E_Last(
391                    long entryId1, long entryId2,
392                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
393                    throws com.liferay.portal.kernel.exception.SystemException,
394                            com.liferay.portlet.asset.NoSuchLinkException;
395    
396            /**
397            * Finds the asset links before and after the current asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63;.
398            *
399            * <p>
400            * 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.
401            * </p>
402            *
403            * @param linkId the primary key of the current asset link
404            * @param entryId1 the entry id1 to search with
405            * @param entryId2 the entry id2 to search with
406            * @param orderByComparator the comparator to order the set by
407            * @return the previous, current, and next asset link
408            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
409            * @throws SystemException if a system exception occurred
410            */
411            public com.liferay.portlet.asset.model.AssetLink[] findByE_E_PrevAndNext(
412                    long linkId, long entryId1, long entryId2,
413                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
414                    throws com.liferay.portal.kernel.exception.SystemException,
415                            com.liferay.portlet.asset.NoSuchLinkException;
416    
417            /**
418            * Finds all the asset links where entryId1 = &#63; and type = &#63;.
419            *
420            * @param entryId1 the entry id1 to search with
421            * @param type the type to search with
422            * @return the matching asset links
423            * @throws SystemException if a system exception occurred
424            */
425            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
426                    long entryId1, int type)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Finds a range of all the asset links where entryId1 = &#63; and type = &#63;.
431            *
432            * <p>
433            * 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.
434            * </p>
435            *
436            * @param entryId1 the entry id1 to search with
437            * @param type the type to search with
438            * @param start the lower bound of the range of asset links to return
439            * @param end the upper bound of the range of asset links to return (not inclusive)
440            * @return the range of matching asset links
441            * @throws SystemException if a system exception occurred
442            */
443            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
444                    long entryId1, int type, int start, int end)
445                    throws com.liferay.portal.kernel.exception.SystemException;
446    
447            /**
448            * Finds an ordered range of all the asset links where entryId1 = &#63; and type = &#63;.
449            *
450            * <p>
451            * 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.
452            * </p>
453            *
454            * @param entryId1 the entry id1 to search with
455            * @param type the type to search with
456            * @param start the lower bound of the range of asset links to return
457            * @param end the upper bound of the range of asset links to return (not inclusive)
458            * @param orderByComparator the comparator to order the results by
459            * @return the ordered range of matching asset links
460            * @throws SystemException if a system exception occurred
461            */
462            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
463                    long entryId1, int type, int start, int end,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Finds the first asset link in the ordered set where entryId1 = &#63; and type = &#63;.
469            *
470            * <p>
471            * 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.
472            * </p>
473            *
474            * @param entryId1 the entry id1 to search with
475            * @param type the type to search with
476            * @param orderByComparator the comparator to order the set by
477            * @return the first matching asset link
478            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
479            * @throws SystemException if a system exception occurred
480            */
481            public com.liferay.portlet.asset.model.AssetLink findByE1_T_First(
482                    long entryId1, int type,
483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
484                    throws com.liferay.portal.kernel.exception.SystemException,
485                            com.liferay.portlet.asset.NoSuchLinkException;
486    
487            /**
488            * Finds the last asset link in the ordered set where entryId1 = &#63; and type = &#63;.
489            *
490            * <p>
491            * 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.
492            * </p>
493            *
494            * @param entryId1 the entry id1 to search with
495            * @param type the type to search with
496            * @param orderByComparator the comparator to order the set by
497            * @return the last matching asset link
498            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
499            * @throws SystemException if a system exception occurred
500            */
501            public com.liferay.portlet.asset.model.AssetLink findByE1_T_Last(
502                    long entryId1, int type,
503                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
504                    throws com.liferay.portal.kernel.exception.SystemException,
505                            com.liferay.portlet.asset.NoSuchLinkException;
506    
507            /**
508            * Finds the asset links before and after the current asset link in the ordered set where entryId1 = &#63; and type = &#63;.
509            *
510            * <p>
511            * 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.
512            * </p>
513            *
514            * @param linkId the primary key of the current asset link
515            * @param entryId1 the entry id1 to search with
516            * @param type the type to search with
517            * @param orderByComparator the comparator to order the set by
518            * @return the previous, current, and next asset link
519            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
520            * @throws SystemException if a system exception occurred
521            */
522            public com.liferay.portlet.asset.model.AssetLink[] findByE1_T_PrevAndNext(
523                    long linkId, long entryId1, int type,
524                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
525                    throws com.liferay.portal.kernel.exception.SystemException,
526                            com.liferay.portlet.asset.NoSuchLinkException;
527    
528            /**
529            * Finds all the asset links where entryId2 = &#63; and type = &#63;.
530            *
531            * @param entryId2 the entry id2 to search with
532            * @param type the type to search with
533            * @return the matching asset links
534            * @throws SystemException if a system exception occurred
535            */
536            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
537                    long entryId2, int type)
538                    throws com.liferay.portal.kernel.exception.SystemException;
539    
540            /**
541            * Finds a range of all the asset links where entryId2 = &#63; and type = &#63;.
542            *
543            * <p>
544            * 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.
545            * </p>
546            *
547            * @param entryId2 the entry id2 to search with
548            * @param type the type to search with
549            * @param start the lower bound of the range of asset links to return
550            * @param end the upper bound of the range of asset links to return (not inclusive)
551            * @return the range of matching asset links
552            * @throws SystemException if a system exception occurred
553            */
554            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
555                    long entryId2, int type, int start, int end)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            /**
559            * Finds an ordered range of all the asset links where entryId2 = &#63; and type = &#63;.
560            *
561            * <p>
562            * 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.
563            * </p>
564            *
565            * @param entryId2 the entry id2 to search with
566            * @param type the type to search with
567            * @param start the lower bound of the range of asset links to return
568            * @param end the upper bound of the range of asset links to return (not inclusive)
569            * @param orderByComparator the comparator to order the results by
570            * @return the ordered range of matching asset links
571            * @throws SystemException if a system exception occurred
572            */
573            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
574                    long entryId2, int type, int start, int end,
575                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
576                    throws com.liferay.portal.kernel.exception.SystemException;
577    
578            /**
579            * Finds the first asset link in the ordered set where entryId2 = &#63; and type = &#63;.
580            *
581            * <p>
582            * 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.
583            * </p>
584            *
585            * @param entryId2 the entry id2 to search with
586            * @param type the type to search with
587            * @param orderByComparator the comparator to order the set by
588            * @return the first matching asset link
589            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
590            * @throws SystemException if a system exception occurred
591            */
592            public com.liferay.portlet.asset.model.AssetLink findByE2_T_First(
593                    long entryId2, int type,
594                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
595                    throws com.liferay.portal.kernel.exception.SystemException,
596                            com.liferay.portlet.asset.NoSuchLinkException;
597    
598            /**
599            * Finds the last asset link in the ordered set where entryId2 = &#63; and type = &#63;.
600            *
601            * <p>
602            * 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.
603            * </p>
604            *
605            * @param entryId2 the entry id2 to search with
606            * @param type the type to search with
607            * @param orderByComparator the comparator to order the set by
608            * @return the last matching asset link
609            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
610            * @throws SystemException if a system exception occurred
611            */
612            public com.liferay.portlet.asset.model.AssetLink findByE2_T_Last(
613                    long entryId2, int type,
614                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
615                    throws com.liferay.portal.kernel.exception.SystemException,
616                            com.liferay.portlet.asset.NoSuchLinkException;
617    
618            /**
619            * Finds the asset links before and after the current asset link in the ordered set where entryId2 = &#63; and type = &#63;.
620            *
621            * <p>
622            * 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.
623            * </p>
624            *
625            * @param linkId the primary key of the current asset link
626            * @param entryId2 the entry id2 to search with
627            * @param type the type to search with
628            * @param orderByComparator the comparator to order the set by
629            * @return the previous, current, and next asset link
630            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
631            * @throws SystemException if a system exception occurred
632            */
633            public com.liferay.portlet.asset.model.AssetLink[] findByE2_T_PrevAndNext(
634                    long linkId, long entryId2, int type,
635                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
636                    throws com.liferay.portal.kernel.exception.SystemException,
637                            com.liferay.portlet.asset.NoSuchLinkException;
638    
639            /**
640            * Finds all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
641            *
642            * @param entryId1 the entry id1 to search with
643            * @param entryId2 the entry id2 to search with
644            * @param type the type to search with
645            * @return the matching asset links
646            * @throws SystemException if a system exception occurred
647            */
648            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
649                    long entryId1, long entryId2, int type)
650                    throws com.liferay.portal.kernel.exception.SystemException;
651    
652            /**
653            * Finds a range of all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
654            *
655            * <p>
656            * 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.
657            * </p>
658            *
659            * @param entryId1 the entry id1 to search with
660            * @param entryId2 the entry id2 to search with
661            * @param type the type to search with
662            * @param start the lower bound of the range of asset links to return
663            * @param end the upper bound of the range of asset links to return (not inclusive)
664            * @return the range of matching asset links
665            * @throws SystemException if a system exception occurred
666            */
667            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
668                    long entryId1, long entryId2, int type, int start, int end)
669                    throws com.liferay.portal.kernel.exception.SystemException;
670    
671            /**
672            * Finds an ordered range of all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
673            *
674            * <p>
675            * 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.
676            * </p>
677            *
678            * @param entryId1 the entry id1 to search with
679            * @param entryId2 the entry id2 to search with
680            * @param type the type to search with
681            * @param start the lower bound of the range of asset links to return
682            * @param end the upper bound of the range of asset links to return (not inclusive)
683            * @param orderByComparator the comparator to order the results by
684            * @return the ordered range of matching asset links
685            * @throws SystemException if a system exception occurred
686            */
687            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
688                    long entryId1, long entryId2, int type, int start, int end,
689                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
690                    throws com.liferay.portal.kernel.exception.SystemException;
691    
692            /**
693            * Finds the first asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
694            *
695            * <p>
696            * 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.
697            * </p>
698            *
699            * @param entryId1 the entry id1 to search with
700            * @param entryId2 the entry id2 to search with
701            * @param type the type to search with
702            * @param orderByComparator the comparator to order the set by
703            * @return the first matching asset link
704            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
705            * @throws SystemException if a system exception occurred
706            */
707            public com.liferay.portlet.asset.model.AssetLink findByE_E_T_First(
708                    long entryId1, long entryId2, int type,
709                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
710                    throws com.liferay.portal.kernel.exception.SystemException,
711                            com.liferay.portlet.asset.NoSuchLinkException;
712    
713            /**
714            * Finds the last asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
715            *
716            * <p>
717            * 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.
718            * </p>
719            *
720            * @param entryId1 the entry id1 to search with
721            * @param entryId2 the entry id2 to search with
722            * @param type the type to search with
723            * @param orderByComparator the comparator to order the set by
724            * @return the last matching asset link
725            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
726            * @throws SystemException if a system exception occurred
727            */
728            public com.liferay.portlet.asset.model.AssetLink findByE_E_T_Last(
729                    long entryId1, long entryId2, int type,
730                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
731                    throws com.liferay.portal.kernel.exception.SystemException,
732                            com.liferay.portlet.asset.NoSuchLinkException;
733    
734            /**
735            * Finds the asset links before and after the current asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
736            *
737            * <p>
738            * 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.
739            * </p>
740            *
741            * @param linkId the primary key of the current asset link
742            * @param entryId1 the entry id1 to search with
743            * @param entryId2 the entry id2 to search with
744            * @param type the type to search with
745            * @param orderByComparator the comparator to order the set by
746            * @return the previous, current, and next asset link
747            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
748            * @throws SystemException if a system exception occurred
749            */
750            public com.liferay.portlet.asset.model.AssetLink[] findByE_E_T_PrevAndNext(
751                    long linkId, long entryId1, long entryId2, int type,
752                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
753                    throws com.liferay.portal.kernel.exception.SystemException,
754                            com.liferay.portlet.asset.NoSuchLinkException;
755    
756            /**
757            * Finds all the asset links.
758            *
759            * @return the asset links
760            * @throws SystemException if a system exception occurred
761            */
762            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll()
763                    throws com.liferay.portal.kernel.exception.SystemException;
764    
765            /**
766            * Finds a range of all the asset links.
767            *
768            * <p>
769            * 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.
770            * </p>
771            *
772            * @param start the lower bound of the range of asset links to return
773            * @param end the upper bound of the range of asset links to return (not inclusive)
774            * @return the range of asset links
775            * @throws SystemException if a system exception occurred
776            */
777            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
778                    int start, int end)
779                    throws com.liferay.portal.kernel.exception.SystemException;
780    
781            /**
782            * Finds an ordered range of all the asset links.
783            *
784            * <p>
785            * 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.
786            * </p>
787            *
788            * @param start the lower bound of the range of asset links to return
789            * @param end the upper bound of the range of asset links to return (not inclusive)
790            * @param orderByComparator the comparator to order the results by
791            * @return the ordered range of asset links
792            * @throws SystemException if a system exception occurred
793            */
794            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
795                    int start, int end,
796                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
797                    throws com.liferay.portal.kernel.exception.SystemException;
798    
799            /**
800            * Removes all the asset links where entryId1 = &#63; from the database.
801            *
802            * @param entryId1 the entry id1 to search with
803            * @throws SystemException if a system exception occurred
804            */
805            public void removeByE1(long entryId1)
806                    throws com.liferay.portal.kernel.exception.SystemException;
807    
808            /**
809            * Removes all the asset links where entryId2 = &#63; from the database.
810            *
811            * @param entryId2 the entry id2 to search with
812            * @throws SystemException if a system exception occurred
813            */
814            public void removeByE2(long entryId2)
815                    throws com.liferay.portal.kernel.exception.SystemException;
816    
817            /**
818            * Removes all the asset links where entryId1 = &#63; and entryId2 = &#63; from the database.
819            *
820            * @param entryId1 the entry id1 to search with
821            * @param entryId2 the entry id2 to search with
822            * @throws SystemException if a system exception occurred
823            */
824            public void removeByE_E(long entryId1, long entryId2)
825                    throws com.liferay.portal.kernel.exception.SystemException;
826    
827            /**
828            * Removes all the asset links where entryId1 = &#63; and type = &#63; from the database.
829            *
830            * @param entryId1 the entry id1 to search with
831            * @param type the type to search with
832            * @throws SystemException if a system exception occurred
833            */
834            public void removeByE1_T(long entryId1, int type)
835                    throws com.liferay.portal.kernel.exception.SystemException;
836    
837            /**
838            * Removes all the asset links where entryId2 = &#63; and type = &#63; from the database.
839            *
840            * @param entryId2 the entry id2 to search with
841            * @param type the type to search with
842            * @throws SystemException if a system exception occurred
843            */
844            public void removeByE2_T(long entryId2, int type)
845                    throws com.liferay.portal.kernel.exception.SystemException;
846    
847            /**
848            * Removes all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63; from the database.
849            *
850            * @param entryId1 the entry id1 to search with
851            * @param entryId2 the entry id2 to search with
852            * @param type the type to search with
853            * @throws SystemException if a system exception occurred
854            */
855            public void removeByE_E_T(long entryId1, long entryId2, int type)
856                    throws com.liferay.portal.kernel.exception.SystemException;
857    
858            /**
859            * Removes all the asset links from the database.
860            *
861            * @throws SystemException if a system exception occurred
862            */
863            public void removeAll()
864                    throws com.liferay.portal.kernel.exception.SystemException;
865    
866            /**
867            * Counts all the asset links where entryId1 = &#63;.
868            *
869            * @param entryId1 the entry id1 to search with
870            * @return the number of matching asset links
871            * @throws SystemException if a system exception occurred
872            */
873            public int countByE1(long entryId1)
874                    throws com.liferay.portal.kernel.exception.SystemException;
875    
876            /**
877            * Counts all the asset links where entryId2 = &#63;.
878            *
879            * @param entryId2 the entry id2 to search with
880            * @return the number of matching asset links
881            * @throws SystemException if a system exception occurred
882            */
883            public int countByE2(long entryId2)
884                    throws com.liferay.portal.kernel.exception.SystemException;
885    
886            /**
887            * Counts all the asset links where entryId1 = &#63; and entryId2 = &#63;.
888            *
889            * @param entryId1 the entry id1 to search with
890            * @param entryId2 the entry id2 to search with
891            * @return the number of matching asset links
892            * @throws SystemException if a system exception occurred
893            */
894            public int countByE_E(long entryId1, long entryId2)
895                    throws com.liferay.portal.kernel.exception.SystemException;
896    
897            /**
898            * Counts all the asset links where entryId1 = &#63; and type = &#63;.
899            *
900            * @param entryId1 the entry id1 to search with
901            * @param type the type to search with
902            * @return the number of matching asset links
903            * @throws SystemException if a system exception occurred
904            */
905            public int countByE1_T(long entryId1, int type)
906                    throws com.liferay.portal.kernel.exception.SystemException;
907    
908            /**
909            * Counts all the asset links where entryId2 = &#63; and type = &#63;.
910            *
911            * @param entryId2 the entry id2 to search with
912            * @param type the type to search with
913            * @return the number of matching asset links
914            * @throws SystemException if a system exception occurred
915            */
916            public int countByE2_T(long entryId2, int type)
917                    throws com.liferay.portal.kernel.exception.SystemException;
918    
919            /**
920            * Counts all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
921            *
922            * @param entryId1 the entry id1 to search with
923            * @param entryId2 the entry id2 to search with
924            * @param type the type to search with
925            * @return the number of matching asset links
926            * @throws SystemException if a system exception occurred
927            */
928            public int countByE_E_T(long entryId1, long entryId2, int type)
929                    throws com.liferay.portal.kernel.exception.SystemException;
930    
931            /**
932            * Counts all the asset links.
933            *
934            * @return the number of asset links
935            * @throws SystemException if a system exception occurred
936            */
937            public int countAll()
938                    throws com.liferay.portal.kernel.exception.SystemException;
939    }