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