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