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