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