001    /**
002     * Copyright (c) 2000-2012 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            * <p>
153            * 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.
154            * </p>
155            *
156            * @param entryId1 the entry id1
157            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
158            * @return the first matching asset link
159            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
160            * @throws SystemException if a system exception occurred
161            */
162            public com.liferay.portlet.asset.model.AssetLink findByE1_First(
163                    long entryId1,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException,
166                            com.liferay.portlet.asset.NoSuchLinkException;
167    
168            /**
169            * Returns the last asset link in the ordered set where entryId1 = &#63;.
170            *
171            * <p>
172            * 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.
173            * </p>
174            *
175            * @param entryId1 the entry id1
176            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
177            * @return the last matching asset link
178            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
179            * @throws SystemException if a system exception occurred
180            */
181            public com.liferay.portlet.asset.model.AssetLink findByE1_Last(
182                    long entryId1,
183                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184                    throws com.liferay.portal.kernel.exception.SystemException,
185                            com.liferay.portlet.asset.NoSuchLinkException;
186    
187            /**
188            * Returns the asset links before and after the current asset link in the ordered set where entryId1 = &#63;.
189            *
190            * <p>
191            * 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.
192            * </p>
193            *
194            * @param linkId the primary key of the current asset link
195            * @param entryId1 the entry id1
196            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
197            * @return the previous, current, and next asset link
198            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            public com.liferay.portlet.asset.model.AssetLink[] findByE1_PrevAndNext(
202                    long linkId, long entryId1,
203                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204                    throws com.liferay.portal.kernel.exception.SystemException,
205                            com.liferay.portlet.asset.NoSuchLinkException;
206    
207            /**
208            * Returns all the asset links where entryId2 = &#63;.
209            *
210            * @param entryId2 the entry id2
211            * @return the matching asset links
212            * @throws SystemException if a system exception occurred
213            */
214            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
215                    long entryId2)
216                    throws com.liferay.portal.kernel.exception.SystemException;
217    
218            /**
219            * Returns a range of all the asset links where entryId2 = &#63;.
220            *
221            * <p>
222            * 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.
223            * </p>
224            *
225            * @param entryId2 the entry id2
226            * @param start the lower bound of the range of asset links
227            * @param end the upper bound of the range of asset links (not inclusive)
228            * @return the range of matching asset links
229            * @throws SystemException if a system exception occurred
230            */
231            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
232                    long entryId2, int start, int end)
233                    throws com.liferay.portal.kernel.exception.SystemException;
234    
235            /**
236            * Returns an ordered range of all the asset links where entryId2 = &#63;.
237            *
238            * <p>
239            * 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.
240            * </p>
241            *
242            * @param entryId2 the entry id2
243            * @param start the lower bound of the range of asset links
244            * @param end the upper bound of the range of asset links (not inclusive)
245            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
246            * @return the ordered range of matching asset links
247            * @throws SystemException if a system exception occurred
248            */
249            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
250                    long entryId2, int start, int end,
251                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            /**
255            * Returns the first asset link in the ordered set where entryId2 = &#63;.
256            *
257            * <p>
258            * 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.
259            * </p>
260            *
261            * @param entryId2 the entry id2
262            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
263            * @return the first matching asset link
264            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
265            * @throws SystemException if a system exception occurred
266            */
267            public com.liferay.portlet.asset.model.AssetLink findByE2_First(
268                    long entryId2,
269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270                    throws com.liferay.portal.kernel.exception.SystemException,
271                            com.liferay.portlet.asset.NoSuchLinkException;
272    
273            /**
274            * Returns the last asset link in the ordered set where entryId2 = &#63;.
275            *
276            * <p>
277            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
278            * </p>
279            *
280            * @param entryId2 the entry id2
281            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
282            * @return the last matching asset link
283            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
284            * @throws SystemException if a system exception occurred
285            */
286            public com.liferay.portlet.asset.model.AssetLink findByE2_Last(
287                    long entryId2,
288                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289                    throws com.liferay.portal.kernel.exception.SystemException,
290                            com.liferay.portlet.asset.NoSuchLinkException;
291    
292            /**
293            * Returns the asset links before and after the current asset link in the ordered set where entryId2 = &#63;.
294            *
295            * <p>
296            * 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.
297            * </p>
298            *
299            * @param linkId the primary key of the current asset link
300            * @param entryId2 the entry id2
301            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
302            * @return the previous, current, and next asset link
303            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
304            * @throws SystemException if a system exception occurred
305            */
306            public com.liferay.portlet.asset.model.AssetLink[] findByE2_PrevAndNext(
307                    long linkId, long entryId2,
308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309                    throws com.liferay.portal.kernel.exception.SystemException,
310                            com.liferay.portlet.asset.NoSuchLinkException;
311    
312            /**
313            * Returns all the asset links where entryId1 = &#63; and entryId2 = &#63;.
314            *
315            * @param entryId1 the entry id1
316            * @param entryId2 the entry id2
317            * @return the matching asset links
318            * @throws SystemException if a system exception occurred
319            */
320            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
321                    long entryId1, long entryId2)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Returns a range of all the asset links where entryId1 = &#63; and entryId2 = &#63;.
326            *
327            * <p>
328            * 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.
329            * </p>
330            *
331            * @param entryId1 the entry id1
332            * @param entryId2 the entry id2
333            * @param start the lower bound of the range of asset links
334            * @param end the upper bound of the range of asset links (not inclusive)
335            * @return the range of matching asset links
336            * @throws SystemException if a system exception occurred
337            */
338            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
339                    long entryId1, long entryId2, int start, int end)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * Returns an ordered range of all the asset links where entryId1 = &#63; and entryId2 = &#63;.
344            *
345            * <p>
346            * 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.
347            * </p>
348            *
349            * @param entryId1 the entry id1
350            * @param entryId2 the entry id2
351            * @param start the lower bound of the range of asset links
352            * @param end the upper bound of the range of asset links (not inclusive)
353            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
354            * @return the ordered range of matching asset links
355            * @throws SystemException if a system exception occurred
356            */
357            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
358                    long entryId1, long entryId2, int start, int end,
359                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360                    throws com.liferay.portal.kernel.exception.SystemException;
361    
362            /**
363            * Returns the first asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63;.
364            *
365            * <p>
366            * 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.
367            * </p>
368            *
369            * @param entryId1 the entry id1
370            * @param entryId2 the entry id2
371            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
372            * @return the first matching asset link
373            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
374            * @throws SystemException if a system exception occurred
375            */
376            public com.liferay.portlet.asset.model.AssetLink findByE_E_First(
377                    long entryId1, long entryId2,
378                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379                    throws com.liferay.portal.kernel.exception.SystemException,
380                            com.liferay.portlet.asset.NoSuchLinkException;
381    
382            /**
383            * Returns the last asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63;.
384            *
385            * <p>
386            * 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.
387            * </p>
388            *
389            * @param entryId1 the entry id1
390            * @param entryId2 the entry id2
391            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
392            * @return the last matching asset link
393            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
394            * @throws SystemException if a system exception occurred
395            */
396            public com.liferay.portlet.asset.model.AssetLink findByE_E_Last(
397                    long entryId1, long entryId2,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.kernel.exception.SystemException,
400                            com.liferay.portlet.asset.NoSuchLinkException;
401    
402            /**
403            * Returns the asset links before and after the current asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63;.
404            *
405            * <p>
406            * 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.
407            * </p>
408            *
409            * @param linkId the primary key of the current asset link
410            * @param entryId1 the entry id1
411            * @param entryId2 the entry id2
412            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
413            * @return the previous, current, and next asset link
414            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
415            * @throws SystemException if a system exception occurred
416            */
417            public com.liferay.portlet.asset.model.AssetLink[] findByE_E_PrevAndNext(
418                    long linkId, long entryId1, long entryId2,
419                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
420                    throws com.liferay.portal.kernel.exception.SystemException,
421                            com.liferay.portlet.asset.NoSuchLinkException;
422    
423            /**
424            * Returns all the asset links where entryId1 = &#63; and type = &#63;.
425            *
426            * @param entryId1 the entry id1
427            * @param type the type
428            * @return the matching asset links
429            * @throws SystemException if a system exception occurred
430            */
431            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
432                    long entryId1, int type)
433                    throws com.liferay.portal.kernel.exception.SystemException;
434    
435            /**
436            * Returns a range of all the asset links where entryId1 = &#63; and type = &#63;.
437            *
438            * <p>
439            * 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.
440            * </p>
441            *
442            * @param entryId1 the entry id1
443            * @param type the type
444            * @param start the lower bound of the range of asset links
445            * @param end the upper bound of the range of asset links (not inclusive)
446            * @return the range of matching asset links
447            * @throws SystemException if a system exception occurred
448            */
449            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
450                    long entryId1, int type, int start, int end)
451                    throws com.liferay.portal.kernel.exception.SystemException;
452    
453            /**
454            * Returns an ordered range of all the asset links where entryId1 = &#63; and type = &#63;.
455            *
456            * <p>
457            * 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.
458            * </p>
459            *
460            * @param entryId1 the entry id1
461            * @param type the type
462            * @param start the lower bound of the range of asset links
463            * @param end the upper bound of the range of asset links (not inclusive)
464            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
465            * @return the ordered range of matching asset links
466            * @throws SystemException if a system exception occurred
467            */
468            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
469                    long entryId1, int type, int start, int end,
470                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
471                    throws com.liferay.portal.kernel.exception.SystemException;
472    
473            /**
474            * Returns the first asset link in the ordered set where entryId1 = &#63; and type = &#63;.
475            *
476            * <p>
477            * 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.
478            * </p>
479            *
480            * @param entryId1 the entry id1
481            * @param type the type
482            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
483            * @return the first matching asset link
484            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
485            * @throws SystemException if a system exception occurred
486            */
487            public com.liferay.portlet.asset.model.AssetLink findByE1_T_First(
488                    long entryId1, int type,
489                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
490                    throws com.liferay.portal.kernel.exception.SystemException,
491                            com.liferay.portlet.asset.NoSuchLinkException;
492    
493            /**
494            * Returns the last asset link in the ordered set where entryId1 = &#63; and type = &#63;.
495            *
496            * <p>
497            * 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.
498            * </p>
499            *
500            * @param entryId1 the entry id1
501            * @param type the type
502            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
503            * @return the last matching asset link
504            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
505            * @throws SystemException if a system exception occurred
506            */
507            public com.liferay.portlet.asset.model.AssetLink findByE1_T_Last(
508                    long entryId1, int type,
509                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
510                    throws com.liferay.portal.kernel.exception.SystemException,
511                            com.liferay.portlet.asset.NoSuchLinkException;
512    
513            /**
514            * Returns the asset links before and after the current asset link in the ordered set where entryId1 = &#63; and type = &#63;.
515            *
516            * <p>
517            * 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.
518            * </p>
519            *
520            * @param linkId the primary key of the current asset link
521            * @param entryId1 the entry id1
522            * @param type the type
523            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
524            * @return the previous, current, and next asset link
525            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
526            * @throws SystemException if a system exception occurred
527            */
528            public com.liferay.portlet.asset.model.AssetLink[] findByE1_T_PrevAndNext(
529                    long linkId, long entryId1, int type,
530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
531                    throws com.liferay.portal.kernel.exception.SystemException,
532                            com.liferay.portlet.asset.NoSuchLinkException;
533    
534            /**
535            * Returns all the asset links where entryId2 = &#63; and type = &#63;.
536            *
537            * @param entryId2 the entry id2
538            * @param type the type
539            * @return the matching asset links
540            * @throws SystemException if a system exception occurred
541            */
542            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
543                    long entryId2, int type)
544                    throws com.liferay.portal.kernel.exception.SystemException;
545    
546            /**
547            * Returns a range of all the asset links where entryId2 = &#63; and type = &#63;.
548            *
549            * <p>
550            * 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.
551            * </p>
552            *
553            * @param entryId2 the entry id2
554            * @param type the type
555            * @param start the lower bound of the range of asset links
556            * @param end the upper bound of the range of asset links (not inclusive)
557            * @return the range of matching asset links
558            * @throws SystemException if a system exception occurred
559            */
560            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
561                    long entryId2, int type, int start, int end)
562                    throws com.liferay.portal.kernel.exception.SystemException;
563    
564            /**
565            * Returns an ordered range of all the asset links where entryId2 = &#63; and type = &#63;.
566            *
567            * <p>
568            * 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.
569            * </p>
570            *
571            * @param entryId2 the entry id2
572            * @param type the type
573            * @param start the lower bound of the range of asset links
574            * @param end the upper bound of the range of asset links (not inclusive)
575            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
576            * @return the ordered range of matching asset links
577            * @throws SystemException if a system exception occurred
578            */
579            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
580                    long entryId2, int type, int start, int end,
581                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
582                    throws com.liferay.portal.kernel.exception.SystemException;
583    
584            /**
585            * Returns the first asset link in the ordered set where entryId2 = &#63; and type = &#63;.
586            *
587            * <p>
588            * 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.
589            * </p>
590            *
591            * @param entryId2 the entry id2
592            * @param type the type
593            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
594            * @return the first matching asset link
595            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
596            * @throws SystemException if a system exception occurred
597            */
598            public com.liferay.portlet.asset.model.AssetLink findByE2_T_First(
599                    long entryId2, int type,
600                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
601                    throws com.liferay.portal.kernel.exception.SystemException,
602                            com.liferay.portlet.asset.NoSuchLinkException;
603    
604            /**
605            * Returns the last asset link in the ordered set where entryId2 = &#63; and type = &#63;.
606            *
607            * <p>
608            * 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.
609            * </p>
610            *
611            * @param entryId2 the entry id2
612            * @param type the type
613            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
614            * @return the last matching asset link
615            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
616            * @throws SystemException if a system exception occurred
617            */
618            public com.liferay.portlet.asset.model.AssetLink findByE2_T_Last(
619                    long entryId2, int type,
620                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
621                    throws com.liferay.portal.kernel.exception.SystemException,
622                            com.liferay.portlet.asset.NoSuchLinkException;
623    
624            /**
625            * Returns the asset links before and after the current asset link in the ordered set 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 linkId the primary key of the current asset link
632            * @param entryId2 the entry id2
633            * @param type the type
634            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
635            * @return the previous, current, and next asset link
636            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
637            * @throws SystemException if a system exception occurred
638            */
639            public com.liferay.portlet.asset.model.AssetLink[] findByE2_T_PrevAndNext(
640                    long linkId, long entryId2, int type,
641                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
642                    throws com.liferay.portal.kernel.exception.SystemException,
643                            com.liferay.portlet.asset.NoSuchLinkException;
644    
645            /**
646            * 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.
647            *
648            * @param entryId1 the entry id1
649            * @param entryId2 the entry id2
650            * @param type the type
651            * @return the matching asset link
652            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
653            * @throws SystemException if a system exception occurred
654            */
655            public com.liferay.portlet.asset.model.AssetLink findByE_E_T(
656                    long entryId1, long entryId2, int type)
657                    throws com.liferay.portal.kernel.exception.SystemException,
658                            com.liferay.portlet.asset.NoSuchLinkException;
659    
660            /**
661            * 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.
662            *
663            * @param entryId1 the entry id1
664            * @param entryId2 the entry id2
665            * @param type the type
666            * @return the 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 fetchByE_E_T(
670                    long entryId1, long entryId2, int type)
671                    throws com.liferay.portal.kernel.exception.SystemException;
672    
673            /**
674            * 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.
675            *
676            * @param entryId1 the entry id1
677            * @param entryId2 the entry id2
678            * @param type the type
679            * @param retrieveFromCache whether to use the finder cache
680            * @return the matching asset link, or <code>null</code> if a matching asset link could not be found
681            * @throws SystemException if a system exception occurred
682            */
683            public com.liferay.portlet.asset.model.AssetLink fetchByE_E_T(
684                    long entryId1, long entryId2, int type, boolean retrieveFromCache)
685                    throws com.liferay.portal.kernel.exception.SystemException;
686    
687            /**
688            * Returns all the asset links.
689            *
690            * @return the asset links
691            * @throws SystemException if a system exception occurred
692            */
693            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll()
694                    throws com.liferay.portal.kernel.exception.SystemException;
695    
696            /**
697            * Returns a range of all the asset links.
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 start the lower bound of the range of asset links
704            * @param end the upper bound of the range of asset links (not inclusive)
705            * @return the range of asset links
706            * @throws SystemException if a system exception occurred
707            */
708            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
709                    int start, int end)
710                    throws com.liferay.portal.kernel.exception.SystemException;
711    
712            /**
713            * Returns an ordered range of all the asset links.
714            *
715            * <p>
716            * 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.
717            * </p>
718            *
719            * @param start the lower bound of the range of asset links
720            * @param end the upper bound of the range of asset links (not inclusive)
721            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
722            * @return the ordered range of asset links
723            * @throws SystemException if a system exception occurred
724            */
725            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
726                    int start, int end,
727                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
728                    throws com.liferay.portal.kernel.exception.SystemException;
729    
730            /**
731            * Removes all the asset links where entryId1 = &#63; from the database.
732            *
733            * @param entryId1 the entry id1
734            * @throws SystemException if a system exception occurred
735            */
736            public void removeByE1(long entryId1)
737                    throws com.liferay.portal.kernel.exception.SystemException;
738    
739            /**
740            * Removes all the asset links where entryId2 = &#63; from the database.
741            *
742            * @param entryId2 the entry id2
743            * @throws SystemException if a system exception occurred
744            */
745            public void removeByE2(long entryId2)
746                    throws com.liferay.portal.kernel.exception.SystemException;
747    
748            /**
749            * Removes all the asset links where entryId1 = &#63; and entryId2 = &#63; from the database.
750            *
751            * @param entryId1 the entry id1
752            * @param entryId2 the entry id2
753            * @throws SystemException if a system exception occurred
754            */
755            public void removeByE_E(long entryId1, long entryId2)
756                    throws com.liferay.portal.kernel.exception.SystemException;
757    
758            /**
759            * Removes all the asset links where entryId1 = &#63; and type = &#63; from the database.
760            *
761            * @param entryId1 the entry id1
762            * @param type the type
763            * @throws SystemException if a system exception occurred
764            */
765            public void removeByE1_T(long entryId1, int type)
766                    throws com.liferay.portal.kernel.exception.SystemException;
767    
768            /**
769            * Removes all the asset links where entryId2 = &#63; and type = &#63; from the database.
770            *
771            * @param entryId2 the entry id2
772            * @param type the type
773            * @throws SystemException if a system exception occurred
774            */
775            public void removeByE2_T(long entryId2, int type)
776                    throws com.liferay.portal.kernel.exception.SystemException;
777    
778            /**
779            * Removes the asset link where entryId1 = &#63; and entryId2 = &#63; and type = &#63; from the database.
780            *
781            * @param entryId1 the entry id1
782            * @param entryId2 the entry id2
783            * @param type the type
784            * @throws SystemException if a system exception occurred
785            */
786            public void removeByE_E_T(long entryId1, long entryId2, int type)
787                    throws com.liferay.portal.kernel.exception.SystemException,
788                            com.liferay.portlet.asset.NoSuchLinkException;
789    
790            /**
791            * Removes all the asset links from the database.
792            *
793            * @throws SystemException if a system exception occurred
794            */
795            public void removeAll()
796                    throws com.liferay.portal.kernel.exception.SystemException;
797    
798            /**
799            * Returns the number of asset links where entryId1 = &#63;.
800            *
801            * @param entryId1 the entry id1
802            * @return the number of matching asset links
803            * @throws SystemException if a system exception occurred
804            */
805            public int countByE1(long entryId1)
806                    throws com.liferay.portal.kernel.exception.SystemException;
807    
808            /**
809            * Returns the number of asset links where entryId2 = &#63;.
810            *
811            * @param entryId2 the entry id2
812            * @return the number of matching asset links
813            * @throws SystemException if a system exception occurred
814            */
815            public int countByE2(long entryId2)
816                    throws com.liferay.portal.kernel.exception.SystemException;
817    
818            /**
819            * Returns the number of asset links where entryId1 = &#63; and entryId2 = &#63;.
820            *
821            * @param entryId1 the entry id1
822            * @param entryId2 the entry id2
823            * @return the number of matching asset links
824            * @throws SystemException if a system exception occurred
825            */
826            public int countByE_E(long entryId1, long entryId2)
827                    throws com.liferay.portal.kernel.exception.SystemException;
828    
829            /**
830            * Returns the number of asset links where entryId1 = &#63; and type = &#63;.
831            *
832            * @param entryId1 the entry id1
833            * @param type the type
834            * @return the number of matching asset links
835            * @throws SystemException if a system exception occurred
836            */
837            public int countByE1_T(long entryId1, int type)
838                    throws com.liferay.portal.kernel.exception.SystemException;
839    
840            /**
841            * Returns the number of asset links where entryId2 = &#63; and type = &#63;.
842            *
843            * @param entryId2 the entry id2
844            * @param type the type
845            * @return the number of matching asset links
846            * @throws SystemException if a system exception occurred
847            */
848            public int countByE2_T(long entryId2, int type)
849                    throws com.liferay.portal.kernel.exception.SystemException;
850    
851            /**
852            * Returns the number of asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
853            *
854            * @param entryId1 the entry id1
855            * @param entryId2 the entry id2
856            * @param type the type
857            * @return the number of matching asset links
858            * @throws SystemException if a system exception occurred
859            */
860            public int countByE_E_T(long entryId1, long entryId2, int type)
861                    throws com.liferay.portal.kernel.exception.SystemException;
862    
863            /**
864            * Returns the number of asset links.
865            *
866            * @return the number of asset links
867            * @throws SystemException if a system exception occurred
868            */
869            public int countAll()
870                    throws com.liferay.portal.kernel.exception.SystemException;
871    }