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