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