001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 to cache
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 to cache
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 to remove
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            * Finds 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 to find
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            * Finds 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 to find
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            * Finds all the asset entries where companyId = &#63;.
203            *
204            * @param companyId the company ID to search with
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            * Finds 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 to search with
222            * @param start the lower bound of the range of asset entries to return
223            * @param end the upper bound of the range of asset entries to return (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            * Finds 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 to search with
241            * @param start the lower bound of the range of asset entries to return
242            * @param end the upper bound of the range of asset entries to return (not inclusive)
243            * @param orderByComparator the comparator to order the results by
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            * Finds 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 to search with
263            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
285            * @param orderByComparator the comparator to order the set by
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            * Finds 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 to search with
308            * @param orderByComparator the comparator to order the set by
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            * Finds the asset entry where groupId = &#63; and classUuid = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found.
325            *
326            * @param groupId the group ID to search with
327            * @param classUuid the class uuid to search with
328            * @return the matching asset entry
329            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
330            * @throws SystemException if a system exception occurred
331            */
332            public static com.liferay.portlet.asset.model.AssetEntry findByG_CU(
333                    long groupId, java.lang.String classUuid)
334                    throws com.liferay.portal.kernel.exception.SystemException,
335                            com.liferay.portlet.asset.NoSuchEntryException {
336                    return getPersistence().findByG_CU(groupId, classUuid);
337            }
338    
339            /**
340            * Finds the asset entry where groupId = &#63; and classUuid = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
341            *
342            * @param groupId the group ID to search with
343            * @param classUuid the class uuid to search with
344            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
345            * @throws SystemException if a system exception occurred
346            */
347            public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
348                    long groupId, java.lang.String classUuid)
349                    throws com.liferay.portal.kernel.exception.SystemException {
350                    return getPersistence().fetchByG_CU(groupId, classUuid);
351            }
352    
353            /**
354            * Finds 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.
355            *
356            * @param groupId the group ID to search with
357            * @param classUuid the class uuid to search with
358            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
359            * @throws SystemException if a system exception occurred
360            */
361            public static com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
362                    long groupId, java.lang.String classUuid, boolean retrieveFromCache)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return getPersistence()
365                                       .fetchByG_CU(groupId, classUuid, retrieveFromCache);
366            }
367    
368            /**
369            * Finds the asset entry where classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found.
370            *
371            * @param classNameId the class name ID to search with
372            * @param classPK the class p k to search with
373            * @return the matching asset entry
374            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
375            * @throws SystemException if a system exception occurred
376            */
377            public static com.liferay.portlet.asset.model.AssetEntry findByC_C(
378                    long classNameId, long classPK)
379                    throws com.liferay.portal.kernel.exception.SystemException,
380                            com.liferay.portlet.asset.NoSuchEntryException {
381                    return getPersistence().findByC_C(classNameId, classPK);
382            }
383    
384            /**
385            * Finds the asset entry where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
386            *
387            * @param classNameId the class name ID to search with
388            * @param classPK the class p k to search with
389            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
390            * @throws SystemException if a system exception occurred
391            */
392            public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
393                    long classNameId, long classPK)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return getPersistence().fetchByC_C(classNameId, classPK);
396            }
397    
398            /**
399            * Finds 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.
400            *
401            * @param classNameId the class name ID to search with
402            * @param classPK the class p k to search with
403            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
404            * @throws SystemException if a system exception occurred
405            */
406            public static com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
407                    long classNameId, long classPK, boolean retrieveFromCache)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return getPersistence()
410                                       .fetchByC_C(classNameId, classPK, retrieveFromCache);
411            }
412    
413            /**
414            * Finds all the asset entries.
415            *
416            * @return the asset entries
417            * @throws SystemException if a system exception occurred
418            */
419            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll()
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    return getPersistence().findAll();
422            }
423    
424            /**
425            * Finds a range of all the asset entries.
426            *
427            * <p>
428            * 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.
429            * </p>
430            *
431            * @param start the lower bound of the range of asset entries to return
432            * @param end the upper bound of the range of asset entries to return (not inclusive)
433            * @return the range of asset entries
434            * @throws SystemException if a system exception occurred
435            */
436            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
437                    int start, int end)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return getPersistence().findAll(start, end);
440            }
441    
442            /**
443            * Finds an ordered range of all the asset entries.
444            *
445            * <p>
446            * 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.
447            * </p>
448            *
449            * @param start the lower bound of the range of asset entries to return
450            * @param end the upper bound of the range of asset entries to return (not inclusive)
451            * @param orderByComparator the comparator to order the results by
452            * @return the ordered range of asset entries
453            * @throws SystemException if a system exception occurred
454            */
455            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
456                    int start, int end,
457                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
458                    throws com.liferay.portal.kernel.exception.SystemException {
459                    return getPersistence().findAll(start, end, orderByComparator);
460            }
461    
462            /**
463            * Removes all the asset entries where companyId = &#63; from the database.
464            *
465            * @param companyId the company ID to search with
466            * @throws SystemException if a system exception occurred
467            */
468            public static void removeByCompanyId(long companyId)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    getPersistence().removeByCompanyId(companyId);
471            }
472    
473            /**
474            * Removes the asset entry where groupId = &#63; and classUuid = &#63; from the database.
475            *
476            * @param groupId the group ID to search with
477            * @param classUuid the class uuid to search with
478            * @throws SystemException if a system exception occurred
479            */
480            public static void removeByG_CU(long groupId, java.lang.String classUuid)
481                    throws com.liferay.portal.kernel.exception.SystemException,
482                            com.liferay.portlet.asset.NoSuchEntryException {
483                    getPersistence().removeByG_CU(groupId, classUuid);
484            }
485    
486            /**
487            * Removes the asset entry where classNameId = &#63; and classPK = &#63; from the database.
488            *
489            * @param classNameId the class name ID to search with
490            * @param classPK the class p k to search with
491            * @throws SystemException if a system exception occurred
492            */
493            public static void removeByC_C(long classNameId, long classPK)
494                    throws com.liferay.portal.kernel.exception.SystemException,
495                            com.liferay.portlet.asset.NoSuchEntryException {
496                    getPersistence().removeByC_C(classNameId, classPK);
497            }
498    
499            /**
500            * Removes all the asset entries from the database.
501            *
502            * @throws SystemException if a system exception occurred
503            */
504            public static void removeAll()
505                    throws com.liferay.portal.kernel.exception.SystemException {
506                    getPersistence().removeAll();
507            }
508    
509            /**
510            * Counts all the asset entries where companyId = &#63;.
511            *
512            * @param companyId the company ID to search with
513            * @return the number of matching asset entries
514            * @throws SystemException if a system exception occurred
515            */
516            public static int countByCompanyId(long companyId)
517                    throws com.liferay.portal.kernel.exception.SystemException {
518                    return getPersistence().countByCompanyId(companyId);
519            }
520    
521            /**
522            * Counts all the asset entries where groupId = &#63; and classUuid = &#63;.
523            *
524            * @param groupId the group ID to search with
525            * @param classUuid the class uuid to search with
526            * @return the number of matching asset entries
527            * @throws SystemException if a system exception occurred
528            */
529            public static int countByG_CU(long groupId, java.lang.String classUuid)
530                    throws com.liferay.portal.kernel.exception.SystemException {
531                    return getPersistence().countByG_CU(groupId, classUuid);
532            }
533    
534            /**
535            * Counts all the asset entries where classNameId = &#63; and classPK = &#63;.
536            *
537            * @param classNameId the class name ID to search with
538            * @param classPK the class p k to search with
539            * @return the number of matching asset entries
540            * @throws SystemException if a system exception occurred
541            */
542            public static int countByC_C(long classNameId, long classPK)
543                    throws com.liferay.portal.kernel.exception.SystemException {
544                    return getPersistence().countByC_C(classNameId, classPK);
545            }
546    
547            /**
548            * Counts all the asset entries.
549            *
550            * @return the number of asset entries
551            * @throws SystemException if a system exception occurred
552            */
553            public static int countAll()
554                    throws com.liferay.portal.kernel.exception.SystemException {
555                    return getPersistence().countAll();
556            }
557    
558            /**
559            * Gets all the asset categories associated with the asset entry.
560            *
561            * @param pk the primary key of the asset entry to get the associated asset categories for
562            * @return the asset categories associated with the asset entry
563            * @throws SystemException if a system exception occurred
564            */
565            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
566                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
567                    return getPersistence().getAssetCategories(pk);
568            }
569    
570            /**
571            * Gets a range of all the asset categories associated with the asset entry.
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 pk the primary key of the asset entry to get the associated asset categories for
578            * @param start the lower bound of the range of asset entries to return
579            * @param end the upper bound of the range of asset entries to return (not inclusive)
580            * @return the range of asset categories associated with the asset entry
581            * @throws SystemException if a system exception occurred
582            */
583            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
584                    long pk, int start, int end)
585                    throws com.liferay.portal.kernel.exception.SystemException {
586                    return getPersistence().getAssetCategories(pk, start, end);
587            }
588    
589            /**
590            * Gets an ordered range of all the asset categories associated with the asset entry.
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 pk the primary key of the asset entry to get the associated asset categories for
597            * @param start the lower bound of the range of asset entries to return
598            * @param end the upper bound of the range of asset entries to return (not inclusive)
599            * @param orderByComparator the comparator to order the results by
600            * @return the ordered range of asset categories associated with the asset entry
601            * @throws SystemException if a system exception occurred
602            */
603            public static java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
604                    long pk, int start, int end,
605                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
606                    throws com.liferay.portal.kernel.exception.SystemException {
607                    return getPersistence()
608                                       .getAssetCategories(pk, start, end, orderByComparator);
609            }
610    
611            /**
612            * Gets the number of asset categories associated with the asset entry.
613            *
614            * @param pk the primary key of the asset entry to get the number of associated asset categories for
615            * @return the number of asset categories associated with the asset entry
616            * @throws SystemException if a system exception occurred
617            */
618            public static int getAssetCategoriesSize(long pk)
619                    throws com.liferay.portal.kernel.exception.SystemException {
620                    return getPersistence().getAssetCategoriesSize(pk);
621            }
622    
623            /**
624            * Determines if the asset category is associated with the asset entry.
625            *
626            * @param pk the primary key of the asset entry
627            * @param assetCategoryPK the primary key of the asset category
628            * @return <code>true</code> if the asset category is associated with the asset entry; <code>false</code> otherwise
629            * @throws SystemException if a system exception occurred
630            */
631            public static boolean containsAssetCategory(long pk, long assetCategoryPK)
632                    throws com.liferay.portal.kernel.exception.SystemException {
633                    return getPersistence().containsAssetCategory(pk, assetCategoryPK);
634            }
635    
636            /**
637            * Determines if the asset entry has any asset categories associated with it.
638            *
639            * @param pk the primary key of the asset entry to check for associations with asset categories
640            * @return <code>true</code> if the asset entry has any asset categories associated with it; <code>false</code> otherwise
641            * @throws SystemException if a system exception occurred
642            */
643            public static boolean containsAssetCategories(long pk)
644                    throws com.liferay.portal.kernel.exception.SystemException {
645                    return getPersistence().containsAssetCategories(pk);
646            }
647    
648            /**
649            * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
650            *
651            * @param pk the primary key of the asset entry
652            * @param assetCategoryPK the primary key of the asset category
653            * @throws SystemException if a system exception occurred
654            */
655            public static void addAssetCategory(long pk, long assetCategoryPK)
656                    throws com.liferay.portal.kernel.exception.SystemException {
657                    getPersistence().addAssetCategory(pk, assetCategoryPK);
658            }
659    
660            /**
661            * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
662            *
663            * @param pk the primary key of the asset entry
664            * @param assetCategory the asset category
665            * @throws SystemException if a system exception occurred
666            */
667            public static void addAssetCategory(long pk,
668                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
669                    throws com.liferay.portal.kernel.exception.SystemException {
670                    getPersistence().addAssetCategory(pk, assetCategory);
671            }
672    
673            /**
674            * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
675            *
676            * @param pk the primary key of the asset entry
677            * @param assetCategoryPKs the primary keys of the asset categories
678            * @throws SystemException if a system exception occurred
679            */
680            public static void addAssetCategories(long pk, long[] assetCategoryPKs)
681                    throws com.liferay.portal.kernel.exception.SystemException {
682                    getPersistence().addAssetCategories(pk, assetCategoryPKs);
683            }
684    
685            /**
686            * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
687            *
688            * @param pk the primary key of the asset entry
689            * @param assetCategories the asset categories
690            * @throws SystemException if a system exception occurred
691            */
692            public static void addAssetCategories(long pk,
693                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
694                    throws com.liferay.portal.kernel.exception.SystemException {
695                    getPersistence().addAssetCategories(pk, assetCategories);
696            }
697    
698            /**
699            * Clears all associations between the asset entry and its asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
700            *
701            * @param pk the primary key of the asset entry to clear the associated asset categories from
702            * @throws SystemException if a system exception occurred
703            */
704            public static void clearAssetCategories(long pk)
705                    throws com.liferay.portal.kernel.exception.SystemException {
706                    getPersistence().clearAssetCategories(pk);
707            }
708    
709            /**
710            * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
711            *
712            * @param pk the primary key of the asset entry
713            * @param assetCategoryPK the primary key of the asset category
714            * @throws SystemException if a system exception occurred
715            */
716            public static void removeAssetCategory(long pk, long assetCategoryPK)
717                    throws com.liferay.portal.kernel.exception.SystemException {
718                    getPersistence().removeAssetCategory(pk, assetCategoryPK);
719            }
720    
721            /**
722            * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
723            *
724            * @param pk the primary key of the asset entry
725            * @param assetCategory the asset category
726            * @throws SystemException if a system exception occurred
727            */
728            public static void removeAssetCategory(long pk,
729                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
730                    throws com.liferay.portal.kernel.exception.SystemException {
731                    getPersistence().removeAssetCategory(pk, assetCategory);
732            }
733    
734            /**
735            * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
736            *
737            * @param pk the primary key of the asset entry
738            * @param assetCategoryPKs the primary keys of the asset categories
739            * @throws SystemException if a system exception occurred
740            */
741            public static void removeAssetCategories(long pk, long[] assetCategoryPKs)
742                    throws com.liferay.portal.kernel.exception.SystemException {
743                    getPersistence().removeAssetCategories(pk, assetCategoryPKs);
744            }
745    
746            /**
747            * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
748            *
749            * @param pk the primary key of the asset entry
750            * @param assetCategories the asset categories
751            * @throws SystemException if a system exception occurred
752            */
753            public static void removeAssetCategories(long pk,
754                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
755                    throws com.liferay.portal.kernel.exception.SystemException {
756                    getPersistence().removeAssetCategories(pk, assetCategories);
757            }
758    
759            /**
760            * 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.
761            *
762            * @param pk the primary key of the asset entry to set the associations for
763            * @param assetCategoryPKs the primary keys of the asset categories to be associated with the asset entry
764            * @throws SystemException if a system exception occurred
765            */
766            public static void setAssetCategories(long pk, long[] assetCategoryPKs)
767                    throws com.liferay.portal.kernel.exception.SystemException {
768                    getPersistence().setAssetCategories(pk, assetCategoryPKs);
769            }
770    
771            /**
772            * 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.
773            *
774            * @param pk the primary key of the asset entry to set the associations for
775            * @param assetCategories the asset categories to be associated with the asset entry
776            * @throws SystemException if a system exception occurred
777            */
778            public static void setAssetCategories(long pk,
779                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
780                    throws com.liferay.portal.kernel.exception.SystemException {
781                    getPersistence().setAssetCategories(pk, assetCategories);
782            }
783    
784            /**
785            * Gets all the asset tags associated with the asset entry.
786            *
787            * @param pk the primary key of the asset entry to get the associated asset tags for
788            * @return the asset tags associated with the asset entry
789            * @throws SystemException if a system exception occurred
790            */
791            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
792                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
793                    return getPersistence().getAssetTags(pk);
794            }
795    
796            /**
797            * Gets a range of all the asset tags associated with the asset entry.
798            *
799            * <p>
800            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
801            * </p>
802            *
803            * @param pk the primary key of the asset entry to get the associated asset tags for
804            * @param start the lower bound of the range of asset entries to return
805            * @param end the upper bound of the range of asset entries to return (not inclusive)
806            * @return the range of asset tags associated with the asset entry
807            * @throws SystemException if a system exception occurred
808            */
809            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
810                    long pk, int start, int end)
811                    throws com.liferay.portal.kernel.exception.SystemException {
812                    return getPersistence().getAssetTags(pk, start, end);
813            }
814    
815            /**
816            * Gets an ordered range of all the asset tags associated with the asset entry.
817            *
818            * <p>
819            * 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.
820            * </p>
821            *
822            * @param pk the primary key of the asset entry to get the associated asset tags for
823            * @param start the lower bound of the range of asset entries to return
824            * @param end the upper bound of the range of asset entries to return (not inclusive)
825            * @param orderByComparator the comparator to order the results by
826            * @return the ordered range of asset tags associated with the asset entry
827            * @throws SystemException if a system exception occurred
828            */
829            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
830                    long pk, int start, int end,
831                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
832                    throws com.liferay.portal.kernel.exception.SystemException {
833                    return getPersistence().getAssetTags(pk, start, end, orderByComparator);
834            }
835    
836            /**
837            * Gets the number of asset tags associated with the asset entry.
838            *
839            * @param pk the primary key of the asset entry to get the number of associated asset tags for
840            * @return the number of asset tags associated with the asset entry
841            * @throws SystemException if a system exception occurred
842            */
843            public static int getAssetTagsSize(long pk)
844                    throws com.liferay.portal.kernel.exception.SystemException {
845                    return getPersistence().getAssetTagsSize(pk);
846            }
847    
848            /**
849            * Determines if the asset tag is associated with the asset entry.
850            *
851            * @param pk the primary key of the asset entry
852            * @param assetTagPK the primary key of the asset tag
853            * @return <code>true</code> if the asset tag is associated with the asset entry; <code>false</code> otherwise
854            * @throws SystemException if a system exception occurred
855            */
856            public static boolean containsAssetTag(long pk, long assetTagPK)
857                    throws com.liferay.portal.kernel.exception.SystemException {
858                    return getPersistence().containsAssetTag(pk, assetTagPK);
859            }
860    
861            /**
862            * Determines if the asset entry has any asset tags associated with it.
863            *
864            * @param pk the primary key of the asset entry to check for associations with asset tags
865            * @return <code>true</code> if the asset entry has any asset tags associated with it; <code>false</code> otherwise
866            * @throws SystemException if a system exception occurred
867            */
868            public static boolean containsAssetTags(long pk)
869                    throws com.liferay.portal.kernel.exception.SystemException {
870                    return getPersistence().containsAssetTags(pk);
871            }
872    
873            /**
874            * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
875            *
876            * @param pk the primary key of the asset entry
877            * @param assetTagPK the primary key of the asset tag
878            * @throws SystemException if a system exception occurred
879            */
880            public static void addAssetTag(long pk, long assetTagPK)
881                    throws com.liferay.portal.kernel.exception.SystemException {
882                    getPersistence().addAssetTag(pk, assetTagPK);
883            }
884    
885            /**
886            * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
887            *
888            * @param pk the primary key of the asset entry
889            * @param assetTag the asset tag
890            * @throws SystemException if a system exception occurred
891            */
892            public static void addAssetTag(long pk,
893                    com.liferay.portlet.asset.model.AssetTag assetTag)
894                    throws com.liferay.portal.kernel.exception.SystemException {
895                    getPersistence().addAssetTag(pk, assetTag);
896            }
897    
898            /**
899            * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
900            *
901            * @param pk the primary key of the asset entry
902            * @param assetTagPKs the primary keys of the asset tags
903            * @throws SystemException if a system exception occurred
904            */
905            public static void addAssetTags(long pk, long[] assetTagPKs)
906                    throws com.liferay.portal.kernel.exception.SystemException {
907                    getPersistence().addAssetTags(pk, assetTagPKs);
908            }
909    
910            /**
911            * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
912            *
913            * @param pk the primary key of the asset entry
914            * @param assetTags the asset tags
915            * @throws SystemException if a system exception occurred
916            */
917            public static void addAssetTags(long pk,
918                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
919                    throws com.liferay.portal.kernel.exception.SystemException {
920                    getPersistence().addAssetTags(pk, assetTags);
921            }
922    
923            /**
924            * Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
925            *
926            * @param pk the primary key of the asset entry to clear the associated asset tags from
927            * @throws SystemException if a system exception occurred
928            */
929            public static void clearAssetTags(long pk)
930                    throws com.liferay.portal.kernel.exception.SystemException {
931                    getPersistence().clearAssetTags(pk);
932            }
933    
934            /**
935            * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
936            *
937            * @param pk the primary key of the asset entry
938            * @param assetTagPK the primary key of the asset tag
939            * @throws SystemException if a system exception occurred
940            */
941            public static void removeAssetTag(long pk, long assetTagPK)
942                    throws com.liferay.portal.kernel.exception.SystemException {
943                    getPersistence().removeAssetTag(pk, assetTagPK);
944            }
945    
946            /**
947            * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
948            *
949            * @param pk the primary key of the asset entry
950            * @param assetTag the asset tag
951            * @throws SystemException if a system exception occurred
952            */
953            public static void removeAssetTag(long pk,
954                    com.liferay.portlet.asset.model.AssetTag assetTag)
955                    throws com.liferay.portal.kernel.exception.SystemException {
956                    getPersistence().removeAssetTag(pk, assetTag);
957            }
958    
959            /**
960            * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
961            *
962            * @param pk the primary key of the asset entry
963            * @param assetTagPKs the primary keys of the asset tags
964            * @throws SystemException if a system exception occurred
965            */
966            public static void removeAssetTags(long pk, long[] assetTagPKs)
967                    throws com.liferay.portal.kernel.exception.SystemException {
968                    getPersistence().removeAssetTags(pk, assetTagPKs);
969            }
970    
971            /**
972            * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
973            *
974            * @param pk the primary key of the asset entry
975            * @param assetTags the asset tags
976            * @throws SystemException if a system exception occurred
977            */
978            public static void removeAssetTags(long pk,
979                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
980                    throws com.liferay.portal.kernel.exception.SystemException {
981                    getPersistence().removeAssetTags(pk, assetTags);
982            }
983    
984            /**
985            * 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.
986            *
987            * @param pk the primary key of the asset entry to set the associations for
988            * @param assetTagPKs the primary keys of the asset tags to be associated with the asset entry
989            * @throws SystemException if a system exception occurred
990            */
991            public static void setAssetTags(long pk, long[] assetTagPKs)
992                    throws com.liferay.portal.kernel.exception.SystemException {
993                    getPersistence().setAssetTags(pk, assetTagPKs);
994            }
995    
996            /**
997            * 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.
998            *
999            * @param pk the primary key of the asset entry to set the associations for
1000            * @param assetTags the asset tags to be associated with the asset entry
1001            * @throws SystemException if a system exception occurred
1002            */
1003            public static void setAssetTags(long pk,
1004                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
1005                    throws com.liferay.portal.kernel.exception.SystemException {
1006                    getPersistence().setAssetTags(pk, assetTags);
1007            }
1008    
1009            public static AssetEntryPersistence getPersistence() {
1010                    if (_persistence == null) {
1011                            _persistence = (AssetEntryPersistence)PortalBeanLocatorUtil.locate(AssetEntryPersistence.class.getName());
1012    
1013                            ReferenceRegistry.registerReference(AssetEntryUtil.class,
1014                                    "_persistence");
1015                    }
1016    
1017                    return _persistence;
1018            }
1019    
1020            public void setPersistence(AssetEntryPersistence persistence) {
1021                    _persistence = persistence;
1022    
1023                    ReferenceRegistry.registerReference(AssetEntryUtil.class, "_persistence");
1024            }
1025    
1026            private static AssetEntryPersistence _persistence;
1027    }