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