001    /**
002     * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.asset.model.AssetTag;
022    
023    /**
024     * The persistence interface for the asset tag service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see AssetTagPersistenceImpl
032     * @see AssetTagUtil
033     * @generated
034     */
035    @ProviderType
036    public interface AssetTagPersistence extends BasePersistence<AssetTag> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link AssetTagUtil} to access the asset tag persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the asset tags where groupId = &#63;.
045            *
046            * @param groupId the group ID
047            * @return the matching asset tags
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
051                    long groupId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the asset tags where groupId = &#63;.
056            *
057            * <p>
058            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
059            * </p>
060            *
061            * @param groupId the group ID
062            * @param start the lower bound of the range of asset tags
063            * @param end the upper bound of the range of asset tags (not inclusive)
064            * @return the range of matching asset tags
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
068                    long groupId, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the asset tags where groupId = &#63;.
073            *
074            * <p>
075            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
076            * </p>
077            *
078            * @param groupId the group ID
079            * @param start the lower bound of the range of asset tags
080            * @param end the upper bound of the range of asset tags (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching asset tags
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findByGroupId(
086                    long groupId, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the first asset tag in the ordered set where groupId = &#63;.
092            *
093            * @param groupId the group ID
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching asset tag
096            * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.asset.model.AssetTag findByGroupId_First(
100                    long groupId,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.asset.NoSuchTagException;
104    
105            /**
106            * Returns the first asset tag in the ordered set where groupId = &#63;.
107            *
108            * @param groupId the group ID
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching asset tag, or <code>null</code> if a matching asset tag could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.asset.model.AssetTag fetchByGroupId_First(
114                    long groupId,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last asset tag in the ordered set where groupId = &#63;.
120            *
121            * @param groupId the group ID
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching asset tag
124            * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.asset.model.AssetTag findByGroupId_Last(
128                    long groupId,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.asset.NoSuchTagException;
132    
133            /**
134            * Returns the last asset tag in the ordered set where groupId = &#63;.
135            *
136            * @param groupId the group ID
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching asset tag, or <code>null</code> if a matching asset tag could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.asset.model.AssetTag fetchByGroupId_Last(
142                    long groupId,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the asset tags before and after the current asset tag in the ordered set where groupId = &#63;.
148            *
149            * @param tagId the primary key of the current asset tag
150            * @param groupId the group ID
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next asset tag
153            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.asset.model.AssetTag[] findByGroupId_PrevAndNext(
157                    long tagId, long groupId,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.asset.NoSuchTagException;
161    
162            /**
163            * Returns all the asset tags that the user has permission to view where groupId = &#63;.
164            *
165            * @param groupId the group ID
166            * @return the matching asset tags that the user has permission to view
167            * @throws SystemException if a system exception occurred
168            */
169            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
170                    long groupId)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            /**
174            * Returns a range of all the asset tags that the user has permission to view where groupId = &#63;.
175            *
176            * <p>
177            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
178            * </p>
179            *
180            * @param groupId the group ID
181            * @param start the lower bound of the range of asset tags
182            * @param end the upper bound of the range of asset tags (not inclusive)
183            * @return the range of matching asset tags that the user has permission to view
184            * @throws SystemException if a system exception occurred
185            */
186            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
187                    long groupId, int start, int end)
188                    throws com.liferay.portal.kernel.exception.SystemException;
189    
190            /**
191            * Returns an ordered range of all the asset tags that the user has permissions to view where groupId = &#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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
195            * </p>
196            *
197            * @param groupId the group ID
198            * @param start the lower bound of the range of asset tags
199            * @param end the upper bound of the range of asset tags (not inclusive)
200            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
201            * @return the ordered range of matching asset tags that the user has permission to view
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portlet.asset.model.AssetTag> filterFindByGroupId(
205                    long groupId, int start, int end,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns the asset tags before and after the current asset tag in the ordered set of asset tags that the user has permission to view where groupId = &#63;.
211            *
212            * @param tagId the primary key of the current asset tag
213            * @param groupId the group ID
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the previous, current, and next asset tag
216            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.asset.model.AssetTag[] filterFindByGroupId_PrevAndNext(
220                    long tagId, long groupId,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.asset.NoSuchTagException;
224    
225            /**
226            * Removes all the asset tags where groupId = &#63; from the database.
227            *
228            * @param groupId the group ID
229            * @throws SystemException if a system exception occurred
230            */
231            public void removeByGroupId(long groupId)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Returns the number of asset tags where groupId = &#63;.
236            *
237            * @param groupId the group ID
238            * @return the number of matching asset tags
239            * @throws SystemException if a system exception occurred
240            */
241            public int countByGroupId(long groupId)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns the number of asset tags that the user has permission to view where groupId = &#63;.
246            *
247            * @param groupId the group ID
248            * @return the number of matching asset tags that the user has permission to view
249            * @throws SystemException if a system exception occurred
250            */
251            public int filterCountByGroupId(long groupId)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            /**
255            * Returns the asset tag where groupId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchTagException} if it could not be found.
256            *
257            * @param groupId the group ID
258            * @param name the name
259            * @return the matching asset tag
260            * @throws com.liferay.portlet.asset.NoSuchTagException if a matching asset tag could not be found
261            * @throws SystemException if a system exception occurred
262            */
263            public com.liferay.portlet.asset.model.AssetTag findByG_N(long groupId,
264                    java.lang.String name)
265                    throws com.liferay.portal.kernel.exception.SystemException,
266                            com.liferay.portlet.asset.NoSuchTagException;
267    
268            /**
269            * Returns the asset tag where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
270            *
271            * @param groupId the group ID
272            * @param name the name
273            * @return the matching asset tag, or <code>null</code> if a matching asset tag could not be found
274            * @throws SystemException if a system exception occurred
275            */
276            public com.liferay.portlet.asset.model.AssetTag fetchByG_N(long groupId,
277                    java.lang.String name)
278                    throws com.liferay.portal.kernel.exception.SystemException;
279    
280            /**
281            * Returns the asset tag where groupId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
282            *
283            * @param groupId the group ID
284            * @param name the name
285            * @param retrieveFromCache whether to use the finder cache
286            * @return the matching asset tag, or <code>null</code> if a matching asset tag could not be found
287            * @throws SystemException if a system exception occurred
288            */
289            public com.liferay.portlet.asset.model.AssetTag fetchByG_N(long groupId,
290                    java.lang.String name, boolean retrieveFromCache)
291                    throws com.liferay.portal.kernel.exception.SystemException;
292    
293            /**
294            * Removes the asset tag where groupId = &#63; and name = &#63; from the database.
295            *
296            * @param groupId the group ID
297            * @param name the name
298            * @return the asset tag that was removed
299            * @throws SystemException if a system exception occurred
300            */
301            public com.liferay.portlet.asset.model.AssetTag removeByG_N(long groupId,
302                    java.lang.String name)
303                    throws com.liferay.portal.kernel.exception.SystemException,
304                            com.liferay.portlet.asset.NoSuchTagException;
305    
306            /**
307            * Returns the number of asset tags where groupId = &#63; and name = &#63;.
308            *
309            * @param groupId the group ID
310            * @param name the name
311            * @return the number of matching asset tags
312            * @throws SystemException if a system exception occurred
313            */
314            public int countByG_N(long groupId, java.lang.String name)
315                    throws com.liferay.portal.kernel.exception.SystemException;
316    
317            /**
318            * Caches the asset tag in the entity cache if it is enabled.
319            *
320            * @param assetTag the asset tag
321            */
322            public void cacheResult(com.liferay.portlet.asset.model.AssetTag assetTag);
323    
324            /**
325            * Caches the asset tags in the entity cache if it is enabled.
326            *
327            * @param assetTags the asset tags
328            */
329            public void cacheResult(
330                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags);
331    
332            /**
333            * Creates a new asset tag with the primary key. Does not add the asset tag to the database.
334            *
335            * @param tagId the primary key for the new asset tag
336            * @return the new asset tag
337            */
338            public com.liferay.portlet.asset.model.AssetTag create(long tagId);
339    
340            /**
341            * Removes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.
342            *
343            * @param tagId the primary key of the asset tag
344            * @return the asset tag that was removed
345            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
346            * @throws SystemException if a system exception occurred
347            */
348            public com.liferay.portlet.asset.model.AssetTag remove(long tagId)
349                    throws com.liferay.portal.kernel.exception.SystemException,
350                            com.liferay.portlet.asset.NoSuchTagException;
351    
352            public com.liferay.portlet.asset.model.AssetTag updateImpl(
353                    com.liferay.portlet.asset.model.AssetTag assetTag)
354                    throws com.liferay.portal.kernel.exception.SystemException;
355    
356            /**
357            * Returns the asset tag with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchTagException} if it could not be found.
358            *
359            * @param tagId the primary key of the asset tag
360            * @return the asset tag
361            * @throws com.liferay.portlet.asset.NoSuchTagException if a asset tag with the primary key could not be found
362            * @throws SystemException if a system exception occurred
363            */
364            public com.liferay.portlet.asset.model.AssetTag findByPrimaryKey(long tagId)
365                    throws com.liferay.portal.kernel.exception.SystemException,
366                            com.liferay.portlet.asset.NoSuchTagException;
367    
368            /**
369            * Returns the asset tag with the primary key or returns <code>null</code> if it could not be found.
370            *
371            * @param tagId the primary key of the asset tag
372            * @return the asset tag, or <code>null</code> if a asset tag with the primary key could not be found
373            * @throws SystemException if a system exception occurred
374            */
375            public com.liferay.portlet.asset.model.AssetTag fetchByPrimaryKey(
376                    long tagId) throws com.liferay.portal.kernel.exception.SystemException;
377    
378            /**
379            * Returns all the asset tags.
380            *
381            * @return the asset tags
382            * @throws SystemException if a system exception occurred
383            */
384            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll()
385                    throws com.liferay.portal.kernel.exception.SystemException;
386    
387            /**
388            * Returns a range of all the asset tags.
389            *
390            * <p>
391            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
392            * </p>
393            *
394            * @param start the lower bound of the range of asset tags
395            * @param end the upper bound of the range of asset tags (not inclusive)
396            * @return the range of asset tags
397            * @throws SystemException if a system exception occurred
398            */
399            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
400                    int start, int end)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            /**
404            * Returns an ordered range of all the asset tags.
405            *
406            * <p>
407            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
408            * </p>
409            *
410            * @param start the lower bound of the range of asset tags
411            * @param end the upper bound of the range of asset tags (not inclusive)
412            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
413            * @return the ordered range of asset tags
414            * @throws SystemException if a system exception occurred
415            */
416            public java.util.List<com.liferay.portlet.asset.model.AssetTag> findAll(
417                    int start, int end,
418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419                    throws com.liferay.portal.kernel.exception.SystemException;
420    
421            /**
422            * Removes all the asset tags from the database.
423            *
424            * @throws SystemException if a system exception occurred
425            */
426            public void removeAll()
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Returns the number of asset tags.
431            *
432            * @return the number of asset tags
433            * @throws SystemException if a system exception occurred
434            */
435            public int countAll()
436                    throws com.liferay.portal.kernel.exception.SystemException;
437    
438            /**
439            * Returns all the asset entries associated with the asset tag.
440            *
441            * @param pk the primary key of the asset tag
442            * @return the asset entries associated with the asset tag
443            * @throws SystemException if a system exception occurred
444            */
445            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
446                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
447    
448            /**
449            * Returns a range of all the asset entries associated with the asset tag.
450            *
451            * <p>
452            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
453            * </p>
454            *
455            * @param pk the primary key of the asset tag
456            * @param start the lower bound of the range of asset tags
457            * @param end the upper bound of the range of asset tags (not inclusive)
458            * @return the range of asset entries associated with the asset tag
459            * @throws SystemException if a system exception occurred
460            */
461            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
462                    long pk, int start, int end)
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            /**
466            * Returns an ordered range of all the asset entries associated with the asset tag.
467            *
468            * <p>
469            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.asset.model.impl.AssetTagModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
470            * </p>
471            *
472            * @param pk the primary key of the asset tag
473            * @param start the lower bound of the range of asset tags
474            * @param end the upper bound of the range of asset tags (not inclusive)
475            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
476            * @return the ordered range of asset entries associated with the asset tag
477            * @throws SystemException if a system exception occurred
478            */
479            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
480                    long pk, int start, int end,
481                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
482                    throws com.liferay.portal.kernel.exception.SystemException;
483    
484            /**
485            * Returns the number of asset entries associated with the asset tag.
486            *
487            * @param pk the primary key of the asset tag
488            * @return the number of asset entries associated with the asset tag
489            * @throws SystemException if a system exception occurred
490            */
491            public int getAssetEntriesSize(long pk)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns <code>true</code> if the asset entry is associated with the asset tag.
496            *
497            * @param pk the primary key of the asset tag
498            * @param assetEntryPK the primary key of the asset entry
499            * @return <code>true</code> if the asset entry is associated with the asset tag; <code>false</code> otherwise
500            * @throws SystemException if a system exception occurred
501            */
502            public boolean containsAssetEntry(long pk, long assetEntryPK)
503                    throws com.liferay.portal.kernel.exception.SystemException;
504    
505            /**
506            * Returns <code>true</code> if the asset tag has any asset entries associated with it.
507            *
508            * @param pk the primary key of the asset tag to check for associations with asset entries
509            * @return <code>true</code> if the asset tag has any asset entries associated with it; <code>false</code> otherwise
510            * @throws SystemException if a system exception occurred
511            */
512            public boolean containsAssetEntries(long pk)
513                    throws com.liferay.portal.kernel.exception.SystemException;
514    
515            /**
516            * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
517            *
518            * @param pk the primary key of the asset tag
519            * @param assetEntryPK the primary key of the asset entry
520            * @throws SystemException if a system exception occurred
521            */
522            public void addAssetEntry(long pk, long assetEntryPK)
523                    throws com.liferay.portal.kernel.exception.SystemException;
524    
525            /**
526            * Adds an association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
527            *
528            * @param pk the primary key of the asset tag
529            * @param assetEntry the asset entry
530            * @throws SystemException if a system exception occurred
531            */
532            public void addAssetEntry(long pk,
533                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    
536            /**
537            * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
538            *
539            * @param pk the primary key of the asset tag
540            * @param assetEntryPKs the primary keys of the asset entries
541            * @throws SystemException if a system exception occurred
542            */
543            public void addAssetEntries(long pk, long[] assetEntryPKs)
544                    throws com.liferay.portal.kernel.exception.SystemException;
545    
546            /**
547            * Adds an association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
548            *
549            * @param pk the primary key of the asset tag
550            * @param assetEntries the asset entries
551            * @throws SystemException if a system exception occurred
552            */
553            public void addAssetEntries(long pk,
554                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Clears all associations between the asset tag and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
559            *
560            * @param pk the primary key of the asset tag to clear the associated asset entries from
561            * @throws SystemException if a system exception occurred
562            */
563            public void clearAssetEntries(long pk)
564                    throws com.liferay.portal.kernel.exception.SystemException;
565    
566            /**
567            * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
568            *
569            * @param pk the primary key of the asset tag
570            * @param assetEntryPK the primary key of the asset entry
571            * @throws SystemException if a system exception occurred
572            */
573            public void removeAssetEntry(long pk, long assetEntryPK)
574                    throws com.liferay.portal.kernel.exception.SystemException;
575    
576            /**
577            * Removes the association between the asset tag and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.
578            *
579            * @param pk the primary key of the asset tag
580            * @param assetEntry the asset entry
581            * @throws SystemException if a system exception occurred
582            */
583            public void removeAssetEntry(long pk,
584                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
585                    throws com.liferay.portal.kernel.exception.SystemException;
586    
587            /**
588            * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
589            *
590            * @param pk the primary key of the asset tag
591            * @param assetEntryPKs the primary keys of the asset entries
592            * @throws SystemException if a system exception occurred
593            */
594            public void removeAssetEntries(long pk, long[] assetEntryPKs)
595                    throws com.liferay.portal.kernel.exception.SystemException;
596    
597            /**
598            * Removes the association between the asset tag and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.
599            *
600            * @param pk the primary key of the asset tag
601            * @param assetEntries the asset entries
602            * @throws SystemException if a system exception occurred
603            */
604            public void removeAssetEntries(long pk,
605                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
606                    throws com.liferay.portal.kernel.exception.SystemException;
607    
608            /**
609            * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
610            *
611            * @param pk the primary key of the asset tag
612            * @param assetEntryPKs the primary keys of the asset entries to be associated with the asset tag
613            * @throws SystemException if a system exception occurred
614            */
615            public void setAssetEntries(long pk, long[] assetEntryPKs)
616                    throws com.liferay.portal.kernel.exception.SystemException;
617    
618            /**
619            * Sets the asset entries associated with the asset tag, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
620            *
621            * @param pk the primary key of the asset tag
622            * @param assetEntries the asset entries to be associated with the asset tag
623            * @throws SystemException if a system exception occurred
624            */
625            public void setAssetEntries(long pk,
626                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
627                    throws com.liferay.portal.kernel.exception.SystemException;
628    }