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