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