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