001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.asset.model.AssetLink;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the asset link service. This utility wraps {@link AssetLinkPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
029     *
030     * <p>
031     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
032     * </p>
033     *
034     * <p>
035     * Caching information and settings can be found in <code>portal.properties</code>
036     * </p>
037     *
038     * @author Brian Wing Shun Chan
039     * @see AssetLinkPersistence
040     * @see AssetLinkPersistenceImpl
041     * @generated
042     */
043    public class AssetLinkUtil {
044            /**
045             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
046             */
047            public static void clearCache() {
048                    getPersistence().clearCache();
049            }
050    
051            /**
052             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
053             */
054            public static void clearCache(AssetLink assetLink) {
055                    getPersistence().clearCache(assetLink);
056            }
057    
058            /**
059             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
060             */
061            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
062                    throws SystemException {
063                    return getPersistence().countWithDynamicQuery(dynamicQuery);
064            }
065    
066            /**
067             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
068             */
069            public static List<AssetLink> findWithDynamicQuery(
070                    DynamicQuery dynamicQuery) throws SystemException {
071                    return getPersistence().findWithDynamicQuery(dynamicQuery);
072            }
073    
074            /**
075             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
076             */
077            public static List<AssetLink> findWithDynamicQuery(
078                    DynamicQuery dynamicQuery, int start, int end)
079                    throws SystemException {
080                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
081            }
082    
083            /**
084             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
085             */
086            public static List<AssetLink> findWithDynamicQuery(
087                    DynamicQuery dynamicQuery, int start, int end,
088                    OrderByComparator orderByComparator) throws SystemException {
089                    return getPersistence()
090                                       .findWithDynamicQuery(dynamicQuery, start, end,
091                            orderByComparator);
092            }
093    
094            /**
095             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
096             */
097            public static AssetLink remove(AssetLink assetLink)
098                    throws SystemException {
099                    return getPersistence().remove(assetLink);
100            }
101    
102            /**
103             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
104             */
105            public static AssetLink update(AssetLink assetLink, boolean merge)
106                    throws SystemException {
107                    return getPersistence().update(assetLink, merge);
108            }
109    
110            /**
111             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
112             */
113            public static AssetLink update(AssetLink assetLink, boolean merge,
114                    ServiceContext serviceContext) throws SystemException {
115                    return getPersistence().update(assetLink, merge, serviceContext);
116            }
117    
118            /**
119            * Caches the asset link in the entity cache if it is enabled.
120            *
121            * @param assetLink the asset link to cache
122            */
123            public static void cacheResult(
124                    com.liferay.portlet.asset.model.AssetLink assetLink) {
125                    getPersistence().cacheResult(assetLink);
126            }
127    
128            /**
129            * Caches the asset links in the entity cache if it is enabled.
130            *
131            * @param assetLinks the asset links to cache
132            */
133            public static void cacheResult(
134                    java.util.List<com.liferay.portlet.asset.model.AssetLink> assetLinks) {
135                    getPersistence().cacheResult(assetLinks);
136            }
137    
138            /**
139            * Creates a new asset link with the primary key. Does not add the asset link to the database.
140            *
141            * @param linkId the primary key for the new asset link
142            * @return the new asset link
143            */
144            public static com.liferay.portlet.asset.model.AssetLink create(long linkId) {
145                    return getPersistence().create(linkId);
146            }
147    
148            /**
149            * Removes the asset link with the primary key from the database. Also notifies the appropriate model listeners.
150            *
151            * @param linkId the primary key of the asset link to remove
152            * @return the asset link that was removed
153            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public static com.liferay.portlet.asset.model.AssetLink remove(long linkId)
157                    throws com.liferay.portal.kernel.exception.SystemException,
158                            com.liferay.portlet.asset.NoSuchLinkException {
159                    return getPersistence().remove(linkId);
160            }
161    
162            public static com.liferay.portlet.asset.model.AssetLink updateImpl(
163                    com.liferay.portlet.asset.model.AssetLink assetLink, boolean merge)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getPersistence().updateImpl(assetLink, merge);
166            }
167    
168            /**
169            * Finds the asset link with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchLinkException} if it could not be found.
170            *
171            * @param linkId the primary key of the asset link to find
172            * @return the asset link
173            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public static com.liferay.portlet.asset.model.AssetLink findByPrimaryKey(
177                    long linkId)
178                    throws com.liferay.portal.kernel.exception.SystemException,
179                            com.liferay.portlet.asset.NoSuchLinkException {
180                    return getPersistence().findByPrimaryKey(linkId);
181            }
182    
183            /**
184            * Finds the asset link with the primary key or returns <code>null</code> if it could not be found.
185            *
186            * @param linkId the primary key of the asset link to find
187            * @return the asset link, or <code>null</code> if a asset link with the primary key could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public static com.liferay.portlet.asset.model.AssetLink fetchByPrimaryKey(
191                    long linkId) throws com.liferay.portal.kernel.exception.SystemException {
192                    return getPersistence().fetchByPrimaryKey(linkId);
193            }
194    
195            /**
196            * Finds all the asset links where entryId1 = &#63;.
197            *
198            * @param entryId1 the entry id1 to search with
199            * @return the matching asset links
200            * @throws SystemException if a system exception occurred
201            */
202            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
203                    long entryId1)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return getPersistence().findByE1(entryId1);
206            }
207    
208            /**
209            * Finds a range of all the asset links where entryId1 = &#63;.
210            *
211            * <p>
212            * 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.
213            * </p>
214            *
215            * @param entryId1 the entry id1 to search with
216            * @param start the lower bound of the range of asset links to return
217            * @param end the upper bound of the range of asset links to return (not inclusive)
218            * @return the range of matching asset links
219            * @throws SystemException if a system exception occurred
220            */
221            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
222                    long entryId1, int start, int end)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return getPersistence().findByE1(entryId1, start, end);
225            }
226    
227            /**
228            * Finds an ordered range of all the asset links where entryId1 = &#63;.
229            *
230            * <p>
231            * 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.
232            * </p>
233            *
234            * @param entryId1 the entry id1 to search with
235            * @param start the lower bound of the range of asset links to return
236            * @param end the upper bound of the range of asset links to return (not inclusive)
237            * @param orderByComparator the comparator to order the results by
238            * @return the ordered range of matching asset links
239            * @throws SystemException if a system exception occurred
240            */
241            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1(
242                    long entryId1, int start, int end,
243                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return getPersistence().findByE1(entryId1, start, end, orderByComparator);
246            }
247    
248            /**
249            * Finds the first asset link in the ordered set where entryId1 = &#63;.
250            *
251            * <p>
252            * 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.
253            * </p>
254            *
255            * @param entryId1 the entry id1 to search with
256            * @param orderByComparator the comparator to order the set by
257            * @return the first matching asset link
258            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
259            * @throws SystemException if a system exception occurred
260            */
261            public static com.liferay.portlet.asset.model.AssetLink findByE1_First(
262                    long entryId1,
263                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264                    throws com.liferay.portal.kernel.exception.SystemException,
265                            com.liferay.portlet.asset.NoSuchLinkException {
266                    return getPersistence().findByE1_First(entryId1, orderByComparator);
267            }
268    
269            /**
270            * Finds the last asset link in the ordered set where entryId1 = &#63;.
271            *
272            * <p>
273            * 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.
274            * </p>
275            *
276            * @param entryId1 the entry id1 to search with
277            * @param orderByComparator the comparator to order the set by
278            * @return the last matching asset link
279            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
280            * @throws SystemException if a system exception occurred
281            */
282            public static com.liferay.portlet.asset.model.AssetLink findByE1_Last(
283                    long entryId1,
284                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
285                    throws com.liferay.portal.kernel.exception.SystemException,
286                            com.liferay.portlet.asset.NoSuchLinkException {
287                    return getPersistence().findByE1_Last(entryId1, orderByComparator);
288            }
289    
290            /**
291            * Finds the asset links before and after the current asset link in the ordered set where entryId1 = &#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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
295            * </p>
296            *
297            * @param linkId the primary key of the current asset link
298            * @param entryId1 the entry id1 to search with
299            * @param orderByComparator the comparator to order the set by
300            * @return the previous, current, and next asset link
301            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public static com.liferay.portlet.asset.model.AssetLink[] findByE1_PrevAndNext(
305                    long linkId, long entryId1,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.asset.NoSuchLinkException {
309                    return getPersistence()
310                                       .findByE1_PrevAndNext(linkId, entryId1, orderByComparator);
311            }
312    
313            /**
314            * Finds all the asset links where entryId2 = &#63;.
315            *
316            * @param entryId2 the entry id2 to search with
317            * @return the matching asset links
318            * @throws SystemException if a system exception occurred
319            */
320            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
321                    long entryId2)
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    return getPersistence().findByE2(entryId2);
324            }
325    
326            /**
327            * Finds a range of all the asset links where entryId2 = &#63;.
328            *
329            * <p>
330            * 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.
331            * </p>
332            *
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 static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
340                    long entryId2, int start, int end)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence().findByE2(entryId2, start, end);
343            }
344    
345            /**
346            * Finds an ordered range of all the asset links where entryId2 = &#63;.
347            *
348            * <p>
349            * 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.
350            * </p>
351            *
352            * @param entryId2 the entry id2 to search with
353            * @param start the lower bound of the range of asset links to return
354            * @param end the upper bound of the range of asset links to return (not inclusive)
355            * @param orderByComparator the comparator to order the results by
356            * @return the ordered range of matching asset links
357            * @throws SystemException if a system exception occurred
358            */
359            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2(
360                    long entryId2, int start, int end,
361                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return getPersistence().findByE2(entryId2, start, end, orderByComparator);
364            }
365    
366            /**
367            * Finds the first asset link in the ordered set where entryId2 = &#63;.
368            *
369            * <p>
370            * 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.
371            * </p>
372            *
373            * @param entryId2 the entry id2 to search with
374            * @param orderByComparator the comparator to order the set by
375            * @return the first matching asset link
376            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
377            * @throws SystemException if a system exception occurred
378            */
379            public static com.liferay.portlet.asset.model.AssetLink findByE2_First(
380                    long entryId2,
381                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
382                    throws com.liferay.portal.kernel.exception.SystemException,
383                            com.liferay.portlet.asset.NoSuchLinkException {
384                    return getPersistence().findByE2_First(entryId2, orderByComparator);
385            }
386    
387            /**
388            * Finds the last asset link in the ordered set where entryId2 = &#63;.
389            *
390            * <p>
391            * 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.
392            * </p>
393            *
394            * @param entryId2 the entry id2 to search with
395            * @param orderByComparator the comparator to order the set by
396            * @return the last matching asset link
397            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
398            * @throws SystemException if a system exception occurred
399            */
400            public static com.liferay.portlet.asset.model.AssetLink findByE2_Last(
401                    long entryId2,
402                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
403                    throws com.liferay.portal.kernel.exception.SystemException,
404                            com.liferay.portlet.asset.NoSuchLinkException {
405                    return getPersistence().findByE2_Last(entryId2, orderByComparator);
406            }
407    
408            /**
409            * Finds the asset links before and after the current asset link in the ordered set where entryId2 = &#63;.
410            *
411            * <p>
412            * 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.
413            * </p>
414            *
415            * @param linkId the primary key of the current asset link
416            * @param entryId2 the entry id2 to search with
417            * @param orderByComparator the comparator to order the set by
418            * @return the previous, current, and next asset link
419            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
420            * @throws SystemException if a system exception occurred
421            */
422            public static com.liferay.portlet.asset.model.AssetLink[] findByE2_PrevAndNext(
423                    long linkId, long entryId2,
424                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
425                    throws com.liferay.portal.kernel.exception.SystemException,
426                            com.liferay.portlet.asset.NoSuchLinkException {
427                    return getPersistence()
428                                       .findByE2_PrevAndNext(linkId, entryId2, orderByComparator);
429            }
430    
431            /**
432            * Finds all the asset links where entryId1 = &#63; and entryId2 = &#63;.
433            *
434            * @param entryId1 the entry id1 to search with
435            * @param entryId2 the entry id2 to search with
436            * @return the matching asset links
437            * @throws SystemException if a system exception occurred
438            */
439            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
440                    long entryId1, long entryId2)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return getPersistence().findByE_E(entryId1, entryId2);
443            }
444    
445            /**
446            * Finds a range of all the asset links where entryId1 = &#63; and entryId2 = &#63;.
447            *
448            * <p>
449            * 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.
450            * </p>
451            *
452            * @param entryId1 the entry id1 to search with
453            * @param entryId2 the entry id2 to search with
454            * @param start the lower bound of the range of asset links to return
455            * @param end the upper bound of the range of asset links to return (not inclusive)
456            * @return the range of matching asset links
457            * @throws SystemException if a system exception occurred
458            */
459            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
460                    long entryId1, long entryId2, int start, int end)
461                    throws com.liferay.portal.kernel.exception.SystemException {
462                    return getPersistence().findByE_E(entryId1, entryId2, start, end);
463            }
464    
465            /**
466            * Finds an ordered range of all the asset links where entryId1 = &#63; and entryId2 = &#63;.
467            *
468            * <p>
469            * 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.
470            * </p>
471            *
472            * @param entryId1 the entry id1 to search with
473            * @param entryId2 the entry id2 to search with
474            * @param start the lower bound of the range of asset links to return
475            * @param end the upper bound of the range of asset links to return (not inclusive)
476            * @param orderByComparator the comparator to order the results by
477            * @return the ordered range of matching asset links
478            * @throws SystemException if a system exception occurred
479            */
480            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E(
481                    long entryId1, long entryId2, int start, int end,
482                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
483                    throws com.liferay.portal.kernel.exception.SystemException {
484                    return getPersistence()
485                                       .findByE_E(entryId1, entryId2, start, end, orderByComparator);
486            }
487    
488            /**
489            * Finds the first asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63;.
490            *
491            * <p>
492            * 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.
493            * </p>
494            *
495            * @param entryId1 the entry id1 to search with
496            * @param entryId2 the entry id2 to search with
497            * @param orderByComparator the comparator to order the set by
498            * @return the first matching asset link
499            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
500            * @throws SystemException if a system exception occurred
501            */
502            public static com.liferay.portlet.asset.model.AssetLink findByE_E_First(
503                    long entryId1, long entryId2,
504                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
505                    throws com.liferay.portal.kernel.exception.SystemException,
506                            com.liferay.portlet.asset.NoSuchLinkException {
507                    return getPersistence()
508                                       .findByE_E_First(entryId1, entryId2, orderByComparator);
509            }
510    
511            /**
512            * Finds the last asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63;.
513            *
514            * <p>
515            * 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.
516            * </p>
517            *
518            * @param entryId1 the entry id1 to search with
519            * @param entryId2 the entry id2 to search with
520            * @param orderByComparator the comparator to order the set by
521            * @return the last matching asset link
522            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
523            * @throws SystemException if a system exception occurred
524            */
525            public static com.liferay.portlet.asset.model.AssetLink findByE_E_Last(
526                    long entryId1, long entryId2,
527                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
528                    throws com.liferay.portal.kernel.exception.SystemException,
529                            com.liferay.portlet.asset.NoSuchLinkException {
530                    return getPersistence()
531                                       .findByE_E_Last(entryId1, entryId2, orderByComparator);
532            }
533    
534            /**
535            * Finds the asset links before and after the current asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63;.
536            *
537            * <p>
538            * 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.
539            * </p>
540            *
541            * @param linkId the primary key of the current asset link
542            * @param entryId1 the entry id1 to search with
543            * @param entryId2 the entry id2 to search with
544            * @param orderByComparator the comparator to order the set by
545            * @return the previous, current, and next asset link
546            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
547            * @throws SystemException if a system exception occurred
548            */
549            public static com.liferay.portlet.asset.model.AssetLink[] findByE_E_PrevAndNext(
550                    long linkId, long entryId1, long entryId2,
551                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
552                    throws com.liferay.portal.kernel.exception.SystemException,
553                            com.liferay.portlet.asset.NoSuchLinkException {
554                    return getPersistence()
555                                       .findByE_E_PrevAndNext(linkId, entryId1, entryId2,
556                            orderByComparator);
557            }
558    
559            /**
560            * Finds all the asset links where entryId1 = &#63; and type = &#63;.
561            *
562            * @param entryId1 the entry id1 to search with
563            * @param type the type to search with
564            * @return the matching asset links
565            * @throws SystemException if a system exception occurred
566            */
567            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
568                    long entryId1, int type)
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    return getPersistence().findByE1_T(entryId1, type);
571            }
572    
573            /**
574            * Finds a range of all the asset links where entryId1 = &#63; and type = &#63;.
575            *
576            * <p>
577            * 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.
578            * </p>
579            *
580            * @param entryId1 the entry id1 to search with
581            * @param type the type to search with
582            * @param start the lower bound of the range of asset links to return
583            * @param end the upper bound of the range of asset links to return (not inclusive)
584            * @return the range of matching asset links
585            * @throws SystemException if a system exception occurred
586            */
587            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
588                    long entryId1, int type, int start, int end)
589                    throws com.liferay.portal.kernel.exception.SystemException {
590                    return getPersistence().findByE1_T(entryId1, type, start, end);
591            }
592    
593            /**
594            * Finds an ordered range of all the asset links where entryId1 = &#63; and type = &#63;.
595            *
596            * <p>
597            * 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.
598            * </p>
599            *
600            * @param entryId1 the entry id1 to search with
601            * @param type the type to search with
602            * @param start the lower bound of the range of asset links to return
603            * @param end the upper bound of the range of asset links to return (not inclusive)
604            * @param orderByComparator the comparator to order the results by
605            * @return the ordered range of matching asset links
606            * @throws SystemException if a system exception occurred
607            */
608            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE1_T(
609                    long entryId1, int type, int start, int end,
610                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
611                    throws com.liferay.portal.kernel.exception.SystemException {
612                    return getPersistence()
613                                       .findByE1_T(entryId1, type, start, end, orderByComparator);
614            }
615    
616            /**
617            * Finds the first asset link in the ordered set where entryId1 = &#63; and type = &#63;.
618            *
619            * <p>
620            * 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.
621            * </p>
622            *
623            * @param entryId1 the entry id1 to search with
624            * @param type the type to search with
625            * @param orderByComparator the comparator to order the set by
626            * @return the first matching asset link
627            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
628            * @throws SystemException if a system exception occurred
629            */
630            public static com.liferay.portlet.asset.model.AssetLink findByE1_T_First(
631                    long entryId1, int type,
632                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
633                    throws com.liferay.portal.kernel.exception.SystemException,
634                            com.liferay.portlet.asset.NoSuchLinkException {
635                    return getPersistence()
636                                       .findByE1_T_First(entryId1, type, orderByComparator);
637            }
638    
639            /**
640            * Finds the last asset link in the ordered set where entryId1 = &#63; and type = &#63;.
641            *
642            * <p>
643            * 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.
644            * </p>
645            *
646            * @param entryId1 the entry id1 to search with
647            * @param type the type to search with
648            * @param orderByComparator the comparator to order the set by
649            * @return the last matching asset link
650            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
651            * @throws SystemException if a system exception occurred
652            */
653            public static com.liferay.portlet.asset.model.AssetLink findByE1_T_Last(
654                    long entryId1, int type,
655                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
656                    throws com.liferay.portal.kernel.exception.SystemException,
657                            com.liferay.portlet.asset.NoSuchLinkException {
658                    return getPersistence()
659                                       .findByE1_T_Last(entryId1, type, orderByComparator);
660            }
661    
662            /**
663            * Finds the asset links before and after the current asset link in the ordered set where entryId1 = &#63; and type = &#63;.
664            *
665            * <p>
666            * 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.
667            * </p>
668            *
669            * @param linkId the primary key of the current asset link
670            * @param entryId1 the entry id1 to search with
671            * @param type the type to search with
672            * @param orderByComparator the comparator to order the set by
673            * @return the previous, current, and next asset link
674            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
675            * @throws SystemException if a system exception occurred
676            */
677            public static com.liferay.portlet.asset.model.AssetLink[] findByE1_T_PrevAndNext(
678                    long linkId, long entryId1, int type,
679                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
680                    throws com.liferay.portal.kernel.exception.SystemException,
681                            com.liferay.portlet.asset.NoSuchLinkException {
682                    return getPersistence()
683                                       .findByE1_T_PrevAndNext(linkId, entryId1, type,
684                            orderByComparator);
685            }
686    
687            /**
688            * Finds all the asset links where entryId2 = &#63; and type = &#63;.
689            *
690            * @param entryId2 the entry id2 to search with
691            * @param type the type to search with
692            * @return the matching asset links
693            * @throws SystemException if a system exception occurred
694            */
695            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
696                    long entryId2, int type)
697                    throws com.liferay.portal.kernel.exception.SystemException {
698                    return getPersistence().findByE2_T(entryId2, type);
699            }
700    
701            /**
702            * Finds a range of all the asset links where entryId2 = &#63; and type = &#63;.
703            *
704            * <p>
705            * 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.
706            * </p>
707            *
708            * @param entryId2 the entry id2 to search with
709            * @param type the type to search with
710            * @param start the lower bound of the range of asset links to return
711            * @param end the upper bound of the range of asset links to return (not inclusive)
712            * @return the range of matching asset links
713            * @throws SystemException if a system exception occurred
714            */
715            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
716                    long entryId2, int type, int start, int end)
717                    throws com.liferay.portal.kernel.exception.SystemException {
718                    return getPersistence().findByE2_T(entryId2, type, start, end);
719            }
720    
721            /**
722            * Finds an ordered range of all the asset links where entryId2 = &#63; and type = &#63;.
723            *
724            * <p>
725            * 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.
726            * </p>
727            *
728            * @param entryId2 the entry id2 to search with
729            * @param type the type to search with
730            * @param start the lower bound of the range of asset links to return
731            * @param end the upper bound of the range of asset links to return (not inclusive)
732            * @param orderByComparator the comparator to order the results by
733            * @return the ordered range of matching asset links
734            * @throws SystemException if a system exception occurred
735            */
736            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE2_T(
737                    long entryId2, int type, int start, int end,
738                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    return getPersistence()
741                                       .findByE2_T(entryId2, type, start, end, orderByComparator);
742            }
743    
744            /**
745            * Finds the first asset link in the ordered set where entryId2 = &#63; and type = &#63;.
746            *
747            * <p>
748            * 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.
749            * </p>
750            *
751            * @param entryId2 the entry id2 to search with
752            * @param type the type to search with
753            * @param orderByComparator the comparator to order the set by
754            * @return the first matching asset link
755            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
756            * @throws SystemException if a system exception occurred
757            */
758            public static com.liferay.portlet.asset.model.AssetLink findByE2_T_First(
759                    long entryId2, int type,
760                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
761                    throws com.liferay.portal.kernel.exception.SystemException,
762                            com.liferay.portlet.asset.NoSuchLinkException {
763                    return getPersistence()
764                                       .findByE2_T_First(entryId2, type, orderByComparator);
765            }
766    
767            /**
768            * Finds the last asset link in the ordered set where entryId2 = &#63; and type = &#63;.
769            *
770            * <p>
771            * 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.
772            * </p>
773            *
774            * @param entryId2 the entry id2 to search with
775            * @param type the type to search with
776            * @param orderByComparator the comparator to order the set by
777            * @return the last matching asset link
778            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
779            * @throws SystemException if a system exception occurred
780            */
781            public static com.liferay.portlet.asset.model.AssetLink findByE2_T_Last(
782                    long entryId2, int type,
783                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
784                    throws com.liferay.portal.kernel.exception.SystemException,
785                            com.liferay.portlet.asset.NoSuchLinkException {
786                    return getPersistence()
787                                       .findByE2_T_Last(entryId2, type, orderByComparator);
788            }
789    
790            /**
791            * Finds the asset links before and after the current asset link in the ordered set where entryId2 = &#63; and type = &#63;.
792            *
793            * <p>
794            * 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.
795            * </p>
796            *
797            * @param linkId the primary key of the current asset link
798            * @param entryId2 the entry id2 to search with
799            * @param type the type to search with
800            * @param orderByComparator the comparator to order the set by
801            * @return the previous, current, and next asset link
802            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
803            * @throws SystemException if a system exception occurred
804            */
805            public static com.liferay.portlet.asset.model.AssetLink[] findByE2_T_PrevAndNext(
806                    long linkId, long entryId2, int type,
807                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
808                    throws com.liferay.portal.kernel.exception.SystemException,
809                            com.liferay.portlet.asset.NoSuchLinkException {
810                    return getPersistence()
811                                       .findByE2_T_PrevAndNext(linkId, entryId2, type,
812                            orderByComparator);
813            }
814    
815            /**
816            * Finds all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
817            *
818            * @param entryId1 the entry id1 to search with
819            * @param entryId2 the entry id2 to search with
820            * @param type the type to search with
821            * @return the matching asset links
822            * @throws SystemException if a system exception occurred
823            */
824            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
825                    long entryId1, long entryId2, int type)
826                    throws com.liferay.portal.kernel.exception.SystemException {
827                    return getPersistence().findByE_E_T(entryId1, entryId2, type);
828            }
829    
830            /**
831            * Finds a range of all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
832            *
833            * <p>
834            * 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.
835            * </p>
836            *
837            * @param entryId1 the entry id1 to search with
838            * @param entryId2 the entry id2 to search with
839            * @param type the type to search with
840            * @param start the lower bound of the range of asset links to return
841            * @param end the upper bound of the range of asset links to return (not inclusive)
842            * @return the range of matching asset links
843            * @throws SystemException if a system exception occurred
844            */
845            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
846                    long entryId1, long entryId2, int type, int start, int end)
847                    throws com.liferay.portal.kernel.exception.SystemException {
848                    return getPersistence().findByE_E_T(entryId1, entryId2, type, start, end);
849            }
850    
851            /**
852            * Finds an ordered range of all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
853            *
854            * <p>
855            * 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.
856            * </p>
857            *
858            * @param entryId1 the entry id1 to search with
859            * @param entryId2 the entry id2 to search with
860            * @param type the type to search with
861            * @param start the lower bound of the range of asset links to return
862            * @param end the upper bound of the range of asset links to return (not inclusive)
863            * @param orderByComparator the comparator to order the results by
864            * @return the ordered range of matching asset links
865            * @throws SystemException if a system exception occurred
866            */
867            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findByE_E_T(
868                    long entryId1, long entryId2, int type, int start, int end,
869                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
870                    throws com.liferay.portal.kernel.exception.SystemException {
871                    return getPersistence()
872                                       .findByE_E_T(entryId1, entryId2, type, start, end,
873                            orderByComparator);
874            }
875    
876            /**
877            * Finds the first asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
878            *
879            * <p>
880            * 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.
881            * </p>
882            *
883            * @param entryId1 the entry id1 to search with
884            * @param entryId2 the entry id2 to search with
885            * @param type the type to search with
886            * @param orderByComparator the comparator to order the set by
887            * @return the first matching asset link
888            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
889            * @throws SystemException if a system exception occurred
890            */
891            public static com.liferay.portlet.asset.model.AssetLink findByE_E_T_First(
892                    long entryId1, long entryId2, int type,
893                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
894                    throws com.liferay.portal.kernel.exception.SystemException,
895                            com.liferay.portlet.asset.NoSuchLinkException {
896                    return getPersistence()
897                                       .findByE_E_T_First(entryId1, entryId2, type,
898                            orderByComparator);
899            }
900    
901            /**
902            * Finds the last asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
903            *
904            * <p>
905            * 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.
906            * </p>
907            *
908            * @param entryId1 the entry id1 to search with
909            * @param entryId2 the entry id2 to search with
910            * @param type the type to search with
911            * @param orderByComparator the comparator to order the set by
912            * @return the last matching asset link
913            * @throws com.liferay.portlet.asset.NoSuchLinkException if a matching asset link could not be found
914            * @throws SystemException if a system exception occurred
915            */
916            public static com.liferay.portlet.asset.model.AssetLink findByE_E_T_Last(
917                    long entryId1, long entryId2, int type,
918                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
919                    throws com.liferay.portal.kernel.exception.SystemException,
920                            com.liferay.portlet.asset.NoSuchLinkException {
921                    return getPersistence()
922                                       .findByE_E_T_Last(entryId1, entryId2, type, orderByComparator);
923            }
924    
925            /**
926            * Finds the asset links before and after the current asset link in the ordered set where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
927            *
928            * <p>
929            * 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.
930            * </p>
931            *
932            * @param linkId the primary key of the current asset link
933            * @param entryId1 the entry id1 to search with
934            * @param entryId2 the entry id2 to search with
935            * @param type the type to search with
936            * @param orderByComparator the comparator to order the set by
937            * @return the previous, current, and next asset link
938            * @throws com.liferay.portlet.asset.NoSuchLinkException if a asset link with the primary key could not be found
939            * @throws SystemException if a system exception occurred
940            */
941            public static com.liferay.portlet.asset.model.AssetLink[] findByE_E_T_PrevAndNext(
942                    long linkId, long entryId1, long entryId2, int type,
943                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
944                    throws com.liferay.portal.kernel.exception.SystemException,
945                            com.liferay.portlet.asset.NoSuchLinkException {
946                    return getPersistence()
947                                       .findByE_E_T_PrevAndNext(linkId, entryId1, entryId2, type,
948                            orderByComparator);
949            }
950    
951            /**
952            * Finds all the asset links.
953            *
954            * @return the asset links
955            * @throws SystemException if a system exception occurred
956            */
957            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll()
958                    throws com.liferay.portal.kernel.exception.SystemException {
959                    return getPersistence().findAll();
960            }
961    
962            /**
963            * Finds a range of all the asset links.
964            *
965            * <p>
966            * 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.
967            * </p>
968            *
969            * @param start the lower bound of the range of asset links to return
970            * @param end the upper bound of the range of asset links to return (not inclusive)
971            * @return the range of asset links
972            * @throws SystemException if a system exception occurred
973            */
974            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
975                    int start, int end)
976                    throws com.liferay.portal.kernel.exception.SystemException {
977                    return getPersistence().findAll(start, end);
978            }
979    
980            /**
981            * Finds an ordered range of all the asset links.
982            *
983            * <p>
984            * 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.
985            * </p>
986            *
987            * @param start the lower bound of the range of asset links to return
988            * @param end the upper bound of the range of asset links to return (not inclusive)
989            * @param orderByComparator the comparator to order the results by
990            * @return the ordered range of asset links
991            * @throws SystemException if a system exception occurred
992            */
993            public static java.util.List<com.liferay.portlet.asset.model.AssetLink> findAll(
994                    int start, int end,
995                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
996                    throws com.liferay.portal.kernel.exception.SystemException {
997                    return getPersistence().findAll(start, end, orderByComparator);
998            }
999    
1000            /**
1001            * Removes all the asset links where entryId1 = &#63; from the database.
1002            *
1003            * @param entryId1 the entry id1 to search with
1004            * @throws SystemException if a system exception occurred
1005            */
1006            public static void removeByE1(long entryId1)
1007                    throws com.liferay.portal.kernel.exception.SystemException {
1008                    getPersistence().removeByE1(entryId1);
1009            }
1010    
1011            /**
1012            * Removes all the asset links where entryId2 = &#63; from the database.
1013            *
1014            * @param entryId2 the entry id2 to search with
1015            * @throws SystemException if a system exception occurred
1016            */
1017            public static void removeByE2(long entryId2)
1018                    throws com.liferay.portal.kernel.exception.SystemException {
1019                    getPersistence().removeByE2(entryId2);
1020            }
1021    
1022            /**
1023            * Removes all the asset links where entryId1 = &#63; and entryId2 = &#63; from the database.
1024            *
1025            * @param entryId1 the entry id1 to search with
1026            * @param entryId2 the entry id2 to search with
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public static void removeByE_E(long entryId1, long entryId2)
1030                    throws com.liferay.portal.kernel.exception.SystemException {
1031                    getPersistence().removeByE_E(entryId1, entryId2);
1032            }
1033    
1034            /**
1035            * Removes all the asset links where entryId1 = &#63; and type = &#63; from the database.
1036            *
1037            * @param entryId1 the entry id1 to search with
1038            * @param type the type to search with
1039            * @throws SystemException if a system exception occurred
1040            */
1041            public static void removeByE1_T(long entryId1, int type)
1042                    throws com.liferay.portal.kernel.exception.SystemException {
1043                    getPersistence().removeByE1_T(entryId1, type);
1044            }
1045    
1046            /**
1047            * Removes all the asset links where entryId2 = &#63; and type = &#63; from the database.
1048            *
1049            * @param entryId2 the entry id2 to search with
1050            * @param type the type to search with
1051            * @throws SystemException if a system exception occurred
1052            */
1053            public static void removeByE2_T(long entryId2, int type)
1054                    throws com.liferay.portal.kernel.exception.SystemException {
1055                    getPersistence().removeByE2_T(entryId2, type);
1056            }
1057    
1058            /**
1059            * Removes all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63; from the database.
1060            *
1061            * @param entryId1 the entry id1 to search with
1062            * @param entryId2 the entry id2 to search with
1063            * @param type the type to search with
1064            * @throws SystemException if a system exception occurred
1065            */
1066            public static void removeByE_E_T(long entryId1, long entryId2, int type)
1067                    throws com.liferay.portal.kernel.exception.SystemException {
1068                    getPersistence().removeByE_E_T(entryId1, entryId2, type);
1069            }
1070    
1071            /**
1072            * Removes all the asset links from the database.
1073            *
1074            * @throws SystemException if a system exception occurred
1075            */
1076            public static void removeAll()
1077                    throws com.liferay.portal.kernel.exception.SystemException {
1078                    getPersistence().removeAll();
1079            }
1080    
1081            /**
1082            * Counts all the asset links where entryId1 = &#63;.
1083            *
1084            * @param entryId1 the entry id1 to search with
1085            * @return the number of matching asset links
1086            * @throws SystemException if a system exception occurred
1087            */
1088            public static int countByE1(long entryId1)
1089                    throws com.liferay.portal.kernel.exception.SystemException {
1090                    return getPersistence().countByE1(entryId1);
1091            }
1092    
1093            /**
1094            * Counts all the asset links where entryId2 = &#63;.
1095            *
1096            * @param entryId2 the entry id2 to search with
1097            * @return the number of matching asset links
1098            * @throws SystemException if a system exception occurred
1099            */
1100            public static int countByE2(long entryId2)
1101                    throws com.liferay.portal.kernel.exception.SystemException {
1102                    return getPersistence().countByE2(entryId2);
1103            }
1104    
1105            /**
1106            * Counts all the asset links where entryId1 = &#63; and entryId2 = &#63;.
1107            *
1108            * @param entryId1 the entry id1 to search with
1109            * @param entryId2 the entry id2 to search with
1110            * @return the number of matching asset links
1111            * @throws SystemException if a system exception occurred
1112            */
1113            public static int countByE_E(long entryId1, long entryId2)
1114                    throws com.liferay.portal.kernel.exception.SystemException {
1115                    return getPersistence().countByE_E(entryId1, entryId2);
1116            }
1117    
1118            /**
1119            * Counts all the asset links where entryId1 = &#63; and type = &#63;.
1120            *
1121            * @param entryId1 the entry id1 to search with
1122            * @param type the type to search with
1123            * @return the number of matching asset links
1124            * @throws SystemException if a system exception occurred
1125            */
1126            public static int countByE1_T(long entryId1, int type)
1127                    throws com.liferay.portal.kernel.exception.SystemException {
1128                    return getPersistence().countByE1_T(entryId1, type);
1129            }
1130    
1131            /**
1132            * Counts all the asset links where entryId2 = &#63; and type = &#63;.
1133            *
1134            * @param entryId2 the entry id2 to search with
1135            * @param type the type to search with
1136            * @return the number of matching asset links
1137            * @throws SystemException if a system exception occurred
1138            */
1139            public static int countByE2_T(long entryId2, int type)
1140                    throws com.liferay.portal.kernel.exception.SystemException {
1141                    return getPersistence().countByE2_T(entryId2, type);
1142            }
1143    
1144            /**
1145            * Counts all the asset links where entryId1 = &#63; and entryId2 = &#63; and type = &#63;.
1146            *
1147            * @param entryId1 the entry id1 to search with
1148            * @param entryId2 the entry id2 to search with
1149            * @param type the type to search with
1150            * @return the number of matching asset links
1151            * @throws SystemException if a system exception occurred
1152            */
1153            public static int countByE_E_T(long entryId1, long entryId2, int type)
1154                    throws com.liferay.portal.kernel.exception.SystemException {
1155                    return getPersistence().countByE_E_T(entryId1, entryId2, type);
1156            }
1157    
1158            /**
1159            * Counts all the asset links.
1160            *
1161            * @return the number of asset links
1162            * @throws SystemException if a system exception occurred
1163            */
1164            public static int countAll()
1165                    throws com.liferay.portal.kernel.exception.SystemException {
1166                    return getPersistence().countAll();
1167            }
1168    
1169            public static AssetLinkPersistence getPersistence() {
1170                    if (_persistence == null) {
1171                            _persistence = (AssetLinkPersistence)PortalBeanLocatorUtil.locate(AssetLinkPersistence.class.getName());
1172                    }
1173    
1174                    return _persistence;
1175            }
1176    
1177            public void setPersistence(AssetLinkPersistence persistence) {
1178                    _persistence = persistence;
1179            }
1180    
1181            private static AssetLinkPersistence _persistence;
1182    }