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