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 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> 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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 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> 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 orderByComparator)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_First(
150 long vocabularyId,
151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152 throws com.liferay.portal.kernel.exception.SystemException,
153 com.liferay.portlet.asset.NoSuchCategoryException;
154
155 public com.liferay.portlet.asset.model.AssetCategory findByVocabularyId_Last(
156 long vocabularyId,
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[] findByVocabularyId_PrevAndNext(
162 long categoryId, long vocabularyId,
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 java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
168 long parentCategoryId, java.lang.String name)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
172 long parentCategoryId, java.lang.String name, int start, int end)
173 throws com.liferay.portal.kernel.exception.SystemException;
174
175 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_N(
176 long parentCategoryId, java.lang.String name, int start, int end,
177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178 throws com.liferay.portal.kernel.exception.SystemException;
179
180 public com.liferay.portlet.asset.model.AssetCategory findByP_N_First(
181 long parentCategoryId, java.lang.String name,
182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183 throws com.liferay.portal.kernel.exception.SystemException,
184 com.liferay.portlet.asset.NoSuchCategoryException;
185
186 public com.liferay.portlet.asset.model.AssetCategory findByP_N_Last(
187 long parentCategoryId, java.lang.String name,
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[] findByP_N_PrevAndNext(
193 long categoryId, long parentCategoryId, java.lang.String name,
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 java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
199 long parentCategoryId, long vocabularyId)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
203 long parentCategoryId, long vocabularyId, int start, int end)
204 throws com.liferay.portal.kernel.exception.SystemException;
205
206 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByP_V(
207 long parentCategoryId, long vocabularyId, int start, int end,
208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 public com.liferay.portlet.asset.model.AssetCategory findByP_V_First(
212 long parentCategoryId, long vocabularyId,
213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214 throws com.liferay.portal.kernel.exception.SystemException,
215 com.liferay.portlet.asset.NoSuchCategoryException;
216
217 public com.liferay.portlet.asset.model.AssetCategory findByP_V_Last(
218 long parentCategoryId, long vocabularyId,
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_V_PrevAndNext(
224 long categoryId, long parentCategoryId, long vocabularyId,
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 java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
230 java.lang.String name, long vocabularyId)
231 throws com.liferay.portal.kernel.exception.SystemException;
232
233 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
234 java.lang.String name, long vocabularyId, int start, int end)
235 throws com.liferay.portal.kernel.exception.SystemException;
236
237 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findByN_V(
238 java.lang.String name, long vocabularyId, int start, int end,
239 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
240 throws com.liferay.portal.kernel.exception.SystemException;
241
242 public com.liferay.portlet.asset.model.AssetCategory findByN_V_First(
243 java.lang.String name, long vocabularyId,
244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245 throws com.liferay.portal.kernel.exception.SystemException,
246 com.liferay.portlet.asset.NoSuchCategoryException;
247
248 public com.liferay.portlet.asset.model.AssetCategory findByN_V_Last(
249 java.lang.String name, 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[] findByN_V_PrevAndNext(
255 long categoryId, java.lang.String name, 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 java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll()
261 throws com.liferay.portal.kernel.exception.SystemException;
262
263 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
264 int start, int end)
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267 public java.util.List<com.liferay.portlet.asset.model.AssetCategory> findAll(
268 int start, int end,
269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272 public void removeByUuid(java.lang.String uuid)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275 public void removeByUUID_G(java.lang.String uuid, long groupId)
276 throws com.liferay.portal.kernel.exception.SystemException,
277 com.liferay.portlet.asset.NoSuchCategoryException;
278
279 public void removeByParentCategoryId(long parentCategoryId)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282 public void removeByVocabularyId(long vocabularyId)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285 public void removeByP_N(long parentCategoryId, java.lang.String name)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 public void removeByP_V(long parentCategoryId, long vocabularyId)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291 public void removeByN_V(java.lang.String name, long vocabularyId)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294 public void removeAll()
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297 public int countByUuid(java.lang.String uuid)
298 throws com.liferay.portal.kernel.exception.SystemException;
299
300 public int countByUUID_G(java.lang.String uuid, long groupId)
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303 public int countByParentCategoryId(long parentCategoryId)
304 throws com.liferay.portal.kernel.exception.SystemException;
305
306 public int countByVocabularyId(long vocabularyId)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 public int countByP_N(long parentCategoryId, java.lang.String name)
310 throws com.liferay.portal.kernel.exception.SystemException;
311
312 public int countByP_V(long parentCategoryId, long vocabularyId)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315 public int countByN_V(java.lang.String name, long vocabularyId)
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318 public int countAll()
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
322 long pk) throws com.liferay.portal.kernel.exception.SystemException;
323
324 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
325 long pk, int start, int end)
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
329 long pk, int start, int end,
330 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
331 throws com.liferay.portal.kernel.exception.SystemException;
332
333 public int getAssetEntriesSize(long pk)
334 throws com.liferay.portal.kernel.exception.SystemException;
335
336 public boolean containsAssetEntry(long pk, long assetEntryPK)
337 throws com.liferay.portal.kernel.exception.SystemException;
338
339 public boolean containsAssetEntries(long pk)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342 public void addAssetEntry(long pk, long assetEntryPK)
343 throws com.liferay.portal.kernel.exception.SystemException;
344
345 public void addAssetEntry(long pk,
346 com.liferay.portlet.asset.model.AssetEntry assetEntry)
347 throws com.liferay.portal.kernel.exception.SystemException;
348
349 public void addAssetEntries(long pk, long[] assetEntryPKs)
350 throws com.liferay.portal.kernel.exception.SystemException;
351
352 public void addAssetEntries(long pk,
353 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
354 throws com.liferay.portal.kernel.exception.SystemException;
355
356 public void clearAssetEntries(long pk)
357 throws com.liferay.portal.kernel.exception.SystemException;
358
359 public void removeAssetEntry(long pk, long assetEntryPK)
360 throws com.liferay.portal.kernel.exception.SystemException;
361
362 public void removeAssetEntry(long pk,
363 com.liferay.portlet.asset.model.AssetEntry assetEntry)
364 throws com.liferay.portal.kernel.exception.SystemException;
365
366 public void removeAssetEntries(long pk, long[] assetEntryPKs)
367 throws com.liferay.portal.kernel.exception.SystemException;
368
369 public void removeAssetEntries(long pk,
370 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
371 throws com.liferay.portal.kernel.exception.SystemException;
372
373 public void setAssetEntries(long pk, long[] assetEntryPKs)
374 throws com.liferay.portal.kernel.exception.SystemException;
375
376 public void setAssetEntries(long pk,
377 java.util.List<com.liferay.portlet.asset.model.AssetEntry> assetEntries)
378 throws com.liferay.portal.kernel.exception.SystemException;
379
380 public void rebuildTree(long groupId, boolean force)
381 throws com.liferay.portal.kernel.exception.SystemException;
382 }