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
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
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
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            * Returns 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
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            * Returns 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
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            * Returns all the asset tags where groupId = &#63;.
104            *
105            * @param groupId the group ID
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            * Returns 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
121            * @param start the lower bound of the range of asset tags
122            * @param end the upper bound of the range of asset tags (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            * Returns 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
138            * @param start the lower bound of the range of asset tags
139            * @param end the upper bound of the range of asset tags (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * Returns 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
157            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
176            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns 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
196            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
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            * Returns all the asset tags that the user has permission to view where groupId = &#63;.
209            *
210            * @param groupId the group ID
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            * Returns a range of all the asset tags that the user has permission to view 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
226            * @param start the lower bound of the range of asset tags
227            * @param end the upper bound of the range of asset tags (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            * Returns an ordered range of all the asset tags that the user has permissions to view 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
243            * @param start the lower bound of the range of asset tags
244            * @param end the upper bound of the range of asset tags (not inclusive)
245            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
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            * 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;.
256            *
257            * @param tagId the primary key of the current asset tag
258            * @param groupId the group ID
259            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
260            * @return the previous, current, and next asset tag
261            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
262            * @throws SystemException if a system exception occurred
263            */
264            public com.liferay.portlet.asset.model.AssetTag[] filterFindByGroupId_PrevAndNext(
265                    long tagId, long groupId,
266                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267                    throws com.liferay.portal.kernel.exception.SystemException,
268                            com.liferay.portlet.asset.NoSuchTagException;
269    
270            /**
271            * Returns all the asset tags.
272            *
273            * @return the asset tags
274            * @throws SystemException if a system exception occurred
275            */
276            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Returns a range of all the asset tags.
281            *
282            * <p>
283            * 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.
284            * </p>
285            *
286            * @param start the lower bound of the range of asset tags
287            * @param end the upper bound of the range of asset tags (not inclusive)
288            * @return the range of asset tags
289            * @throws SystemException if a system exception occurred
290            */
291            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
292                    int start, int end)
293                    throws com.liferay.portal.kernel.exception.SystemException;
294    
295            /**
296            * Returns an ordered range of all the asset tags.
297            *
298            * <p>
299            * 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.
300            * </p>
301            *
302            * @param start the lower bound of the range of asset tags
303            * @param end the upper bound of the range of asset tags (not inclusive)
304            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
305            * @return the ordered range of asset tags
306            * @throws SystemException if a system exception occurred
307            */
308            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
309                    int start, int end,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException;
312    
313            /**
314            * Removes all the asset tags where groupId = &#63; from the database.
315            *
316            * @param groupId the group ID
317            * @throws SystemException if a system exception occurred
318            */
319            public void removeByGroupId(long groupId)
320                    throws com.liferay.portal.kernel.exception.SystemException;
321    
322            /**
323            * Removes all the asset tags from the database.
324            *
325            * @throws SystemException if a system exception occurred
326            */
327            public void removeAll()
328                    throws com.liferay.portal.kernel.exception.SystemException;
329    
330            /**
331            * Returns the number of asset tags where groupId = &#63;.
332            *
333            * @param groupId the group ID
334            * @return the number of matching asset tags
335            * @throws SystemException if a system exception occurred
336            */
337            public int countByGroupId(long groupId)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Returns the number of asset tags that the user has permission to view where groupId = &#63;.
342            *
343            * @param groupId the group ID
344            * @return the number of matching asset tags that the user has permission to view
345            * @throws SystemException if a system exception occurred
346            */
347            public int filterCountByGroupId(long groupId)
348                    throws com.liferay.portal.kernel.exception.SystemException;
349    
350            /**
351            * Returns the number of asset tags.
352            *
353            * @return the number of asset tags
354            * @throws SystemException if a system exception occurred
355            */
356            public int countAll()
357                    throws com.liferay.portal.kernel.exception.SystemException;
358    
359            /**
360            * Returns all the asset entries associated with the asset tag.
361            *
362            * @param pk the primary key of the asset tag
363            * @return the asset entries associated with the asset tag
364            * @throws SystemException if a system exception occurred
365            */
366            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
367                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
368    
369            /**
370            * Returns a range of all the asset entries associated with the asset tag.
371            *
372            * <p>
373            * 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.
374            * </p>
375            *
376            * @param pk the primary key of the asset tag
377            * @param start the lower bound of the range of asset tags
378            * @param end the upper bound of the range of asset tags (not inclusive)
379            * @return the range of asset entries associated with the asset tag
380            * @throws SystemException if a system exception occurred
381            */
382            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
383                    long pk, int start, int end)
384                    throws com.liferay.portal.kernel.exception.SystemException;
385    
386            /**
387            * Returns an ordered range of all the asset entries associated with the asset tag.
388            *
389            * <p>
390            * 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.
391            * </p>
392            *
393            * @param pk the primary key of the asset tag
394            * @param start the lower bound of the range of asset tags
395            * @param end the upper bound of the range of asset tags (not inclusive)
396            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
397            * @return the ordered range of asset entries associated with the asset tag
398            * @throws SystemException if a system exception occurred
399            */
400            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
401                    long pk, int start, int end,
402                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
403                    throws com.liferay.portal.kernel.exception.SystemException;
404    
405            /**
406            * Returns the number of asset entries associated with the asset tag.
407            *
408            * @param pk the primary key of the asset tag
409            * @return the number of asset entries associated with the asset tag
410            * @throws SystemException if a system exception occurred
411            */
412            public int getAssetEntriesSize(long pk)
413                    throws com.liferay.portal.kernel.exception.SystemException;
414    
415            /**
416            * Returns <code>true</code> if the asset entry is associated with the asset tag.
417            *
418            * @param pk the primary key of the asset tag
419            * @param assetEntryPK the primary key of the asset entry
420            * @return <code>true</code> if the asset entry is associated with the asset tag; <code>false</code> otherwise
421            * @throws SystemException if a system exception occurred
422            */
423            public boolean containsAssetEntry(long pk, long assetEntryPK)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns <code>true</code> if the asset tag has any asset entries associated with it.
428            *
429            * @param pk the primary key of the asset tag to check for associations with asset entries
430            * @return <code>true</code> if the asset tag has any asset entries associated with it; <code>false</code> otherwise
431            * @throws SystemException if a system exception occurred
432            */
433            public boolean containsAssetEntries(long pk)
434                    throws com.liferay.portal.kernel.exception.SystemException;
435    
436            /**
437            * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
438            *
439            * @param pk the primary key of the asset tag
440            * @param assetEntryPK the primary key of the asset entry
441            * @throws SystemException if a system exception occurred
442            */
443            public void addAssetEntry(long pk, long assetEntryPK)
444                    throws com.liferay.portal.kernel.exception.SystemException;
445    
446            /**
447            * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
448            *
449            * @param pk the primary key of the asset tag
450            * @param assetEntry the asset entry
451            * @throws SystemException if a system exception occurred
452            */
453            public void addAssetEntry(long pk,
454                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
455                    throws com.liferay.portal.kernel.exception.SystemException;
456    
457            /**
458            * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
459            *
460            * @param pk the primary key of the asset tag
461            * @param assetEntryPKs the primary keys of the asset entries
462            * @throws SystemException if a system exception occurred
463            */
464            public void addAssetEntries(long pk, long[] assetEntryPKs)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
469            *
470            * @param pk the primary key of the asset tag
471            * @param assetEntries the asset entries
472            * @throws SystemException if a system exception occurred
473            */
474            public void addAssetEntries(long pk,
475                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            /**
479            * Clears all associations between the asset tag and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
480            *
481            * @param pk the primary key of the asset tag to clear the associated asset entries from
482            * @throws SystemException if a system exception occurred
483            */
484            public void clearAssetEntries(long pk)
485                    throws com.liferay.portal.kernel.exception.SystemException;
486    
487            /**
488            * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
489            *
490            * @param pk the primary key of the asset tag
491            * @param assetEntryPK the primary key of the asset entry
492            * @throws SystemException if a system exception occurred
493            */
494            public void removeAssetEntry(long pk, long assetEntryPK)
495                    throws com.liferay.portal.kernel.exception.SystemException;
496    
497            /**
498            * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
499            *
500            * @param pk the primary key of the asset tag
501            * @param assetEntry the asset entry
502            * @throws SystemException if a system exception occurred
503            */
504            public void removeAssetEntry(long pk,
505                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
510            *
511            * @param pk the primary key of the asset tag
512            * @param assetEntryPKs the primary keys of the asset entries
513            * @throws SystemException if a system exception occurred
514            */
515            public void removeAssetEntries(long pk, long[] assetEntryPKs)
516                    throws com.liferay.portal.kernel.exception.SystemException;
517    
518            /**
519            * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
520            *
521            * @param pk the primary key of the asset tag
522            * @param assetEntries the asset entries
523            * @throws SystemException if a system exception occurred
524            */
525            public void removeAssetEntries(long pk,
526                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
527                    throws com.liferay.portal.kernel.exception.SystemException;
528    
529            /**
530            * 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.
531            *
532            * @param pk the primary key of the asset tag
533            * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset tag
534            * @throws SystemException if a system exception occurred
535            */
536            public void setAssetEntries(long pk, long[] assetEntryPKs)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * 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.
541            *
542            * @param pk the primary key of the asset tag
543            * @param assetEntries the asset entries to be associated with the asset tag
544            * @throws SystemException if a system exception occurred
545            */
546            public void setAssetEntries(long pk,
547                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            public AssetTag remove(AssetTag assetTag) throws SystemException;
551    }