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