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