001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.asset.model.AssetCategory;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       AssetCategoryPersistenceImpl
024     * @see       AssetCategoryUtil
025     * @generated
026     */
027    public interface AssetCategoryPersistence extends BasePersistence<AssetCategory> {
028            public void cacheResult(
029                    com.liferay.portlet.asset.model.AssetCategory assetCategory);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories);
033    
034            public com.liferay.portlet.asset.model.AssetCategory create(long categoryId);
035    
036            public com.liferay.portlet.asset.model.AssetCategory remove(long categoryId)
037                    throws com.liferay.portal.kernel.exception.SystemException,
038                            com.liferay.portlet.asset.NoSuchCategoryException;
039    
040            public com.liferay.portlet.asset.model.AssetCategory updateImpl(
041                    com.liferay.portlet.asset.model.AssetCategory assetCategory,
042                    boolean merge)
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portlet.asset.model.AssetCategory findByPrimaryKey(
046                    long categoryId)
047                    throws com.liferay.portal.kernel.exception.SystemException,
048                            com.liferay.portlet.asset.NoSuchCategoryException;
049    
050            public com.liferay.portlet.asset.model.AssetCategory fetchByPrimaryKey(
051                    long categoryId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
055                    java.lang.String uuid)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
059                    java.lang.String uuid, int start, int end)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
063                    java.lang.String uuid, int start, int end,
064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portlet.asset.model.AssetCategory findByUuid_First(
068                    java.lang.String uuid,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.kernel.exception.SystemException,
071                            com.liferay.portlet.asset.NoSuchCategoryException;
072    
073            public com.liferay.portlet.asset.model.AssetCategory findByUuid_Last(
074                    java.lang.String uuid,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.kernel.exception.SystemException,
077                            com.liferay.portlet.asset.NoSuchCategoryException;
078    
079            public com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext(
080                    long categoryId, java.lang.String uuid,
081                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
082                    throws com.liferay.portal.kernel.exception.SystemException,
083                            com.liferay.portlet.asset.NoSuchCategoryException;
084    
085            public com.liferay.portlet.asset.model.AssetCategory findByUUID_G(
086                    java.lang.String uuid, long groupId)
087                    throws com.liferay.portal.kernel.exception.SystemException,
088                            com.liferay.portlet.asset.NoSuchCategoryException;
089    
090            public com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
091                    java.lang.String uuid, long groupId)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
095                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
099                    long groupId)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
103                    long groupId, int start, int end)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
107                    long groupId, int start, int end,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException;
110    
111            public com.liferay.portlet.asset.model.AssetCategory findByGroupId_First(
112                    long groupId,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException,
115                            com.liferay.portlet.asset.NoSuchCategoryException;
116    
117            public com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last(
118                    long groupId,
119                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120                    throws com.liferay.portal.kernel.exception.SystemException,
121                            com.liferay.portlet.asset.NoSuchCategoryException;
122    
123            public com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext(
124                    long categoryId, long groupId,
125                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126                    throws com.liferay.portal.kernel.exception.SystemException,
127                            com.liferay.portlet.asset.NoSuchCategoryException;
128    
129            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
130                    long groupId)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
134                    long groupId, int start, int end)
135                    throws com.liferay.portal.kernel.exception.SystemException;
136    
137            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
138                    long groupId, int start, int end,
139                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
143                    long parentCategoryId)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
147                    long parentCategoryId, int start, int end)
148                    throws com.liferay.portal.kernel.exception.SystemException;
149    
150            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
151                    long parentCategoryId, int start, int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First(
156                    long parentCategoryId,
157                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158                    throws com.liferay.portal.kernel.exception.SystemException,
159                            com.liferay.portlet.asset.NoSuchCategoryException;
160    
161            public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last(
162                    long parentCategoryId,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException,
165                            com.liferay.portlet.asset.NoSuchCategoryException;
166    
167            public com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext(
168                    long categoryId, long parentCategoryId,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.asset.NoSuchCategoryException;
172    
173            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
174                    long vocabularyId)
175                    throws com.liferay.portal.kernel.exception.SystemException;
176    
177            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
178                    long vocabularyId, int start, int end)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
182                    long vocabularyId, int start, int end,
183                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184                    throws com.liferay.portal.kernel.exception.SystemException;
185    
186            public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First(
187                    long vocabularyId,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.asset.NoSuchCategoryException;
191    
192            public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last(
193                    long vocabularyId,
194                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195                    throws com.liferay.portal.kernel.exception.SystemException,
196                            com.liferay.portlet.asset.NoSuchCategoryException;
197    
198            public com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext(
199                    long categoryId, long vocabularyId,
200                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
201                    throws com.liferay.portal.kernel.exception.SystemException,
202                            com.liferay.portlet.asset.NoSuchCategoryException;
203    
204            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
205                    long parentCategoryId, java.lang.String name)
206                    throws com.liferay.portal.kernel.exception.SystemException;
207    
208            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
209                    long parentCategoryId, java.lang.String name, int start, int end)
210                    throws com.liferay.portal.kernel.exception.SystemException;
211    
212            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
213                    long parentCategoryId, java.lang.String name, int start, int end,
214                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    
217            public com.liferay.portlet.asset.model.AssetCategory findByP_N_First(
218                    long parentCategoryId, java.lang.String name,
219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
220                    throws com.liferay.portal.kernel.exception.SystemException,
221                            com.liferay.portlet.asset.NoSuchCategoryException;
222    
223            public com.liferay.portlet.asset.model.AssetCategory findByP_N_Last(
224                    long parentCategoryId, java.lang.String name,
225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226                    throws com.liferay.portal.kernel.exception.SystemException,
227                            com.liferay.portlet.asset.NoSuchCategoryException;
228    
229            public com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext(
230                    long categoryId, long parentCategoryId, java.lang.String name,
231                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
232                    throws com.liferay.portal.kernel.exception.SystemException,
233                            com.liferay.portlet.asset.NoSuchCategoryException;
234    
235            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
236                    long parentCategoryId, long vocabularyId)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
240                    long parentCategoryId, long vocabularyId, int start, int end)
241                    throws com.liferay.portal.kernel.exception.SystemException;
242    
243            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
244                    long parentCategoryId, long vocabularyId, int start, int end,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            public com.liferay.portlet.asset.model.AssetCategory findByP_V_First(
249                    long parentCategoryId, long vocabularyId,
250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251                    throws com.liferay.portal.kernel.exception.SystemException,
252                            com.liferay.portlet.asset.NoSuchCategoryException;
253    
254            public com.liferay.portlet.asset.model.AssetCategory findByP_V_Last(
255                    long parentCategoryId, long vocabularyId,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.kernel.exception.SystemException,
258                            com.liferay.portlet.asset.NoSuchCategoryException;
259    
260            public com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext(
261                    long categoryId, long parentCategoryId, long vocabularyId,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException,
264                            com.liferay.portlet.asset.NoSuchCategoryException;
265    
266            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
267                    java.lang.String name, long vocabularyId)
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
271                    java.lang.String name, long vocabularyId, int start, int end)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
275                    java.lang.String name, long vocabularyId, int start, int end,
276                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            public com.liferay.portlet.asset.model.AssetCategory findByN_V_First(
280                    java.lang.String name, long vocabularyId,
281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282                    throws com.liferay.portal.kernel.exception.SystemException,
283                            com.liferay.portlet.asset.NoSuchCategoryException;
284    
285            public com.liferay.portlet.asset.model.AssetCategory findByN_V_Last(
286                    java.lang.String name, long vocabularyId,
287                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
288                    throws com.liferay.portal.kernel.exception.SystemException,
289                            com.liferay.portlet.asset.NoSuchCategoryException;
290    
291            public com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext(
292                    long categoryId, java.lang.String name, long vocabularyId,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.kernel.exception.SystemException,
295                            com.liferay.portlet.asset.NoSuchCategoryException;
296    
297            public com.liferay.portlet.asset.model.AssetCategory findByP_N_V(
298                    long parentCategoryId, java.lang.String name, long vocabularyId)
299                    throws com.liferay.portal.kernel.exception.SystemException,
300                            com.liferay.portlet.asset.NoSuchCategoryException;
301    
302            public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V(
303                    long parentCategoryId, java.lang.String name, long vocabularyId)
304                    throws com.liferay.portal.kernel.exception.SystemException;
305    
306            public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V(
307                    long parentCategoryId, java.lang.String name, long vocabularyId,
308                    boolean retrieveFromCache)
309                    throws com.liferay.portal.kernel.exception.SystemException;
310    
311            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll()
312                    throws com.liferay.portal.kernel.exception.SystemException;
313    
314            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
315                    int start, int end)
316                    throws com.liferay.portal.kernel.exception.SystemException;
317    
318            public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
319                    int start, int end,
320                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
321                    throws com.liferay.portal.kernel.exception.SystemException;
322    
323            public void removeByUuid(java.lang.String uuid)
324                    throws com.liferay.portal.kernel.exception.SystemException;
325    
326            public void removeByUUID_G(java.lang.String uuid, long groupId)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.asset.NoSuchCategoryException;
329    
330            public void removeByGroupId(long groupId)
331                    throws com.liferay.portal.kernel.exception.SystemException;
332    
333            public void removeByParentCategoryId(long parentCategoryId)
334                    throws com.liferay.portal.kernel.exception.SystemException;
335    
336            public void removeByVocabularyId(long vocabularyId)
337                    throws com.liferay.portal.kernel.exception.SystemException;
338    
339            public void removeByP_N(long parentCategoryId, java.lang.String name)
340                    throws com.liferay.portal.kernel.exception.SystemException;
341    
342            public void removeByP_V(long parentCategoryId, long vocabularyId)
343                    throws com.liferay.portal.kernel.exception.SystemException;
344    
345            public void removeByN_V(java.lang.String name, long vocabularyId)
346                    throws com.liferay.portal.kernel.exception.SystemException;
347    
348            public void removeByP_N_V(long parentCategoryId, java.lang.String name,
349                    long vocabularyId)
350                    throws com.liferay.portal.kernel.exception.SystemException,
351                            com.liferay.portlet.asset.NoSuchCategoryException;
352    
353            public void removeAll()
354                    throws com.liferay.portal.kernel.exception.SystemException;
355    
356            public int countByUuid(java.lang.String uuid)
357                    throws com.liferay.portal.kernel.exception.SystemException;
358    
359            public int countByUUID_G(java.lang.String uuid, long groupId)
360                    throws com.liferay.portal.kernel.exception.SystemException;
361    
362            public int countByGroupId(long groupId)
363                    throws com.liferay.portal.kernel.exception.SystemException;
364    
365            public int filterCountByGroupId(long groupId)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            public int countByParentCategoryId(long parentCategoryId)
369                    throws com.liferay.portal.kernel.exception.SystemException;
370    
371            public int countByVocabularyId(long vocabularyId)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            public int countByP_N(long parentCategoryId, java.lang.String name)
375                    throws com.liferay.portal.kernel.exception.SystemException;
376    
377            public int countByP_V(long parentCategoryId, long vocabularyId)
378                    throws com.liferay.portal.kernel.exception.SystemException;
379    
380            public int countByN_V(java.lang.String name, long vocabularyId)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            public int countByP_N_V(long parentCategoryId, java.lang.String name,
384                    long vocabularyId)
385                    throws com.liferay.portal.kernel.exception.SystemException;
386    
387            public int countAll()
388                    throws com.liferay.portal.kernel.exception.SystemException;
389    
390            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
391                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
392    
393            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
394                    long pk, int start, int end)
395                    throws com.liferay.portal.kernel.exception.SystemException;
396    
397            public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
398                    long pk, int start, int end,
399                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            public int getAssetEntriesSize(long pk)
403                    throws com.liferay.portal.kernel.exception.SystemException;
404    
405            public boolean containsAssetEntry(long pk, long assetEntryPK)
406                    throws com.liferay.portal.kernel.exception.SystemException;
407    
408            public boolean containsAssetEntries(long pk)
409                    throws com.liferay.portal.kernel.exception.SystemException;
410    
411            public void addAssetEntry(long pk, long assetEntryPK)
412                    throws com.liferay.portal.kernel.exception.SystemException;
413    
414            public void addAssetEntry(long pk,
415                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            public void addAssetEntries(long pk, long[] assetEntryPKs)
419                    throws com.liferay.portal.kernel.exception.SystemException;
420    
421            public void addAssetEntries(long pk,
422                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
423                    throws com.liferay.portal.kernel.exception.SystemException;
424    
425            public void clearAssetEntries(long pk)
426                    throws com.liferay.portal.kernel.exception.SystemException;
427    
428            public void removeAssetEntry(long pk, long assetEntryPK)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            public void removeAssetEntry(long pk,
432                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
433                    throws com.liferay.portal.kernel.exception.SystemException;
434    
435            public void removeAssetEntries(long pk, long[] assetEntryPKs)
436                    throws com.liferay.portal.kernel.exception.SystemException;
437    
438            public void removeAssetEntries(long pk,
439                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
440                    throws com.liferay.portal.kernel.exception.SystemException;
441    
442            public void setAssetEntries(long pk, long[] assetEntryPKs)
443                    throws com.liferay.portal.kernel.exception.SystemException;
444    
445            public void setAssetEntries(long pk,
446                    java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
447                    throws com.liferay.portal.kernel.exception.SystemException;
448    
449            public void rebuildTree(long groupId, boolean force)
450                    throws com.liferay.portal.kernel.exception.SystemException;
451    }