001    /**
002     * Copyright (c) 2000-2012 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            * <p>
251            * 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.
252            * </p>
253            *
254            * @param companyId the company ID
255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
256            * @return the first matching asset entry
257            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First(
261                    long companyId,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException,
264                            com.liferay.portlet.asset.NoSuchEntryException {
265                    return getPersistence()
266                                       .findByCompanyId_First(companyId, orderByComparator);
267            }
268    
269            /**
270            * Returns the last asset entry in the ordered set where companyId = &#63;.
271            *
272            * <p>
273            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
274            * </p>
275            *
276            * @param companyId the company ID
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @return the last matching asset entry
279            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
280            * @throws SystemException if a system exception occurred
281            */
282            public static com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last(
283                    long companyId,
284                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
285                    throws com.liferay.portal.kernel.exception.SystemException,
286                            com.liferay.portlet.asset.NoSuchEntryException {
287                    return getPersistence()
288                                       .findByCompanyId_Last(companyId, orderByComparator);
289            }
290    
291            /**
292            * Returns the asset entries before and after the current asset entry in the ordered set where companyId = &#63;.
293            *
294            * <p>
295            * 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.
296            * </p>
297            *
298            * @param entryId the primary key of the current asset entry
299            * @param companyId the company ID
300            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
301            * @return the previous, current, and next asset entry
302            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
303            * @throws SystemException if a system exception occurred
304            */
305            public static com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext(
306                    long entryId, long companyId,
307                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308                    throws com.liferay.portal.kernel.exception.SystemException,
309                            com.liferay.portlet.asset.NoSuchEntryException {
310                    return getPersistence()
311                                       .findByCompanyId_PrevAndNext(entryId, companyId,
312                            orderByComparator);
313            }
314    
315            /**
316            * Returns all the asset entries where visible = &#63;.
317            *
318            * @param visible the visible
319            * @return the matching asset entries
320            * @throws SystemException if a system exception occurred
321            */
322            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible(
323                    boolean visible)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return getPersistence().findByVisible(visible);
326            }
327    
328            /**
329            * Returns a range of all the asset entries where visible = &#63;.
330            *
331            * <p>
332            * 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.
333            * </p>
334            *
335            * @param visible the visible
336            * @param start the lower bound of the range of asset entries
337            * @param end the upper bound of the range of asset entries (not inclusive)
338            * @return the range of matching asset entries
339            * @throws SystemException if a system exception occurred
340            */
341            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible(
342                    boolean visible, int start, int end)
343                    throws com.liferay.portal.kernel.exception.SystemException {
344                    return getPersistence().findByVisible(visible, start, end);
345            }
346    
347            /**
348            * Returns an ordered range of all the asset entries where visible = &#63;.
349            *
350            * <p>
351            * 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.
352            * </p>
353            *
354            * @param visible the visible
355            * @param start the lower bound of the range of asset entries
356            * @param end the upper bound of the range of asset entries (not inclusive)
357            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
358            * @return the ordered 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                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return getPersistence()
366                                       .findByVisible(visible, start, end, orderByComparator);
367            }
368    
369            /**
370            * Returns the first asset entry in the ordered set where visible = &#63;.
371            *
372            * <p>
373            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
374            * </p>
375            *
376            * @param visible the visible
377            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
378            * @return the first matching asset entry
379            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
380            * @throws SystemException if a system exception occurred
381            */
382            public static com.liferay.portlet.asset.model.AssetEntry findByVisible_First(
383                    boolean visible,
384                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
385                    throws com.liferay.portal.kernel.exception.SystemException,
386                            com.liferay.portlet.asset.NoSuchEntryException {
387                    return getPersistence().findByVisible_First(visible, orderByComparator);
388            }
389    
390            /**
391            * Returns the last asset entry in the ordered set where visible = &#63;.
392            *
393            * <p>
394            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
395            * </p>
396            *
397            * @param visible the visible
398            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
399            * @return the last matching asset entry
400            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
401            * @throws SystemException if a system exception occurred
402            */
403            public static com.liferay.portlet.asset.model.AssetEntry findByVisible_Last(
404                    boolean visible,
405                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406                    throws com.liferay.portal.kernel.exception.SystemException,
407                            com.liferay.portlet.asset.NoSuchEntryException {
408                    return getPersistence().findByVisible_Last(visible, orderByComparator);
409            }
410    
411            /**
412            * Returns the asset entries before and after the current asset entry in the ordered set where visible = &#63;.
413            *
414            * <p>
415            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
416            * </p>
417            *
418            * @param entryId the primary key of the current asset entry
419            * @param visible the visible
420            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
421            * @return the previous, current, and next asset entry
422            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
423            * @throws SystemException if a system exception occurred
424            */
425            public static com.liferay.portlet.asset.model.AssetEntry[] findByVisible_PrevAndNext(
426                    long entryId, boolean visible,
427                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
428                    throws com.liferay.portal.kernel.exception.SystemException,
429                            com.liferay.portlet.asset.NoSuchEntryException {
430                    return getPersistence()
431                                       .findByVisible_PrevAndNext(entryId, visible,
432                            orderByComparator);
433            }
434    
435            /**
436            * Returns all the asset entries where publishDate = &#63;.
437            *
438            * @param publishDate the publish date
439            * @return the matching asset entries
440            * @throws SystemException if a system exception occurred
441            */
442            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate(
443                    java.util.Date publishDate)
444                    throws com.liferay.portal.kernel.exception.SystemException {
445                    return getPersistence().findByPublishDate(publishDate);
446            }
447    
448            /**
449            * Returns a range of all the asset entries where publishDate = &#63;.
450            *
451            * <p>
452            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
453            * </p>
454            *
455            * @param publishDate the publish date
456            * @param start the lower bound of the range of asset entries
457            * @param end the upper bound of the range of asset entries (not inclusive)
458            * @return the range of matching asset entries
459            * @throws SystemException if a system exception occurred
460            */
461            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate(
462                    java.util.Date publishDate, int start, int end)
463                    throws com.liferay.portal.kernel.exception.SystemException {
464                    return getPersistence().findByPublishDate(publishDate, start, end);
465            }
466    
467            /**
468            * Returns an ordered range of all the asset entries where publishDate = &#63;.
469            *
470            * <p>
471            * 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.
472            * </p>
473            *
474            * @param publishDate the publish date
475            * @param start the lower bound of the range of asset entries
476            * @param end the upper bound of the range of asset entries (not inclusive)
477            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
478            * @return the ordered range of matching asset entries
479            * @throws SystemException if a system exception occurred
480            */
481            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate(
482                    java.util.Date publishDate, int start, int end,
483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
484                    throws com.liferay.portal.kernel.exception.SystemException {
485                    return getPersistence()
486                                       .findByPublishDate(publishDate, start, end, orderByComparator);
487            }
488    
489            /**
490            * Returns the first asset entry in the ordered set where publishDate = &#63;.
491            *
492            * <p>
493            * 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.
494            * </p>
495            *
496            * @param publishDate the publish date
497            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
498            * @return the first matching asset entry
499            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
500            * @throws SystemException if a system exception occurred
501            */
502            public static com.liferay.portlet.asset.model.AssetEntry findByPublishDate_First(
503                    java.util.Date publishDate,
504                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
505                    throws com.liferay.portal.kernel.exception.SystemException,
506                            com.liferay.portlet.asset.NoSuchEntryException {
507                    return getPersistence()
508                                       .findByPublishDate_First(publishDate, orderByComparator);
509            }
510    
511            /**
512            * Returns the last asset entry in the ordered set where publishDate = &#63;.
513            *
514            * <p>
515            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
516            * </p>
517            *
518            * @param publishDate the publish date
519            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
520            * @return the last matching asset entry
521            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
522            * @throws SystemException if a system exception occurred
523            */
524            public static com.liferay.portlet.asset.model.AssetEntry findByPublishDate_Last(
525                    java.util.Date publishDate,
526                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
527                    throws com.liferay.portal.kernel.exception.SystemException,
528                            com.liferay.portlet.asset.NoSuchEntryException {
529                    return getPersistence()
530                                       .findByPublishDate_Last(publishDate, orderByComparator);
531            }
532    
533            /**
534            * Returns the asset entries before and after the current asset entry in the ordered set where publishDate = &#63;.
535            *
536            * <p>
537            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
538            * </p>
539            *
540            * @param entryId the primary key of the current asset entry
541            * @param publishDate the publish date
542            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
543            * @return the previous, current, and next asset entry
544            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
545            * @throws SystemException if a system exception occurred
546            */
547            public static com.liferay.portlet.asset.model.AssetEntry[] findByPublishDate_PrevAndNext(
548                    long entryId, java.util.Date publishDate,
549                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
550                    throws com.liferay.portal.kernel.exception.SystemException,
551                            com.liferay.portlet.asset.NoSuchEntryException {
552                    return getPersistence()
553                                       .findByPublishDate_PrevAndNext(entryId, publishDate,
554                            orderByComparator);
555            }
556    
557            /**
558            * Returns all the asset entries where expirationDate = &#63;.
559            *
560            * @param expirationDate the expiration date
561            * @return the matching asset entries
562            * @throws SystemException if a system exception occurred
563            */
564            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate(
565                    java.util.Date expirationDate)
566                    throws com.liferay.portal.kernel.exception.SystemException {
567                    return getPersistence().findByExpirationDate(expirationDate);
568            }
569    
570            /**
571            * Returns a range of all the asset entries where expirationDate = &#63;.
572            *
573            * <p>
574            * 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.
575            * </p>
576            *
577            * @param expirationDate the expiration date
578            * @param start the lower bound of the range of asset entries
579            * @param end the upper bound of the range of asset entries (not inclusive)
580            * @return the range of matching asset entries
581            * @throws SystemException if a system exception occurred
582            */
583            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate(
584                    java.util.Date expirationDate, int start, int end)
585                    throws com.liferay.portal.kernel.exception.SystemException {
586                    return getPersistence().findByExpirationDate(expirationDate, start, end);
587            }
588    
589            /**
590            * Returns an ordered range of all the asset entries where expirationDate = &#63;.
591            *
592            * <p>
593            * 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.
594            * </p>
595            *
596            * @param expirationDate the expiration date
597            * @param start the lower bound of the range of asset entries
598            * @param end the upper bound of the range of asset entries (not inclusive)
599            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
600            * @return the ordered range of matching asset entries
601            * @throws SystemException if a system exception occurred
602            */
603            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate(
604                    java.util.Date expirationDate, int start, int end,
605                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
606                    throws com.liferay.portal.kernel.exception.SystemException {
607                    return getPersistence()
608                                       .findByExpirationDate(expirationDate, start, end,
609                            orderByComparator);
610            }
611    
612            /**
613            * Returns the first asset entry in the ordered set where expirationDate = &#63;.
614            *
615            * <p>
616            * 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.
617            * </p>
618            *
619            * @param expirationDate the expiration date
620            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
621            * @return the first matching asset entry
622            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
623            * @throws SystemException if a system exception occurred
624            */
625            public static com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_First(
626                    java.util.Date expirationDate,
627                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
628                    throws com.liferay.portal.kernel.exception.SystemException,
629                            com.liferay.portlet.asset.NoSuchEntryException {
630                    return getPersistence()
631                                       .findByExpirationDate_First(expirationDate, orderByComparator);
632            }
633    
634            /**
635            * Returns the last asset entry in the ordered set where expirationDate = &#63;.
636            *
637            * <p>
638            * 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.
639            * </p>
640            *
641            * @param expirationDate the expiration date
642            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
643            * @return the last matching asset entry
644            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
645            * @throws SystemException if a system exception occurred
646            */
647            public static com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_Last(
648                    java.util.Date expirationDate,
649                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
650                    throws com.liferay.portal.kernel.exception.SystemException,
651                            com.liferay.portlet.asset.NoSuchEntryException {
652                    return getPersistence()
653                                       .findByExpirationDate_Last(expirationDate, orderByComparator);
654            }
655    
656            /**
657            * Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = &#63;.
658            *
659            * <p>
660            * 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.
661            * </p>
662            *
663            * @param entryId the primary key of the current asset entry
664            * @param expirationDate the expiration date
665            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
666            * @return the previous, current, and next asset entry
667            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
668            * @throws SystemException if a system exception occurred
669            */
670            public static com.liferay.portlet.asset.model.AssetEntry[] findByExpirationDate_PrevAndNext(
671                    long entryId, java.util.Date expirationDate,
672                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
673                    throws com.liferay.portal.kernel.exception.SystemException,
674                            com.liferay.portlet.asset.NoSuchEntryException {
675                    return getPersistence()
676                                       .findByExpirationDate_PrevAndNext(entryId, expirationDate,
677                            orderByComparator);
678            }
679    
680            /**
681            * 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.
682            *
683            * @param groupId the group ID
684            * @param classUuid the class uuid
685            * @return the matching asset entry
686            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
687            * @throws SystemException if a system exception occurred
688            */
689            public static com.liferay.portlet.asset.model.AssetEntry findByG_CU(
690                    long groupId, java.lang.String classUuid)
691                    throws com.liferay.portal.kernel.exception.SystemException,
692                            com.liferay.portlet.asset.NoSuchEntryException {
693                    return getPersistence().findByG_CU(groupId, classUuid);
694            }
695    
696            /**
697            * 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.
698            *
699            * @param groupId the group ID
700            * @param classUuid the class uuid
701            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
702            * @throws SystemException if a system exception occurred
703            */
704            public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
705                    long groupId, java.lang.String classUuid)
706                    throws com.liferay.portal.kernel.exception.SystemException {
707                    return getPersistence().fetchByG_CU(groupId, classUuid);
708            }
709    
710            /**
711            * 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.
712            *
713            * @param groupId the group ID
714            * @param classUuid the class uuid
715            * @param retrieveFromCache whether to use the finder cache
716            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
717            * @throws SystemException if a system exception occurred
718            */
719            public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
720                    long groupId, java.lang.String classUuid, boolean retrieveFromCache)
721                    throws com.liferay.portal.kernel.exception.SystemException {
722                    return getPersistence()
723                                       .fetchByG_CU(groupId, classUuid, retrieveFromCache);
724            }
725    
726            /**
727            * 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.
728            *
729            * @param classNameId the class name ID
730            * @param classPK the class p k
731            * @return the matching asset entry
732            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
733            * @throws SystemException if a system exception occurred
734            */
735            public static com.liferay.portlet.asset.model.AssetEntry findByC_C(
736                    long classNameId, long classPK)
737                    throws com.liferay.portal.kernel.exception.SystemException,
738                            com.liferay.portlet.asset.NoSuchEntryException {
739                    return getPersistence().findByC_C(classNameId, classPK);
740            }
741    
742            /**
743            * 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.
744            *
745            * @param classNameId the class name ID
746            * @param classPK the class p k
747            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
748            * @throws SystemException if a system exception occurred
749            */
750            public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
751                    long classNameId, long classPK)
752                    throws com.liferay.portal.kernel.exception.SystemException {
753                    return getPersistence().fetchByC_C(classNameId, classPK);
754            }
755    
756            /**
757            * 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.
758            *
759            * @param classNameId the class name ID
760            * @param classPK the class p k
761            * @param retrieveFromCache whether to use the finder cache
762            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
763            * @throws SystemException if a system exception occurred
764            */
765            public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
766                    long classNameId, long classPK, boolean retrieveFromCache)
767                    throws com.liferay.portal.kernel.exception.SystemException {
768                    return getPersistence()
769                                       .fetchByC_C(classNameId, classPK, retrieveFromCache);
770            }
771    
772            /**
773            * Returns all the asset entries.
774            *
775            * @return the asset entries
776            * @throws SystemException if a system exception occurred
777            */
778            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll()
779                    throws com.liferay.portal.kernel.exception.SystemException {
780                    return getPersistence().findAll();
781            }
782    
783            /**
784            * Returns a range of all the asset entries.
785            *
786            * <p>
787            * 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.
788            * </p>
789            *
790            * @param start the lower bound of the range of asset entries
791            * @param end the upper bound of the range of asset entries (not inclusive)
792            * @return the range of asset entries
793            * @throws SystemException if a system exception occurred
794            */
795            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
796                    int start, int end)
797                    throws com.liferay.portal.kernel.exception.SystemException {
798                    return getPersistence().findAll(start, end);
799            }
800    
801            /**
802            * Returns an ordered range of all the asset entries.
803            *
804            * <p>
805            * 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.
806            * </p>
807            *
808            * @param start the lower bound of the range of asset entries
809            * @param end the upper bound of the range of asset entries (not inclusive)
810            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
811            * @return the ordered range of asset entries
812            * @throws SystemException if a system exception occurred
813            */
814            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
815                    int start, int end,
816                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
817                    throws com.liferay.portal.kernel.exception.SystemException {
818                    return getPersistence().findAll(start, end, orderByComparator);
819            }
820    
821            /**
822            * Removes all the asset entries where companyId = &#63; from the database.
823            *
824            * @param companyId the company ID
825            * @throws SystemException if a system exception occurred
826            */
827            public static void removeByCompanyId(long companyId)
828                    throws com.liferay.portal.kernel.exception.SystemException {
829                    getPersistence().removeByCompanyId(companyId);
830            }
831    
832            /**
833            * Removes all the asset entries where visible = &#63; from the database.
834            *
835            * @param visible the visible
836            * @throws SystemException if a system exception occurred
837            */
838            public static void removeByVisible(boolean visible)
839                    throws com.liferay.portal.kernel.exception.SystemException {
840                    getPersistence().removeByVisible(visible);
841            }
842    
843            /**
844            * Removes all the asset entries where publishDate = &#63; from the database.
845            *
846            * @param publishDate the publish date
847            * @throws SystemException if a system exception occurred
848            */
849            public static void removeByPublishDate(java.util.Date publishDate)
850                    throws com.liferay.portal.kernel.exception.SystemException {
851                    getPersistence().removeByPublishDate(publishDate);
852            }
853    
854            /**
855            * Removes all the asset entries where expirationDate = &#63; from the database.
856            *
857            * @param expirationDate the expiration date
858            * @throws SystemException if a system exception occurred
859            */
860            public static void removeByExpirationDate(java.util.Date expirationDate)
861                    throws com.liferay.portal.kernel.exception.SystemException {
862                    getPersistence().removeByExpirationDate(expirationDate);
863            }
864    
865            /**
866            * Removes the asset entry where groupId = &#63; and classUuid = &#63; from the database.
867            *
868            * @param groupId the group ID
869            * @param classUuid the class uuid
870            * @throws SystemException if a system exception occurred
871            */
872            public static void removeByG_CU(long groupId, java.lang.String classUuid)
873                    throws com.liferay.portal.kernel.exception.SystemException,
874                            com.liferay.portlet.asset.NoSuchEntryException {
875                    getPersistence().removeByG_CU(groupId, classUuid);
876            }
877    
878            /**
879            * Removes the asset entry where classNameId = &#63; and classPK = &#63; from the database.
880            *
881            * @param classNameId the class name ID
882            * @param classPK the class p k
883            * @throws SystemException if a system exception occurred
884            */
885            public static void removeByC_C(long classNameId, long classPK)
886                    throws com.liferay.portal.kernel.exception.SystemException,
887                            com.liferay.portlet.asset.NoSuchEntryException {
888                    getPersistence().removeByC_C(classNameId, classPK);
889            }
890    
891            /**
892            * Removes all the asset entries from the database.
893            *
894            * @throws SystemException if a system exception occurred
895            */
896            public static void removeAll()
897                    throws com.liferay.portal.kernel.exception.SystemException {
898                    getPersistence().removeAll();
899            }
900    
901            /**
902            * Returns the number of asset entries where companyId = &#63;.
903            *
904            * @param companyId the company ID
905            * @return the number of matching asset entries
906            * @throws SystemException if a system exception occurred
907            */
908            public static int countByCompanyId(long companyId)
909                    throws com.liferay.portal.kernel.exception.SystemException {
910                    return getPersistence().countByCompanyId(companyId);
911            }
912    
913            /**
914            * Returns the number of asset entries where visible = &#63;.
915            *
916            * @param visible the visible
917            * @return the number of matching asset entries
918            * @throws SystemException if a system exception occurred
919            */
920            public static int countByVisible(boolean visible)
921                    throws com.liferay.portal.kernel.exception.SystemException {
922                    return getPersistence().countByVisible(visible);
923            }
924    
925            /**
926            * Returns the number of asset entries where publishDate = &#63;.
927            *
928            * @param publishDate the publish date
929            * @return the number of matching asset entries
930            * @throws SystemException if a system exception occurred
931            */
932            public static int countByPublishDate(java.util.Date publishDate)
933                    throws com.liferay.portal.kernel.exception.SystemException {
934                    return getPersistence().countByPublishDate(publishDate);
935            }
936    
937            /**
938            * Returns the number of asset entries where expirationDate = &#63;.
939            *
940            * @param expirationDate the expiration date
941            * @return the number of matching asset entries
942            * @throws SystemException if a system exception occurred
943            */
944            public static int countByExpirationDate(java.util.Date expirationDate)
945                    throws com.liferay.portal.kernel.exception.SystemException {
946                    return getPersistence().countByExpirationDate(expirationDate);
947            }
948    
949            /**
950            * Returns the number of asset entries where groupId = &#63; and classUuid = &#63;.
951            *
952            * @param groupId the group ID
953            * @param classUuid the class uuid
954            * @return the number of matching asset entries
955            * @throws SystemException if a system exception occurred
956            */
957            public static int countByG_CU(long groupId, java.lang.String classUuid)
958                    throws com.liferay.portal.kernel.exception.SystemException {
959                    return getPersistence().countByG_CU(groupId, classUuid);
960            }
961    
962            /**
963            * Returns the number of asset entries where classNameId = &#63; and classPK = &#63;.
964            *
965            * @param classNameId the class name ID
966            * @param classPK the class p k
967            * @return the number of matching asset entries
968            * @throws SystemException if a system exception occurred
969            */
970            public static int countByC_C(long classNameId, long classPK)
971                    throws com.liferay.portal.kernel.exception.SystemException {
972                    return getPersistence().countByC_C(classNameId, classPK);
973            }
974    
975            /**
976            * Returns the number of asset entries.
977            *
978            * @return the number of asset entries
979            * @throws SystemException if a system exception occurred
980            */
981            public static int countAll()
982                    throws com.liferay.portal.kernel.exception.SystemException {
983                    return getPersistence().countAll();
984            }
985    
986            /**
987            * Returns all the asset categories associated with the asset entry.
988            *
989            * @param pk the primary key of the asset entry
990            * @return the asset categories associated with the asset entry
991            * @throws SystemException if a system exception occurred
992            */
993            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
994                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
995                    return getPersistence().getAssetCategories(pk);
996            }
997    
998            /**
999            * Returns a range of all the asset categories associated with the asset entry.
1000            *
1001            * <p>
1002            * 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.
1003            * </p>
1004            *
1005            * @param pk the primary key of the asset entry
1006            * @param start the lower bound of the range of asset entries
1007            * @param end the upper bound of the range of asset entries (not inclusive)
1008            * @return the range of asset categories associated with the asset entry
1009            * @throws SystemException if a system exception occurred
1010            */
1011            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
1012                    long pk, int start, int end)
1013                    throws com.liferay.portal.kernel.exception.SystemException {
1014                    return getPersistence().getAssetCategories(pk, start, end);
1015            }
1016    
1017            /**
1018            * Returns an ordered range of all the asset categories associated with the asset entry.
1019            *
1020            * <p>
1021            * 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.
1022            * </p>
1023            *
1024            * @param pk the primary key of the asset entry
1025            * @param start the lower bound of the range of asset entries
1026            * @param end the upper bound of the range of asset entries (not inclusive)
1027            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1028            * @return the ordered range of asset categories associated with the asset entry
1029            * @throws SystemException if a system exception occurred
1030            */
1031            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
1032                    long pk, int start, int end,
1033                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1034                    throws com.liferay.portal.kernel.exception.SystemException {
1035                    return getPersistence()
1036                                       .getAssetCategories(pk, start, end, orderByComparator);
1037            }
1038    
1039            /**
1040            * Returns the number of asset categories associated with the asset entry.
1041            *
1042            * @param pk the primary key of the asset entry
1043            * @return the number of asset categories associated with the asset entry
1044            * @throws SystemException if a system exception occurred
1045            */
1046            public static int getAssetCategoriesSize(long pk)
1047                    throws com.liferay.portal.kernel.exception.SystemException {
1048                    return getPersistence().getAssetCategoriesSize(pk);
1049            }
1050    
1051            /**
1052            * Returns <code>true</code> if the asset category is associated with the asset entry.
1053            *
1054            * @param pk the primary key of the asset entry
1055            * @param assetCategoryPK the primary key of the asset category
1056            * @return <code>true</code> if the asset category is associated with the asset entry; <code>false</code> otherwise
1057            * @throws SystemException if a system exception occurred
1058            */
1059            public static boolean containsAssetCategory(long pk, long assetCategoryPK)
1060                    throws com.liferay.portal.kernel.exception.SystemException {
1061                    return getPersistence().containsAssetCategory(pk, assetCategoryPK);
1062            }
1063    
1064            /**
1065            * Returns <code>true</code> if the asset entry has any asset categories associated with it.
1066            *
1067            * @param pk the primary key of the asset entry to check for associations with asset categories
1068            * @return <code>true</code> if the asset entry has any asset categories associated with it; <code>false</code> otherwise
1069            * @throws SystemException if a system exception occurred
1070            */
1071            public static boolean containsAssetCategories(long pk)
1072                    throws com.liferay.portal.kernel.exception.SystemException {
1073                    return getPersistence().containsAssetCategories(pk);
1074            }
1075    
1076            /**
1077            * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1078            *
1079            * @param pk the primary key of the asset entry
1080            * @param assetCategoryPK the primary key of the asset category
1081            * @throws SystemException if a system exception occurred
1082            */
1083            public static void addAssetCategory(long pk, long assetCategoryPK)
1084                    throws com.liferay.portal.kernel.exception.SystemException {
1085                    getPersistence().addAssetCategory(pk, assetCategoryPK);
1086            }
1087    
1088            /**
1089            * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1090            *
1091            * @param pk the primary key of the asset entry
1092            * @param assetCategory the asset category
1093            * @throws SystemException if a system exception occurred
1094            */
1095            public static void addAssetCategory(long pk,
1096                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
1097                    throws com.liferay.portal.kernel.exception.SystemException {
1098                    getPersistence().addAssetCategory(pk, assetCategory);
1099            }
1100    
1101            /**
1102            * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1103            *
1104            * @param pk the primary key of the asset entry
1105            * @param assetCategoryPKs the primary keys of the asset categories
1106            * @throws SystemException if a system exception occurred
1107            */
1108            public static void addAssetCategories(long pk, long[] assetCategoryPKs)
1109                    throws com.liferay.portal.kernel.exception.SystemException {
1110                    getPersistence().addAssetCategories(pk, assetCategoryPKs);
1111            }
1112    
1113            /**
1114            * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1115            *
1116            * @param pk the primary key of the asset entry
1117            * @param assetCategories the asset categories
1118            * @throws SystemException if a system exception occurred
1119            */
1120            public static void addAssetCategories(long pk,
1121                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
1122                    throws com.liferay.portal.kernel.exception.SystemException {
1123                    getPersistence().addAssetCategories(pk, assetCategories);
1124            }
1125    
1126            /**
1127            * Clears all associations between the asset entry and its asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1128            *
1129            * @param pk the primary key of the asset entry to clear the associated asset categories from
1130            * @throws SystemException if a system exception occurred
1131            */
1132            public static void clearAssetCategories(long pk)
1133                    throws com.liferay.portal.kernel.exception.SystemException {
1134                    getPersistence().clearAssetCategories(pk);
1135            }
1136    
1137            /**
1138            * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1139            *
1140            * @param pk the primary key of the asset entry
1141            * @param assetCategoryPK the primary key of the asset category
1142            * @throws SystemException if a system exception occurred
1143            */
1144            public static void removeAssetCategory(long pk, long assetCategoryPK)
1145                    throws com.liferay.portal.kernel.exception.SystemException {
1146                    getPersistence().removeAssetCategory(pk, assetCategoryPK);
1147            }
1148    
1149            /**
1150            * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1151            *
1152            * @param pk the primary key of the asset entry
1153            * @param assetCategory the asset category
1154            * @throws SystemException if a system exception occurred
1155            */
1156            public static void removeAssetCategory(long pk,
1157                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
1158                    throws com.liferay.portal.kernel.exception.SystemException {
1159                    getPersistence().removeAssetCategory(pk, assetCategory);
1160            }
1161    
1162            /**
1163            * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1164            *
1165            * @param pk the primary key of the asset entry
1166            * @param assetCategoryPKs the primary keys of the asset categories
1167            * @throws SystemException if a system exception occurred
1168            */
1169            public static void removeAssetCategories(long pk, long[] assetCategoryPKs)
1170                    throws com.liferay.portal.kernel.exception.SystemException {
1171                    getPersistence().removeAssetCategories(pk, assetCategoryPKs);
1172            }
1173    
1174            /**
1175            * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1176            *
1177            * @param pk the primary key of the asset entry
1178            * @param assetCategories the asset categories
1179            * @throws SystemException if a system exception occurred
1180            */
1181            public static void removeAssetCategories(long pk,
1182                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
1183                    throws com.liferay.portal.kernel.exception.SystemException {
1184                    getPersistence().removeAssetCategories(pk, assetCategories);
1185            }
1186    
1187            /**
1188            * 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.
1189            *
1190            * @param pk the primary key of the asset entry
1191            * @param assetCategoryPKs the primary keys of the asset categories to be associated with the asset entry
1192            * @throws SystemException if a system exception occurred
1193            */
1194            public static void setAssetCategories(long pk, long[] assetCategoryPKs)
1195                    throws com.liferay.portal.kernel.exception.SystemException {
1196                    getPersistence().setAssetCategories(pk, assetCategoryPKs);
1197            }
1198    
1199            /**
1200            * 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.
1201            *
1202            * @param pk the primary key of the asset entry
1203            * @param assetCategories the asset categories to be associated with the asset entry
1204            * @throws SystemException if a system exception occurred
1205            */
1206            public static void setAssetCategories(long pk,
1207                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
1208                    throws com.liferay.portal.kernel.exception.SystemException {
1209                    getPersistence().setAssetCategories(pk, assetCategories);
1210            }
1211    
1212            /**
1213            * Returns all the asset tags associated with the asset entry.
1214            *
1215            * @param pk the primary key of the asset entry
1216            * @return the asset tags associated with the asset entry
1217            * @throws SystemException if a system exception occurred
1218            */
1219            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
1220                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
1221                    return getPersistence().getAssetTags(pk);
1222            }
1223    
1224            /**
1225            * Returns a range of all the asset tags associated with the asset entry.
1226            *
1227            * <p>
1228            * 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.
1229            * </p>
1230            *
1231            * @param pk the primary key of the asset entry
1232            * @param start the lower bound of the range of asset entries
1233            * @param end the upper bound of the range of asset entries (not inclusive)
1234            * @return the range of asset tags associated with the asset entry
1235            * @throws SystemException if a system exception occurred
1236            */
1237            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
1238                    long pk, int start, int end)
1239                    throws com.liferay.portal.kernel.exception.SystemException {
1240                    return getPersistence().getAssetTags(pk, start, end);
1241            }
1242    
1243            /**
1244            * Returns an ordered range of all the asset tags associated with the asset entry.
1245            *
1246            * <p>
1247            * 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.
1248            * </p>
1249            *
1250            * @param pk the primary key of the asset entry
1251            * @param start the lower bound of the range of asset entries
1252            * @param end the upper bound of the range of asset entries (not inclusive)
1253            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1254            * @return the ordered range of asset tags associated with the asset entry
1255            * @throws SystemException if a system exception occurred
1256            */
1257            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
1258                    long pk, int start, int end,
1259                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1260                    throws com.liferay.portal.kernel.exception.SystemException {
1261                    return getPersistence().getAssetTags(pk, start, end, orderByComparator);
1262            }
1263    
1264            /**
1265            * Returns the number of asset tags associated with the asset entry.
1266            *
1267            * @param pk the primary key of the asset entry
1268            * @return the number of asset tags associated with the asset entry
1269            * @throws SystemException if a system exception occurred
1270            */
1271            public static int getAssetTagsSize(long pk)
1272                    throws com.liferay.portal.kernel.exception.SystemException {
1273                    return getPersistence().getAssetTagsSize(pk);
1274            }
1275    
1276            /**
1277            * Returns <code>true</code> if the asset tag is associated with the asset entry.
1278            *
1279            * @param pk the primary key of the asset entry
1280            * @param assetTagPK the primary key of the asset tag
1281            * @return <code>true</code> if the asset tag is associated with the asset entry; <code>false</code> otherwise
1282            * @throws SystemException if a system exception occurred
1283            */
1284            public static boolean containsAssetTag(long pk, long assetTagPK)
1285                    throws com.liferay.portal.kernel.exception.SystemException {
1286                    return getPersistence().containsAssetTag(pk, assetTagPK);
1287            }
1288    
1289            /**
1290            * Returns <code>true</code> if the asset entry has any asset tags associated with it.
1291            *
1292            * @param pk the primary key of the asset entry to check for associations with asset tags
1293            * @return <code>true</code> if the asset entry has any asset tags associated with it; <code>false</code> otherwise
1294            * @throws SystemException if a system exception occurred
1295            */
1296            public static boolean containsAssetTags(long pk)
1297                    throws com.liferay.portal.kernel.exception.SystemException {
1298                    return getPersistence().containsAssetTags(pk);
1299            }
1300    
1301            /**
1302            * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1303            *
1304            * @param pk the primary key of the asset entry
1305            * @param assetTagPK the primary key of the asset tag
1306            * @throws SystemException if a system exception occurred
1307            */
1308            public static void addAssetTag(long pk, long assetTagPK)
1309                    throws com.liferay.portal.kernel.exception.SystemException {
1310                    getPersistence().addAssetTag(pk, assetTagPK);
1311            }
1312    
1313            /**
1314            * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1315            *
1316            * @param pk the primary key of the asset entry
1317            * @param assetTag the asset tag
1318            * @throws SystemException if a system exception occurred
1319            */
1320            public static void addAssetTag(long pk,
1321                    com.liferay.portlet.asset.model.AssetTag assetTag)
1322                    throws com.liferay.portal.kernel.exception.SystemException {
1323                    getPersistence().addAssetTag(pk, assetTag);
1324            }
1325    
1326            /**
1327            * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1328            *
1329            * @param pk the primary key of the asset entry
1330            * @param assetTagPKs the primary keys of the asset tags
1331            * @throws SystemException if a system exception occurred
1332            */
1333            public static void addAssetTags(long pk, long[] assetTagPKs)
1334                    throws com.liferay.portal.kernel.exception.SystemException {
1335                    getPersistence().addAssetTags(pk, assetTagPKs);
1336            }
1337    
1338            /**
1339            * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1340            *
1341            * @param pk the primary key of the asset entry
1342            * @param assetTags the asset tags
1343            * @throws SystemException if a system exception occurred
1344            */
1345            public static void addAssetTags(long pk,
1346                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
1347                    throws com.liferay.portal.kernel.exception.SystemException {
1348                    getPersistence().addAssetTags(pk, assetTags);
1349            }
1350    
1351            /**
1352            * Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1353            *
1354            * @param pk the primary key of the asset entry to clear the associated asset tags from
1355            * @throws SystemException if a system exception occurred
1356            */
1357            public static void clearAssetTags(long pk)
1358                    throws com.liferay.portal.kernel.exception.SystemException {
1359                    getPersistence().clearAssetTags(pk);
1360            }
1361    
1362            /**
1363            * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1364            *
1365            * @param pk the primary key of the asset entry
1366            * @param assetTagPK the primary key of the asset tag
1367            * @throws SystemException if a system exception occurred
1368            */
1369            public static void removeAssetTag(long pk, long assetTagPK)
1370                    throws com.liferay.portal.kernel.exception.SystemException {
1371                    getPersistence().removeAssetTag(pk, assetTagPK);
1372            }
1373    
1374            /**
1375            * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1376            *
1377            * @param pk the primary key of the asset entry
1378            * @param assetTag the asset tag
1379            * @throws SystemException if a system exception occurred
1380            */
1381            public static void removeAssetTag(long pk,
1382                    com.liferay.portlet.asset.model.AssetTag assetTag)
1383                    throws com.liferay.portal.kernel.exception.SystemException {
1384                    getPersistence().removeAssetTag(pk, assetTag);
1385            }
1386    
1387            /**
1388            * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1389            *
1390            * @param pk the primary key of the asset entry
1391            * @param assetTagPKs the primary keys of the asset tags
1392            * @throws SystemException if a system exception occurred
1393            */
1394            public static void removeAssetTags(long pk, long[] assetTagPKs)
1395                    throws com.liferay.portal.kernel.exception.SystemException {
1396                    getPersistence().removeAssetTags(pk, assetTagPKs);
1397            }
1398    
1399            /**
1400            * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1401            *
1402            * @param pk the primary key of the asset entry
1403            * @param assetTags the asset tags
1404            * @throws SystemException if a system exception occurred
1405            */
1406            public static void removeAssetTags(long pk,
1407                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
1408                    throws com.liferay.portal.kernel.exception.SystemException {
1409                    getPersistence().removeAssetTags(pk, assetTags);
1410            }
1411    
1412            /**
1413            * 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.
1414            *
1415            * @param pk the primary key of the asset entry
1416            * @param assetTagPKs the primary keys of the asset tags to be associated with the asset entry
1417            * @throws SystemException if a system exception occurred
1418            */
1419            public static void setAssetTags(long pk, long[] assetTagPKs)
1420                    throws com.liferay.portal.kernel.exception.SystemException {
1421                    getPersistence().setAssetTags(pk, assetTagPKs);
1422            }
1423    
1424            /**
1425            * 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.
1426            *
1427            * @param pk the primary key of the asset entry
1428            * @param assetTags the asset tags to be associated with the asset entry
1429            * @throws SystemException if a system exception occurred
1430            */
1431            public static void setAssetTags(long pk,
1432                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
1433                    throws com.liferay.portal.kernel.exception.SystemException {
1434                    getPersistence().setAssetTags(pk, assetTags);
1435            }
1436    
1437            public static AssetEntryPersistence getPersistence() {
1438                    if (_persistence == null) {
1439                            _persistence = (AssetEntryPersistence)PortalBeanLocatorUtil.locate(AssetEntryPersistence.class.getName());
1440    
1441                            ReferenceRegistry.registerReference(AssetEntryUtil.class,
1442                                    "_persistence");
1443                    }
1444    
1445                    return _persistence;
1446            }
1447    
1448            public void setPersistence(AssetEntryPersistence persistence) {
1449                    _persistence = persistence;
1450    
1451                    ReferenceRegistry.registerReference(AssetEntryUtil.class, "_persistence");
1452            }
1453    
1454            private static AssetEntryPersistence _persistence;
1455    }