001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.asset.model.AssetEntry;
020    
021    /**
022     * The persistence interface for the asset entry service.
023     *
024     * <p>
025     * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see AssetEntryPersistenceImpl
030     * @see AssetEntryUtil
031     * @generated
032     */
033    public interface AssetEntryPersistence extends BasePersistence<AssetEntry> {
034            /**
035            * Caches the asset entry in the entity cache if it is enabled.
036            *
037            * @param assetEntry the asset entry to cache
038            */
039            public void cacheResult(
040                    com.liferay.portlet.asset.model.AssetEntry assetEntry);
041    
042            /**
043            * Caches the asset entries in the entity cache if it is enabled.
044            *
045            * @param assetEntries the asset entries to cache
046            */
047            public void cacheResult(
048                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries);
049    
050            /**
051            * Creates a new asset entry with the primary key.
052            *
053            * @param entryId the primary key for the new asset entry
054            * @return the new asset entry
055            */
056            public com.liferay.portlet.asset.model.AssetEntry create(long entryId);
057    
058            /**
059            * Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param entryId the primary key of the asset entry to remove
062            * @return the asset entry that was removed
063            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public com.liferay.portlet.asset.model.AssetEntry remove(long entryId)
067                    throws com.liferay.portal.kernel.exception.SystemException,
068                            com.liferay.portlet.asset.NoSuchEntryException;
069    
070            public com.liferay.portlet.asset.model.AssetEntry updateImpl(
071                    com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
072                    throws com.liferay.portal.kernel.exception.SystemException;
073    
074            /**
075            * Finds the asset entry with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found.
076            *
077            * @param entryId the primary key of the asset entry to find
078            * @return the asset entry
079            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
080            * @throws SystemException if a system exception occurred
081            */
082            public com.liferay.portlet.asset.model.AssetEntry findByPrimaryKey(
083                    long entryId)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.asset.NoSuchEntryException;
086    
087            /**
088            * Finds the asset entry with the primary key or returns <code>null</code> if it could not be found.
089            *
090            * @param entryId the primary key of the asset entry to find
091            * @return the asset entry, or <code>null</code> if a asset entry with the primary key could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portlet.asset.model.AssetEntry fetchByPrimaryKey(
095                    long entryId)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            /**
099            * Finds all the asset entries where companyId = &#63;.
100            *
101            * @param companyId the company id to search with
102            * @return the matching asset entries
103            * @throws SystemException if a system exception occurred
104            */
105            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
106                    long companyId)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            /**
110            * Finds a range of all the asset entries where companyId = &#63;.
111            *
112            * <p>
113            * 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.
114            * </p>
115            *
116            * @param companyId the company id to search with
117            * @param start the lower bound of the range of asset entries to return
118            * @param end the upper bound of the range of asset entries to return (not inclusive)
119            * @return the range of matching asset entries
120            * @throws SystemException if a system exception occurred
121            */
122            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
123                    long companyId, int start, int end)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            /**
127            * Finds an ordered range of all the asset entries where companyId = &#63;.
128            *
129            * <p>
130            * 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.
131            * </p>
132            *
133            * @param companyId the company id to search with
134            * @param start the lower bound of the range of asset entries to return
135            * @param end the upper bound of the range of asset entries to return (not inclusive)
136            * @param orderByComparator the comparator to order the results by
137            * @return the ordered range of matching asset entries
138            * @throws SystemException if a system exception occurred
139            */
140            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
141                    long companyId, int start, int end,
142                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            /**
146            * Finds the first asset entry in the ordered set where companyId = &#63;.
147            *
148            * <p>
149            * 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.
150            * </p>
151            *
152            * @param companyId the company id to search with
153            * @param orderByComparator the comparator to order the set by
154            * @return the first matching asset entry
155            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
156            * @throws SystemException if a system exception occurred
157            */
158            public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First(
159                    long companyId,
160                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161                    throws com.liferay.portal.kernel.exception.SystemException,
162                            com.liferay.portlet.asset.NoSuchEntryException;
163    
164            /**
165            * Finds the last asset entry in the ordered set where companyId = &#63;.
166            *
167            * <p>
168            * 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.
169            * </p>
170            *
171            * @param companyId the company id to search with
172            * @param orderByComparator the comparator to order the set by
173            * @return the last matching asset entry
174            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last(
178                    long companyId,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException,
181                            com.liferay.portlet.asset.NoSuchEntryException;
182    
183            /**
184            * Finds the asset entries before and after the current asset entry in the ordered set where companyId = &#63;.
185            *
186            * <p>
187            * 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.
188            * </p>
189            *
190            * @param entryId the primary key of the current asset entry
191            * @param companyId the company id to search with
192            * @param orderByComparator the comparator to order the set by
193            * @return the previous, current, and next asset entry
194            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            public com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext(
198                    long entryId, long companyId,
199                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
200                    throws com.liferay.portal.kernel.exception.SystemException,
201                            com.liferay.portlet.asset.NoSuchEntryException;
202    
203            /**
204            * Finds the asset entry where groupId = &#63; and classUuid = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found.
205            *
206            * @param groupId the group id to search with
207            * @param classUuid the class uuid to search with
208            * @return the matching asset entry
209            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
210            * @throws SystemException if a system exception occurred
211            */
212            public com.liferay.portlet.asset.model.AssetEntry findByG_CU(long groupId,
213                    java.lang.String classUuid)
214                    throws com.liferay.portal.kernel.exception.SystemException,
215                            com.liferay.portlet.asset.NoSuchEntryException;
216    
217            /**
218            * Finds the asset entry where groupId = &#63; and classUuid = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
219            *
220            * @param groupId the group id to search with
221            * @param classUuid the class uuid to search with
222            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
223            * @throws SystemException if a system exception occurred
224            */
225            public com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
226                    long groupId, java.lang.String classUuid)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            /**
230            * Finds the asset entry where groupId = &#63; and classUuid = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
231            *
232            * @param groupId the group id to search with
233            * @param classUuid the class uuid to search with
234            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
235            * @throws SystemException if a system exception occurred
236            */
237            public com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
238                    long groupId, java.lang.String classUuid, boolean retrieveFromCache)
239                    throws com.liferay.portal.kernel.exception.SystemException;
240    
241            /**
242            * Finds the asset entry where classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found.
243            *
244            * @param classNameId the class name id to search with
245            * @param classPK the class p k to search with
246            * @return the matching asset entry
247            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
248            * @throws SystemException if a system exception occurred
249            */
250            public com.liferay.portlet.asset.model.AssetEntry findByC_C(
251                    long classNameId, long classPK)
252                    throws com.liferay.portal.kernel.exception.SystemException,
253                            com.liferay.portlet.asset.NoSuchEntryException;
254    
255            /**
256            * Finds the asset entry where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
257            *
258            * @param classNameId the class name id to search with
259            * @param classPK the class p k to search with
260            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
261            * @throws SystemException if a system exception occurred
262            */
263            public com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
264                    long classNameId, long classPK)
265                    throws com.liferay.portal.kernel.exception.SystemException;
266    
267            /**
268            * Finds the asset entry where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
269            *
270            * @param classNameId the class name id to search with
271            * @param classPK the class p k to search with
272            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
273            * @throws SystemException if a system exception occurred
274            */
275            public com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
276                    long classNameId, long classPK, boolean retrieveFromCache)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Finds all the asset entries.
281            *
282            * @return the asset entries
283            * @throws SystemException if a system exception occurred
284            */
285            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll()
286                    throws com.liferay.portal.kernel.exception.SystemException;
287    
288            /**
289            * Finds a range of all the asset entries.
290            *
291            * <p>
292            * 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.
293            * </p>
294            *
295            * @param start the lower bound of the range of asset entries to return
296            * @param end the upper bound of the range of asset entries to return (not inclusive)
297            * @return the range of asset entries
298            * @throws SystemException if a system exception occurred
299            */
300            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
301                    int start, int end)
302                    throws com.liferay.portal.kernel.exception.SystemException;
303    
304            /**
305            * Finds an ordered range of all the asset entries.
306            *
307            * <p>
308            * 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.
309            * </p>
310            *
311            * @param start the lower bound of the range of asset entries to return
312            * @param end the upper bound of the range of asset entries to return (not inclusive)
313            * @param orderByComparator the comparator to order the results by
314            * @return the ordered range of asset entries
315            * @throws SystemException if a system exception occurred
316            */
317            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
318                    int start, int end,
319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320                    throws com.liferay.portal.kernel.exception.SystemException;
321    
322            /**
323            * Removes all the asset entries where companyId = &#63; from the database.
324            *
325            * @param companyId the company id to search with
326            * @throws SystemException if a system exception occurred
327            */
328            public void removeByCompanyId(long companyId)
329                    throws com.liferay.portal.kernel.exception.SystemException;
330    
331            /**
332            * Removes the asset entry where groupId = &#63; and classUuid = &#63; from the database.
333            *
334            * @param groupId the group id to search with
335            * @param classUuid the class uuid to search with
336            * @throws SystemException if a system exception occurred
337            */
338            public void removeByG_CU(long groupId, java.lang.String classUuid)
339                    throws com.liferay.portal.kernel.exception.SystemException,
340                            com.liferay.portlet.asset.NoSuchEntryException;
341    
342            /**
343            * Removes the asset entry where classNameId = &#63; and classPK = &#63; from the database.
344            *
345            * @param classNameId the class name id to search with
346            * @param classPK the class p k to search with
347            * @throws SystemException if a system exception occurred
348            */
349            public void removeByC_C(long classNameId, long classPK)
350                    throws com.liferay.portal.kernel.exception.SystemException,
351                            com.liferay.portlet.asset.NoSuchEntryException;
352    
353            /**
354            * Removes all the asset entries from the database.
355            *
356            * @throws SystemException if a system exception occurred
357            */
358            public void removeAll()
359                    throws com.liferay.portal.kernel.exception.SystemException;
360    
361            /**
362            * Counts all the asset entries where companyId = &#63;.
363            *
364            * @param companyId the company id to search with
365            * @return the number of matching asset entries
366            * @throws SystemException if a system exception occurred
367            */
368            public int countByCompanyId(long companyId)
369                    throws com.liferay.portal.kernel.exception.SystemException;
370    
371            /**
372            * Counts all the asset entries where groupId = &#63; and classUuid = &#63;.
373            *
374            * @param groupId the group id to search with
375            * @param classUuid the class uuid to search with
376            * @return the number of matching asset entries
377            * @throws SystemException if a system exception occurred
378            */
379            public int countByG_CU(long groupId, java.lang.String classUuid)
380                    throws com.liferay.portal.kernel.exception.SystemException;
381    
382            /**
383            * Counts all the asset entries where classNameId = &#63; and classPK = &#63;.
384            *
385            * @param classNameId the class name id to search with
386            * @param classPK the class p k to search with
387            * @return the number of matching asset entries
388            * @throws SystemException if a system exception occurred
389            */
390            public int countByC_C(long classNameId, long classPK)
391                    throws com.liferay.portal.kernel.exception.SystemException;
392    
393            /**
394            * Counts all the asset entries.
395            *
396            * @return the number of asset entries
397            * @throws SystemException if a system exception occurred
398            */
399            public int countAll()
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * Gets all the asset categories associated with the asset entry.
404            *
405            * @param pk the primary key of the asset entry to get the associated asset categories for
406            * @return the asset categories associated with the asset entry
407            * @throws SystemException if a system exception occurred
408            */
409            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
410                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
411    
412            /**
413            * Gets a range of all the asset categories associated with the asset entry.
414            *
415            * <p>
416            * 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.
417            * </p>
418            *
419            * @param pk the primary key of the asset entry to get the associated asset categories for
420            * @param start the lower bound of the range of asset entries to return
421            * @param end the upper bound of the range of asset entries to return (not inclusive)
422            * @return the range of asset categories associated with the asset entry
423            * @throws SystemException if a system exception occurred
424            */
425            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
426                    long pk, int start, int end)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Gets an ordered range of all the asset categories associated with the asset entry.
431            *
432            * <p>
433            * 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.
434            * </p>
435            *
436            * @param pk the primary key of the asset entry to get the associated asset categories for
437            * @param start the lower bound of the range of asset entries to return
438            * @param end the upper bound of the range of asset entries to return (not inclusive)
439            * @param orderByComparator the comparator to order the results by
440            * @return the ordered range of asset categories associated with the asset entry
441            * @throws SystemException if a system exception occurred
442            */
443            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
444                    long pk, int start, int end,
445                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
446                    throws com.liferay.portal.kernel.exception.SystemException;
447    
448            /**
449            * Gets the number of asset categories associated with the asset entry.
450            *
451            * @param pk the primary key of the asset entry to get the number of associated asset categories for
452            * @return the number of asset categories associated with the asset entry
453            * @throws SystemException if a system exception occurred
454            */
455            public int getAssetCategoriesSize(long pk)
456                    throws com.liferay.portal.kernel.exception.SystemException;
457    
458            /**
459            * Determines whether the asset category is associated with the asset entry.
460            *
461            * @param pk the primary key of the asset entry
462            * @param assetCategoryPK the primary key of the asset category
463            * @return whether the asset category is associated with the asset entry
464            * @throws SystemException if a system exception occurred
465            */
466            public boolean containsAssetCategory(long pk, long assetCategoryPK)
467                    throws com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Determines whether the asset entry has any asset categories associated with it.
471            *
472            * @param pk the primary key of the asset entry to check for associations with asset categories
473            * @return whether the asset entry has any asset categories associated with it
474            * @throws SystemException if a system exception occurred
475            */
476            public boolean containsAssetCategories(long pk)
477                    throws com.liferay.portal.kernel.exception.SystemException;
478    
479            /**
480            * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
481            *
482            * @param pk the primary key of the asset entry
483            * @param assetCategoryPK the primary key of the asset category
484            * @throws SystemException if a system exception occurred
485            */
486            public void addAssetCategory(long pk, long assetCategoryPK)
487                    throws com.liferay.portal.kernel.exception.SystemException;
488    
489            /**
490            * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
491            *
492            * @param pk the primary key of the asset entry
493            * @param assetCategory the asset category
494            * @throws SystemException if a system exception occurred
495            */
496            public void addAssetCategory(long pk,
497                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
498                    throws com.liferay.portal.kernel.exception.SystemException;
499    
500            /**
501            * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
502            *
503            * @param pk the primary key of the asset entry
504            * @param assetCategoryPKs the primary keys of the asset categories
505            * @throws SystemException if a system exception occurred
506            */
507            public void addAssetCategories(long pk, long[] assetCategoryPKs)
508                    throws com.liferay.portal.kernel.exception.SystemException;
509    
510            /**
511            * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
512            *
513            * @param pk the primary key of the asset entry
514            * @param assetCategories the asset categories
515            * @throws SystemException if a system exception occurred
516            */
517            public void addAssetCategories(long pk,
518                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            /**
522            * Clears all associations between the asset entry and its asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
523            *
524            * @param pk the primary key of the asset entry to clear the associated asset categories from
525            * @throws SystemException if a system exception occurred
526            */
527            public void clearAssetCategories(long pk)
528                    throws com.liferay.portal.kernel.exception.SystemException;
529    
530            /**
531            * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
532            *
533            * @param pk the primary key of the asset entry
534            * @param assetCategoryPK the primary key of the asset category
535            * @throws SystemException if a system exception occurred
536            */
537            public void removeAssetCategory(long pk, long assetCategoryPK)
538                    throws com.liferay.portal.kernel.exception.SystemException;
539    
540            /**
541            * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
542            *
543            * @param pk the primary key of the asset entry
544            * @param assetCategory the asset category
545            * @throws SystemException if a system exception occurred
546            */
547            public void removeAssetCategory(long pk,
548                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
549                    throws com.liferay.portal.kernel.exception.SystemException;
550    
551            /**
552            * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
553            *
554            * @param pk the primary key of the asset entry
555            * @param assetCategoryPKs the primary keys of the asset categories
556            * @throws SystemException if a system exception occurred
557            */
558            public void removeAssetCategories(long pk, long[] assetCategoryPKs)
559                    throws com.liferay.portal.kernel.exception.SystemException;
560    
561            /**
562            * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
563            *
564            * @param pk the primary key of the asset entry
565            * @param assetCategories the asset categories
566            * @throws SystemException if a system exception occurred
567            */
568            public void removeAssetCategories(long pk,
569                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
570                    throws com.liferay.portal.kernel.exception.SystemException;
571    
572            /**
573            * Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
574            *
575            * @param pk the primary key of the asset entry to set the associations for
576            * @param assetCategoryPKs the primary keys of the asset categories to be associated with the asset entry
577            * @throws SystemException if a system exception occurred
578            */
579            public void setAssetCategories(long pk, long[] assetCategoryPKs)
580                    throws com.liferay.portal.kernel.exception.SystemException;
581    
582            /**
583            * Sets the asset categories associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
584            *
585            * @param pk the primary key of the asset entry to set the associations for
586            * @param assetCategories the asset categories to be associated with the asset entry
587            * @throws SystemException if a system exception occurred
588            */
589            public void setAssetCategories(long pk,
590                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
591                    throws com.liferay.portal.kernel.exception.SystemException;
592    
593            /**
594            * Gets all the asset tags associated with the asset entry.
595            *
596            * @param pk the primary key of the asset entry to get the associated asset tags for
597            * @return the asset tags associated with the asset entry
598            * @throws SystemException if a system exception occurred
599            */
600            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
601                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Gets a range of all the asset tags associated with the asset entry.
605            *
606            * <p>
607            * 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.
608            * </p>
609            *
610            * @param pk the primary key of the asset entry to get the associated asset tags for
611            * @param start the lower bound of the range of asset entries to return
612            * @param end the upper bound of the range of asset entries to return (not inclusive)
613            * @return the range of asset tags associated with the asset entry
614            * @throws SystemException if a system exception occurred
615            */
616            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
617                    long pk, int start, int end)
618                    throws com.liferay.portal.kernel.exception.SystemException;
619    
620            /**
621            * Gets an ordered range of all the asset tags associated with the asset entry.
622            *
623            * <p>
624            * 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.
625            * </p>
626            *
627            * @param pk the primary key of the asset entry to get the associated asset tags for
628            * @param start the lower bound of the range of asset entries to return
629            * @param end the upper bound of the range of asset entries to return (not inclusive)
630            * @param orderByComparator the comparator to order the results by
631            * @return the ordered range of asset tags associated with the asset entry
632            * @throws SystemException if a system exception occurred
633            */
634            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
635                    long pk, int start, int end,
636                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
637                    throws com.liferay.portal.kernel.exception.SystemException;
638    
639            /**
640            * Gets the number of asset tags associated with the asset entry.
641            *
642            * @param pk the primary key of the asset entry to get the number of associated asset tags for
643            * @return the number of asset tags associated with the asset entry
644            * @throws SystemException if a system exception occurred
645            */
646            public int getAssetTagsSize(long pk)
647                    throws com.liferay.portal.kernel.exception.SystemException;
648    
649            /**
650            * Determines whether the asset tag is associated with the asset entry.
651            *
652            * @param pk the primary key of the asset entry
653            * @param assetTagPK the primary key of the asset tag
654            * @return whether the asset tag is associated with the asset entry
655            * @throws SystemException if a system exception occurred
656            */
657            public boolean containsAssetTag(long pk, long assetTagPK)
658                    throws com.liferay.portal.kernel.exception.SystemException;
659    
660            /**
661            * Determines whether the asset entry has any asset tags associated with it.
662            *
663            * @param pk the primary key of the asset entry to check for associations with asset tags
664            * @return whether the asset entry has any asset tags associated with it
665            * @throws SystemException if a system exception occurred
666            */
667            public boolean containsAssetTags(long pk)
668                    throws com.liferay.portal.kernel.exception.SystemException;
669    
670            /**
671            * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
672            *
673            * @param pk the primary key of the asset entry
674            * @param assetTagPK the primary key of the asset tag
675            * @throws SystemException if a system exception occurred
676            */
677            public void addAssetTag(long pk, long assetTagPK)
678                    throws com.liferay.portal.kernel.exception.SystemException;
679    
680            /**
681            * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
682            *
683            * @param pk the primary key of the asset entry
684            * @param assetTag the asset tag
685            * @throws SystemException if a system exception occurred
686            */
687            public void addAssetTag(long pk,
688                    com.liferay.portlet.asset.model.AssetTag assetTag)
689                    throws com.liferay.portal.kernel.exception.SystemException;
690    
691            /**
692            * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
693            *
694            * @param pk the primary key of the asset entry
695            * @param assetTagPKs the primary keys of the asset tags
696            * @throws SystemException if a system exception occurred
697            */
698            public void addAssetTags(long pk, long[] assetTagPKs)
699                    throws com.liferay.portal.kernel.exception.SystemException;
700    
701            /**
702            * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
703            *
704            * @param pk the primary key of the asset entry
705            * @param assetTags the asset tags
706            * @throws SystemException if a system exception occurred
707            */
708            public void addAssetTags(long pk,
709                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
710                    throws com.liferay.portal.kernel.exception.SystemException;
711    
712            /**
713            * Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
714            *
715            * @param pk the primary key of the asset entry to clear the associated asset tags from
716            * @throws SystemException if a system exception occurred
717            */
718            public void clearAssetTags(long pk)
719                    throws com.liferay.portal.kernel.exception.SystemException;
720    
721            /**
722            * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
723            *
724            * @param pk the primary key of the asset entry
725            * @param assetTagPK the primary key of the asset tag
726            * @throws SystemException if a system exception occurred
727            */
728            public void removeAssetTag(long pk, long assetTagPK)
729                    throws com.liferay.portal.kernel.exception.SystemException;
730    
731            /**
732            * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
733            *
734            * @param pk the primary key of the asset entry
735            * @param assetTag the asset tag
736            * @throws SystemException if a system exception occurred
737            */
738            public void removeAssetTag(long pk,
739                    com.liferay.portlet.asset.model.AssetTag assetTag)
740                    throws com.liferay.portal.kernel.exception.SystemException;
741    
742            /**
743            * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
744            *
745            * @param pk the primary key of the asset entry
746            * @param assetTagPKs the primary keys of the asset tags
747            * @throws SystemException if a system exception occurred
748            */
749            public void removeAssetTags(long pk, long[] assetTagPKs)
750                    throws com.liferay.portal.kernel.exception.SystemException;
751    
752            /**
753            * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
754            *
755            * @param pk the primary key of the asset entry
756            * @param assetTags the asset tags
757            * @throws SystemException if a system exception occurred
758            */
759            public void removeAssetTags(long pk,
760                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
761                    throws com.liferay.portal.kernel.exception.SystemException;
762    
763            /**
764            * Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
765            *
766            * @param pk the primary key of the asset entry to set the associations for
767            * @param assetTagPKs the primary keys of the asset tags to be associated with the asset entry
768            * @throws SystemException if a system exception occurred
769            */
770            public void setAssetTags(long pk, long[] assetTagPKs)
771                    throws com.liferay.portal.kernel.exception.SystemException;
772    
773            /**
774            * Sets the asset tags associated with the asset entry, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
775            *
776            * @param pk the primary key of the asset entry to set the associations for
777            * @param assetTags the asset tags to be associated with the asset entry
778            * @throws SystemException if a system exception occurred
779            */
780            public void setAssetTags(long pk,
781                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
782                    throws com.liferay.portal.kernel.exception.SystemException;
783    }