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