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 to cache
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 to cache
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 to remove
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            * Finds 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 to find
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            * Finds 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 to find
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            * Finds all the asset links where entryId1 = &#63;.
105            *
106            * @param entryId1 the entry id1 to search with
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            * Finds 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 to search with
122            * @param start the lower bound of the range of asset links to return
123            * @param end the upper bound of the range of asset links to return (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            * Finds 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 to search with
139            * @param start the lower bound of the range of asset links to return
140            * @param end the upper bound of the range of asset links to return (not inclusive)
141            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
158            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
177            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
197            * @param orderByComparator the comparator to order the set by
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            * Finds all the asset links where entryId2 = &#63;.
210            *
211            * @param entryId2 the entry id2 to search with
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            * Finds 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 to search with
227            * @param start the lower bound of the range of asset links to return
228            * @param end the upper bound of the range of asset links to return (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            * Finds 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 to search with
244            * @param start the lower bound of the range of asset links to return
245            * @param end the upper bound of the range of asset links to return (not inclusive)
246            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
263            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
282            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
302            * @param orderByComparator the comparator to order the set by
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            * Finds all the asset links where entryId1 = &#63; and entryId2 = &#63;.
315            *
316            * @param entryId1 the entry id1 to search with
317            * @param entryId2 the entry id2 to search with
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            * Finds 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 to search with
333            * @param entryId2 the entry id2 to search with
334            * @param start the lower bound of the range of asset links to return
335            * @param end the upper bound of the range of asset links to return (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            * Finds 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 to search with
351            * @param entryId2 the entry id2 to search with
352            * @param start the lower bound of the range of asset links to return
353            * @param end the upper bound of the range of asset links to return (not inclusive)
354            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
371            * @param entryId2 the entry id2 to search with
372            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
391            * @param entryId2 the entry id2 to search with
392            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
412            * @param entryId2 the entry id2 to search with
413            * @param orderByComparator the comparator to order the set by
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            * Finds all the asset links where entryId1 = &#63; and type = &#63;.
426            *
427            * @param entryId1 the entry id1 to search with
428            * @param type the type to search with
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            * Finds 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 to search with
444            * @param type the type to search with
445            * @param start the lower bound of the range of asset links to return
446            * @param end the upper bound of the range of asset links to return (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            * Finds 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 to search with
462            * @param type the type to search with
463            * @param start the lower bound of the range of asset links to return
464            * @param end the upper bound of the range of asset links to return (not inclusive)
465            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
482            * @param type the type to search with
483            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
502            * @param type the type to search with
503            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
523            * @param type the type to search with
524            * @param orderByComparator the comparator to order the set by
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            * Finds all the asset links where entryId2 = &#63; and type = &#63;.
537            *
538            * @param entryId2 the entry id2 to search with
539            * @param type the type to search with
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            * Finds 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 to search with
555            * @param type the type to search with
556            * @param start the lower bound of the range of asset links to return
557            * @param end the upper bound of the range of asset links to return (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            * Finds 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 to search with
573            * @param type the type to search with
574            * @param start the lower bound of the range of asset links to return
575            * @param end the upper bound of the range of asset links to return (not inclusive)
576            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
593            * @param type the type to search with
594            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
613            * @param type the type to search with
614            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
634            * @param type the type to search with
635            * @param orderByComparator the comparator to order the set by
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            * Finds all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
648            *
649            * @param entryId1 the entry id1 to search with
650            * @param entryId2 the entry id2 to search with
651            * @param type the type to search with
652            * @return the matching asset links
653            * @throws SystemException if a system exception occurred
654            */
655            public java.util.List<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    
659            /**
660            * Finds a range of all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
661            *
662            * <p>
663            * 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.
664            * </p>
665            *
666            * @param entryId1 the entry id1 to search with
667            * @param entryId2 the entry id2 to search with
668            * @param type the type to search with
669            * @param start the lower bound of the range of asset links to return
670            * @param end the upper bound of the range of asset links to return (not inclusive)
671            * @return the range of matching asset links
672            * @throws SystemException if a system exception occurred
673            */
674            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
675                    long entryId1, long entryId2, int type, int start, int end)
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Finds an ordered range of all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
680            *
681            * <p>
682            * 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.
683            * </p>
684            *
685            * @param entryId1 the entry id1 to search with
686            * @param entryId2 the entry id2 to search with
687            * @param type the type to search with
688            * @param start the lower bound of the range of asset links to return
689            * @param end the upper bound of the range of asset links to return (not inclusive)
690            * @param orderByComparator the comparator to order the results by
691            * @return the ordered range of matching asset links
692            * @throws SystemException if a system exception occurred
693            */
694            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
695                    long entryId1, long entryId2, int type, int start, int end,
696                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
697                    throws com.liferay.portal.kernel.exception.SystemException;
698    
699            /**
700            * Finds the first asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
701            *
702            * <p>
703            * 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.
704            * </p>
705            *
706            * @param entryId1 the entry id1 to search with
707            * @param entryId2 the entry id2 to search with
708            * @param type the type to search with
709            * @param orderByComparator the comparator to order the set by
710            * @return the first matching asset link
711            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
712            * @throws SystemException if a system exception occurred
713            */
714            public com.liferay.portlet.asset.model.AssetLink findByE_E_T_First(
715                    long entryId1, long entryId2, int type,
716                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
717                    throws com.liferay.portal.kernel.exception.SystemException,
718                            com.liferay.portlet.asset.NoSuchLinkException;
719    
720            /**
721            * Finds the last asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
722            *
723            * <p>
724            * 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.
725            * </p>
726            *
727            * @param entryId1 the entry id1 to search with
728            * @param entryId2 the entry id2 to search with
729            * @param type the type to search with
730            * @param orderByComparator the comparator to order the set by
731            * @return the last matching asset link
732            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
733            * @throws SystemException if a system exception occurred
734            */
735            public com.liferay.portlet.asset.model.AssetLink findByE_E_T_Last(
736                    long entryId1, long entryId2, int type,
737                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
738                    throws com.liferay.portal.kernel.exception.SystemException,
739                            com.liferay.portlet.asset.NoSuchLinkException;
740    
741            /**
742            * Finds the asset links before and after the current asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
743            *
744            * <p>
745            * 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.
746            * </p>
747            *
748            * @param linkId the primary key of the current asset link
749            * @param entryId1 the entry id1 to search with
750            * @param entryId2 the entry id2 to search with
751            * @param type the type to search with
752            * @param orderByComparator the comparator to order the set by
753            * @return the previous, current, and next asset link
754            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
755            * @throws SystemException if a system exception occurred
756            */
757            public com.liferay.portlet.asset.model.AssetLink[] findByE_E_T_PrevAndNext(
758                    long linkId, long entryId1, long entryId2, int type,
759                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
760                    throws com.liferay.portal.kernel.exception.SystemException,
761                            com.liferay.portlet.asset.NoSuchLinkException;
762    
763            /**
764            * Finds all the asset links.
765            *
766            * @return the asset links
767            * @throws SystemException if a system exception occurred
768            */
769            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll()
770                    throws com.liferay.portal.kernel.exception.SystemException;
771    
772            /**
773            * Finds a range of all the asset links.
774            *
775            * <p>
776            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
777            * </p>
778            *
779            * @param start the lower bound of the range of asset links to return
780            * @param end the upper bound of the range of asset links to return (not inclusive)
781            * @return the range of asset links
782            * @throws SystemException if a system exception occurred
783            */
784            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
785                    int start, int end)
786                    throws com.liferay.portal.kernel.exception.SystemException;
787    
788            /**
789            * Finds an ordered range of all the asset links.
790            *
791            * <p>
792            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
793            * </p>
794            *
795            * @param start the lower bound of the range of asset links to return
796            * @param end the upper bound of the range of asset links to return (not inclusive)
797            * @param orderByComparator the comparator to order the results by
798            * @return the ordered range of asset links
799            * @throws SystemException if a system exception occurred
800            */
801            public java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
802                    int start, int end,
803                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
804                    throws com.liferay.portal.kernel.exception.SystemException;
805    
806            /**
807            * Removes all the asset links where entryId1 = &#63; from the database.
808            *
809            * @param entryId1 the entry id1 to search with
810            * @throws SystemException if a system exception occurred
811            */
812            public void removeByE1(long entryId1)
813                    throws com.liferay.portal.kernel.exception.SystemException;
814    
815            /**
816            * Removes all the asset links where entryId2 = &#63; from the database.
817            *
818            * @param entryId2 the entry id2 to search with
819            * @throws SystemException if a system exception occurred
820            */
821            public void removeByE2(long entryId2)
822                    throws com.liferay.portal.kernel.exception.SystemException;
823    
824            /**
825            * Removes all the asset links where entryId1 = &#63; and entryId2 = &#63; from the database.
826            *
827            * @param entryId1 the entry id1 to search with
828            * @param entryId2 the entry id2 to search with
829            * @throws SystemException if a system exception occurred
830            */
831            public void removeByE_E(long entryId1, long entryId2)
832                    throws com.liferay.portal.kernel.exception.SystemException;
833    
834            /**
835            * Removes all the asset links where entryId1 = &#63; and type = &#63; from the database.
836            *
837            * @param entryId1 the entry id1 to search with
838            * @param type the type to search with
839            * @throws SystemException if a system exception occurred
840            */
841            public void removeByE1_T(long entryId1, int type)
842                    throws com.liferay.portal.kernel.exception.SystemException;
843    
844            /**
845            * Removes all the asset links where entryId2 = &#63; and type = &#63; from the database.
846            *
847            * @param entryId2 the entry id2 to search with
848            * @param type the type to search with
849            * @throws SystemException if a system exception occurred
850            */
851            public void removeByE2_T(long entryId2, int type)
852                    throws com.liferay.portal.kernel.exception.SystemException;
853    
854            /**
855            * Removes all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63; from the database.
856            *
857            * @param entryId1 the entry id1 to search with
858            * @param entryId2 the entry id2 to search with
859            * @param type the type to search with
860            * @throws SystemException if a system exception occurred
861            */
862            public void removeByE_E_T(long entryId1, long entryId2, int type)
863                    throws com.liferay.portal.kernel.exception.SystemException;
864    
865            /**
866            * Removes all the asset links from the database.
867            *
868            * @throws SystemException if a system exception occurred
869            */
870            public void removeAll()
871                    throws com.liferay.portal.kernel.exception.SystemException;
872    
873            /**
874            * Counts all the asset links where entryId1 = &#63;.
875            *
876            * @param entryId1 the entry id1 to search with
877            * @return the number of matching asset links
878            * @throws SystemException if a system exception occurred
879            */
880            public int countByE1(long entryId1)
881                    throws com.liferay.portal.kernel.exception.SystemException;
882    
883            /**
884            * Counts all the asset links where entryId2 = &#63;.
885            *
886            * @param entryId2 the entry id2 to search with
887            * @return the number of matching asset links
888            * @throws SystemException if a system exception occurred
889            */
890            public int countByE2(long entryId2)
891                    throws com.liferay.portal.kernel.exception.SystemException;
892    
893            /**
894            * Counts all the asset links where entryId1 = &#63; and entryId2 = &#63;.
895            *
896            * @param entryId1 the entry id1 to search with
897            * @param entryId2 the entry id2 to search with
898            * @return the number of matching asset links
899            * @throws SystemException if a system exception occurred
900            */
901            public int countByE_E(long entryId1, long entryId2)
902                    throws com.liferay.portal.kernel.exception.SystemException;
903    
904            /**
905            * Counts all the asset links where entryId1 = &#63; and type = &#63;.
906            *
907            * @param entryId1 the entry id1 to search with
908            * @param type the type to search with
909            * @return the number of matching asset links
910            * @throws SystemException if a system exception occurred
911            */
912            public int countByE1_T(long entryId1, int type)
913                    throws com.liferay.portal.kernel.exception.SystemException;
914    
915            /**
916            * Counts all the asset links where entryId2 = &#63; and type = &#63;.
917            *
918            * @param entryId2 the entry id2 to search with
919            * @param type the type to search with
920            * @return the number of matching asset links
921            * @throws SystemException if a system exception occurred
922            */
923            public int countByE2_T(long entryId2, int type)
924                    throws com.liferay.portal.kernel.exception.SystemException;
925    
926            /**
927            * Counts all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
928            *
929            * @param entryId1 the entry id1 to search with
930            * @param entryId2 the entry id2 to search with
931            * @param type the type to search with
932            * @return the number of matching asset links
933            * @throws SystemException if a system exception occurred
934            */
935            public int countByE_E_T(long entryId1, long entryId2, int type)
936                    throws com.liferay.portal.kernel.exception.SystemException;
937    
938            /**
939            * Counts all the asset links.
940            *
941            * @return the number of asset links
942            * @throws SystemException if a system exception occurred
943            */
944            public int countAll()
945                    throws com.liferay.portal.kernel.exception.SystemException;
946    
947            public AssetLink remove(AssetLink assetLink) throws SystemException;
948    }