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.AssetEntry;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the asset entry service. This utility wraps {@link AssetEntryPersistenceImpl} 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 AssetEntryPersistence
037     * @see AssetEntryPersistenceImpl
038     * @generated
039     */
040    public class AssetEntryUtil {
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(AssetEntry assetEntry) {
058                    getPersistence().clearCache(assetEntry);
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<AssetEntry> 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<AssetEntry> 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<AssetEntry> 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 AssetEntry update(AssetEntry assetEntry, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(assetEntry, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static AssetEntry update(AssetEntry assetEntry, boolean merge,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(assetEntry, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the asset entry in the entity cache if it is enabled.
115            *
116            * @param assetEntry the asset entry
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.asset.model.AssetEntry assetEntry) {
120                    getPersistence().cacheResult(assetEntry);
121            }
122    
123            /**
124            * Caches the asset entries in the entity cache if it is enabled.
125            *
126            * @param assetEntries the asset entries
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries) {
130                    getPersistence().cacheResult(assetEntries);
131            }
132    
133            /**
134            * Creates a new asset entry with the primary key. Does not add the asset entry to the database.
135            *
136            * @param entryId the primary key for the new asset entry
137            * @return the new asset entry
138            */
139            public static com.liferay.portlet.asset.model.AssetEntry create(
140                    long entryId) {
141                    return getPersistence().create(entryId);
142            }
143    
144            /**
145            * Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param entryId the primary key of the asset entry
148            * @return the asset entry that was removed
149            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.asset.model.AssetEntry remove(
153                    long entryId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.asset.NoSuchEntryException {
156                    return getPersistence().remove(entryId);
157            }
158    
159            public static com.liferay.portlet.asset.model.AssetEntry updateImpl(
160                    com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().updateImpl(assetEntry, merge);
163            }
164    
165            /**
166            * Returns the asset entry with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found.
167            *
168            * @param entryId the primary key of the asset entry
169            * @return the asset entry
170            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public static com.liferay.portlet.asset.model.AssetEntry findByPrimaryKey(
174                    long entryId)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.asset.NoSuchEntryException {
177                    return getPersistence().findByPrimaryKey(entryId);
178            }
179    
180            /**
181            * Returns the asset entry with the primary key or returns <code>null</code> if it could not be found.
182            *
183            * @param entryId the primary key of the asset entry
184            * @return the asset entry, or <code>null</code> if a asset entry with the primary key could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public static com.liferay.portlet.asset.model.AssetEntry fetchByPrimaryKey(
188                    long entryId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence().fetchByPrimaryKey(entryId);
191            }
192    
193            /**
194            * Returns all the asset entries where companyId = &#63;.
195            *
196            * @param companyId the company ID
197            * @return the matching asset entries
198            * @throws SystemException if a system exception occurred
199            */
200            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
201                    long companyId)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getPersistence().findByCompanyId(companyId);
204            }
205    
206            /**
207            * Returns a range of all the asset entries where companyId = &#63;.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param companyId the company ID
214            * @param start the lower bound of the range of asset entries
215            * @param end the upper bound of the range of asset entries (not inclusive)
216            * @return the range of matching asset entries
217            * @throws SystemException if a system exception occurred
218            */
219            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
220                    long companyId, int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return getPersistence().findByCompanyId(companyId, start, end);
223            }
224    
225            /**
226            * Returns an ordered range of all the asset entries where companyId = &#63;.
227            *
228            * <p>
229            * 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.
230            * </p>
231            *
232            * @param companyId the company ID
233            * @param start the lower bound of the range of asset entries
234            * @param end the upper bound of the range of asset entries (not inclusive)
235            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
236            * @return the ordered range of matching asset entries
237            * @throws SystemException if a system exception occurred
238            */
239            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
240                    long companyId, int start, int end,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return getPersistence()
244                                       .findByCompanyId(companyId, start, end, orderByComparator);
245            }
246    
247            /**
248            * Returns the first asset entry in the ordered set where companyId = &#63;.
249            *
250            * @param companyId the company ID
251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
252            * @return the first matching asset entry
253            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First(
257                    long companyId,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException,
260                            com.liferay.portlet.asset.NoSuchEntryException {
261                    return getPersistence()
262                                       .findByCompanyId_First(companyId, orderByComparator);
263            }
264    
265            /**
266            * Returns the first asset entry in the ordered set where companyId = &#63;.
267            *
268            * @param companyId the company ID
269            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
270            * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found
271            * @throws SystemException if a system exception occurred
272            */
273            public static com.liferay.portlet.asset.model.AssetEntry fetchByCompanyId_First(
274                    long companyId,
275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276                    throws com.liferay.portal.kernel.exception.SystemException {
277                    return getPersistence()
278                                       .fetchByCompanyId_First(companyId, orderByComparator);
279            }
280    
281            /**
282            * Returns the last asset entry in the ordered set where companyId = &#63;.
283            *
284            * @param companyId the company ID
285            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
286            * @return the last matching asset entry
287            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
288            * @throws SystemException if a system exception occurred
289            */
290            public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last(
291                    long companyId,
292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
293                    throws com.liferay.portal.kernel.exception.SystemException,
294                            com.liferay.portlet.asset.NoSuchEntryException {
295                    return getPersistence()
296                                       .findByCompanyId_Last(companyId, orderByComparator);
297            }
298    
299            /**
300            * Returns the last asset entry in the ordered set where companyId = &#63;.
301            *
302            * @param companyId the company ID
303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
304            * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found
305            * @throws SystemException if a system exception occurred
306            */
307            public static com.liferay.portlet.asset.model.AssetEntry fetchByCompanyId_Last(
308                    long companyId,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return getPersistence()
312                                       .fetchByCompanyId_Last(companyId, orderByComparator);
313            }
314    
315            /**
316            * Returns the asset entries before and after the current asset entry in the ordered set where companyId = &#63;.
317            *
318            * @param entryId the primary key of the current asset entry
319            * @param companyId the company ID
320            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
321            * @return the previous, current, and next asset entry
322            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
323            * @throws SystemException if a system exception occurred
324            */
325            public static com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext(
326                    long entryId, long companyId,
327                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328                    throws com.liferay.portal.kernel.exception.SystemException,
329                            com.liferay.portlet.asset.NoSuchEntryException {
330                    return getPersistence()
331                                       .findByCompanyId_PrevAndNext(entryId, companyId,
332                            orderByComparator);
333            }
334    
335            /**
336            * Returns all the asset entries where visible = &#63;.
337            *
338            * @param visible the visible
339            * @return the matching asset entries
340            * @throws SystemException if a system exception occurred
341            */
342            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible(
343                    boolean visible)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return getPersistence().findByVisible(visible);
346            }
347    
348            /**
349            * Returns a range of all the asset entries where visible = &#63;.
350            *
351            * <p>
352            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
353            * </p>
354            *
355            * @param visible the visible
356            * @param start the lower bound of the range of asset entries
357            * @param end the upper bound of the range of asset entries (not inclusive)
358            * @return the range of matching asset entries
359            * @throws SystemException if a system exception occurred
360            */
361            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible(
362                    boolean visible, int start, int end)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return getPersistence().findByVisible(visible, start, end);
365            }
366    
367            /**
368            * Returns an ordered range of all the asset entries where visible = &#63;.
369            *
370            * <p>
371            * 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.
372            * </p>
373            *
374            * @param visible the visible
375            * @param start the lower bound of the range of asset entries
376            * @param end the upper bound of the range of asset entries (not inclusive)
377            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
378            * @return the ordered range of matching asset entries
379            * @throws SystemException if a system exception occurred
380            */
381            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible(
382                    boolean visible, int start, int end,
383                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return getPersistence()
386                                       .findByVisible(visible, start, end, orderByComparator);
387            }
388    
389            /**
390            * Returns the first asset entry in the ordered set where visible = &#63;.
391            *
392            * @param visible the visible
393            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
394            * @return the first matching asset entry
395            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
396            * @throws SystemException if a system exception occurred
397            */
398            public static com.liferay.portlet.asset.model.AssetEntry findByVisible_First(
399                    boolean visible,
400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
401                    throws com.liferay.portal.kernel.exception.SystemException,
402                            com.liferay.portlet.asset.NoSuchEntryException {
403                    return getPersistence().findByVisible_First(visible, orderByComparator);
404            }
405    
406            /**
407            * Returns the first asset entry in the ordered set where visible = &#63;.
408            *
409            * @param visible the visible
410            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
411            * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found
412            * @throws SystemException if a system exception occurred
413            */
414            public static com.liferay.portlet.asset.model.AssetEntry fetchByVisible_First(
415                    boolean visible,
416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417                    throws com.liferay.portal.kernel.exception.SystemException {
418                    return getPersistence().fetchByVisible_First(visible, orderByComparator);
419            }
420    
421            /**
422            * Returns the last asset entry in the ordered set where visible = &#63;.
423            *
424            * @param visible the visible
425            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
426            * @return the last matching asset entry
427            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
428            * @throws SystemException if a system exception occurred
429            */
430            public static com.liferay.portlet.asset.model.AssetEntry findByVisible_Last(
431                    boolean visible,
432                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
433                    throws com.liferay.portal.kernel.exception.SystemException,
434                            com.liferay.portlet.asset.NoSuchEntryException {
435                    return getPersistence().findByVisible_Last(visible, orderByComparator);
436            }
437    
438            /**
439            * Returns the last asset entry in the ordered set where visible = &#63;.
440            *
441            * @param visible the visible
442            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
443            * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found
444            * @throws SystemException if a system exception occurred
445            */
446            public static com.liferay.portlet.asset.model.AssetEntry fetchByVisible_Last(
447                    boolean visible,
448                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
449                    throws com.liferay.portal.kernel.exception.SystemException {
450                    return getPersistence().fetchByVisible_Last(visible, orderByComparator);
451            }
452    
453            /**
454            * Returns the asset entries before and after the current asset entry in the ordered set where visible = &#63;.
455            *
456            * @param entryId the primary key of the current asset entry
457            * @param visible the visible
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the previous, current, and next asset entry
460            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
461            * @throws SystemException if a system exception occurred
462            */
463            public static com.liferay.portlet.asset.model.AssetEntry[] findByVisible_PrevAndNext(
464                    long entryId, boolean visible,
465                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
466                    throws com.liferay.portal.kernel.exception.SystemException,
467                            com.liferay.portlet.asset.NoSuchEntryException {
468                    return getPersistence()
469                                       .findByVisible_PrevAndNext(entryId, visible,
470                            orderByComparator);
471            }
472    
473            /**
474            * Returns all the asset entries where publishDate = &#63;.
475            *
476            * @param publishDate the publish date
477            * @return the matching asset entries
478            * @throws SystemException if a system exception occurred
479            */
480            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate(
481                    java.util.Date publishDate)
482                    throws com.liferay.portal.kernel.exception.SystemException {
483                    return getPersistence().findByPublishDate(publishDate);
484            }
485    
486            /**
487            * Returns a range of all the asset entries where publishDate = &#63;.
488            *
489            * <p>
490            * 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.
491            * </p>
492            *
493            * @param publishDate the publish date
494            * @param start the lower bound of the range of asset entries
495            * @param end the upper bound of the range of asset entries (not inclusive)
496            * @return the range of matching asset entries
497            * @throws SystemException if a system exception occurred
498            */
499            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate(
500                    java.util.Date publishDate, int start, int end)
501                    throws com.liferay.portal.kernel.exception.SystemException {
502                    return getPersistence().findByPublishDate(publishDate, start, end);
503            }
504    
505            /**
506            * Returns an ordered range of all the asset entries where publishDate = &#63;.
507            *
508            * <p>
509            * 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.
510            * </p>
511            *
512            * @param publishDate the publish date
513            * @param start the lower bound of the range of asset entries
514            * @param end the upper bound of the range of asset entries (not inclusive)
515            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
516            * @return the ordered range of matching asset entries
517            * @throws SystemException if a system exception occurred
518            */
519            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate(
520                    java.util.Date publishDate, int start, int end,
521                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
522                    throws com.liferay.portal.kernel.exception.SystemException {
523                    return getPersistence()
524                                       .findByPublishDate(publishDate, start, end, orderByComparator);
525            }
526    
527            /**
528            * Returns the first asset entry in the ordered set where publishDate = &#63;.
529            *
530            * @param publishDate the publish date
531            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
532            * @return the first matching asset entry
533            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
534            * @throws SystemException if a system exception occurred
535            */
536            public static com.liferay.portlet.asset.model.AssetEntry findByPublishDate_First(
537                    java.util.Date publishDate,
538                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
539                    throws com.liferay.portal.kernel.exception.SystemException,
540                            com.liferay.portlet.asset.NoSuchEntryException {
541                    return getPersistence()
542                                       .findByPublishDate_First(publishDate, orderByComparator);
543            }
544    
545            /**
546            * Returns the first asset entry in the ordered set where publishDate = &#63;.
547            *
548            * @param publishDate the publish date
549            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
550            * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found
551            * @throws SystemException if a system exception occurred
552            */
553            public static com.liferay.portlet.asset.model.AssetEntry fetchByPublishDate_First(
554                    java.util.Date publishDate,
555                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
556                    throws com.liferay.portal.kernel.exception.SystemException {
557                    return getPersistence()
558                                       .fetchByPublishDate_First(publishDate, orderByComparator);
559            }
560    
561            /**
562            * Returns the last asset entry in the ordered set where publishDate = &#63;.
563            *
564            * @param publishDate the publish date
565            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
566            * @return the last matching asset entry
567            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
568            * @throws SystemException if a system exception occurred
569            */
570            public static com.liferay.portlet.asset.model.AssetEntry findByPublishDate_Last(
571                    java.util.Date publishDate,
572                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
573                    throws com.liferay.portal.kernel.exception.SystemException,
574                            com.liferay.portlet.asset.NoSuchEntryException {
575                    return getPersistence()
576                                       .findByPublishDate_Last(publishDate, orderByComparator);
577            }
578    
579            /**
580            * Returns the last asset entry in the ordered set where publishDate = &#63;.
581            *
582            * @param publishDate the publish date
583            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
584            * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found
585            * @throws SystemException if a system exception occurred
586            */
587            public static com.liferay.portlet.asset.model.AssetEntry fetchByPublishDate_Last(
588                    java.util.Date publishDate,
589                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
590                    throws com.liferay.portal.kernel.exception.SystemException {
591                    return getPersistence()
592                                       .fetchByPublishDate_Last(publishDate, orderByComparator);
593            }
594    
595            /**
596            * Returns the asset entries before and after the current asset entry in the ordered set where publishDate = &#63;.
597            *
598            * @param entryId the primary key of the current asset entry
599            * @param publishDate the publish date
600            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
601            * @return the previous, current, and next asset entry
602            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
603            * @throws SystemException if a system exception occurred
604            */
605            public static com.liferay.portlet.asset.model.AssetEntry[] findByPublishDate_PrevAndNext(
606                    long entryId, java.util.Date publishDate,
607                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
608                    throws com.liferay.portal.kernel.exception.SystemException,
609                            com.liferay.portlet.asset.NoSuchEntryException {
610                    return getPersistence()
611                                       .findByPublishDate_PrevAndNext(entryId, publishDate,
612                            orderByComparator);
613            }
614    
615            /**
616            * Returns all the asset entries where expirationDate = &#63;.
617            *
618            * @param expirationDate the expiration date
619            * @return the matching asset entries
620            * @throws SystemException if a system exception occurred
621            */
622            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate(
623                    java.util.Date expirationDate)
624                    throws com.liferay.portal.kernel.exception.SystemException {
625                    return getPersistence().findByExpirationDate(expirationDate);
626            }
627    
628            /**
629            * Returns a range of all the asset entries where expirationDate = &#63;.
630            *
631            * <p>
632            * 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.
633            * </p>
634            *
635            * @param expirationDate the expiration date
636            * @param start the lower bound of the range of asset entries
637            * @param end the upper bound of the range of asset entries (not inclusive)
638            * @return the range of matching asset entries
639            * @throws SystemException if a system exception occurred
640            */
641            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate(
642                    java.util.Date expirationDate, int start, int end)
643                    throws com.liferay.portal.kernel.exception.SystemException {
644                    return getPersistence().findByExpirationDate(expirationDate, start, end);
645            }
646    
647            /**
648            * Returns an ordered range of all the asset entries where expirationDate = &#63;.
649            *
650            * <p>
651            * 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.
652            * </p>
653            *
654            * @param expirationDate the expiration date
655            * @param start the lower bound of the range of asset entries
656            * @param end the upper bound of the range of asset entries (not inclusive)
657            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
658            * @return the ordered range of matching asset entries
659            * @throws SystemException if a system exception occurred
660            */
661            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate(
662                    java.util.Date expirationDate, int start, int end,
663                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
664                    throws com.liferay.portal.kernel.exception.SystemException {
665                    return getPersistence()
666                                       .findByExpirationDate(expirationDate, start, end,
667                            orderByComparator);
668            }
669    
670            /**
671            * Returns the first asset entry in the ordered set where expirationDate = &#63;.
672            *
673            * @param expirationDate the expiration date
674            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
675            * @return the first matching asset entry
676            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
677            * @throws SystemException if a system exception occurred
678            */
679            public static com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_First(
680                    java.util.Date expirationDate,
681                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
682                    throws com.liferay.portal.kernel.exception.SystemException,
683                            com.liferay.portlet.asset.NoSuchEntryException {
684                    return getPersistence()
685                                       .findByExpirationDate_First(expirationDate, orderByComparator);
686            }
687    
688            /**
689            * Returns the first asset entry in the ordered set where expirationDate = &#63;.
690            *
691            * @param expirationDate the expiration date
692            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
693            * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found
694            * @throws SystemException if a system exception occurred
695            */
696            public static com.liferay.portlet.asset.model.AssetEntry fetchByExpirationDate_First(
697                    java.util.Date expirationDate,
698                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
699                    throws com.liferay.portal.kernel.exception.SystemException {
700                    return getPersistence()
701                                       .fetchByExpirationDate_First(expirationDate,
702                            orderByComparator);
703            }
704    
705            /**
706            * Returns the last asset entry in the ordered set where expirationDate = &#63;.
707            *
708            * @param expirationDate the expiration date
709            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
710            * @return the last matching asset entry
711            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
712            * @throws SystemException if a system exception occurred
713            */
714            public static com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_Last(
715                    java.util.Date expirationDate,
716                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
717                    throws com.liferay.portal.kernel.exception.SystemException,
718                            com.liferay.portlet.asset.NoSuchEntryException {
719                    return getPersistence()
720                                       .findByExpirationDate_Last(expirationDate, orderByComparator);
721            }
722    
723            /**
724            * Returns the last asset entry in the ordered set where expirationDate = &#63;.
725            *
726            * @param expirationDate the expiration date
727            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
728            * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found
729            * @throws SystemException if a system exception occurred
730            */
731            public static com.liferay.portlet.asset.model.AssetEntry fetchByExpirationDate_Last(
732                    java.util.Date expirationDate,
733                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
734                    throws com.liferay.portal.kernel.exception.SystemException {
735                    return getPersistence()
736                                       .fetchByExpirationDate_Last(expirationDate, orderByComparator);
737            }
738    
739            /**
740            * Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = &#63;.
741            *
742            * @param entryId the primary key of the current asset entry
743            * @param expirationDate the expiration date
744            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
745            * @return the previous, current, and next asset entry
746            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
747            * @throws SystemException if a system exception occurred
748            */
749            public static com.liferay.portlet.asset.model.AssetEntry[] findByExpirationDate_PrevAndNext(
750                    long entryId, java.util.Date expirationDate,
751                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
752                    throws com.liferay.portal.kernel.exception.SystemException,
753                            com.liferay.portlet.asset.NoSuchEntryException {
754                    return getPersistence()
755                                       .findByExpirationDate_PrevAndNext(entryId, expirationDate,
756                            orderByComparator);
757            }
758    
759            /**
760            * Returns all the asset entries where layoutUuid = &#63;.
761            *
762            * @param layoutUuid the layout uuid
763            * @return the matching asset entries
764            * @throws SystemException if a system exception occurred
765            */
766            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByLayoutUuid(
767                    java.lang.String layoutUuid)
768                    throws com.liferay.portal.kernel.exception.SystemException {
769                    return getPersistence().findByLayoutUuid(layoutUuid);
770            }
771    
772            /**
773            * Returns a range of all the asset entries where layoutUuid = &#63;.
774            *
775            * <p>
776            * 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.
777            * </p>
778            *
779            * @param layoutUuid the layout uuid
780            * @param start the lower bound of the range of asset entries
781            * @param end the upper bound of the range of asset entries (not inclusive)
782            * @return the range of matching asset entries
783            * @throws SystemException if a system exception occurred
784            */
785            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByLayoutUuid(
786                    java.lang.String layoutUuid, int start, int end)
787                    throws com.liferay.portal.kernel.exception.SystemException {
788                    return getPersistence().findByLayoutUuid(layoutUuid, start, end);
789            }
790    
791            /**
792            * Returns an ordered range of all the asset entries where layoutUuid = &#63;.
793            *
794            * <p>
795            * 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.
796            * </p>
797            *
798            * @param layoutUuid the layout uuid
799            * @param start the lower bound of the range of asset entries
800            * @param end the upper bound of the range of asset entries (not inclusive)
801            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
802            * @return the ordered range of matching asset entries
803            * @throws SystemException if a system exception occurred
804            */
805            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByLayoutUuid(
806                    java.lang.String layoutUuid, int start, int end,
807                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
808                    throws com.liferay.portal.kernel.exception.SystemException {
809                    return getPersistence()
810                                       .findByLayoutUuid(layoutUuid, start, end, orderByComparator);
811            }
812    
813            /**
814            * Returns the first asset entry in the ordered set where layoutUuid = &#63;.
815            *
816            * @param layoutUuid the layout uuid
817            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
818            * @return the first matching asset entry
819            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
820            * @throws SystemException if a system exception occurred
821            */
822            public static com.liferay.portlet.asset.model.AssetEntry findByLayoutUuid_First(
823                    java.lang.String layoutUuid,
824                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
825                    throws com.liferay.portal.kernel.exception.SystemException,
826                            com.liferay.portlet.asset.NoSuchEntryException {
827                    return getPersistence()
828                                       .findByLayoutUuid_First(layoutUuid, orderByComparator);
829            }
830    
831            /**
832            * Returns the first asset entry in the ordered set where layoutUuid = &#63;.
833            *
834            * @param layoutUuid the layout uuid
835            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
836            * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found
837            * @throws SystemException if a system exception occurred
838            */
839            public static com.liferay.portlet.asset.model.AssetEntry fetchByLayoutUuid_First(
840                    java.lang.String layoutUuid,
841                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
842                    throws com.liferay.portal.kernel.exception.SystemException {
843                    return getPersistence()
844                                       .fetchByLayoutUuid_First(layoutUuid, orderByComparator);
845            }
846    
847            /**
848            * Returns the last asset entry in the ordered set where layoutUuid = &#63;.
849            *
850            * @param layoutUuid the layout uuid
851            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
852            * @return the last matching asset entry
853            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
854            * @throws SystemException if a system exception occurred
855            */
856            public static com.liferay.portlet.asset.model.AssetEntry findByLayoutUuid_Last(
857                    java.lang.String layoutUuid,
858                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
859                    throws com.liferay.portal.kernel.exception.SystemException,
860                            com.liferay.portlet.asset.NoSuchEntryException {
861                    return getPersistence()
862                                       .findByLayoutUuid_Last(layoutUuid, orderByComparator);
863            }
864    
865            /**
866            * Returns the last asset entry in the ordered set where layoutUuid = &#63;.
867            *
868            * @param layoutUuid the layout uuid
869            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
870            * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found
871            * @throws SystemException if a system exception occurred
872            */
873            public static com.liferay.portlet.asset.model.AssetEntry fetchByLayoutUuid_Last(
874                    java.lang.String layoutUuid,
875                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
876                    throws com.liferay.portal.kernel.exception.SystemException {
877                    return getPersistence()
878                                       .fetchByLayoutUuid_Last(layoutUuid, orderByComparator);
879            }
880    
881            /**
882            * Returns the asset entries before and after the current asset entry in the ordered set where layoutUuid = &#63;.
883            *
884            * @param entryId the primary key of the current asset entry
885            * @param layoutUuid the layout uuid
886            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
887            * @return the previous, current, and next asset entry
888            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
889            * @throws SystemException if a system exception occurred
890            */
891            public static com.liferay.portlet.asset.model.AssetEntry[] findByLayoutUuid_PrevAndNext(
892                    long entryId, java.lang.String layoutUuid,
893                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
894                    throws com.liferay.portal.kernel.exception.SystemException,
895                            com.liferay.portlet.asset.NoSuchEntryException {
896                    return getPersistence()
897                                       .findByLayoutUuid_PrevAndNext(entryId, layoutUuid,
898                            orderByComparator);
899            }
900    
901            /**
902            * Returns the asset entry where groupId = &#63; and classUuid = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found.
903            *
904            * @param groupId the group ID
905            * @param classUuid the class uuid
906            * @return the matching asset entry
907            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
908            * @throws SystemException if a system exception occurred
909            */
910            public static com.liferay.portlet.asset.model.AssetEntry findByG_CU(
911                    long groupId, java.lang.String classUuid)
912                    throws com.liferay.portal.kernel.exception.SystemException,
913                            com.liferay.portlet.asset.NoSuchEntryException {
914                    return getPersistence().findByG_CU(groupId, classUuid);
915            }
916    
917            /**
918            * Returns the asset entry where groupId = &#63; and classUuid = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
919            *
920            * @param groupId the group ID
921            * @param classUuid the class uuid
922            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
923            * @throws SystemException if a system exception occurred
924            */
925            public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
926                    long groupId, java.lang.String classUuid)
927                    throws com.liferay.portal.kernel.exception.SystemException {
928                    return getPersistence().fetchByG_CU(groupId, classUuid);
929            }
930    
931            /**
932            * Returns the asset entry where groupId = &#63; and classUuid = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
933            *
934            * @param groupId the group ID
935            * @param classUuid the class uuid
936            * @param retrieveFromCache whether to use the finder cache
937            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
938            * @throws SystemException if a system exception occurred
939            */
940            public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
941                    long groupId, java.lang.String classUuid, boolean retrieveFromCache)
942                    throws com.liferay.portal.kernel.exception.SystemException {
943                    return getPersistence()
944                                       .fetchByG_CU(groupId, classUuid, retrieveFromCache);
945            }
946    
947            /**
948            * Returns the asset entry where classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found.
949            *
950            * @param classNameId the class name ID
951            * @param classPK the class p k
952            * @return the matching asset entry
953            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
954            * @throws SystemException if a system exception occurred
955            */
956            public static com.liferay.portlet.asset.model.AssetEntry findByC_C(
957                    long classNameId, long classPK)
958                    throws com.liferay.portal.kernel.exception.SystemException,
959                            com.liferay.portlet.asset.NoSuchEntryException {
960                    return getPersistence().findByC_C(classNameId, classPK);
961            }
962    
963            /**
964            * Returns the asset entry where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
965            *
966            * @param classNameId the class name ID
967            * @param classPK the class p k
968            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
969            * @throws SystemException if a system exception occurred
970            */
971            public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
972                    long classNameId, long classPK)
973                    throws com.liferay.portal.kernel.exception.SystemException {
974                    return getPersistence().fetchByC_C(classNameId, classPK);
975            }
976    
977            /**
978            * Returns the asset entry where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
979            *
980            * @param classNameId the class name ID
981            * @param classPK the class p k
982            * @param retrieveFromCache whether to use the finder cache
983            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
984            * @throws SystemException if a system exception occurred
985            */
986            public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
987                    long classNameId, long classPK, boolean retrieveFromCache)
988                    throws com.liferay.portal.kernel.exception.SystemException {
989                    return getPersistence()
990                                       .fetchByC_C(classNameId, classPK, retrieveFromCache);
991            }
992    
993            /**
994            * Returns all the asset entries.
995            *
996            * @return the asset entries
997            * @throws SystemException if a system exception occurred
998            */
999            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll()
1000                    throws com.liferay.portal.kernel.exception.SystemException {
1001                    return getPersistence().findAll();
1002            }
1003    
1004            /**
1005            * Returns a range of all the asset entries.
1006            *
1007            * <p>
1008            * 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.
1009            * </p>
1010            *
1011            * @param start the lower bound of the range of asset entries
1012            * @param end the upper bound of the range of asset entries (not inclusive)
1013            * @return the range of asset entries
1014            * @throws SystemException if a system exception occurred
1015            */
1016            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
1017                    int start, int end)
1018                    throws com.liferay.portal.kernel.exception.SystemException {
1019                    return getPersistence().findAll(start, end);
1020            }
1021    
1022            /**
1023            * Returns an ordered range of all the asset entries.
1024            *
1025            * <p>
1026            * 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.
1027            * </p>
1028            *
1029            * @param start the lower bound of the range of asset entries
1030            * @param end the upper bound of the range of asset entries (not inclusive)
1031            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1032            * @return the ordered range of asset entries
1033            * @throws SystemException if a system exception occurred
1034            */
1035            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
1036                    int start, int end,
1037                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1038                    throws com.liferay.portal.kernel.exception.SystemException {
1039                    return getPersistence().findAll(start, end, orderByComparator);
1040            }
1041    
1042            /**
1043            * Removes all the asset entries where companyId = &#63; from the database.
1044            *
1045            * @param companyId the company ID
1046            * @throws SystemException if a system exception occurred
1047            */
1048            public static void removeByCompanyId(long companyId)
1049                    throws com.liferay.portal.kernel.exception.SystemException {
1050                    getPersistence().removeByCompanyId(companyId);
1051            }
1052    
1053            /**
1054            * Removes all the asset entries where visible = &#63; from the database.
1055            *
1056            * @param visible the visible
1057            * @throws SystemException if a system exception occurred
1058            */
1059            public static void removeByVisible(boolean visible)
1060                    throws com.liferay.portal.kernel.exception.SystemException {
1061                    getPersistence().removeByVisible(visible);
1062            }
1063    
1064            /**
1065            * Removes all the asset entries where publishDate = &#63; from the database.
1066            *
1067            * @param publishDate the publish date
1068            * @throws SystemException if a system exception occurred
1069            */
1070            public static void removeByPublishDate(java.util.Date publishDate)
1071                    throws com.liferay.portal.kernel.exception.SystemException {
1072                    getPersistence().removeByPublishDate(publishDate);
1073            }
1074    
1075            /**
1076            * Removes all the asset entries where expirationDate = &#63; from the database.
1077            *
1078            * @param expirationDate the expiration date
1079            * @throws SystemException if a system exception occurred
1080            */
1081            public static void removeByExpirationDate(java.util.Date expirationDate)
1082                    throws com.liferay.portal.kernel.exception.SystemException {
1083                    getPersistence().removeByExpirationDate(expirationDate);
1084            }
1085    
1086            /**
1087            * Removes all the asset entries where layoutUuid = &#63; from the database.
1088            *
1089            * @param layoutUuid the layout uuid
1090            * @throws SystemException if a system exception occurred
1091            */
1092            public static void removeByLayoutUuid(java.lang.String layoutUuid)
1093                    throws com.liferay.portal.kernel.exception.SystemException {
1094                    getPersistence().removeByLayoutUuid(layoutUuid);
1095            }
1096    
1097            /**
1098            * Removes the asset entry where groupId = &#63; and classUuid = &#63; from the database.
1099            *
1100            * @param groupId the group ID
1101            * @param classUuid the class uuid
1102            * @return the asset entry that was removed
1103            * @throws SystemException if a system exception occurred
1104            */
1105            public static com.liferay.portlet.asset.model.AssetEntry removeByG_CU(
1106                    long groupId, java.lang.String classUuid)
1107                    throws com.liferay.portal.kernel.exception.SystemException,
1108                            com.liferay.portlet.asset.NoSuchEntryException {
1109                    return getPersistence().removeByG_CU(groupId, classUuid);
1110            }
1111    
1112            /**
1113            * Removes the asset entry where classNameId = &#63; and classPK = &#63; from the database.
1114            *
1115            * @param classNameId the class name ID
1116            * @param classPK the class p k
1117            * @return the asset entry that was removed
1118            * @throws SystemException if a system exception occurred
1119            */
1120            public static com.liferay.portlet.asset.model.AssetEntry removeByC_C(
1121                    long classNameId, long classPK)
1122                    throws com.liferay.portal.kernel.exception.SystemException,
1123                            com.liferay.portlet.asset.NoSuchEntryException {
1124                    return getPersistence().removeByC_C(classNameId, classPK);
1125            }
1126    
1127            /**
1128            * Removes all the asset entries from the database.
1129            *
1130            * @throws SystemException if a system exception occurred
1131            */
1132            public static void removeAll()
1133                    throws com.liferay.portal.kernel.exception.SystemException {
1134                    getPersistence().removeAll();
1135            }
1136    
1137            /**
1138            * Returns the number of asset entries where companyId = &#63;.
1139            *
1140            * @param companyId the company ID
1141            * @return the number of matching asset entries
1142            * @throws SystemException if a system exception occurred
1143            */
1144            public static int countByCompanyId(long companyId)
1145                    throws com.liferay.portal.kernel.exception.SystemException {
1146                    return getPersistence().countByCompanyId(companyId);
1147            }
1148    
1149            /**
1150            * Returns the number of asset entries where visible = &#63;.
1151            *
1152            * @param visible the visible
1153            * @return the number of matching asset entries
1154            * @throws SystemException if a system exception occurred
1155            */
1156            public static int countByVisible(boolean visible)
1157                    throws com.liferay.portal.kernel.exception.SystemException {
1158                    return getPersistence().countByVisible(visible);
1159            }
1160    
1161            /**
1162            * Returns the number of asset entries where publishDate = &#63;.
1163            *
1164            * @param publishDate the publish date
1165            * @return the number of matching asset entries
1166            * @throws SystemException if a system exception occurred
1167            */
1168            public static int countByPublishDate(java.util.Date publishDate)
1169                    throws com.liferay.portal.kernel.exception.SystemException {
1170                    return getPersistence().countByPublishDate(publishDate);
1171            }
1172    
1173            /**
1174            * Returns the number of asset entries where expirationDate = &#63;.
1175            *
1176            * @param expirationDate the expiration date
1177            * @return the number of matching asset entries
1178            * @throws SystemException if a system exception occurred
1179            */
1180            public static int countByExpirationDate(java.util.Date expirationDate)
1181                    throws com.liferay.portal.kernel.exception.SystemException {
1182                    return getPersistence().countByExpirationDate(expirationDate);
1183            }
1184    
1185            /**
1186            * Returns the number of asset entries where layoutUuid = &#63;.
1187            *
1188            * @param layoutUuid the layout uuid
1189            * @return the number of matching asset entries
1190            * @throws SystemException if a system exception occurred
1191            */
1192            public static int countByLayoutUuid(java.lang.String layoutUuid)
1193                    throws com.liferay.portal.kernel.exception.SystemException {
1194                    return getPersistence().countByLayoutUuid(layoutUuid);
1195            }
1196    
1197            /**
1198            * Returns the number of asset entries where groupId = &#63; and classUuid = &#63;.
1199            *
1200            * @param groupId the group ID
1201            * @param classUuid the class uuid
1202            * @return the number of matching asset entries
1203            * @throws SystemException if a system exception occurred
1204            */
1205            public static int countByG_CU(long groupId, java.lang.String classUuid)
1206                    throws com.liferay.portal.kernel.exception.SystemException {
1207                    return getPersistence().countByG_CU(groupId, classUuid);
1208            }
1209    
1210            /**
1211            * Returns the number of asset entries where classNameId = &#63; and classPK = &#63;.
1212            *
1213            * @param classNameId the class name ID
1214            * @param classPK the class p k
1215            * @return the number of matching asset entries
1216            * @throws SystemException if a system exception occurred
1217            */
1218            public static int countByC_C(long classNameId, long classPK)
1219                    throws com.liferay.portal.kernel.exception.SystemException {
1220                    return getPersistence().countByC_C(classNameId, classPK);
1221            }
1222    
1223            /**
1224            * Returns the number of asset entries.
1225            *
1226            * @return the number of asset entries
1227            * @throws SystemException if a system exception occurred
1228            */
1229            public static int countAll()
1230                    throws com.liferay.portal.kernel.exception.SystemException {
1231                    return getPersistence().countAll();
1232            }
1233    
1234            /**
1235            * Returns all the asset categories associated with the asset entry.
1236            *
1237            * @param pk the primary key of the asset entry
1238            * @return the asset categories associated with the asset entry
1239            * @throws SystemException if a system exception occurred
1240            */
1241            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
1242                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
1243                    return getPersistence().getAssetCategories(pk);
1244            }
1245    
1246            /**
1247            * Returns a range of all the asset categories associated with the asset entry.
1248            *
1249            * <p>
1250            * 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.
1251            * </p>
1252            *
1253            * @param pk the primary key of the asset entry
1254            * @param start the lower bound of the range of asset entries
1255            * @param end the upper bound of the range of asset entries (not inclusive)
1256            * @return the range of asset categories associated with the asset entry
1257            * @throws SystemException if a system exception occurred
1258            */
1259            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
1260                    long pk, int start, int end)
1261                    throws com.liferay.portal.kernel.exception.SystemException {
1262                    return getPersistence().getAssetCategories(pk, start, end);
1263            }
1264    
1265            /**
1266            * Returns an ordered range of all the asset categories associated with the asset entry.
1267            *
1268            * <p>
1269            * 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.
1270            * </p>
1271            *
1272            * @param pk the primary key of the asset entry
1273            * @param start the lower bound of the range of asset entries
1274            * @param end the upper bound of the range of asset entries (not inclusive)
1275            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1276            * @return the ordered range of asset categories associated with the asset entry
1277            * @throws SystemException if a system exception occurred
1278            */
1279            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
1280                    long pk, int start, int end,
1281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1282                    throws com.liferay.portal.kernel.exception.SystemException {
1283                    return getPersistence()
1284                                       .getAssetCategories(pk, start, end, orderByComparator);
1285            }
1286    
1287            /**
1288            * Returns the number of asset categories associated with the asset entry.
1289            *
1290            * @param pk the primary key of the asset entry
1291            * @return the number of asset categories associated with the asset entry
1292            * @throws SystemException if a system exception occurred
1293            */
1294            public static int getAssetCategoriesSize(long pk)
1295                    throws com.liferay.portal.kernel.exception.SystemException {
1296                    return getPersistence().getAssetCategoriesSize(pk);
1297            }
1298    
1299            /**
1300            * Returns <code>true</code> if the asset category is associated with the asset entry.
1301            *
1302            * @param pk the primary key of the asset entry
1303            * @param assetCategoryPK the primary key of the asset category
1304            * @return <code>true</code> if the asset category is associated with the asset entry; <code>false</code> otherwise
1305            * @throws SystemException if a system exception occurred
1306            */
1307            public static boolean containsAssetCategory(long pk, long assetCategoryPK)
1308                    throws com.liferay.portal.kernel.exception.SystemException {
1309                    return getPersistence().containsAssetCategory(pk, assetCategoryPK);
1310            }
1311    
1312            /**
1313            * Returns <code>true</code> if the asset entry has any asset categories associated with it.
1314            *
1315            * @param pk the primary key of the asset entry to check for associations with asset categories
1316            * @return <code>true</code> if the asset entry has any asset categories associated with it; <code>false</code> otherwise
1317            * @throws SystemException if a system exception occurred
1318            */
1319            public static boolean containsAssetCategories(long pk)
1320                    throws com.liferay.portal.kernel.exception.SystemException {
1321                    return getPersistence().containsAssetCategories(pk);
1322            }
1323    
1324            /**
1325            * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1326            *
1327            * @param pk the primary key of the asset entry
1328            * @param assetCategoryPK the primary key of the asset category
1329            * @throws SystemException if a system exception occurred
1330            */
1331            public static void addAssetCategory(long pk, long assetCategoryPK)
1332                    throws com.liferay.portal.kernel.exception.SystemException {
1333                    getPersistence().addAssetCategory(pk, assetCategoryPK);
1334            }
1335    
1336            /**
1337            * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1338            *
1339            * @param pk the primary key of the asset entry
1340            * @param assetCategory the asset category
1341            * @throws SystemException if a system exception occurred
1342            */
1343            public static void addAssetCategory(long pk,
1344                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
1345                    throws com.liferay.portal.kernel.exception.SystemException {
1346                    getPersistence().addAssetCategory(pk, assetCategory);
1347            }
1348    
1349            /**
1350            * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1351            *
1352            * @param pk the primary key of the asset entry
1353            * @param assetCategoryPKs the primary keys of the asset categories
1354            * @throws SystemException if a system exception occurred
1355            */
1356            public static void addAssetCategories(long pk, long[] assetCategoryPKs)
1357                    throws com.liferay.portal.kernel.exception.SystemException {
1358                    getPersistence().addAssetCategories(pk, assetCategoryPKs);
1359            }
1360    
1361            /**
1362            * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1363            *
1364            * @param pk the primary key of the asset entry
1365            * @param assetCategories the asset categories
1366            * @throws SystemException if a system exception occurred
1367            */
1368            public static void addAssetCategories(long pk,
1369                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
1370                    throws com.liferay.portal.kernel.exception.SystemException {
1371                    getPersistence().addAssetCategories(pk, assetCategories);
1372            }
1373    
1374            /**
1375            * Clears all associations between the asset entry and its asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1376            *
1377            * @param pk the primary key of the asset entry to clear the associated asset categories from
1378            * @throws SystemException if a system exception occurred
1379            */
1380            public static void clearAssetCategories(long pk)
1381                    throws com.liferay.portal.kernel.exception.SystemException {
1382                    getPersistence().clearAssetCategories(pk);
1383            }
1384    
1385            /**
1386            * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1387            *
1388            * @param pk the primary key of the asset entry
1389            * @param assetCategoryPK the primary key of the asset category
1390            * @throws SystemException if a system exception occurred
1391            */
1392            public static void removeAssetCategory(long pk, long assetCategoryPK)
1393                    throws com.liferay.portal.kernel.exception.SystemException {
1394                    getPersistence().removeAssetCategory(pk, assetCategoryPK);
1395            }
1396    
1397            /**
1398            * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1399            *
1400            * @param pk the primary key of the asset entry
1401            * @param assetCategory the asset category
1402            * @throws SystemException if a system exception occurred
1403            */
1404            public static void removeAssetCategory(long pk,
1405                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
1406                    throws com.liferay.portal.kernel.exception.SystemException {
1407                    getPersistence().removeAssetCategory(pk, assetCategory);
1408            }
1409    
1410            /**
1411            * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1412            *
1413            * @param pk the primary key of the asset entry
1414            * @param assetCategoryPKs the primary keys of the asset categories
1415            * @throws SystemException if a system exception occurred
1416            */
1417            public static void removeAssetCategories(long pk, long[] assetCategoryPKs)
1418                    throws com.liferay.portal.kernel.exception.SystemException {
1419                    getPersistence().removeAssetCategories(pk, assetCategoryPKs);
1420            }
1421    
1422            /**
1423            * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1424            *
1425            * @param pk the primary key of the asset entry
1426            * @param assetCategories the asset categories
1427            * @throws SystemException if a system exception occurred
1428            */
1429            public static void removeAssetCategories(long pk,
1430                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
1431                    throws com.liferay.portal.kernel.exception.SystemException {
1432                    getPersistence().removeAssetCategories(pk, assetCategories);
1433            }
1434    
1435            /**
1436            * Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1437            *
1438            * @param pk the primary key of the asset entry
1439            * @param assetCategoryPKs the primary keys of the asset categories to be associated with the asset entry
1440            * @throws SystemException if a system exception occurred
1441            */
1442            public static void setAssetCategories(long pk, long[] assetCategoryPKs)
1443                    throws com.liferay.portal.kernel.exception.SystemException {
1444                    getPersistence().setAssetCategories(pk, assetCategoryPKs);
1445            }
1446    
1447            /**
1448            * Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1449            *
1450            * @param pk the primary key of the asset entry
1451            * @param assetCategories the asset categories to be associated with the asset entry
1452            * @throws SystemException if a system exception occurred
1453            */
1454            public static void setAssetCategories(long pk,
1455                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
1456                    throws com.liferay.portal.kernel.exception.SystemException {
1457                    getPersistence().setAssetCategories(pk, assetCategories);
1458            }
1459    
1460            /**
1461            * Returns all the asset tags associated with the asset entry.
1462            *
1463            * @param pk the primary key of the asset entry
1464            * @return the asset tags associated with the asset entry
1465            * @throws SystemException if a system exception occurred
1466            */
1467            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
1468                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
1469                    return getPersistence().getAssetTags(pk);
1470            }
1471    
1472            /**
1473            * Returns a range of all the asset tags associated with the asset entry.
1474            *
1475            * <p>
1476            * 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.
1477            * </p>
1478            *
1479            * @param pk the primary key of the asset entry
1480            * @param start the lower bound of the range of asset entries
1481            * @param end the upper bound of the range of asset entries (not inclusive)
1482            * @return the range of asset tags associated with the asset entry
1483            * @throws SystemException if a system exception occurred
1484            */
1485            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
1486                    long pk, int start, int end)
1487                    throws com.liferay.portal.kernel.exception.SystemException {
1488                    return getPersistence().getAssetTags(pk, start, end);
1489            }
1490    
1491            /**
1492            * Returns an ordered range of all the asset tags associated with the asset entry.
1493            *
1494            * <p>
1495            * 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.
1496            * </p>
1497            *
1498            * @param pk the primary key of the asset entry
1499            * @param start the lower bound of the range of asset entries
1500            * @param end the upper bound of the range of asset entries (not inclusive)
1501            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1502            * @return the ordered range of asset tags associated with the asset entry
1503            * @throws SystemException if a system exception occurred
1504            */
1505            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
1506                    long pk, int start, int end,
1507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1508                    throws com.liferay.portal.kernel.exception.SystemException {
1509                    return getPersistence().getAssetTags(pk, start, end, orderByComparator);
1510            }
1511    
1512            /**
1513            * Returns the number of asset tags associated with the asset entry.
1514            *
1515            * @param pk the primary key of the asset entry
1516            * @return the number of asset tags associated with the asset entry
1517            * @throws SystemException if a system exception occurred
1518            */
1519            public static int getAssetTagsSize(long pk)
1520                    throws com.liferay.portal.kernel.exception.SystemException {
1521                    return getPersistence().getAssetTagsSize(pk);
1522            }
1523    
1524            /**
1525            * Returns <code>true</code> if the asset tag is associated with the asset entry.
1526            *
1527            * @param pk the primary key of the asset entry
1528            * @param assetTagPK the primary key of the asset tag
1529            * @return <code>true</code> if the asset tag is associated with the asset entry; <code>false</code> otherwise
1530            * @throws SystemException if a system exception occurred
1531            */
1532            public static boolean containsAssetTag(long pk, long assetTagPK)
1533                    throws com.liferay.portal.kernel.exception.SystemException {
1534                    return getPersistence().containsAssetTag(pk, assetTagPK);
1535            }
1536    
1537            /**
1538            * Returns <code>true</code> if the asset entry has any asset tags associated with it.
1539            *
1540            * @param pk the primary key of the asset entry to check for associations with asset tags
1541            * @return <code>true</code> if the asset entry has any asset tags associated with it; <code>false</code> otherwise
1542            * @throws SystemException if a system exception occurred
1543            */
1544            public static boolean containsAssetTags(long pk)
1545                    throws com.liferay.portal.kernel.exception.SystemException {
1546                    return getPersistence().containsAssetTags(pk);
1547            }
1548    
1549            /**
1550            * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1551            *
1552            * @param pk the primary key of the asset entry
1553            * @param assetTagPK the primary key of the asset tag
1554            * @throws SystemException if a system exception occurred
1555            */
1556            public static void addAssetTag(long pk, long assetTagPK)
1557                    throws com.liferay.portal.kernel.exception.SystemException {
1558                    getPersistence().addAssetTag(pk, assetTagPK);
1559            }
1560    
1561            /**
1562            * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1563            *
1564            * @param pk the primary key of the asset entry
1565            * @param assetTag the asset tag
1566            * @throws SystemException if a system exception occurred
1567            */
1568            public static void addAssetTag(long pk,
1569                    com.liferay.portlet.asset.model.AssetTag assetTag)
1570                    throws com.liferay.portal.kernel.exception.SystemException {
1571                    getPersistence().addAssetTag(pk, assetTag);
1572            }
1573    
1574            /**
1575            * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1576            *
1577            * @param pk the primary key of the asset entry
1578            * @param assetTagPKs the primary keys of the asset tags
1579            * @throws SystemException if a system exception occurred
1580            */
1581            public static void addAssetTags(long pk, long[] assetTagPKs)
1582                    throws com.liferay.portal.kernel.exception.SystemException {
1583                    getPersistence().addAssetTags(pk, assetTagPKs);
1584            }
1585    
1586            /**
1587            * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1588            *
1589            * @param pk the primary key of the asset entry
1590            * @param assetTags the asset tags
1591            * @throws SystemException if a system exception occurred
1592            */
1593            public static void addAssetTags(long pk,
1594                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
1595                    throws com.liferay.portal.kernel.exception.SystemException {
1596                    getPersistence().addAssetTags(pk, assetTags);
1597            }
1598    
1599            /**
1600            * Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1601            *
1602            * @param pk the primary key of the asset entry to clear the associated asset tags from
1603            * @throws SystemException if a system exception occurred
1604            */
1605            public static void clearAssetTags(long pk)
1606                    throws com.liferay.portal.kernel.exception.SystemException {
1607                    getPersistence().clearAssetTags(pk);
1608            }
1609    
1610            /**
1611            * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1612            *
1613            * @param pk the primary key of the asset entry
1614            * @param assetTagPK the primary key of the asset tag
1615            * @throws SystemException if a system exception occurred
1616            */
1617            public static void removeAssetTag(long pk, long assetTagPK)
1618                    throws com.liferay.portal.kernel.exception.SystemException {
1619                    getPersistence().removeAssetTag(pk, assetTagPK);
1620            }
1621    
1622            /**
1623            * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1624            *
1625            * @param pk the primary key of the asset entry
1626            * @param assetTag the asset tag
1627            * @throws SystemException if a system exception occurred
1628            */
1629            public static void removeAssetTag(long pk,
1630                    com.liferay.portlet.asset.model.AssetTag assetTag)
1631                    throws com.liferay.portal.kernel.exception.SystemException {
1632                    getPersistence().removeAssetTag(pk, assetTag);
1633            }
1634    
1635            /**
1636            * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1637            *
1638            * @param pk the primary key of the asset entry
1639            * @param assetTagPKs the primary keys of the asset tags
1640            * @throws SystemException if a system exception occurred
1641            */
1642            public static void removeAssetTags(long pk, long[] assetTagPKs)
1643                    throws com.liferay.portal.kernel.exception.SystemException {
1644                    getPersistence().removeAssetTags(pk, assetTagPKs);
1645            }
1646    
1647            /**
1648            * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1649            *
1650            * @param pk the primary key of the asset entry
1651            * @param assetTags the asset tags
1652            * @throws SystemException if a system exception occurred
1653            */
1654            public static void removeAssetTags(long pk,
1655                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
1656                    throws com.liferay.portal.kernel.exception.SystemException {
1657                    getPersistence().removeAssetTags(pk, assetTags);
1658            }
1659    
1660            /**
1661            * Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1662            *
1663            * @param pk the primary key of the asset entry
1664            * @param assetTagPKs the primary keys of the asset tags to be associated with the asset entry
1665            * @throws SystemException if a system exception occurred
1666            */
1667            public static void setAssetTags(long pk, long[] assetTagPKs)
1668                    throws com.liferay.portal.kernel.exception.SystemException {
1669                    getPersistence().setAssetTags(pk, assetTagPKs);
1670            }
1671    
1672            /**
1673            * Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1674            *
1675            * @param pk the primary key of the asset entry
1676            * @param assetTags the asset tags to be associated with the asset entry
1677            * @throws SystemException if a system exception occurred
1678            */
1679            public static void setAssetTags(long pk,
1680                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
1681                    throws com.liferay.portal.kernel.exception.SystemException {
1682                    getPersistence().setAssetTags(pk, assetTags);
1683            }
1684    
1685            public static AssetEntryPersistence getPersistence() {
1686                    if (_persistence == null) {
1687                            _persistence = (AssetEntryPersistence)PortalBeanLocatorUtil.locate(AssetEntryPersistence.class.getName());
1688    
1689                            ReferenceRegistry.registerReference(AssetEntryUtil.class,
1690                                    "_persistence");
1691                    }
1692    
1693                    return _persistence;
1694            }
1695    
1696            /**
1697             * @deprecated
1698             */
1699            public void setPersistence(AssetEntryPersistence persistence) {
1700            }
1701    
1702            private static AssetEntryPersistence _persistence;
1703    }