001
014
015 package com.liferay.portlet.bookmarks.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.bookmarks.model.BookmarksFolder;
024
025 import java.util.List;
026
027
033 public class BookmarksFolderUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(BookmarksFolder bookmarksFolder) {
045 getPersistence().clearCache(bookmarksFolder);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<BookmarksFolder> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<BookmarksFolder> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<BookmarksFolder> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static BookmarksFolder remove(BookmarksFolder bookmarksFolder)
088 throws SystemException {
089 return getPersistence().remove(bookmarksFolder);
090 }
091
092
095 public static BookmarksFolder update(BookmarksFolder bookmarksFolder,
096 boolean merge) throws SystemException {
097 return getPersistence().update(bookmarksFolder, merge);
098 }
099
100
103 public static BookmarksFolder update(BookmarksFolder bookmarksFolder,
104 boolean merge, ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(bookmarksFolder, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder) {
110 getPersistence().cacheResult(bookmarksFolder);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> bookmarksFolders) {
115 getPersistence().cacheResult(bookmarksFolders);
116 }
117
118 public static com.liferay.portlet.bookmarks.model.BookmarksFolder create(
119 long folderId) {
120 return getPersistence().create(folderId);
121 }
122
123 public static com.liferay.portlet.bookmarks.model.BookmarksFolder remove(
124 long folderId)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.bookmarks.NoSuchFolderException {
127 return getPersistence().remove(folderId);
128 }
129
130 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateImpl(
131 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(bookmarksFolder, merge);
135 }
136
137 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByPrimaryKey(
138 long folderId)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.bookmarks.NoSuchFolderException {
141 return getPersistence().findByPrimaryKey(folderId);
142 }
143
144 public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByPrimaryKey(
145 long folderId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().fetchByPrimaryKey(folderId);
148 }
149
150 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
151 java.lang.String uuid)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByUuid(uuid);
154 }
155
156 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
157 java.lang.String uuid, int start, int end)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getPersistence().findByUuid(uuid, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByUuid(
163 java.lang.String uuid, int start, int end,
164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
167 }
168
169 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_First(
170 java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.kernel.exception.SystemException,
173 com.liferay.portlet.bookmarks.NoSuchFolderException {
174 return getPersistence().findByUuid_First(uuid, orderByComparator);
175 }
176
177 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUuid_Last(
178 java.lang.String uuid,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.kernel.exception.SystemException,
181 com.liferay.portlet.bookmarks.NoSuchFolderException {
182 return getPersistence().findByUuid_Last(uuid, orderByComparator);
183 }
184
185 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByUuid_PrevAndNext(
186 long folderId, java.lang.String uuid,
187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188 throws com.liferay.portal.kernel.exception.SystemException,
189 com.liferay.portlet.bookmarks.NoSuchFolderException {
190 return getPersistence()
191 .findByUuid_PrevAndNext(folderId, uuid, orderByComparator);
192 }
193
194 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByUUID_G(
195 java.lang.String uuid, long groupId)
196 throws com.liferay.portal.kernel.exception.SystemException,
197 com.liferay.portlet.bookmarks.NoSuchFolderException {
198 return getPersistence().findByUUID_G(uuid, groupId);
199 }
200
201 public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
202 java.lang.String uuid, long groupId)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 return getPersistence().fetchByUUID_G(uuid, groupId);
205 }
206
207 public static com.liferay.portlet.bookmarks.model.BookmarksFolder fetchByUUID_G(
208 java.lang.String uuid, long groupId, boolean retrieveFromCache)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
211 }
212
213 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
214 long groupId)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getPersistence().findByGroupId(groupId);
217 }
218
219 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
220 long groupId, int start, int end)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getPersistence().findByGroupId(groupId, start, end);
223 }
224
225 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByGroupId(
226 long groupId, int start, int end,
227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return getPersistence()
230 .findByGroupId(groupId, start, end, orderByComparator);
231 }
232
233 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_First(
234 long groupId,
235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
236 throws com.liferay.portal.kernel.exception.SystemException,
237 com.liferay.portlet.bookmarks.NoSuchFolderException {
238 return getPersistence().findByGroupId_First(groupId, orderByComparator);
239 }
240
241 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByGroupId_Last(
242 long groupId,
243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
244 throws com.liferay.portal.kernel.exception.SystemException,
245 com.liferay.portlet.bookmarks.NoSuchFolderException {
246 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
247 }
248
249 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByGroupId_PrevAndNext(
250 long folderId, long groupId,
251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252 throws com.liferay.portal.kernel.exception.SystemException,
253 com.liferay.portlet.bookmarks.NoSuchFolderException {
254 return getPersistence()
255 .findByGroupId_PrevAndNext(folderId, groupId,
256 orderByComparator);
257 }
258
259 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
260 long groupId)
261 throws com.liferay.portal.kernel.exception.SystemException {
262 return getPersistence().filterFindByGroupId(groupId);
263 }
264
265 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
266 long groupId, int start, int end)
267 throws com.liferay.portal.kernel.exception.SystemException {
268 return getPersistence().filterFindByGroupId(groupId, start, end);
269 }
270
271 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByGroupId(
272 long groupId, int start, int end,
273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274 throws com.liferay.portal.kernel.exception.SystemException {
275 return getPersistence()
276 .filterFindByGroupId(groupId, start, end, orderByComparator);
277 }
278
279 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
280 long companyId)
281 throws com.liferay.portal.kernel.exception.SystemException {
282 return getPersistence().findByCompanyId(companyId);
283 }
284
285 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
286 long companyId, int start, int end)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 return getPersistence().findByCompanyId(companyId, start, end);
289 }
290
291 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByCompanyId(
292 long companyId, int start, int end,
293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 return getPersistence()
296 .findByCompanyId(companyId, start, end, orderByComparator);
297 }
298
299 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_First(
300 long companyId,
301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
302 throws com.liferay.portal.kernel.exception.SystemException,
303 com.liferay.portlet.bookmarks.NoSuchFolderException {
304 return getPersistence()
305 .findByCompanyId_First(companyId, orderByComparator);
306 }
307
308 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByCompanyId_Last(
309 long companyId,
310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311 throws com.liferay.portal.kernel.exception.SystemException,
312 com.liferay.portlet.bookmarks.NoSuchFolderException {
313 return getPersistence()
314 .findByCompanyId_Last(companyId, orderByComparator);
315 }
316
317 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByCompanyId_PrevAndNext(
318 long folderId, long companyId,
319 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320 throws com.liferay.portal.kernel.exception.SystemException,
321 com.liferay.portlet.bookmarks.NoSuchFolderException {
322 return getPersistence()
323 .findByCompanyId_PrevAndNext(folderId, companyId,
324 orderByComparator);
325 }
326
327 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
328 long groupId, long parentFolderId)
329 throws com.liferay.portal.kernel.exception.SystemException {
330 return getPersistence().findByG_P(groupId, parentFolderId);
331 }
332
333 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
334 long groupId, long parentFolderId, int start, int end)
335 throws com.liferay.portal.kernel.exception.SystemException {
336 return getPersistence().findByG_P(groupId, parentFolderId, start, end);
337 }
338
339 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findByG_P(
340 long groupId, long parentFolderId, int start, int end,
341 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 return getPersistence()
344 .findByG_P(groupId, parentFolderId, start, end,
345 orderByComparator);
346 }
347
348 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_First(
349 long groupId, long parentFolderId,
350 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
351 throws com.liferay.portal.kernel.exception.SystemException,
352 com.liferay.portlet.bookmarks.NoSuchFolderException {
353 return getPersistence()
354 .findByG_P_First(groupId, parentFolderId, orderByComparator);
355 }
356
357 public static com.liferay.portlet.bookmarks.model.BookmarksFolder findByG_P_Last(
358 long groupId, long parentFolderId,
359 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360 throws com.liferay.portal.kernel.exception.SystemException,
361 com.liferay.portlet.bookmarks.NoSuchFolderException {
362 return getPersistence()
363 .findByG_P_Last(groupId, parentFolderId, orderByComparator);
364 }
365
366 public static com.liferay.portlet.bookmarks.model.BookmarksFolder[] findByG_P_PrevAndNext(
367 long folderId, long groupId, long parentFolderId,
368 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
369 throws com.liferay.portal.kernel.exception.SystemException,
370 com.liferay.portlet.bookmarks.NoSuchFolderException {
371 return getPersistence()
372 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId,
373 orderByComparator);
374 }
375
376 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
377 long groupId, long parentFolderId)
378 throws com.liferay.portal.kernel.exception.SystemException {
379 return getPersistence().filterFindByG_P(groupId, parentFolderId);
380 }
381
382 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
383 long groupId, long parentFolderId, int start, int end)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 return getPersistence()
386 .filterFindByG_P(groupId, parentFolderId, start, end);
387 }
388
389 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> filterFindByG_P(
390 long groupId, long parentFolderId, int start, int end,
391 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
392 throws com.liferay.portal.kernel.exception.SystemException {
393 return getPersistence()
394 .filterFindByG_P(groupId, parentFolderId, start, end,
395 orderByComparator);
396 }
397
398 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll()
399 throws com.liferay.portal.kernel.exception.SystemException {
400 return getPersistence().findAll();
401 }
402
403 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
404 int start, int end)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getPersistence().findAll(start, end);
407 }
408
409 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> findAll(
410 int start, int end,
411 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
412 throws com.liferay.portal.kernel.exception.SystemException {
413 return getPersistence().findAll(start, end, orderByComparator);
414 }
415
416 public static void removeByUuid(java.lang.String uuid)
417 throws com.liferay.portal.kernel.exception.SystemException {
418 getPersistence().removeByUuid(uuid);
419 }
420
421 public static void removeByUUID_G(java.lang.String uuid, long groupId)
422 throws com.liferay.portal.kernel.exception.SystemException,
423 com.liferay.portlet.bookmarks.NoSuchFolderException {
424 getPersistence().removeByUUID_G(uuid, groupId);
425 }
426
427 public static void removeByGroupId(long groupId)
428 throws com.liferay.portal.kernel.exception.SystemException {
429 getPersistence().removeByGroupId(groupId);
430 }
431
432 public static void removeByCompanyId(long companyId)
433 throws com.liferay.portal.kernel.exception.SystemException {
434 getPersistence().removeByCompanyId(companyId);
435 }
436
437 public static void removeByG_P(long groupId, long parentFolderId)
438 throws com.liferay.portal.kernel.exception.SystemException {
439 getPersistence().removeByG_P(groupId, parentFolderId);
440 }
441
442 public static void removeAll()
443 throws com.liferay.portal.kernel.exception.SystemException {
444 getPersistence().removeAll();
445 }
446
447 public static int countByUuid(java.lang.String uuid)
448 throws com.liferay.portal.kernel.exception.SystemException {
449 return getPersistence().countByUuid(uuid);
450 }
451
452 public static int countByUUID_G(java.lang.String uuid, long groupId)
453 throws com.liferay.portal.kernel.exception.SystemException {
454 return getPersistence().countByUUID_G(uuid, groupId);
455 }
456
457 public static int countByGroupId(long groupId)
458 throws com.liferay.portal.kernel.exception.SystemException {
459 return getPersistence().countByGroupId(groupId);
460 }
461
462 public static int filterCountByGroupId(long groupId)
463 throws com.liferay.portal.kernel.exception.SystemException {
464 return getPersistence().filterCountByGroupId(groupId);
465 }
466
467 public static int countByCompanyId(long companyId)
468 throws com.liferay.portal.kernel.exception.SystemException {
469 return getPersistence().countByCompanyId(companyId);
470 }
471
472 public static int countByG_P(long groupId, long parentFolderId)
473 throws com.liferay.portal.kernel.exception.SystemException {
474 return getPersistence().countByG_P(groupId, parentFolderId);
475 }
476
477 public static int filterCountByG_P(long groupId, long parentFolderId)
478 throws com.liferay.portal.kernel.exception.SystemException {
479 return getPersistence().filterCountByG_P(groupId, parentFolderId);
480 }
481
482 public static int countAll()
483 throws com.liferay.portal.kernel.exception.SystemException {
484 return getPersistence().countAll();
485 }
486
487 public static BookmarksFolderPersistence getPersistence() {
488 if (_persistence == null) {
489 _persistence = (BookmarksFolderPersistence)PortalBeanLocatorUtil.locate(BookmarksFolderPersistence.class.getName());
490 }
491
492 return _persistence;
493 }
494
495 public void setPersistence(BookmarksFolderPersistence persistence) {
496 _persistence = persistence;
497 }
498
499 private static BookmarksFolderPersistence _persistence;
500 }