1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.asset.model.AssetCategory;
20  
21  /**
22   * <a href="AssetCategoryPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       AssetCategoryPersistenceImpl
31   * @see       AssetCategoryUtil
32   * @generated
33   */
34  public interface AssetCategoryPersistence extends BasePersistence<AssetCategory> {
35      public void cacheResult(
36          com.liferay.portlet.asset.model.AssetCategory assetCategory);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.asset.model.AssetCategory> assetCategories);
40  
41      public com.liferay.portlet.asset.model.AssetCategory create(long categoryId);
42  
43      public com.liferay.portlet.asset.model.AssetCategory remove(long categoryId)
44          throws com.liferay.portal.kernel.exception.SystemException,
45              com.liferay.portlet.asset.NoSuchCategoryException;
46  
47      public com.liferay.portlet.asset.model.AssetCategory updateImpl(
48          com.liferay.portlet.asset.model.AssetCategory assetCategory,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.asset.model.AssetCategory findByPrimaryKey(
53          long categoryId)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.asset.NoSuchCategoryException;
56  
57      public com.liferay.portlet.asset.model.AssetCategory fetchByPrimaryKey(
58          long categoryId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
62          java.lang.String uuid)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
66          java.lang.String uuid, int start, int end)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByUuid(
70          java.lang.String uuid, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portlet.asset.model.AssetCategory findByUuid_First(
75          java.lang.String uuid,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.kernel.exception.SystemException,
78              com.liferay.portlet.asset.NoSuchCategoryException;
79  
80      public com.liferay.portlet.asset.model.AssetCategory findByUuid_Last(
81          java.lang.String uuid,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.kernel.exception.SystemException,
84              com.liferay.portlet.asset.NoSuchCategoryException;
85  
86      public com.liferay.portlet.asset.model.AssetCategory[] findByUuid_PrevAndNext(
87          long categoryId, java.lang.String uuid,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.kernel.exception.SystemException,
90              com.liferay.portlet.asset.NoSuchCategoryException;
91  
92      public com.liferay.portlet.asset.model.AssetCategory findByUUID_G(
93          java.lang.String uuid, long groupId)
94          throws com.liferay.portal.kernel.exception.SystemException,
95              com.liferay.portlet.asset.NoSuchCategoryException;
96  
97      public com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
98          java.lang.String uuid, long groupId)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portlet.asset.model.AssetCategory fetchByUUID_G(
102         java.lang.String uuid, long groupId, boolean retrieveFromCache)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
106         long groupId)
107         throws com.liferay.portal.kernel.exception.SystemException;
108 
109     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
110         long groupId, int start, int end)
111         throws com.liferay.portal.kernel.exception.SystemException;
112 
113     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByGroupId(
114         long groupId, int start, int end,
115         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116         throws com.liferay.portal.kernel.exception.SystemException;
117 
118     public com.liferay.portlet.asset.model.AssetCategory findByGroupId_First(
119         long groupId,
120         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
121         throws com.liferay.portal.kernel.exception.SystemException,
122             com.liferay.portlet.asset.NoSuchCategoryException;
123 
124     public com.liferay.portlet.asset.model.AssetCategory findByGroupId_Last(
125         long groupId,
126         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
127         throws com.liferay.portal.kernel.exception.SystemException,
128             com.liferay.portlet.asset.NoSuchCategoryException;
129 
130     public com.liferay.portlet.asset.model.AssetCategory[] findByGroupId_PrevAndNext(
131         long categoryId, long groupId,
132         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133         throws com.liferay.portal.kernel.exception.SystemException,
134             com.liferay.portlet.asset.NoSuchCategoryException;
135 
136     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
137         long groupId)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
141         long groupId, int start, int end)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> filterFindByGroupId(
145         long groupId, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
150         long parentCategoryId)
151         throws com.liferay.portal.kernel.exception.SystemException;
152 
153     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
154         long parentCategoryId, int start, int end)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
158         long parentCategoryId, int start, int end,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.kernel.exception.SystemException;
161 
162     public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First(
163         long parentCategoryId,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.kernel.exception.SystemException,
166             com.liferay.portlet.asset.NoSuchCategoryException;
167 
168     public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last(
169         long parentCategoryId,
170         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171         throws com.liferay.portal.kernel.exception.SystemException,
172             com.liferay.portlet.asset.NoSuchCategoryException;
173 
174     public com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext(
175         long categoryId, long parentCategoryId,
176         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177         throws com.liferay.portal.kernel.exception.SystemException,
178             com.liferay.portlet.asset.NoSuchCategoryException;
179 
180     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
181         long vocabularyId)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
185         long vocabularyId, int start, int end)
186         throws com.liferay.portal.kernel.exception.SystemException;
187 
188     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
189         long vocabularyId, int start, int end,
190         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
191         throws com.liferay.portal.kernel.exception.SystemException;
192 
193     public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First(
194         long vocabularyId,
195         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196         throws com.liferay.portal.kernel.exception.SystemException,
197             com.liferay.portlet.asset.NoSuchCategoryException;
198 
199     public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last(
200         long vocabularyId,
201         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202         throws com.liferay.portal.kernel.exception.SystemException,
203             com.liferay.portlet.asset.NoSuchCategoryException;
204 
205     public com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext(
206         long categoryId, long vocabularyId,
207         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208         throws com.liferay.portal.kernel.exception.SystemException,
209             com.liferay.portlet.asset.NoSuchCategoryException;
210 
211     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
212         long parentCategoryId, java.lang.String name)
213         throws com.liferay.portal.kernel.exception.SystemException;
214 
215     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
216         long parentCategoryId, java.lang.String name, int start, int end)
217         throws com.liferay.portal.kernel.exception.SystemException;
218 
219     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
220         long parentCategoryId, java.lang.String name, int start, int end,
221         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222         throws com.liferay.portal.kernel.exception.SystemException;
223 
224     public com.liferay.portlet.asset.model.AssetCategory findByP_N_First(
225         long parentCategoryId, java.lang.String name,
226         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227         throws com.liferay.portal.kernel.exception.SystemException,
228             com.liferay.portlet.asset.NoSuchCategoryException;
229 
230     public com.liferay.portlet.asset.model.AssetCategory findByP_N_Last(
231         long parentCategoryId, java.lang.String name,
232         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
233         throws com.liferay.portal.kernel.exception.SystemException,
234             com.liferay.portlet.asset.NoSuchCategoryException;
235 
236     public com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext(
237         long categoryId, long parentCategoryId, java.lang.String name,
238         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239         throws com.liferay.portal.kernel.exception.SystemException,
240             com.liferay.portlet.asset.NoSuchCategoryException;
241 
242     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
243         long parentCategoryId, long vocabularyId)
244         throws com.liferay.portal.kernel.exception.SystemException;
245 
246     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
247         long parentCategoryId, long vocabularyId, int start, int end)
248         throws com.liferay.portal.kernel.exception.SystemException;
249 
250     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
251         long parentCategoryId, long vocabularyId, int start, int end,
252         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
253         throws com.liferay.portal.kernel.exception.SystemException;
254 
255     public com.liferay.portlet.asset.model.AssetCategory findByP_V_First(
256         long parentCategoryId, long vocabularyId,
257         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258         throws com.liferay.portal.kernel.exception.SystemException,
259             com.liferay.portlet.asset.NoSuchCategoryException;
260 
261     public com.liferay.portlet.asset.model.AssetCategory findByP_V_Last(
262         long parentCategoryId, long vocabularyId,
263         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264         throws com.liferay.portal.kernel.exception.SystemException,
265             com.liferay.portlet.asset.NoSuchCategoryException;
266 
267     public com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext(
268         long categoryId, long parentCategoryId, long vocabularyId,
269         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270         throws com.liferay.portal.kernel.exception.SystemException,
271             com.liferay.portlet.asset.NoSuchCategoryException;
272 
273     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
274         java.lang.String name, long vocabularyId)
275         throws com.liferay.portal.kernel.exception.SystemException;
276 
277     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
278         java.lang.String name, long vocabularyId, int start, int end)
279         throws com.liferay.portal.kernel.exception.SystemException;
280 
281     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
282         java.lang.String name, long vocabularyId, int start, int end,
283         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284         throws com.liferay.portal.kernel.exception.SystemException;
285 
286     public com.liferay.portlet.asset.model.AssetCategory findByN_V_First(
287         java.lang.String name, long vocabularyId,
288         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289         throws com.liferay.portal.kernel.exception.SystemException,
290             com.liferay.portlet.asset.NoSuchCategoryException;
291 
292     public com.liferay.portlet.asset.model.AssetCategory findByN_V_Last(
293         java.lang.String name, long vocabularyId,
294         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295         throws com.liferay.portal.kernel.exception.SystemException,
296             com.liferay.portlet.asset.NoSuchCategoryException;
297 
298     public com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext(
299         long categoryId, java.lang.String name, long vocabularyId,
300         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
301         throws com.liferay.portal.kernel.exception.SystemException,
302             com.liferay.portlet.asset.NoSuchCategoryException;
303 
304     public com.liferay.portlet.asset.model.AssetCategory findByP_N_V(
305         long parentCategoryId, java.lang.String name, long vocabularyId)
306         throws com.liferay.portal.kernel.exception.SystemException,
307             com.liferay.portlet.asset.NoSuchCategoryException;
308 
309     public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V(
310         long parentCategoryId, java.lang.String name, long vocabularyId)
311         throws com.liferay.portal.kernel.exception.SystemException;
312 
313     public com.liferay.portlet.asset.model.AssetCategory fetchByP_N_V(
314         long parentCategoryId, java.lang.String name, long vocabularyId,
315         boolean retrieveFromCache)
316         throws com.liferay.portal.kernel.exception.SystemException;
317 
318     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll()
319         throws com.liferay.portal.kernel.exception.SystemException;
320 
321     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
322         int start, int end)
323         throws com.liferay.portal.kernel.exception.SystemException;
324 
325     public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
326         int start, int end,
327         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
328         throws com.liferay.portal.kernel.exception.SystemException;
329 
330     public void removeByUuid(java.lang.String uuid)
331         throws com.liferay.portal.kernel.exception.SystemException;
332 
333     public void removeByUUID_G(java.lang.String uuid, long groupId)
334         throws com.liferay.portal.kernel.exception.SystemException,
335             com.liferay.portlet.asset.NoSuchCategoryException;
336 
337     public void removeByGroupId(long groupId)
338         throws com.liferay.portal.kernel.exception.SystemException;
339 
340     public void removeByParentCategoryId(long parentCategoryId)
341         throws com.liferay.portal.kernel.exception.SystemException;
342 
343     public void removeByVocabularyId(long vocabularyId)
344         throws com.liferay.portal.kernel.exception.SystemException;
345 
346     public void removeByP_N(long parentCategoryId, java.lang.String name)
347         throws com.liferay.portal.kernel.exception.SystemException;
348 
349     public void removeByP_V(long parentCategoryId, long vocabularyId)
350         throws com.liferay.portal.kernel.exception.SystemException;
351 
352     public void removeByN_V(java.lang.String name, long vocabularyId)
353         throws com.liferay.portal.kernel.exception.SystemException;
354 
355     public void removeByP_N_V(long parentCategoryId, java.lang.String name,
356         long vocabularyId)
357         throws com.liferay.portal.kernel.exception.SystemException,
358             com.liferay.portlet.asset.NoSuchCategoryException;
359 
360     public void removeAll()
361         throws com.liferay.portal.kernel.exception.SystemException;
362 
363     public int countByUuid(java.lang.String uuid)
364         throws com.liferay.portal.kernel.exception.SystemException;
365 
366     public int countByUUID_G(java.lang.String uuid, long groupId)
367         throws com.liferay.portal.kernel.exception.SystemException;
368 
369     public int countByGroupId(long groupId)
370         throws com.liferay.portal.kernel.exception.SystemException;
371 
372     public int filterCountByGroupId(long groupId)
373         throws com.liferay.portal.kernel.exception.SystemException;
374 
375     public int countByParentCategoryId(long parentCategoryId)
376         throws com.liferay.portal.kernel.exception.SystemException;
377 
378     public int countByVocabularyId(long vocabularyId)
379         throws com.liferay.portal.kernel.exception.SystemException;
380 
381     public int countByP_N(long parentCategoryId, java.lang.String name)
382         throws com.liferay.portal.kernel.exception.SystemException;
383 
384     public int countByP_V(long parentCategoryId, long vocabularyId)
385         throws com.liferay.portal.kernel.exception.SystemException;
386 
387     public int countByN_V(java.lang.String name, long vocabularyId)
388         throws com.liferay.portal.kernel.exception.SystemException;
389 
390     public int countByP_N_V(long parentCategoryId, java.lang.String name,
391         long vocabularyId)
392         throws com.liferay.portal.kernel.exception.SystemException;
393 
394     public int countAll()
395         throws com.liferay.portal.kernel.exception.SystemException;
396 
397     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
398         long pk) throws com.liferay.portal.kernel.exception.SystemException;
399 
400     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
401         long pk, int start, int end)
402         throws com.liferay.portal.kernel.exception.SystemException;
403 
404     public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
405         long pk, int start, int end,
406         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
407         throws com.liferay.portal.kernel.exception.SystemException;
408 
409     public int getAssetEntriesSize(long pk)
410         throws com.liferay.portal.kernel.exception.SystemException;
411 
412     public boolean containsAssetEntry(long pk, long assetEntryPK)
413         throws com.liferay.portal.kernel.exception.SystemException;
414 
415     public boolean containsAssetEntries(long pk)
416         throws com.liferay.portal.kernel.exception.SystemException;
417 
418     public void addAssetEntry(long pk, long assetEntryPK)
419         throws com.liferay.portal.kernel.exception.SystemException;
420 
421     public void addAssetEntry(long pk,
422         com.liferay.portlet.asset.model.AssetEntry assetEntry)
423         throws com.liferay.portal.kernel.exception.SystemException;
424 
425     public void addAssetEntries(long pk, long[] assetEntryPKs)
426         throws com.liferay.portal.kernel.exception.SystemException;
427 
428     public void addAssetEntries(long pk,
429         java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
430         throws com.liferay.portal.kernel.exception.SystemException;
431 
432     public void clearAssetEntries(long pk)
433         throws com.liferay.portal.kernel.exception.SystemException;
434 
435     public void removeAssetEntry(long pk, long assetEntryPK)
436         throws com.liferay.portal.kernel.exception.SystemException;
437 
438     public void removeAssetEntry(long pk,
439         com.liferay.portlet.asset.model.AssetEntry assetEntry)
440         throws com.liferay.portal.kernel.exception.SystemException;
441 
442     public void removeAssetEntries(long pk, long[] assetEntryPKs)
443         throws com.liferay.portal.kernel.exception.SystemException;
444 
445     public void removeAssetEntries(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 setAssetEntries(long pk, long[] assetEntryPKs)
450         throws com.liferay.portal.kernel.exception.SystemException;
451 
452     public void setAssetEntries(long pk,
453         java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
454         throws com.liferay.portal.kernel.exception.SystemException;
455 
456     public void rebuildTree(long groupId, boolean force)
457         throws com.liferay.portal.kernel.exception.SystemException;
458 }