001    /**
002     * Copyright (c) 2000-2012 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.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     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see AssetEntryPersistenceImpl
030     * @see AssetEntryUtil
031     * @generated
032     */
033    public interface AssetEntryPersistence extends BasePersistence<AssetEntry> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * 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.
038             */
039    
040            /**
041            * Caches the asset entry in the entity cache if it is enabled.
042            *
043            * @param assetEntry the asset entry
044            */
045            public void cacheResult(
046                    com.liferay.portlet.asset.model.AssetEntry assetEntry);
047    
048            /**
049            * Caches the asset entries in the entity cache if it is enabled.
050            *
051            * @param assetEntries the asset entries
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries);
055    
056            /**
057            * Creates a new asset entry with the primary key. Does not add the asset entry to the database.
058            *
059            * @param entryId the primary key for the new asset entry
060            * @return the new asset entry
061            */
062            public com.liferay.portlet.asset.model.AssetEntry create(long entryId);
063    
064            /**
065            * Removes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param entryId the primary key of the asset entry
068            * @return the asset entry that was removed
069            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portlet.asset.model.AssetEntry remove(long entryId)
073                    throws com.liferay.portal.kernel.exception.SystemException,
074                            com.liferay.portlet.asset.NoSuchEntryException;
075    
076            public com.liferay.portlet.asset.model.AssetEntry updateImpl(
077                    com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            /**
081            * Returns the asset entry with the primary key or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found.
082            *
083            * @param entryId the primary key of the asset entry
084            * @return the asset entry
085            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
086            * @throws SystemException if a system exception occurred
087            */
088            public com.liferay.portlet.asset.model.AssetEntry findByPrimaryKey(
089                    long entryId)
090                    throws com.liferay.portal.kernel.exception.SystemException,
091                            com.liferay.portlet.asset.NoSuchEntryException;
092    
093            /**
094            * Returns the asset entry with the primary key or returns <code>null</code> if it could not be found.
095            *
096            * @param entryId the primary key of the asset entry
097            * @return the asset entry, or <code>null</code> if a asset entry with the primary key could not be found
098            * @throws SystemException if a system exception occurred
099            */
100            public com.liferay.portlet.asset.model.AssetEntry fetchByPrimaryKey(
101                    long entryId)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            /**
105            * Returns all the asset entries where companyId = &#63;.
106            *
107            * @param companyId the company ID
108            * @return the matching asset entries
109            * @throws SystemException if a system exception occurred
110            */
111            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
112                    long companyId)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    
115            /**
116            * Returns a range of all the asset entries where companyId = &#63;.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param companyId the company ID
123            * @param start the lower bound of the range of asset entries
124            * @param end the upper bound of the range of asset entries (not inclusive)
125            * @return the range of matching asset entries
126            * @throws SystemException if a system exception occurred
127            */
128            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
129                    long companyId, int start, int end)
130                    throws com.liferay.portal.kernel.exception.SystemException;
131    
132            /**
133            * Returns an ordered range of all the asset entries where companyId = &#63;.
134            *
135            * <p>
136            * 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.
137            * </p>
138            *
139            * @param companyId the company ID
140            * @param start the lower bound of the range of asset entries
141            * @param end the upper bound of the range of asset entries (not inclusive)
142            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
143            * @return the ordered range of matching asset entries
144            * @throws SystemException if a system exception occurred
145            */
146            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByCompanyId(
147                    long companyId, int start, int end,
148                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149                    throws com.liferay.portal.kernel.exception.SystemException;
150    
151            /**
152            * Returns the first asset entry in the ordered set where companyId = &#63;.
153            *
154            * @param companyId the company ID
155            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
156            * @return the first matching asset entry
157            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
158            * @throws SystemException if a system exception occurred
159            */
160            public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_First(
161                    long companyId,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.kernel.exception.SystemException,
164                            com.liferay.portlet.asset.NoSuchEntryException;
165    
166            /**
167            * Returns the first asset entry in the ordered set where companyId = &#63;.
168            *
169            * @param companyId the company ID
170            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
171            * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public com.liferay.portlet.asset.model.AssetEntry fetchByCompanyId_First(
175                    long companyId,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns the last asset entry in the ordered set where companyId = &#63;.
181            *
182            * @param companyId the company ID
183            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
184            * @return the last matching asset entry
185            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public com.liferay.portlet.asset.model.AssetEntry findByCompanyId_Last(
189                    long companyId,
190                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191                    throws com.liferay.portal.kernel.exception.SystemException,
192                            com.liferay.portlet.asset.NoSuchEntryException;
193    
194            /**
195            * Returns the last asset entry in the ordered set where companyId = &#63;.
196            *
197            * @param companyId the company ID
198            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
199            * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public com.liferay.portlet.asset.model.AssetEntry fetchByCompanyId_Last(
203                    long companyId,
204                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Returns the asset entries before and after the current asset entry in the ordered set where companyId = &#63;.
209            *
210            * @param entryId the primary key of the current asset entry
211            * @param companyId the company ID
212            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
213            * @return the previous, current, and next asset entry
214            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
215            * @throws SystemException if a system exception occurred
216            */
217            public com.liferay.portlet.asset.model.AssetEntry[] findByCompanyId_PrevAndNext(
218                    long entryId, long companyId,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.kernel.exception.SystemException,
221                            com.liferay.portlet.asset.NoSuchEntryException;
222    
223            /**
224            * Returns all the asset entries where visible = &#63;.
225            *
226            * @param visible the visible
227            * @return the matching asset entries
228            * @throws SystemException if a system exception occurred
229            */
230            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible(
231                    boolean visible)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Returns a range of all the asset entries where visible = &#63;.
236            *
237            * <p>
238            * 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.
239            * </p>
240            *
241            * @param visible the visible
242            * @param start the lower bound of the range of asset entries
243            * @param end the upper bound of the range of asset entries (not inclusive)
244            * @return the range of matching asset entries
245            * @throws SystemException if a system exception occurred
246            */
247            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible(
248                    boolean visible, int start, int end)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * Returns an ordered range of all the asset entries where visible = &#63;.
253            *
254            * <p>
255            * 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.
256            * </p>
257            *
258            * @param visible the visible
259            * @param start the lower bound of the range of asset entries
260            * @param end the upper bound of the range of asset entries (not inclusive)
261            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
262            * @return the ordered range of matching asset entries
263            * @throws SystemException if a system exception occurred
264            */
265            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByVisible(
266                    boolean visible, int start, int end,
267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            /**
271            * Returns the first asset entry in the ordered set where visible = &#63;.
272            *
273            * @param visible the visible
274            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
275            * @return the first matching asset entry
276            * @throws com.liferay.portlet.asset.NoSuchEntryException 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 findByVisible_First(
280                    boolean visible,
281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282                    throws com.liferay.portal.kernel.exception.SystemException,
283                            com.liferay.portlet.asset.NoSuchEntryException;
284    
285            /**
286            * Returns the first asset entry in the ordered set where visible = &#63;.
287            *
288            * @param visible the visible
289            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
290            * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found
291            * @throws SystemException if a system exception occurred
292            */
293            public com.liferay.portlet.asset.model.AssetEntry fetchByVisible_First(
294                    boolean visible,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * Returns the last asset entry in the ordered set where visible = &#63;.
300            *
301            * @param visible the visible
302            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
303            * @return the last matching asset entry
304            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
305            * @throws SystemException if a system exception occurred
306            */
307            public com.liferay.portlet.asset.model.AssetEntry findByVisible_Last(
308                    boolean visible,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.kernel.exception.SystemException,
311                            com.liferay.portlet.asset.NoSuchEntryException;
312    
313            /**
314            * Returns the last asset entry in the ordered set where visible = &#63;.
315            *
316            * @param visible the visible
317            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
318            * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public com.liferay.portlet.asset.model.AssetEntry fetchByVisible_Last(
322                    boolean visible,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException;
325    
326            /**
327            * Returns the asset entries before and after the current asset entry in the ordered set where visible = &#63;.
328            *
329            * @param entryId the primary key of the current asset entry
330            * @param visible the visible
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the previous, current, and next asset entry
333            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public com.liferay.portlet.asset.model.AssetEntry[] findByVisible_PrevAndNext(
337                    long entryId, boolean visible,
338                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
339                    throws com.liferay.portal.kernel.exception.SystemException,
340                            com.liferay.portlet.asset.NoSuchEntryException;
341    
342            /**
343            * Returns all the asset entries where publishDate = &#63;.
344            *
345            * @param publishDate the publish date
346            * @return the matching asset entries
347            * @throws SystemException if a system exception occurred
348            */
349            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate(
350                    java.util.Date publishDate)
351                    throws com.liferay.portal.kernel.exception.SystemException;
352    
353            /**
354            * Returns a range of all the asset entries where publishDate = &#63;.
355            *
356            * <p>
357            * 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.
358            * </p>
359            *
360            * @param publishDate the publish date
361            * @param start the lower bound of the range of asset entries
362            * @param end the upper bound of the range of asset entries (not inclusive)
363            * @return the range of matching asset entries
364            * @throws SystemException if a system exception occurred
365            */
366            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate(
367                    java.util.Date publishDate, int start, int end)
368                    throws com.liferay.portal.kernel.exception.SystemException;
369    
370            /**
371            * Returns an ordered range of all the asset entries where publishDate = &#63;.
372            *
373            * <p>
374            * 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.
375            * </p>
376            *
377            * @param publishDate the publish date
378            * @param start the lower bound of the range of asset entries
379            * @param end the upper bound of the range of asset entries (not inclusive)
380            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
381            * @return the ordered range of matching asset entries
382            * @throws SystemException if a system exception occurred
383            */
384            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByPublishDate(
385                    java.util.Date publishDate, int start, int end,
386                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
387                    throws com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * Returns the first asset entry in the ordered set where publishDate = &#63;.
391            *
392            * @param publishDate the publish date
393            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
394            * @return the first matching asset entry
395            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
396            * @throws SystemException if a system exception occurred
397            */
398            public com.liferay.portlet.asset.model.AssetEntry findByPublishDate_First(
399                    java.util.Date publishDate,
400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
401                    throws com.liferay.portal.kernel.exception.SystemException,
402                            com.liferay.portlet.asset.NoSuchEntryException;
403    
404            /**
405            * Returns the first asset entry in the ordered set where publishDate = &#63;.
406            *
407            * @param publishDate the publish date
408            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
409            * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public com.liferay.portlet.asset.model.AssetEntry fetchByPublishDate_First(
413                    java.util.Date publishDate,
414                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415                    throws com.liferay.portal.kernel.exception.SystemException;
416    
417            /**
418            * Returns the last asset entry in the ordered set where publishDate = &#63;.
419            *
420            * @param publishDate the publish date
421            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
422            * @return the last matching asset entry
423            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
424            * @throws SystemException if a system exception occurred
425            */
426            public com.liferay.portlet.asset.model.AssetEntry findByPublishDate_Last(
427                    java.util.Date publishDate,
428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429                    throws com.liferay.portal.kernel.exception.SystemException,
430                            com.liferay.portlet.asset.NoSuchEntryException;
431    
432            /**
433            * Returns the last asset entry in the ordered set where publishDate = &#63;.
434            *
435            * @param publishDate the publish date
436            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
437            * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found
438            * @throws SystemException if a system exception occurred
439            */
440            public com.liferay.portlet.asset.model.AssetEntry fetchByPublishDate_Last(
441                    java.util.Date publishDate,
442                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
443                    throws com.liferay.portal.kernel.exception.SystemException;
444    
445            /**
446            * Returns the asset entries before and after the current asset entry in the ordered set where publishDate = &#63;.
447            *
448            * @param entryId the primary key of the current asset entry
449            * @param publishDate the publish date
450            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
451            * @return the previous, current, and next asset entry
452            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
453            * @throws SystemException if a system exception occurred
454            */
455            public com.liferay.portlet.asset.model.AssetEntry[] findByPublishDate_PrevAndNext(
456                    long entryId, java.util.Date publishDate,
457                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
458                    throws com.liferay.portal.kernel.exception.SystemException,
459                            com.liferay.portlet.asset.NoSuchEntryException;
460    
461            /**
462            * Returns all the asset entries where expirationDate = &#63;.
463            *
464            * @param expirationDate the expiration date
465            * @return the matching asset entries
466            * @throws SystemException if a system exception occurred
467            */
468            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate(
469                    java.util.Date expirationDate)
470                    throws com.liferay.portal.kernel.exception.SystemException;
471    
472            /**
473            * Returns a range of all the asset entries where expirationDate = &#63;.
474            *
475            * <p>
476            * 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.
477            * </p>
478            *
479            * @param expirationDate the expiration date
480            * @param start the lower bound of the range of asset entries
481            * @param end the upper bound of the range of asset entries (not inclusive)
482            * @return the range of matching asset entries
483            * @throws SystemException if a system exception occurred
484            */
485            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate(
486                    java.util.Date expirationDate, int start, int end)
487                    throws com.liferay.portal.kernel.exception.SystemException;
488    
489            /**
490            * Returns an ordered range of all the asset entries where expirationDate = &#63;.
491            *
492            * <p>
493            * 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.
494            * </p>
495            *
496            * @param expirationDate the expiration date
497            * @param start the lower bound of the range of asset entries
498            * @param end the upper bound of the range of asset entries (not inclusive)
499            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
500            * @return the ordered range of matching asset entries
501            * @throws SystemException if a system exception occurred
502            */
503            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findByExpirationDate(
504                    java.util.Date expirationDate, int start, int end,
505                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
506                    throws com.liferay.portal.kernel.exception.SystemException;
507    
508            /**
509            * Returns the first asset entry in the ordered set where expirationDate = &#63;.
510            *
511            * @param expirationDate the expiration date
512            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
513            * @return the first matching asset entry
514            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_First(
518                    java.util.Date expirationDate,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException,
521                            com.liferay.portlet.asset.NoSuchEntryException;
522    
523            /**
524            * Returns the first asset entry in the ordered set where expirationDate = &#63;.
525            *
526            * @param expirationDate the expiration date
527            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
528            * @return the first matching asset entry, or <code>null</code> if a matching asset entry could not be found
529            * @throws SystemException if a system exception occurred
530            */
531            public com.liferay.portlet.asset.model.AssetEntry fetchByExpirationDate_First(
532                    java.util.Date expirationDate,
533                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    
536            /**
537            * Returns the last asset entry in the ordered set where expirationDate = &#63;.
538            *
539            * @param expirationDate the expiration date
540            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
541            * @return the last matching asset entry
542            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
543            * @throws SystemException if a system exception occurred
544            */
545            public com.liferay.portlet.asset.model.AssetEntry findByExpirationDate_Last(
546                    java.util.Date expirationDate,
547                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
548                    throws com.liferay.portal.kernel.exception.SystemException,
549                            com.liferay.portlet.asset.NoSuchEntryException;
550    
551            /**
552            * Returns the last asset entry in the ordered set where expirationDate = &#63;.
553            *
554            * @param expirationDate the expiration date
555            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
556            * @return the last matching asset entry, or <code>null</code> if a matching asset entry could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public com.liferay.portlet.asset.model.AssetEntry fetchByExpirationDate_Last(
560                    java.util.Date expirationDate,
561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
562                    throws com.liferay.portal.kernel.exception.SystemException;
563    
564            /**
565            * Returns the asset entries before and after the current asset entry in the ordered set where expirationDate = &#63;.
566            *
567            * @param entryId the primary key of the current asset entry
568            * @param expirationDate the expiration date
569            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
570            * @return the previous, current, and next asset entry
571            * @throws com.liferay.portlet.asset.NoSuchEntryException if a asset entry with the primary key could not be found
572            * @throws SystemException if a system exception occurred
573            */
574            public com.liferay.portlet.asset.model.AssetEntry[] findByExpirationDate_PrevAndNext(
575                    long entryId, java.util.Date expirationDate,
576                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
577                    throws com.liferay.portal.kernel.exception.SystemException,
578                            com.liferay.portlet.asset.NoSuchEntryException;
579    
580            /**
581            * Returns the asset entry where groupId = &#63; and classUuid = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found.
582            *
583            * @param groupId the group ID
584            * @param classUuid the class uuid
585            * @return the matching asset entry
586            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
587            * @throws SystemException if a system exception occurred
588            */
589            public com.liferay.portlet.asset.model.AssetEntry findByG_CU(long groupId,
590                    java.lang.String classUuid)
591                    throws com.liferay.portal.kernel.exception.SystemException,
592                            com.liferay.portlet.asset.NoSuchEntryException;
593    
594            /**
595            * Returns the asset entry where groupId = &#63; and classUuid = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
596            *
597            * @param groupId the group ID
598            * @param classUuid the class uuid
599            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
600            * @throws SystemException if a system exception occurred
601            */
602            public com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
603                    long groupId, java.lang.String classUuid)
604                    throws com.liferay.portal.kernel.exception.SystemException;
605    
606            /**
607            * Returns 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.
608            *
609            * @param groupId the group ID
610            * @param classUuid the class uuid
611            * @param retrieveFromCache whether to use the finder cache
612            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
613            * @throws SystemException if a system exception occurred
614            */
615            public com.liferay.portlet.asset.model.AssetEntry fetchByG_CU(
616                    long groupId, java.lang.String classUuid, boolean retrieveFromCache)
617                    throws com.liferay.portal.kernel.exception.SystemException;
618    
619            /**
620            * Returns the asset entry where classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portlet.asset.NoSuchEntryException} if it could not be found.
621            *
622            * @param classNameId the class name ID
623            * @param classPK the class p k
624            * @return the matching asset entry
625            * @throws com.liferay.portlet.asset.NoSuchEntryException if a matching asset entry could not be found
626            * @throws SystemException if a system exception occurred
627            */
628            public com.liferay.portlet.asset.model.AssetEntry findByC_C(
629                    long classNameId, long classPK)
630                    throws com.liferay.portal.kernel.exception.SystemException,
631                            com.liferay.portlet.asset.NoSuchEntryException;
632    
633            /**
634            * Returns the asset entry where classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
635            *
636            * @param classNameId the class name ID
637            * @param classPK the class p k
638            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
639            * @throws SystemException if a system exception occurred
640            */
641            public com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
642                    long classNameId, long classPK)
643                    throws com.liferay.portal.kernel.exception.SystemException;
644    
645            /**
646            * Returns 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.
647            *
648            * @param classNameId the class name ID
649            * @param classPK the class p k
650            * @param retrieveFromCache whether to use the finder cache
651            * @return the matching asset entry, or <code>null</code> if a matching asset entry could not be found
652            * @throws SystemException if a system exception occurred
653            */
654            public com.liferay.portlet.asset.model.AssetEntry fetchByC_C(
655                    long classNameId, long classPK, boolean retrieveFromCache)
656                    throws com.liferay.portal.kernel.exception.SystemException;
657    
658            /**
659            * Returns all the asset entries.
660            *
661            * @return the asset entries
662            * @throws SystemException if a system exception occurred
663            */
664            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll()
665                    throws com.liferay.portal.kernel.exception.SystemException;
666    
667            /**
668            * Returns a range of all the asset entries.
669            *
670            * <p>
671            * 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.
672            * </p>
673            *
674            * @param start the lower bound of the range of asset entries
675            * @param end the upper bound of the range of asset entries (not inclusive)
676            * @return the range of asset entries
677            * @throws SystemException if a system exception occurred
678            */
679            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
680                    int start, int end)
681                    throws com.liferay.portal.kernel.exception.SystemException;
682    
683            /**
684            * Returns an ordered range of all the asset entries.
685            *
686            * <p>
687            * 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.
688            * </p>
689            *
690            * @param start the lower bound of the range of asset entries
691            * @param end the upper bound of the range of asset entries (not inclusive)
692            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
693            * @return the ordered range of asset entries
694            * @throws SystemException if a system exception occurred
695            */
696            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> findAll(
697                    int start, int end,
698                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
699                    throws com.liferay.portal.kernel.exception.SystemException;
700    
701            /**
702            * Removes all the asset entries where companyId = &#63; from the database.
703            *
704            * @param companyId the company ID
705            * @throws SystemException if a system exception occurred
706            */
707            public void removeByCompanyId(long companyId)
708                    throws com.liferay.portal.kernel.exception.SystemException;
709    
710            /**
711            * Removes all the asset entries where visible = &#63; from the database.
712            *
713            * @param visible the visible
714            * @throws SystemException if a system exception occurred
715            */
716            public void removeByVisible(boolean visible)
717                    throws com.liferay.portal.kernel.exception.SystemException;
718    
719            /**
720            * Removes all the asset entries where publishDate = &#63; from the database.
721            *
722            * @param publishDate the publish date
723            * @throws SystemException if a system exception occurred
724            */
725            public void removeByPublishDate(java.util.Date publishDate)
726                    throws com.liferay.portal.kernel.exception.SystemException;
727    
728            /**
729            * Removes all the asset entries where expirationDate = &#63; from the database.
730            *
731            * @param expirationDate the expiration date
732            * @throws SystemException if a system exception occurred
733            */
734            public void removeByExpirationDate(java.util.Date expirationDate)
735                    throws com.liferay.portal.kernel.exception.SystemException;
736    
737            /**
738            * Removes the asset entry where groupId = &#63; and classUuid = &#63; from the database.
739            *
740            * @param groupId the group ID
741            * @param classUuid the class uuid
742            * @return the asset entry that was removed
743            * @throws SystemException if a system exception occurred
744            */
745            public com.liferay.portlet.asset.model.AssetEntry removeByG_CU(
746                    long groupId, java.lang.String classUuid)
747                    throws com.liferay.portal.kernel.exception.SystemException,
748                            com.liferay.portlet.asset.NoSuchEntryException;
749    
750            /**
751            * Removes the asset entry where classNameId = &#63; and classPK = &#63; from the database.
752            *
753            * @param classNameId the class name ID
754            * @param classPK the class p k
755            * @return the asset entry that was removed
756            * @throws SystemException if a system exception occurred
757            */
758            public com.liferay.portlet.asset.model.AssetEntry removeByC_C(
759                    long classNameId, long classPK)
760                    throws com.liferay.portal.kernel.exception.SystemException,
761                            com.liferay.portlet.asset.NoSuchEntryException;
762    
763            /**
764            * Removes all the asset entries from the database.
765            *
766            * @throws SystemException if a system exception occurred
767            */
768            public void removeAll()
769                    throws com.liferay.portal.kernel.exception.SystemException;
770    
771            /**
772            * Returns the number of asset entries where companyId = &#63;.
773            *
774            * @param companyId the company ID
775            * @return the number of matching asset entries
776            * @throws SystemException if a system exception occurred
777            */
778            public int countByCompanyId(long companyId)
779                    throws com.liferay.portal.kernel.exception.SystemException;
780    
781            /**
782            * Returns the number of asset entries where visible = &#63;.
783            *
784            * @param visible the visible
785            * @return the number of matching asset entries
786            * @throws SystemException if a system exception occurred
787            */
788            public int countByVisible(boolean visible)
789                    throws com.liferay.portal.kernel.exception.SystemException;
790    
791            /**
792            * Returns the number of asset entries where publishDate = &#63;.
793            *
794            * @param publishDate the publish date
795            * @return the number of matching asset entries
796            * @throws SystemException if a system exception occurred
797            */
798            public int countByPublishDate(java.util.Date publishDate)
799                    throws com.liferay.portal.kernel.exception.SystemException;
800    
801            /**
802            * Returns the number of asset entries where expirationDate = &#63;.
803            *
804            * @param expirationDate the expiration date
805            * @return the number of matching asset entries
806            * @throws SystemException if a system exception occurred
807            */
808            public int countByExpirationDate(java.util.Date expirationDate)
809                    throws com.liferay.portal.kernel.exception.SystemException;
810    
811            /**
812            * Returns the number of asset entries where groupId = &#63; and classUuid = &#63;.
813            *
814            * @param groupId the group ID
815            * @param classUuid the class uuid
816            * @return the number of matching asset entries
817            * @throws SystemException if a system exception occurred
818            */
819            public int countByG_CU(long groupId, java.lang.String classUuid)
820                    throws com.liferay.portal.kernel.exception.SystemException;
821    
822            /**
823            * Returns the number of asset entries where classNameId = &#63; and classPK = &#63;.
824            *
825            * @param classNameId the class name ID
826            * @param classPK the class p k
827            * @return the number of matching asset entries
828            * @throws SystemException if a system exception occurred
829            */
830            public int countByC_C(long classNameId, long classPK)
831                    throws com.liferay.portal.kernel.exception.SystemException;
832    
833            /**
834            * Returns the number of asset entries.
835            *
836            * @return the number of asset entries
837            * @throws SystemException if a system exception occurred
838            */
839            public int countAll()
840                    throws com.liferay.portal.kernel.exception.SystemException;
841    
842            /**
843            * Returns all the asset categories associated with the asset entry.
844            *
845            * @param pk the primary key of the asset entry
846            * @return the asset categories associated with the asset entry
847            * @throws SystemException if a system exception occurred
848            */
849            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
850                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
851    
852            /**
853            * Returns a range of all the asset categories associated with the asset entry.
854            *
855            * <p>
856            * 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.
857            * </p>
858            *
859            * @param pk the primary key of the asset entry
860            * @param start the lower bound of the range of asset entries
861            * @param end the upper bound of the range of asset entries (not inclusive)
862            * @return the range of asset categories associated with the asset entry
863            * @throws SystemException if a system exception occurred
864            */
865            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
866                    long pk, int start, int end)
867                    throws com.liferay.portal.kernel.exception.SystemException;
868    
869            /**
870            * Returns an ordered range of all the asset categories associated with the asset entry.
871            *
872            * <p>
873            * 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.
874            * </p>
875            *
876            * @param pk the primary key of the asset entry
877            * @param start the lower bound of the range of asset entries
878            * @param end the upper bound of the range of asset entries (not inclusive)
879            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
880            * @return the ordered range of asset categories associated with the asset entry
881            * @throws SystemException if a system exception occurred
882            */
883            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getAssetCategories(
884                    long pk, int start, int end,
885                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
886                    throws com.liferay.portal.kernel.exception.SystemException;
887    
888            /**
889            * Returns the number of asset categories associated with the asset entry.
890            *
891            * @param pk the primary key of the asset entry
892            * @return the number of asset categories associated with the asset entry
893            * @throws SystemException if a system exception occurred
894            */
895            public int getAssetCategoriesSize(long pk)
896                    throws com.liferay.portal.kernel.exception.SystemException;
897    
898            /**
899            * Returns <code>true</code> if the asset category is associated with the asset entry.
900            *
901            * @param pk the primary key of the asset entry
902            * @param assetCategoryPK the primary key of the asset category
903            * @return <code>true</code> if the asset category is associated with the asset entry; <code>false</code> otherwise
904            * @throws SystemException if a system exception occurred
905            */
906            public boolean containsAssetCategory(long pk, long assetCategoryPK)
907                    throws com.liferay.portal.kernel.exception.SystemException;
908    
909            /**
910            * Returns <code>true</code> if the asset entry has any asset categories associated with it.
911            *
912            * @param pk the primary key of the asset entry to check for associations with asset categories
913            * @return <code>true</code> if the asset entry has any asset categories associated with it; <code>false</code> otherwise
914            * @throws SystemException if a system exception occurred
915            */
916            public boolean containsAssetCategories(long pk)
917                    throws com.liferay.portal.kernel.exception.SystemException;
918    
919            /**
920            * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
921            *
922            * @param pk the primary key of the asset entry
923            * @param assetCategoryPK the primary key of the asset category
924            * @throws SystemException if a system exception occurred
925            */
926            public void addAssetCategory(long pk, long assetCategoryPK)
927                    throws com.liferay.portal.kernel.exception.SystemException;
928    
929            /**
930            * Adds an association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
931            *
932            * @param pk the primary key of the asset entry
933            * @param assetCategory the asset category
934            * @throws SystemException if a system exception occurred
935            */
936            public void addAssetCategory(long pk,
937                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
938                    throws com.liferay.portal.kernel.exception.SystemException;
939    
940            /**
941            * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
942            *
943            * @param pk the primary key of the asset entry
944            * @param assetCategoryPKs the primary keys of the asset categories
945            * @throws SystemException if a system exception occurred
946            */
947            public void addAssetCategories(long pk, long[] assetCategoryPKs)
948                    throws com.liferay.portal.kernel.exception.SystemException;
949    
950            /**
951            * Adds an association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
952            *
953            * @param pk the primary key of the asset entry
954            * @param assetCategories the asset categories
955            * @throws SystemException if a system exception occurred
956            */
957            public void addAssetCategories(long pk,
958                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
959                    throws com.liferay.portal.kernel.exception.SystemException;
960    
961            /**
962            * Clears all associations between the asset entry and its asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
963            *
964            * @param pk the primary key of the asset entry to clear the associated asset categories from
965            * @throws SystemException if a system exception occurred
966            */
967            public void clearAssetCategories(long pk)
968                    throws com.liferay.portal.kernel.exception.SystemException;
969    
970            /**
971            * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
972            *
973            * @param pk the primary key of the asset entry
974            * @param assetCategoryPK the primary key of the asset category
975            * @throws SystemException if a system exception occurred
976            */
977            public void removeAssetCategory(long pk, long assetCategoryPK)
978                    throws com.liferay.portal.kernel.exception.SystemException;
979    
980            /**
981            * Removes the association between the asset entry and the asset category. Also notifies the appropriate model listeners and clears the mapping table finder cache.
982            *
983            * @param pk the primary key of the asset entry
984            * @param assetCategory the asset category
985            * @throws SystemException if a system exception occurred
986            */
987            public void removeAssetCategory(long pk,
988                    com.liferay.portlet.asset.model.AssetCategory assetCategory)
989                    throws com.liferay.portal.kernel.exception.SystemException;
990    
991            /**
992            * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
993            *
994            * @param pk the primary key of the asset entry
995            * @param assetCategoryPKs the primary keys of the asset categories
996            * @throws SystemException if a system exception occurred
997            */
998            public void removeAssetCategories(long pk, long[] assetCategoryPKs)
999                    throws com.liferay.portal.kernel.exception.SystemException;
1000    
1001            /**
1002            * Removes the association between the asset entry and the asset categories. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1003            *
1004            * @param pk the primary key of the asset entry
1005            * @param assetCategories the asset categories
1006            * @throws SystemException if a system exception occurred
1007            */
1008            public void removeAssetCategories(long pk,
1009                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
1010                    throws com.liferay.portal.kernel.exception.SystemException;
1011    
1012            /**
1013            * 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.
1014            *
1015            * @param pk the primary key of the asset entry
1016            * @param assetCategoryPKs the primary keys of the asset categories to be associated with the asset entry
1017            * @throws SystemException if a system exception occurred
1018            */
1019            public void setAssetCategories(long pk, long[] assetCategoryPKs)
1020                    throws com.liferay.portal.kernel.exception.SystemException;
1021    
1022            /**
1023            * 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.
1024            *
1025            * @param pk the primary key of the asset entry
1026            * @param assetCategories the asset categories to be associated with the asset entry
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public void setAssetCategories(long pk,
1030                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories)
1031                    throws com.liferay.portal.kernel.exception.SystemException;
1032    
1033            /**
1034            * Returns all the asset tags associated with the asset entry.
1035            *
1036            * @param pk the primary key of the asset entry
1037            * @return the asset tags associated with the asset entry
1038            * @throws SystemException if a system exception occurred
1039            */
1040            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
1041                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
1042    
1043            /**
1044            * Returns a range of all the asset tags associated with the asset entry.
1045            *
1046            * <p>
1047            * 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.
1048            * </p>
1049            *
1050            * @param pk the primary key of the asset entry
1051            * @param start the lower bound of the range of asset entries
1052            * @param end the upper bound of the range of asset entries (not inclusive)
1053            * @return the range of asset tags associated with the asset entry
1054            * @throws SystemException if a system exception occurred
1055            */
1056            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
1057                    long pk, int start, int end)
1058                    throws com.liferay.portal.kernel.exception.SystemException;
1059    
1060            /**
1061            * Returns an ordered range of all the asset tags associated with the asset entry.
1062            *
1063            * <p>
1064            * 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.
1065            * </p>
1066            *
1067            * @param pk the primary key of the asset entry
1068            * @param start the lower bound of the range of asset entries
1069            * @param end the upper bound of the range of asset entries (not inclusive)
1070            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1071            * @return the ordered range of asset tags associated with the asset entry
1072            * @throws SystemException if a system exception occurred
1073            */
1074            public java.util.List<com.liferay.portlet.asset.model.AssetTag> getAssetTags(
1075                    long pk, int start, int end,
1076                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1077                    throws com.liferay.portal.kernel.exception.SystemException;
1078    
1079            /**
1080            * Returns the number of asset tags associated with the asset entry.
1081            *
1082            * @param pk the primary key of the asset entry
1083            * @return the number of asset tags associated with the asset entry
1084            * @throws SystemException if a system exception occurred
1085            */
1086            public int getAssetTagsSize(long pk)
1087                    throws com.liferay.portal.kernel.exception.SystemException;
1088    
1089            /**
1090            * Returns <code>true</code> if the asset tag is associated with the asset entry.
1091            *
1092            * @param pk the primary key of the asset entry
1093            * @param assetTagPK the primary key of the asset tag
1094            * @return <code>true</code> if the asset tag is associated with the asset entry; <code>false</code> otherwise
1095            * @throws SystemException if a system exception occurred
1096            */
1097            public boolean containsAssetTag(long pk, long assetTagPK)
1098                    throws com.liferay.portal.kernel.exception.SystemException;
1099    
1100            /**
1101            * Returns <code>true</code> if the asset entry has any asset tags associated with it.
1102            *
1103            * @param pk the primary key of the asset entry to check for associations with asset tags
1104            * @return <code>true</code> if the asset entry has any asset tags associated with it; <code>false</code> otherwise
1105            * @throws SystemException if a system exception occurred
1106            */
1107            public boolean containsAssetTags(long pk)
1108                    throws com.liferay.portal.kernel.exception.SystemException;
1109    
1110            /**
1111            * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1112            *
1113            * @param pk the primary key of the asset entry
1114            * @param assetTagPK the primary key of the asset tag
1115            * @throws SystemException if a system exception occurred
1116            */
1117            public void addAssetTag(long pk, long assetTagPK)
1118                    throws com.liferay.portal.kernel.exception.SystemException;
1119    
1120            /**
1121            * Adds an association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1122            *
1123            * @param pk the primary key of the asset entry
1124            * @param assetTag the asset tag
1125            * @throws SystemException if a system exception occurred
1126            */
1127            public void addAssetTag(long pk,
1128                    com.liferay.portlet.asset.model.AssetTag assetTag)
1129                    throws com.liferay.portal.kernel.exception.SystemException;
1130    
1131            /**
1132            * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1133            *
1134            * @param pk the primary key of the asset entry
1135            * @param assetTagPKs the primary keys of the asset tags
1136            * @throws SystemException if a system exception occurred
1137            */
1138            public void addAssetTags(long pk, long[] assetTagPKs)
1139                    throws com.liferay.portal.kernel.exception.SystemException;
1140    
1141            /**
1142            * Adds an association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1143            *
1144            * @param pk the primary key of the asset entry
1145            * @param assetTags the asset tags
1146            * @throws SystemException if a system exception occurred
1147            */
1148            public void addAssetTags(long pk,
1149                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
1150                    throws com.liferay.portal.kernel.exception.SystemException;
1151    
1152            /**
1153            * Clears all associations between the asset entry and its asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1154            *
1155            * @param pk the primary key of the asset entry to clear the associated asset tags from
1156            * @throws SystemException if a system exception occurred
1157            */
1158            public void clearAssetTags(long pk)
1159                    throws com.liferay.portal.kernel.exception.SystemException;
1160    
1161            /**
1162            * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1163            *
1164            * @param pk the primary key of the asset entry
1165            * @param assetTagPK the primary key of the asset tag
1166            * @throws SystemException if a system exception occurred
1167            */
1168            public void removeAssetTag(long pk, long assetTagPK)
1169                    throws com.liferay.portal.kernel.exception.SystemException;
1170    
1171            /**
1172            * Removes the association between the asset entry and the asset tag. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1173            *
1174            * @param pk the primary key of the asset entry
1175            * @param assetTag the asset tag
1176            * @throws SystemException if a system exception occurred
1177            */
1178            public void removeAssetTag(long pk,
1179                    com.liferay.portlet.asset.model.AssetTag assetTag)
1180                    throws com.liferay.portal.kernel.exception.SystemException;
1181    
1182            /**
1183            * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1184            *
1185            * @param pk the primary key of the asset entry
1186            * @param assetTagPKs the primary keys of the asset tags
1187            * @throws SystemException if a system exception occurred
1188            */
1189            public void removeAssetTags(long pk, long[] assetTagPKs)
1190                    throws com.liferay.portal.kernel.exception.SystemException;
1191    
1192            /**
1193            * Removes the association between the asset entry and the asset tags. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1194            *
1195            * @param pk the primary key of the asset entry
1196            * @param assetTags the asset tags
1197            * @throws SystemException if a system exception occurred
1198            */
1199            public void removeAssetTags(long pk,
1200                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
1201                    throws com.liferay.portal.kernel.exception.SystemException;
1202    
1203            /**
1204            * 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.
1205            *
1206            * @param pk the primary key of the asset entry
1207            * @param assetTagPKs the primary keys of the asset tags to be associated with the asset entry
1208            * @throws SystemException if a system exception occurred
1209            */
1210            public void setAssetTags(long pk, long[] assetTagPKs)
1211                    throws com.liferay.portal.kernel.exception.SystemException;
1212    
1213            /**
1214            * 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.
1215            *
1216            * @param pk the primary key of the asset entry
1217            * @param assetTags the asset tags to be associated with the asset entry
1218            * @throws SystemException if a system exception occurred
1219            */
1220            public void setAssetTags(long pk,
1221                    java.util.List<com.liferay.portlet.asset.model.AssetTag> assetTags)
1222                    throws com.liferay.portal.kernel.exception.SystemException;
1223    }