001    /**
002     * Copyright (c) 2000-2010 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.service.ServiceContext;
022    
023    import com.liferay.portlet.asset.model.AssetTag;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the asset tag service.
029     *
030     * <p>
031     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see AssetTagPersistence
036     * @see AssetTagPersistenceImpl
037     * @generated
038     */
039    public class AssetTagUtil {
040            /**
041             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
042             */
043            public static void clearCache() {
044                    getPersistence().clearCache();
045            }
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
049             */
050            public static void clearCache(AssetTag assetTag) {
051                    getPersistence().clearCache(assetTag);
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
056             */
057            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
058                    throws SystemException {
059                    return getPersistence().countWithDynamicQuery(dynamicQuery);
060            }
061    
062            /**
063             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
064             */
065            public static List<AssetTag> findWithDynamicQuery(DynamicQuery dynamicQuery)
066                    throws SystemException {
067                    return getPersistence().findWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
072             */
073            public static List<AssetTag> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery, int start, int end)
075                    throws SystemException {
076                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
077            }
078    
079            /**
080             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
081             */
082            public static List<AssetTag> findWithDynamicQuery(
083                    DynamicQuery dynamicQuery, int start, int end,
084                    OrderByComparator orderByComparator) throws SystemException {
085                    return getPersistence()
086                                       .findWithDynamicQuery(dynamicQuery, start, end,
087                            orderByComparator);
088            }
089    
090            /**
091             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
092             */
093            public static AssetTag remove(AssetTag assetTag) throws SystemException {
094                    return getPersistence().remove(assetTag);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static AssetTag update(AssetTag assetTag, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(assetTag, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static AssetTag update(AssetTag assetTag, boolean merge,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(assetTag, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the asset tag in the entity cache if it is enabled.
115            *
116            * @param assetTag the asset tag to cache
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.asset.model.AssetTag assetTag) {
120                    getPersistence().cacheResult(assetTag);
121            }
122    
123            /**
124            * Caches the asset tags in the entity cache if it is enabled.
125            *
126            * @param assetTags the asset tags to cache
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags) {
130                    getPersistence().cacheResult(assetTags);
131            }
132    
133            /**
134            * Creates a new asset tag with the primary key.
135            *
136            * @param tagId the primary key for the new asset tag
137            * @return the new asset tag
138            */
139            public static com.liferay.portlet.asset.model.AssetTag create(long tagId) {
140                    return getPersistence().create(tagId);
141            }
142    
143            /**
144            * Removes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.
145            *
146            * @param tagId the primary key of the asset tag to remove
147            * @return the asset tag that was removed
148            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public static com.liferay.portlet.asset.model.AssetTag remove(long tagId)
152                    throws com.liferay.portal.kernel.exception.SystemException,
153                            com.liferay.portlet.asset.NoSuchTagException {
154                    return getPersistence().remove(tagId);
155            }
156    
157            public static com.liferay.portlet.asset.model.AssetTag updateImpl(
158                    com.liferay.portlet.asset.model.AssetTag assetTag, boolean merge)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return getPersistence().updateImpl(assetTag, merge);
161            }
162    
163            /**
164            * Finds the asset tag with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagException} if it could not be found.
165            *
166            * @param tagId the primary key of the asset tag to find
167            * @return the asset tag
168            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public static com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(
172                    long tagId)
173                    throws com.liferay.portal.kernel.exception.SystemException,
174                            com.liferay.portlet.asset.NoSuchTagException {
175                    return getPersistence().findByPrimaryKey(tagId);
176            }
177    
178            /**
179            * Finds the asset tag with the primary key or returns <code>null</code> if it could not be found.
180            *
181            * @param tagId the primary key of the asset tag to find
182            * @return the asset tag, or <code>null</code> if a asset tag with the primary key could not be found
183            * @throws SystemException if a system exception occurred
184            */
185            public static com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(
186                    long tagId) throws com.liferay.portal.kernel.exception.SystemException {
187                    return getPersistence().fetchByPrimaryKey(tagId);
188            }
189    
190            /**
191            * Finds all the asset tags where groupId = &#63;.
192            *
193            * @param groupId the group id to search with
194            * @return the matching asset tags
195            * @throws SystemException if a system exception occurred
196            */
197            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
198                    long groupId)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return getPersistence().findByGroupId(groupId);
201            }
202    
203            /**
204            * Finds a range of all the asset tags where groupId = &#63;.
205            *
206            * <p>
207            * 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.
208            * </p>
209            *
210            * @param groupId the group id to search with
211            * @param start the lower bound of the range of asset tags to return
212            * @param end the upper bound of the range of asset tags to return (not inclusive)
213            * @return the range of matching asset tags
214            * @throws SystemException if a system exception occurred
215            */
216            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
217                    long groupId, int start, int end)
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return getPersistence().findByGroupId(groupId, start, end);
220            }
221    
222            /**
223            * Finds an ordered range of all the asset tags where groupId = &#63;.
224            *
225            * <p>
226            * 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.
227            * </p>
228            *
229            * @param groupId the group id to search with
230            * @param start the lower bound of the range of asset tags to return
231            * @param end the upper bound of the range of asset tags to return (not inclusive)
232            * @param orderByComparator the comparator to order the results by
233            * @return the ordered range of matching asset tags
234            * @throws SystemException if a system exception occurred
235            */
236            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
237                    long groupId, int start, int end,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return getPersistence()
241                                       .findByGroupId(groupId, start, end, orderByComparator);
242            }
243    
244            /**
245            * Finds the first asset tag in the ordered set where groupId = &#63;.
246            *
247            * <p>
248            * 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.
249            * </p>
250            *
251            * @param groupId the group id to search with
252            * @param orderByComparator the comparator to order the set by
253            * @return the first matching asset tag
254            * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found
255            * @throws SystemException if a system exception occurred
256            */
257            public static com.liferay.portlet.asset.model.AssetTag findByGroupId_First(
258                    long groupId,
259                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
260                    throws com.liferay.portal.kernel.exception.SystemException,
261                            com.liferay.portlet.asset.NoSuchTagException {
262                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
263            }
264    
265            /**
266            * Finds the last asset tag in the ordered set where groupId = &#63;.
267            *
268            * <p>
269            * 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.
270            * </p>
271            *
272            * @param groupId the group id to search with
273            * @param orderByComparator the comparator to order the set by
274            * @return the last matching asset tag
275            * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found
276            * @throws SystemException if a system exception occurred
277            */
278            public static com.liferay.portlet.asset.model.AssetTag findByGroupId_Last(
279                    long groupId,
280                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
281                    throws com.liferay.portal.kernel.exception.SystemException,
282                            com.liferay.portlet.asset.NoSuchTagException {
283                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
284            }
285    
286            /**
287            * Finds the asset tags before and after the current asset tag in the ordered set where groupId = &#63;.
288            *
289            * <p>
290            * 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.
291            * </p>
292            *
293            * @param tagId the primary key of the current asset tag
294            * @param groupId the group id to search with
295            * @param orderByComparator the comparator to order the set by
296            * @return the previous, current, and next asset tag
297            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public static com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext(
301                    long tagId, long groupId,
302                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303                    throws com.liferay.portal.kernel.exception.SystemException,
304                            com.liferay.portlet.asset.NoSuchTagException {
305                    return getPersistence()
306                                       .findByGroupId_PrevAndNext(tagId, groupId, orderByComparator);
307            }
308    
309            /**
310            * Filters by the user's permissions and finds all the asset tags where groupId = &#63;.
311            *
312            * @param groupId the group id to search with
313            * @return the matching asset tags that the user has permission to view
314            * @throws SystemException if a system exception occurred
315            */
316            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
317                    long groupId)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return getPersistence().filterFindByGroupId(groupId);
320            }
321    
322            /**
323            * Filters by the user's permissions and finds a range of all the asset tags where groupId = &#63;.
324            *
325            * <p>
326            * 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.
327            * </p>
328            *
329            * @param groupId the group id to search with
330            * @param start the lower bound of the range of asset tags to return
331            * @param end the upper bound of the range of asset tags to return (not inclusive)
332            * @return the range of matching asset tags that the user has permission to view
333            * @throws SystemException if a system exception occurred
334            */
335            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
336                    long groupId, int start, int end)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return getPersistence().filterFindByGroupId(groupId, start, end);
339            }
340    
341            /**
342            * Filters by the user's permissions and finds an ordered range of all the asset tags where groupId = &#63;.
343            *
344            * <p>
345            * 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.
346            * </p>
347            *
348            * @param groupId the group id to search with
349            * @param start the lower bound of the range of asset tags to return
350            * @param end the upper bound of the range of asset tags to return (not inclusive)
351            * @param orderByComparator the comparator to order the results by
352            * @return the ordered range of matching asset tags that the user has permission to view
353            * @throws SystemException if a system exception occurred
354            */
355            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
356                    long groupId, int start, int end,
357                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return getPersistence()
360                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
361            }
362    
363            /**
364            * Finds all the asset tags.
365            *
366            * @return the asset tags
367            * @throws SystemException if a system exception occurred
368            */
369            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return getPersistence().findAll();
372            }
373    
374            /**
375            * Finds a range of all the asset tags.
376            *
377            * <p>
378            * 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.
379            * </p>
380            *
381            * @param start the lower bound of the range of asset tags to return
382            * @param end the upper bound of the range of asset tags to return (not inclusive)
383            * @return the range of asset tags
384            * @throws SystemException if a system exception occurred
385            */
386            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
387                    int start, int end)
388                    throws com.liferay.portal.kernel.exception.SystemException {
389                    return getPersistence().findAll(start, end);
390            }
391    
392            /**
393            * Finds an ordered range of all the asset tags.
394            *
395            * <p>
396            * 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.
397            * </p>
398            *
399            * @param start the lower bound of the range of asset tags to return
400            * @param end the upper bound of the range of asset tags to return (not inclusive)
401            * @param orderByComparator the comparator to order the results by
402            * @return the ordered range of asset tags
403            * @throws SystemException if a system exception occurred
404            */
405            public static java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
406                    int start, int end,
407                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return getPersistence().findAll(start, end, orderByComparator);
410            }
411    
412            /**
413            * Removes all the asset tags where groupId = &#63; from the database.
414            *
415            * @param groupId the group id to search with
416            * @throws SystemException if a system exception occurred
417            */
418            public static void removeByGroupId(long groupId)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    getPersistence().removeByGroupId(groupId);
421            }
422    
423            /**
424            * Removes all the asset tags from the database.
425            *
426            * @throws SystemException if a system exception occurred
427            */
428            public static void removeAll()
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    getPersistence().removeAll();
431            }
432    
433            /**
434            * Counts all the asset tags where groupId = &#63;.
435            *
436            * @param groupId the group id to search with
437            * @return the number of matching asset tags
438            * @throws SystemException if a system exception occurred
439            */
440            public static int countByGroupId(long groupId)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return getPersistence().countByGroupId(groupId);
443            }
444    
445            /**
446            * Filters by the user's permissions and counts all the asset tags where groupId = &#63;.
447            *
448            * @param groupId the group id to search with
449            * @return the number of matching asset tags that the user has permission to view
450            * @throws SystemException if a system exception occurred
451            */
452            public static int filterCountByGroupId(long groupId)
453                    throws com.liferay.portal.kernel.exception.SystemException {
454                    return getPersistence().filterCountByGroupId(groupId);
455            }
456    
457            /**
458            * Counts all the asset tags.
459            *
460            * @return the number of asset tags
461            * @throws SystemException if a system exception occurred
462            */
463            public static int countAll()
464                    throws com.liferay.portal.kernel.exception.SystemException {
465                    return getPersistence().countAll();
466            }
467    
468            /**
469            * Gets all the asset entries associated with the asset tag.
470            *
471            * @param pk the primary key of the asset tag to get the associated asset entries for
472            * @return the asset entries associated with the asset tag
473            * @throws SystemException if a system exception occurred
474            */
475            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
476                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
477                    return getPersistence().getAssetEntries(pk);
478            }
479    
480            /**
481            * Gets a range of all the asset entries associated with the asset tag.
482            *
483            * <p>
484            * 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.
485            * </p>
486            *
487            * @param pk the primary key of the asset tag to get the associated asset entries for
488            * @param start the lower bound of the range of asset tags to return
489            * @param end the upper bound of the range of asset tags to return (not inclusive)
490            * @return the range of asset entries associated with the asset tag
491            * @throws SystemException if a system exception occurred
492            */
493            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
494                    long pk, int start, int end)
495                    throws com.liferay.portal.kernel.exception.SystemException {
496                    return getPersistence().getAssetEntries(pk, start, end);
497            }
498    
499            /**
500            * Gets an ordered range of all the asset entries associated with the asset tag.
501            *
502            * <p>
503            * 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.
504            * </p>
505            *
506            * @param pk the primary key of the asset tag to get the associated asset entries for
507            * @param start the lower bound of the range of asset tags to return
508            * @param end the upper bound of the range of asset tags to return (not inclusive)
509            * @param orderByComparator the comparator to order the results by
510            * @return the ordered range of asset entries associated with the asset tag
511            * @throws SystemException if a system exception occurred
512            */
513            public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
514                    long pk, int start, int end,
515                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
516                    throws com.liferay.portal.kernel.exception.SystemException {
517                    return getPersistence()
518                                       .getAssetEntries(pk, start, end, orderByComparator);
519            }
520    
521            /**
522            * Gets the number of asset entries associated with the asset tag.
523            *
524            * @param pk the primary key of the asset tag to get the number of associated asset entries for
525            * @return the number of asset entries associated with the asset tag
526            * @throws SystemException if a system exception occurred
527            */
528            public static int getAssetEntriesSize(long pk)
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    return getPersistence().getAssetEntriesSize(pk);
531            }
532    
533            /**
534            * Determines whether the asset entry is associated with the asset tag.
535            *
536            * @param pk the primary key of the asset tag
537            * @param assetEntryPK the primary key of the asset entry
538            * @return whether the asset entry is associated with the asset tag
539            * @throws SystemException if a system exception occurred
540            */
541            public static boolean containsAssetEntry(long pk, long assetEntryPK)
542                    throws com.liferay.portal.kernel.exception.SystemException {
543                    return getPersistence().containsAssetEntry(pk, assetEntryPK);
544            }
545    
546            /**
547            * Determines whether the asset tag has any asset entries associated with it.
548            *
549            * @param pk the primary key of the asset tag to check for associations with asset entries
550            * @return whether the asset tag has any asset entries associated with it
551            * @throws SystemException if a system exception occurred
552            */
553            public static boolean containsAssetEntries(long pk)
554                    throws com.liferay.portal.kernel.exception.SystemException {
555                    return getPersistence().containsAssetEntries(pk);
556            }
557    
558            /**
559            * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
560            *
561            * @param pk the primary key of the asset tag
562            * @param assetEntryPK the primary key of the asset entry
563            * @throws SystemException if a system exception occurred
564            */
565            public static void addAssetEntry(long pk, long assetEntryPK)
566                    throws com.liferay.portal.kernel.exception.SystemException {
567                    getPersistence().addAssetEntry(pk, assetEntryPK);
568            }
569    
570            /**
571            * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
572            *
573            * @param pk the primary key of the asset tag
574            * @param assetEntry the asset entry
575            * @throws SystemException if a system exception occurred
576            */
577            public static void addAssetEntry(long pk,
578                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
579                    throws com.liferay.portal.kernel.exception.SystemException {
580                    getPersistence().addAssetEntry(pk, assetEntry);
581            }
582    
583            /**
584            * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
585            *
586            * @param pk the primary key of the asset tag
587            * @param assetEntryPKs the primary keys of the asset entries
588            * @throws SystemException if a system exception occurred
589            */
590            public static void addAssetEntries(long pk, long[] assetEntryPKs)
591                    throws com.liferay.portal.kernel.exception.SystemException {
592                    getPersistence().addAssetEntries(pk, assetEntryPKs);
593            }
594    
595            /**
596            * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
597            *
598            * @param pk the primary key of the asset tag
599            * @param assetEntries the asset entries
600            * @throws SystemException if a system exception occurred
601            */
602            public static void addAssetEntries(long pk,
603                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    getPersistence().addAssetEntries(pk, assetEntries);
606            }
607    
608            /**
609            * Clears all associations between the asset tag and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
610            *
611            * @param pk the primary key of the asset tag to clear the associated asset entries from
612            * @throws SystemException if a system exception occurred
613            */
614            public static void clearAssetEntries(long pk)
615                    throws com.liferay.portal.kernel.exception.SystemException {
616                    getPersistence().clearAssetEntries(pk);
617            }
618    
619            /**
620            * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
621            *
622            * @param pk the primary key of the asset tag
623            * @param assetEntryPK the primary key of the asset entry
624            * @throws SystemException if a system exception occurred
625            */
626            public static void removeAssetEntry(long pk, long assetEntryPK)
627                    throws com.liferay.portal.kernel.exception.SystemException {
628                    getPersistence().removeAssetEntry(pk, assetEntryPK);
629            }
630    
631            /**
632            * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
633            *
634            * @param pk the primary key of the asset tag
635            * @param assetEntry the asset entry
636            * @throws SystemException if a system exception occurred
637            */
638            public static void removeAssetEntry(long pk,
639                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
640                    throws com.liferay.portal.kernel.exception.SystemException {
641                    getPersistence().removeAssetEntry(pk, assetEntry);
642            }
643    
644            /**
645            * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
646            *
647            * @param pk the primary key of the asset tag
648            * @param assetEntryPKs the primary keys of the asset entries
649            * @throws SystemException if a system exception occurred
650            */
651            public static void removeAssetEntries(long pk, long[] assetEntryPKs)
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    getPersistence().removeAssetEntries(pk, assetEntryPKs);
654            }
655    
656            /**
657            * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
658            *
659            * @param pk the primary key of the asset tag
660            * @param assetEntries the asset entries
661            * @throws SystemException if a system exception occurred
662            */
663            public static void removeAssetEntries(long pk,
664                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
665                    throws com.liferay.portal.kernel.exception.SystemException {
666                    getPersistence().removeAssetEntries(pk, assetEntries);
667            }
668    
669            /**
670            * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
671            *
672            * @param pk the primary key of the asset tag to set the associations for
673            * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset tag
674            * @throws SystemException if a system exception occurred
675            */
676            public static void setAssetEntries(long pk, long[] assetEntryPKs)
677                    throws com.liferay.portal.kernel.exception.SystemException {
678                    getPersistence().setAssetEntries(pk, assetEntryPKs);
679            }
680    
681            /**
682            * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
683            *
684            * @param pk the primary key of the asset tag to set the associations for
685            * @param assetEntries the asset entries to be associated with the asset tag
686            * @throws SystemException if a system exception occurred
687            */
688            public static void setAssetEntries(long pk,
689                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
690                    throws com.liferay.portal.kernel.exception.SystemException {
691                    getPersistence().setAssetEntries(pk, assetEntries);
692            }
693    
694            public static AssetTagPersistence getPersistence() {
695                    if (_persistence == null) {
696                            _persistence = (AssetTagPersistence)PortalBeanLocatorUtil.locate(AssetTagPersistence.class.getName());
697                    }
698    
699                    return _persistence;
700            }
701    
702            public void setPersistence(AssetTagPersistence persistence) {
703                    _persistence = persistence;
704            }
705    
706            private static AssetTagPersistence _persistence;
707    }