1
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
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 obc)
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 obc)
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 obc)
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 obc)
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> findByParentCategoryId(
106 long parentCategoryId)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
110 long parentCategoryId, int start, int end)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByParentCategoryId(
114 long parentCategoryId, int start, int end,
115 com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.kernel.exception.SystemException;
117
118 public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_First(
119 long parentCategoryId,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.kernel.exception.SystemException,
122 com.liferay.portlet.asset.NoSuchCategoryException;
123
124 public com.liferay.portlet.asset.model.AssetCategory findByParentCategoryId_Last(
125 long parentCategoryId,
126 com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.kernel.exception.SystemException,
128 com.liferay.portlet.asset.NoSuchCategoryException;
129
130 public com.liferay.portlet.asset.model.AssetCategory[] findByParentCategoryId_PrevAndNext(
131 long categoryId, long parentCategoryId,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
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> findByVocabularyId(
137 long vocabularyId)
138 throws com.liferay.portal.kernel.exception.SystemException;
139
140 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
141 long vocabularyId, int start, int end)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByVocabularyId(
145 long vocabularyId, int start, int end,
146 com.liferay.portal.kernel.util.OrderByComparator obc)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First(
150 long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.kernel.exception.SystemException,
152 com.liferay.portlet.asset.NoSuchCategoryException;
153
154 public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last(
155 long vocabularyId, com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.kernel.exception.SystemException,
157 com.liferay.portlet.asset.NoSuchCategoryException;
158
159 public com.liferay.portlet.asset.model.AssetCategory[] findByVocabularyId_PrevAndNext(
160 long categoryId, long vocabularyId,
161 com.liferay.portal.kernel.util.OrderByComparator obc)
162 throws com.liferay.portal.kernel.exception.SystemException,
163 com.liferay.portlet.asset.NoSuchCategoryException;
164
165 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
166 long parentCategoryId, java.lang.String name)
167 throws com.liferay.portal.kernel.exception.SystemException;
168
169 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
170 long parentCategoryId, java.lang.String name, int start, int end)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
174 long parentCategoryId, java.lang.String name, int start, int end,
175 com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178 public com.liferay.portlet.asset.model.AssetCategory findByP_N_First(
179 long parentCategoryId, java.lang.String name,
180 com.liferay.portal.kernel.util.OrderByComparator obc)
181 throws com.liferay.portal.kernel.exception.SystemException,
182 com.liferay.portlet.asset.NoSuchCategoryException;
183
184 public com.liferay.portlet.asset.model.AssetCategory findByP_N_Last(
185 long parentCategoryId, java.lang.String name,
186 com.liferay.portal.kernel.util.OrderByComparator obc)
187 throws com.liferay.portal.kernel.exception.SystemException,
188 com.liferay.portlet.asset.NoSuchCategoryException;
189
190 public com.liferay.portlet.asset.model.AssetCategory[] findByP_N_PrevAndNext(
191 long categoryId, long parentCategoryId, java.lang.String name,
192 com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.kernel.exception.SystemException,
194 com.liferay.portlet.asset.NoSuchCategoryException;
195
196 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
197 long parentCategoryId, long vocabularyId)
198 throws com.liferay.portal.kernel.exception.SystemException;
199
200 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
201 long parentCategoryId, long vocabularyId, int start, int end)
202 throws com.liferay.portal.kernel.exception.SystemException;
203
204 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
205 long parentCategoryId, long vocabularyId, int start, int end,
206 com.liferay.portal.kernel.util.OrderByComparator obc)
207 throws com.liferay.portal.kernel.exception.SystemException;
208
209 public com.liferay.portlet.asset.model.AssetCategory findByP_V_First(
210 long parentCategoryId, long vocabularyId,
211 com.liferay.portal.kernel.util.OrderByComparator obc)
212 throws com.liferay.portal.kernel.exception.SystemException,
213 com.liferay.portlet.asset.NoSuchCategoryException;
214
215 public com.liferay.portlet.asset.model.AssetCategory findByP_V_Last(
216 long parentCategoryId, long vocabularyId,
217 com.liferay.portal.kernel.util.OrderByComparator obc)
218 throws com.liferay.portal.kernel.exception.SystemException,
219 com.liferay.portlet.asset.NoSuchCategoryException;
220
221 public com.liferay.portlet.asset.model.AssetCategory[] findByP_V_PrevAndNext(
222 long categoryId, long parentCategoryId, long vocabularyId,
223 com.liferay.portal.kernel.util.OrderByComparator obc)
224 throws com.liferay.portal.kernel.exception.SystemException,
225 com.liferay.portlet.asset.NoSuchCategoryException;
226
227 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
228 java.lang.String name, long vocabularyId)
229 throws com.liferay.portal.kernel.exception.SystemException;
230
231 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
232 java.lang.String name, long vocabularyId, int start, int end)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
236 java.lang.String name, long vocabularyId, int start, int end,
237 com.liferay.portal.kernel.util.OrderByComparator obc)
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240 public com.liferay.portlet.asset.model.AssetCategory findByN_V_First(
241 java.lang.String name, long vocabularyId,
242 com.liferay.portal.kernel.util.OrderByComparator obc)
243 throws com.liferay.portal.kernel.exception.SystemException,
244 com.liferay.portlet.asset.NoSuchCategoryException;
245
246 public com.liferay.portlet.asset.model.AssetCategory findByN_V_Last(
247 java.lang.String name, long vocabularyId,
248 com.liferay.portal.kernel.util.OrderByComparator obc)
249 throws com.liferay.portal.kernel.exception.SystemException,
250 com.liferay.portlet.asset.NoSuchCategoryException;
251
252 public com.liferay.portlet.asset.model.AssetCategory[] findByN_V_PrevAndNext(
253 long categoryId, java.lang.String name, long vocabularyId,
254 com.liferay.portal.kernel.util.OrderByComparator obc)
255 throws com.liferay.portal.kernel.exception.SystemException,
256 com.liferay.portlet.asset.NoSuchCategoryException;
257
258 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll()
259 throws com.liferay.portal.kernel.exception.SystemException;
260
261 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
262 int start, int end)
263 throws com.liferay.portal.kernel.exception.SystemException;
264
265 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
266 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
267 throws com.liferay.portal.kernel.exception.SystemException;
268
269 public void removeByUuid(java.lang.String uuid)
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272 public void removeByUUID_G(java.lang.String uuid, long groupId)
273 throws com.liferay.portal.kernel.exception.SystemException,
274 com.liferay.portlet.asset.NoSuchCategoryException;
275
276 public void removeByParentCategoryId(long parentCategoryId)
277 throws com.liferay.portal.kernel.exception.SystemException;
278
279 public void removeByVocabularyId(long vocabularyId)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282 public void removeByP_N(long parentCategoryId, java.lang.String name)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285 public void removeByP_V(long parentCategoryId, long vocabularyId)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 public void removeByN_V(java.lang.String name, long vocabularyId)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291 public void removeAll()
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294 public int countByUuid(java.lang.String uuid)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297 public int countByUUID_G(java.lang.String uuid, long groupId)
298 throws com.liferay.portal.kernel.exception.SystemException;
299
300 public int countByParentCategoryId(long parentCategoryId)
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303 public int countByVocabularyId(long vocabularyId)
304 throws com.liferay.portal.kernel.exception.SystemException;
305
306 public int countByP_N(long parentCategoryId, java.lang.String name)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 public int countByP_V(long parentCategoryId, long vocabularyId)
310 throws com.liferay.portal.kernel.exception.SystemException;
311
312 public int countByN_V(java.lang.String name, long vocabularyId)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315 public int countAll()
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
319 long pk) throws com.liferay.portal.kernel.exception.SystemException;
320
321 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
322 long pk, int start, int end)
323 throws com.liferay.portal.kernel.exception.SystemException;
324
325 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
326 long pk, int start, int end,
327 com.liferay.portal.kernel.util.OrderByComparator obc)
328 throws com.liferay.portal.kernel.exception.SystemException;
329
330 public int getAssetEntriesSize(long pk)
331 throws com.liferay.portal.kernel.exception.SystemException;
332
333 public boolean containsAssetEntry(long pk, long assetEntryPK)
334 throws com.liferay.portal.kernel.exception.SystemException;
335
336 public boolean containsAssetEntries(long pk)
337 throws com.liferay.portal.kernel.exception.SystemException;
338
339 public void addAssetEntry(long pk, long assetEntryPK)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342 public void addAssetEntry(long pk,
343 com.liferay.portlet.asset.model.AssetEntry assetEntry)
344 throws com.liferay.portal.kernel.exception.SystemException;
345
346 public void addAssetEntries(long pk, long[] assetEntryPKs)
347 throws com.liferay.portal.kernel.exception.SystemException;
348
349 public void addAssetEntries(long pk,
350 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
351 throws com.liferay.portal.kernel.exception.SystemException;
352
353 public void clearAssetEntries(long pk)
354 throws com.liferay.portal.kernel.exception.SystemException;
355
356 public void removeAssetEntry(long pk, long assetEntryPK)
357 throws com.liferay.portal.kernel.exception.SystemException;
358
359 public void removeAssetEntry(long pk,
360 com.liferay.portlet.asset.model.AssetEntry assetEntry)
361 throws com.liferay.portal.kernel.exception.SystemException;
362
363 public void removeAssetEntries(long pk, long[] assetEntryPKs)
364 throws com.liferay.portal.kernel.exception.SystemException;
365
366 public void removeAssetEntries(long pk,
367 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
368 throws com.liferay.portal.kernel.exception.SystemException;
369
370 public void setAssetEntries(long pk, long[] assetEntryPKs)
371 throws com.liferay.portal.kernel.exception.SystemException;
372
373 public void setAssetEntries(long pk,
374 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
375 throws com.liferay.portal.kernel.exception.SystemException;
376
377 public void rebuildTree(long groupId, boolean force)
378 throws com.liferay.portal.kernel.exception.SystemException;
379 }